Abstract
Accurate characterization of neighborhood-scale air temperature distributions is important for urban thermal environment assessment and climate-responsive planning. This study systematically evaluated five established machine learning models, including multiple linear regression (MLR), multilayer perceptron (MLP), convolutional neural network (CNN), extreme gradient boosting (XGBoost), and random forest (RF), for approximating simulation-derived neighborhood air temperature fields. Five static neighborhood morphological indicators were used as input features, and ENVI-met-simulated air temperature at individual time steps was used as the prediction target. Separate models were trained for each time step to characterize the spatial distribution of air temperature rather than forecast future temperature variations. Model performance was evaluated using five-fold spatially blocked cross-validation with buffer zones. RF achieved the best overall predictive performance, with mean relative error (MRE), mean absolute error (MAE), root mean square error (RMSE), and coefficient of determination (R2) values of 0.955 ± 0.156%, 0.698 ± 0.024 °C, 0.725 ± 0.029 °C, and 0.912 ± 0.039, respectively. Additional field-based assessment showed that RF achieved an RMSE of 0.811 °C and an R2 of 0.895 against observed air temperatures. These findings provide preliminary guidance for model selection in simulation-assisted neighborhood thermal assessment under the investigated conditions.
1. Introduction
In recent years, as global temperatures have continued to rise and rapid urbanization has progressed, the urban heat island (UHI) effect has intensified significantly. Related studies indicate that during severe heat waves, the urban heat island intensity in 15 cities in eastern China in 2025 will increase by an average of approximately 0.61 °C compared to the reference period, suggesting that extremely high temperatures can further amplify the urban heat island effect [1]. Rising urban temperatures not only alter the local thermal environment but also significantly increase residents’ risk of heat exposure. Existing research indicates that for every 1 °C increase in ambient temperature, there is a significant rise in the incidence of cardiovascular and cerebrovascular diseases, respiratory illnesses, and heat-related illnesses; the risks are particularly pronounced among the elderly and other vulnerable populations [2]. For example, in 2003, a heat wave caused 30,000–75,000 deaths in Europe, and in 2010, 55,000 people died in Russia [3]. At the same time, the UHI effect also increases the demand for building cooling and peak electricity loads, raises energy consumption from air conditioning operations and anthropogenic heat emissions, and may create a vicious cycle in which high temperatures increase cooling demand, which in turn intensifies anthropogenic heat emissions, further affecting local temperatures [4]. In addition, prolonged high temperatures can reduce outdoor thermal comfort, increase the strain on infrastructure operations, and have adverse effects on the stability of urban ecosystems and social equity [5]. Therefore, the impacts of the UHI effect on human health, energy, and urban operations cannot be overlooked.
A neighborhood is the basic unit that connects urban spaces with residents’ daily activities; it is also an area with a high concentration of buildings, roads, green spaces, open spaces, and human activities [6]. The spatial configuration of a neighborhood can directly influence solar radiation gain, long-wave radiation exchange, airflow, and the processes of energy storage and release at the ground surface [7]. Compared to the urban scale, the internal spaces of city neighborhoods exhibit more pronounced spatial heterogeneity; differences in building density, building height, floor area ratio, sky view factor, and green coverage create significantly varied local thermal environments [8]. Even within the same climate zone, there are significant temperature differences between different neighborhoods. Neighborhoods are also the spaces where residents walk, commute, relax, and socialize most frequently; changes in their thermal environment directly affect people’s thermal comfort, willingness to engage in outdoor activities, and risk of exposure to high temperatures [9]. In addition, urban planning and renewal measures typically use the city neighborhood as the basic unit of implementation; for example, optimizing building layouts, allocating green spaces, designing roads, and constructing ventilation corridors all rely on the spatial context of the neighborhood [10]. Therefore, accurately predicting the spatial distribution characteristics of the thermal environment in urban blocks not only helps improve the precision of urban heat risk identification but also provides a more targeted scientific basis for subsequent spatial optimization and climate adaptation planning.
On-site field measurements are a fundamental part of studying the thermal environment of a neighborhood. Sensors are deployed in various locations and at different heights to collect data on atmospheric and surface temperature and humidity, among other factors, in order to investigate spatial variations and patterns in the thermal environment of urban neighborhoods. Currently, many studies use field measurements to identify the spatial distribution of the thermal environment in urban neighborhoods [11]. However, the on-site measurement method still has some limitations [12,13]: (1) Because the cost of deploying high-precision meteorological sensors is relatively high, it is difficult to achieve comprehensive coverage of continuous urban areas. (2) Long-term observations require a stable operating environment for the equipment. (3) Experimental studies are unable to effectively reveal the underlying physical mechanisms of heat transfer. Research on thermal environment issues in urban neighborhoods has gradually shifted from identifying phenomena to analyzing mechanisms and predicting scenarios, and numerical simulation methods have increasingly become a core tool in research both domestically and internationally. Compared to insitu testing methods, numerical simulation methods can overcome observational limitations in terms of time and space and provide high-resolution temperature distribution results [14,15]. Although numerical simulations can compensate for some of the shortcomings of insitu measurement methods, they still have certain limitations [16,17]: (1) The thermal environment of a neighborhood involves multiple physical processes, and in practical calculations, these complex processes often need to be simplified. (2) Regional-scale simulations typically rely on reanalysis meteorological data or weather station observations as input; however, the airflow structure within a neighborhood is highly complex, and even minor errors in boundary conditions may be amplified during the simulation process. (3) High computational costs are a major factor limiting the widespread adoption of numerical simulations. Compared to traditional static assessments and passive response strategies, data-driven or machine learning-based approaches can predict future thermal conditions and implement appropriate measures to mitigate the risks posed by extreme heat, thereby enhancing the ability to respond to sudden weather events. Han (2023) used the random forest method to investigate the influence of building form on surface temperature and to identify the primary morphological factors and their critical points [18]. He et al. (2024) used the XGBoost method and SHAP technology to investigate the nonlinear effects of socioeconomic activities, the built environment, and the distribution of blue and green spaces at different scales on the urban thermal environment, demonstrating the advantages of ensemble learning methods in thermal environment prediction and analysis [19]. It is evident that high-precision thermal environment prediction methods are essential tools for analyzing dynamic changes in the microclimate of urban blocks and represent a key technological pathway for advancing the management of the thermal environment in these areas toward greater precision, scientific rigor, and intelligence.
Despite the increasing application of machine learning methods in urban thermal environment studies, several methodological considerations remain important when evaluating their performance for neighborhood-scale air temperature estimation. First, temperature data generated by numerical simulations exhibit spatial dependence, and predictive performance assessed using randomly divided samples may not adequately reflect model performance at spatially held-out locations. Second, comparisons among different prediction algorithms require consistent input features and evaluation procedures to ensure that observed performance differences are not attributable to differences in data partitioning or predictor availability. Third, when machine learning models are trained using numerical simulation outputs, their agreement with the simulated temperature field should be distinguished from their accuracy relative to field observations.
To address these methodological considerations, this study developed and compared five established prediction models—multiple linear regression (MLR), multilayer perceptron (MLP), convolutional neural network (CNN), extreme gradient boosting (XGBoost), and random forest (RF)—for estimating neighborhood-scale air temperature using ENVI-met-generated data from an urban neighborhood in Guangzhou, China. All five models employed the same five predefined morphological indicators as input features, and their performance was evaluated using five-fold spatially blocked cross-validation with buffer zones. An additional field-based assessment was conducted to distinguish agreement with ENVI-met outputs from agreement with measured air temperatures. Specifically, the objectives were to: (1) construct a consistent morphology-based prediction dataset using simulation-derived air temperature as the target variable; (2) compare the predictive performance of the five models in spatially held-out regions under a unified evaluation framework; and (3) assess their agreement with field observations and discuss their applicability and limitations for neighborhood-scale thermal assessment. The findings are intended to inform model selection for preliminary neighborhood thermal assessment under the investigated simulation and monitoring conditions.
2. Materials and Methods
Figure 1 illustrates the overall research framework. First, ENVI-met (version 5.0, ENVI-met GmbH, Essen, Germany) simulations were conducted for a representative urban neighborhood in Guangzhou, China, to obtain high-resolution air temperature fields at different time steps. Five static neighborhood morphological indicators were calculated to characterize the local built environment. Second, five prediction models were independently developed (MLR, MLP, CNN, XGBoost, and RF) to estimate the spatial distribution of community temperatures. Third, a unified five-fold spatially blocked cross-validation framework with buffer zones was employed to evaluate the predictive performance of the five models using MRE, MAE, RMSE, and R2. Additional field-based assessment was conducted to examine the agreement between model predictions and observed air temperatures. Finally, the differences in predictive performance were discussed in relation to model characteristics, nonlinear learning capabilities, and potential applications in neighborhood thermal assessment.
Figure 1.
The flowchart for this study.
2.1. Study Area
This study uses a neighborhood in Guangzhou, southern China, as its case study area (Figure 2) to develop and validate a model for predicting the neighborhood’s thermal environment. Guangzhou is located in central Guangdong Province in southern China, on the northern edge of the Pearl River Delta, and has a typical subtropical monsoon climate. Due to its monsoon climate, this region experiences relatively high temperatures year-round, with long, hot summers and high humidity, as well as frequent episodes of extreme heat [20], providing a typical climatic backdrop for research on the urban thermal environment. In addition, Guangzhou has a highly complex urban spatial structure, with significant differences among various districts in terms of building heights, street widths, land use types, and levels of green space coverage [21]. This spatial heterogeneity results in significant local variations in the urban thermal environment. At the same time, high-density urban development reduces the efficiency of urban ventilation and limits the dissipation of heat. Anthropogenic heat emissions from building materials and transportation activities further increase local heat loads, turning certain areas into persistent hotspots [22]. Based on the above reasons, this study selected Guangzhou as a representative case study area to conduct research on predicting thermal environmental temperatures in urban neighborhoods.
Figure 2.
The research area of this study.
2.2. Numerical Simulation
ENVI-met is a three-dimensional microclimate simulation software program based on Computational Fluid Dynamics (CFD) theory. It comprehensively accounts for various physical processes—including building geometry, surface materials, vegetation structure, solar radiation, airflow, and heat and moisture exchange—to enable detailed simulations of key thermal environmental parameters, such as temperature, humidity, wind fields, and radiation conditions, within complex urban spaces. Compared to field measurement methods, ENVI-met can overcome limitations in spatial scope and temporal scale to provide coherent spatial distribution information. As a result, ENVI-met has been widely applied in urban design optimization, green infrastructure assessment, and research on thermal environment regulation strategies [23]. This study used ENVI-met simulations to obtain high-resolution data on air temperature distribution within urban neighborhoods, providing a reliable data foundation for subsequent thermal environment predictions.
Geometric model: In our previous work, we successfully constructed a geometric model of the outdoor thermal environment of a city neighborhood, as shown in Figure 3 [24,25]. To accurately represent the actual spatial characteristics of the study area, this study constructed a geometric model of the study area using field survey data and geospatial information. This model comprehensively considers key factors influencing the thermal environment of a neighborhood, including building layout, building height, roads, vegetation distribution, and various surface materials. As shown in Figure 3, the study area is represented by a three-dimensional computational domain. The model dimensions are set to 1450 m in length × 1100 m in width × 100 m in height to ensure that the simulation area covers the target block and its surrounding environment. Given the large scale of the study area, and to balance simulation accuracy with computational efficiency, the computational domain was divided into 290 (length) × 220 (width) × 100 (height) grid cells, with a horizontal grid resolution of 5 m and a vertical resolution of 1 m. To address the issue that high-rise buildings may lead to an increase in the number of computational grids and significantly raise computational costs, this study employs a vertical grid stretching strategy in areas where building heights exceed 30 m, introducing a vertical scaling factor of 15%.
Figure 3.
Geometric model of the study area [24,25].
Boundary conditions: In this study, the canonical κ-ε turbulence model and the Reynolds-Averaged Navier–Stokes (RANS) equations were used as the boundary control equations to simulate thermal environmental changes in the study area. Meteorological parameters from Guangzhou were used as input boundary conditions (http://www.weather.com.cn/weather1d/101280101.shtml) (accessed on 16 July 2024); these input boundary conditions have been validated in previous studies [6,24]. Based on meteorological data from Guangzhou, the model’s inlet temperature was set to 30–40 °C, with a southeast wind. The simulation lasted a total of 24 h. The remaining boundary conditions were set as follows: surface roughness of 0.1 m; specific humidity (h = 2500) was set to 8.23 g/kg; The heat transfer coefficient for the wall was set to 1.6 W/(m2·K), the specific heat capacity to 1050 J/kg·K, and the emissivity to 0.7; the heat transfer coefficient for the roof was set to 0.9 W/(m2·K), the specific heat capacity to 1300 J/kg·K, and the emissivity to 0.5; The thermal conductivity of the soil is set to 0.78 W/(m·K), the reflectance to 0.17, the emissivity to 0.94, and the density to 1800 kg/m3; The thermal conductivity of Concrete is set to 1.51 W/(m·K); its albedo is set to 0.40, its emissivity to 0.94, and its density to 2300 kg/m3; The thermal conductivity of Asphalt is set to 1.16 W/(m·K); reflectance is set to 0.20, emissivity to 0.90, and density to 2460 kg/m3; the thermal conductivity of water is set to 0.60 W/(m·K); reflectance is set to 0.05; emissivity is set to 0.95; and density is set to 1000 kg/m3. Gradient wind velocity (vin), turbulent kinetic energy (kin), and turbulent dissipation rate (ϵin) were calculated using Table 1. In terms of vegetation parameterization, volumetric cooling power was used to study the effect of vegetation on the distribution of thermal environmental temperatures. Therefore, loss of inertia term (Smi), turbulent kinetic energy term (Sk) and turbulent dissipation term (Sε) were calculated using Table 1.
Table 1.
Methods for calculating control equations.
Field measurements: Field measurements were conducted to evaluate the accuracy of the ENVI-met simulations in reproducing the neighborhood thermal environment. Ten monitoring locations were selected within the study area to represent different local morphological and land-cover conditions, including densely built-up areas, concentrated green spaces, open paved areas, and semi-open ventilation corridors. The monitoring locations were distributed across the neighborhood to capture variations in local thermal conditions while avoiding excessive spatial clustering. Their spatial distribution is illustrated in Figure 4, and detailed information on the monitoring locations is provided in Table 2. Field measurements were conducted continuously over a 24-h period on 16 July 2024, covering the diurnal variation in thermal conditions, including the early morning, daytime, evening, and nighttime periods. To characterize the near-surface thermal environment at pedestrian level, measurements were collected at a height of 1.5 m above the ground. Outdoor air temperature and relative humidity were recorded at 10-min intervals using WS1-PRO-C wireless temperature and humidity data loggers. According to the instrument specifications, the measurement accuracies were ±0.2 °C for air temperature and ±2.0% for relative humidity. The instruments enabled automatic data acquisition and wireless data transmission. To ensure comparability between the field observations and numerical simulation results, the measured data were matched with the corresponding ENVI-met outputs in terms of monitoring location, measurement height, and observation time. Specifically, simulated air temperatures were extracted from the computational grid cells corresponding to the geographical coordinates of the 10 monitoring locations at a height of 1.5 m. The field observations were temporally aligned with the hourly ENVI-met simulation outputs. A total of 240 matched site–time observations, comprising 24 hourly observations at each of the 10 monitoring locations, were obtained for subsequent evaluation.
Figure 4.
Spatial distribution of field measurement locations in the study area.
Table 2.
Characteristics and spatial fold assignments of the field monitoring locations.
2.3. Predictive Model
2.3.1. Model Concept
Multiple linear regression (MLR): MLR is a classical statistical forecasting method based on linear mapping relationships. Its core concept is to estimate the target variable by establishing a linear combination relationship among multiple input variables, as shown in Figure 5a. In this study, five static neighborhood morphological indicators (BD, BH, FAR, SVF, and GCR) were used as independent variables, and the simulated air temperature at a specified time step was used as the dependent variable. The regression coefficients were estimated using the least squares method to minimize the sum of squared residuals between the predicted and reference air temperatures. The regression coefficients for each input variable were determined using the least squares method to minimize the sum of squared residuals between the predicted and actual values. The MLR offers advantages such as a simple structure, high computational efficiency, and easily interpretable model parameters, and it can intuitively reflect the direction and relative contributions of various influencing factors to changes in the thermal environment [23]. The model can be written as:
where Y is the dependent variable; Xi are the independent variables; βi are the regression coefficients; β0 is the intercept, and Ɛ is the error term.
Figure 5.
Schematic diagrams of five predictive models. (a) MLR; (b) MLP; (c) CNN; (d) XGBoost; and (e) RF.
Multilayer perceptron (MLP): An MLP is a typical feedforward artificial neural network consisting of an input layer, one or more hidden layers, and an output layer, with information transmitted between adjacent layers via fully connected connections, as shown in Figure 5b. The input layer receives five numerical features describing neighborhood morphological characteristics. The hidden layers progressively map and combine the input features through weights, biases, and nonlinear activation functions, while the output layer produces the estimated air temperature at the specified time step. During model training, predicted values are calculated using forward propagation, and the network parameters are continuously updated based on prediction errors using the backpropagation algorithm, thereby gradually minimizing the loss function [26]. The model can be written as:
where W is the weight matrix, b is the bias vector, and f is the activation function.
Convolutional neural network (CNN): The CNN model was implemented using structured numerical features rather than image data [27]. Each observation was represented by a five-dimensional numerical feature vector containing BD, BH, FAR, SVF, and GCR, with the corresponding air temperature at a specified time step as the prediction target. Unlike conventional CNN applications involving images or spatially structured data, the CNN employed in this study was designed to process numerical morphological feature vectors associated with individual grid cells. Each input sample consisted of five morphological indicators arranged in a predefined order (BD, BH, FAR, SVF, and GCR). The input feature matrix was reshaped into a three-dimensional tensor with dimensions of (N, 5, 1), where N denotes the number of samples, 5 represents the number of morphological indicators, and 1 denotes the number of input channels. One-dimensional convolutional operations were performed along the feature dimension to learn nonlinear combinations of the supplied morphological indicators. It should be noted that adjacency within the input feature vector does not represent geographical proximity or an inherent spatial relationship between morphological indicators. The CNN was included as a comparative deep learning architecture to investigate the potential benefits of convolution-based feature transformation relative to fully connected networks, rather than to explicitly extract geographical spatial features. The model can be expressed as follows:
where ⊗ is a convolutional computation; W is the weight matrix; max ( ) is the maximum function; N represents the number of samples; K denotes the one-dimensional convolutional kernel size, which was set to 3; l denotes the convolutional layer index; C represents the number of feature channels; w and b denote the convolutional weights and biases, respectively; p denotes the padding size; and ReLU represents the rectified linear activation function. The convolutional operations are performed along the ordered morphological feature dimension rather than along geographical spatial coordinates.
Extreme gradient boosting (XGBoost): XGBoost is an ensemble learning algorithm based on gradient-boosted decision trees. Its core idea is to sequentially build multiple decision trees and use subsequent models to continuously fit the residuals that were not explained by the predictions of the previous stage, as shown in Figure 5d. In each training round, the structure of the new tree and the node splitting method are optimized based on the gradient information of the objective function. Finally, the output results from multiple trees are weighted and combined to form the overall prediction result. XGBoost takes both prediction error and model complexity into account in its objective function and uses a regularization term to control the structure of the trees, thereby reducing the risk of overfitting [28]. This model can automatically identify nonlinear relationships and higher-order interactions among input variables, making it suitable for predicting thermal environments influenced by multiple variables, such as neighborhood morphology and meteorological conditions. The proposed XGBoost configuration consisted of 100 boosting trees, a maximum tree depth of 6, a learning rate of 0.3, and full sample and feature sampling. The model can be written as:
where, Yi is the model’s final prediction for sample i; K is the total number of trees; fK is the prediction function of the k tree, belonging to the function space F; fK(Xi) maps sample xi to leaf node q(xi), where the weight of that leaf node is w.
Random forest (RF): RF is a decision-tree-based parallel ensemble learning method, as shown in Figure 5e. RF is an ensemble learning method that can be applied to both classification and regression problems [29]. In this study, RF was employed as a regression model to predict continuous near-surface air temperature. Multiple regression trees were constructed using bootstrap samples of the training data, and the final prediction was obtained by averaging the continuous outputs of the individual trees, as expressed in Equation (8).
where, represents the predicted air temperature corresponding to the input feature x; B indicates the number of decision trees in the random forest; hb(x) represents the temperature prediction given by the b-th regression tree.
2.3.2. Model Implementation and Hyperparameter Settings
To improve the transparency and reproducibility of model development, the architectures and implementation settings of the five prediction models are summarized in Table 3. All models used the same five static neighborhood morphological indicators, namely building density (BD), mean building height (BH), floor area ratio (FAR), sky view factor (SVF), and green coverage ratio (GCR). Separate model instances were trained independently for each simulation time step using the corresponding air temperature field as the prediction target. Therefore, the temporal differences in air temperature were represented through time-specific model parameterization rather than through time-varying input features. Neither time identifiers nor simulation-derived local wind speed and mean radiant temperature were included as predictors. Multiple linear regression (MLR) was implemented as a conventional linear regression model, with regression coefficients estimated using ordinary least squares. The multilayer perceptron (MLP) consisted of two hidden layers, each containing 128 neurons with rectified linear unit (ReLU) activation. The network was trained using the Adam optimizer with a learning rate of 0.001 and a batch size of 2048. The maximum number of training epochs was set to 1000, and early stopping was employed to reduce overfitting. The convolutional neural network (CNN) was implemented using one-dimensional convolutional layers. The input tensor had dimensions of (N, 5, 1), with the five morphological indicators arranged in the order of BD, BH, FAR, SVF, and GCR. The network consisted of four Conv1D layers, each containing 128 filters with a kernel size of 3, a stride of 1, and same padding to preserve the feature dimension. ReLU was employed as the activation function in each convolutional layer. No intermediate pooling operations were applied between the convolutional layers. A global max-pooling layer was subsequently used to aggregate the learned feature representations, followed by a fully connected output layer with one neuron to estimate continuous air temperature. The CNN was trained using the Adam optimizer with a learning rate of 0.001, a batch size of 2048, and a maximum of 1000 epochs, with early stopping enabled. Each sample contained five morphological indicators rather than a two-dimensional spatial image or a tensor representing neighboring geographic grid cells. The XGBoost model was implemented using gradient-boosted regression trees. The configuration included 100 boosting trees, a maximum tree depth of 6, a learning rate of 0.3, and a subsampling ratio of 1. The random forest (RF) model was implemented as an ensemble of 100 regression trees. The maximum tree depth was unrestricted, with a minimum of two samples required to split an internal node and at least one sample required at each leaf. To support reproducibility, the random seed was set to 42 for the stochastic components of model development where applicable.
Table 3.
Specifications for different prediction models.
2.4. Model Development and Evaluation Framework
The model development and evaluation framework is illustrated in Figure 6. The objective of this study was to estimate the spatial distribution of neighborhood-scale air temperature at specified simulation time steps rather than to forecast future temperature variations. The framework consisted of five main stages: dataset construction, spatial data partitioning, data preprocessing, time-specific model development, and predictive performance evaluation. First, five static morphological indicators were calculated for each spatial grid cell and matched with the corresponding ENVI-met-simulated air temperature at each time step. Second, the study area was divided into spatial blocks, and five-fold spatially blocked cross-validation with buffer zones was implemented to separate the development and test datasets. Third, data-dependent preprocessing was conducted exclusively using the corresponding training data to minimize potential information leakage. Fourth, the five prediction algorithms were independently trained for each time step to establish the relationship between neighborhood morphological characteristics and the corresponding spatial air temperature field. The validation data were used for hyperparameter selection and model optimization. Finally, predictive performance was evaluated using the held-out spatial test data, and the results were summarized using MRE, MAE, RMSE, and R2.
Figure 6.
Framework for time-specific neighborhood air temperature estimation and spatially blocked model evaluation.
Dataset construction: In order to construct a reliable dataset for predicting temperatures at the block scale, a clear distinction was made between the input features and the prediction target based on their physical meanings, data sources, and availability during the prediction process. In this study, the near-surface air temperature was defined as the sole prediction target, while the explanatory variables were limited to the block morphology characteristics. Five neighborhood morphological indicators were used to characterize the built environment: building density (BD), mean building height (BH), floor area ratio (FAR), sky view factor (SVF), and green coverage ratio (GCR). BD represents the proportion of land area occupied by building footprints, whereas FAR describes the ratio of total building floor area to the corresponding land area. BH characterizes the mean height of buildings within the specified spatial unit. SVF is a dimensionless geometric indicator describing the proportion of the sky hemisphere visible from a given location. GCR represents the proportion of land area covered by vegetation. The calculation procedures, spatial reference units, and corresponding equations for these indicators are provided in Equations (9)–(13). ENVI-met was used to define a circular neighborhood with a radius of 50 m around each spatial grid cell, and the corresponding morphological indicators were calculated using Equations (9)–(13). This approach enabled the quantitative characterization of the local built environment surrounding each prediction location. To characterize the meteorological conditions within the study area, additional environmental parameters, including air temperature, wind speed, and mean radiant temperature, were extracted from the ENVI-met simulations. It should be emphasized that the ENVI-met-simulated air temperature was used exclusively as the dependent variable and was not included among the model input features. This restriction was introduced to prevent potential target leakage and ensure that the models learned relationships between independently available environmental features and air temperature. The complete ENVI-met computational domain comprised 63,800 horizontal grid cells (290 × 220) at each time step. For machine learning model development and spatial evaluation, a 600 m × 500 m subdomain was selected, comprising 12,000 horizontal grid cells before data quality screening. Based on 24 hourly simulation outputs, this subdomain contained a maximum of 288,000 grid cell–time step observations. For each observation, the target air temperature was matched with the corresponding five neighborhood morphological indicators. Wind speed and mean radiant temperature were retained exclusively for exploratory correlation analysis and were not included as model predictors.
where, n is the number of buildings; Sf is the base area of a building (m2); Ss is the total area of the entire site (m2); H is the height of buildings in the study area (m); is the building floor area in the study area (m2); Asky is the area of the visible sky at the observation point (m2); Sr is the area of green space (m2).
The observation unit in this study was a spatial grid cell at a specified simulation time step. The five morphological indicators associated with each grid cell remained constant throughout the simulation period, whereas the corresponding air temperature varied with time. To account for this difference without introducing time-varying meteorological predictors, independent models were developed for individual simulation time steps. Thus, the prediction task was defined as time-specific spatial mapping of neighborhood air temperature rather than temporal forecasting, as shown in Equations (14) and (15).
where xi denotes the static morphological feature vector of grid cell i; t denotes the simulation time step; represents the estimated air temperature at grid cell i and time step t; and θt denotes the model parameters independently estimated for time step t.
Input parameter validation: To examine the statistical associations among neighborhood morphological characteristics, environmental conditions, and air temperature, Pearson correlation analysis was conducted using the ENVI-met simulation dataset. The analysis included five morphological indicators—building density (BD), building height (BH), floor area ratio (FAR), sky view factor (SVF), and green coverage ratio (GCR)—together with wind speed (WS), mean radiant temperature (MRT), and air temperature (T). The resulting correlation matrix is presented in Table 4. It is important to distinguish the purpose of this correlation analysis from the selection of model input features. The correlation analysis was intended to characterize the statistical associations among the variables under the investigated simulation conditions, rather than to determine predictor suitability solely on the basis of correlation magnitude. There are significant differences between the various variables and air temperature. In particular, GCR showed a strong negative correlation with air temperature (r = −0.634), indicating that green coverage can reduce local heat loads through shading and transpiration. There is a strong positive correlation between MRT and air temperature (r = 0.892), indicating that radiative heat exchange is a significant factor influencing near-surface temperatures in urban neighborhoods. At the same time, urban form parameters such as SVF, BD, FAR, and BH also show varying degrees of correlation with air temperature, indicating that the spatial structure of buildings can influence the thermal environment of a block by altering solar radiation gain, heat storage, and airflow processes. WS and MRT are only used for exploratory correlation analysis and are not regarded as input parameters for the five prediction models. Air temperature is clearly defined as the sole prediction target and is not included in the input parameters.
Table 4.
Pearson correlation matrix of neighborhood morphological variables, environmental variables, and air temperature.
Model evaluation methods: Given the strong spatial autocorrelation among neighboring computational grid cells, conventional random sample partitioning may place spatially adjacent observations in both the training and test datasets, potentially resulting in overly optimistic estimates of predictive performance. To reduce this risk, the present study employed five-fold spatially blocked cross-validation with buffer zones as the sole evaluation framework for all five prediction models. As illustrated in Figure 7, the 600 m × 500 m model evaluation domain, which constituted a subdomain of the complete ENVI-met computational domain, was partitioned into 30 non-overlapping spatial blocks measuring 100 m × 100 m and arranged in a 6 × 5 grid. Given the horizontal grid resolution of 5 m, each spatial block contained a maximum of 400 grid cells before data quality screening. The 30 spatial blocks were assigned to five mutually exclusive spatial folds using a fixed random seed, with six blocks allocated to each fold. During each cross-validation iteration, fold comprising six complete spatial blocks was held out as the test set, while the remaining 24 blocks constituted the candidate model development region before buffer exclusion. Identical spatial block assignments were maintained for all five prediction algorithms and all investigated time steps. All temporal observations associated with a given spatial grid cell were assigned to the same spatial fold. Consequently, observations from the same geographic location could not appear simultaneously in the training and test datasets at different time steps. Because the neighborhood morphological indicators (BD, BH, FAR, SVF, and GCR) were calculated within a 50 m radius of each grid cell, an additional 50 m buffer zone was established around each held-out test block to reduce potential information leakage arising from overlapping morphological features. Grid cells located within the buffer zones but outside the test blocks were excluded from the corresponding training and validation datasets. However, because two circular morphological calculation windows with a radius of 50 m may overlap when the distance between their centers is less than 100 m, the 50 m buffer reduces but does not completely eliminate potential overlap between the morphological neighborhoods of development and test samples. Therefore, the RF model was selected as a representative model to conduct a sensitivity analysis using a more conservative buffer distance of 100 m. The results showed only minor changes in the predictive performance of the RF model across the two buffer settings (Table 5), indicating that its predictive performance was relatively insensitive to the investigated buffer distances. The remaining non-buffered development data were subsequently divided into training and validation subsets. Model fitting, preprocessing parameter estimation, and hyperparameter selection were performed exclusively using the development data associated with each outer fold. To improve the reproducibility of the spatial cross-validation procedure, the numbers of unique spatial grid cells and corresponding grid cell–time step observations were recorded for each outer fold before and after buffer exclusion. The numbers of retained test samples, candidate development samples, buffer-excluded samples, and remaining development samples were separately documented for both the 50 m and 100 m buffer settings. The held-out test set was not used for model selection or preprocessing parameter estimation. For each fold, the MLR, MLP, CNN, XGBoost, and RF models were independently trained and evaluated using identical spatial test partitions. This procedure was repeated five times so that each spatial block served as part of the test set once. The predictive performance of each model was assessed using mean relative error (MRE), mean absolute error (MAE), root mean square error (RMSE), and the coefficient of determination (R2). The same spatial fold assignments were maintained across all simulation time steps. Within each outer spatial fold, the five prediction algorithms were independently trained for each time step using the corresponding temperature observations from the non-buffered development regions. The trained models were subsequently evaluated using the air temperature observations at the same time step in the held-out spatial test blocks. Consequently, model evaluation assessed spatial predictive performance at specified time steps rather than generalization to unseen time steps or future meteorological conditions. Within each spatial test fold, MRE, MAE, RMSE, and R2 were first calculated separately for each simulation time step. The time-specific metric values were then averaged to obtain the overall performance metrics for that spatial fold. Finally, predictive performance was reported as the mean and standard deviation across the five spatial test folds.
Figure 7.
The block cross-validation method based on spatial buffer zones.
Table 5.
Sensitivity of RF prediction performance to spatial buffer distance.
Data processing: To prevent potential information leakage during data preprocessing, all data-dependent transformations were performed within the spatial cross-validation framework.The Local Outlier Factor (LOF) algorithm was employed to detect outliers in the dataset. LOF is an anomaly detection method particularly suitable for datasets exhibiting strong clustering characteristics. Unlike conventional distance-based methods, LOF incorporates the concept of local density, enabling more effective identification of anomalous observations in regions with varying data densities [30]. Figure 8 illustrates an example of outlier detection in air temperature data using the LOF method. The neighborhood morphological indicators exhibited different numerical ranges. Due to differences in their measurement units, features with larger numerical scales could disproportionately influence model training, potentially affecting model stability and predictive accuracy. To address this issue, min–max normalization was applied to transform all variables into the range [0, 1], as expressed in Equation (16). The normalization results are presented in Figure 9. The normalization parameters were estimated exclusively from the corresponding training data and subsequently applied to the validation and test sets. Therefore, no statistical information from the held-out spatial test regions was used to determine the scaling parameters.
where, Xi is the i-th value in the data set sorted in ascending order; Xmax is the maximum value in the set of variables; Xmin is the minimum value in the set of variables; and Xscake is the normalized value.
Figure 8.
Outlier detection methods for LOF.
Figure 9.
Comparison of air temperature data before and after normalization.
Model training: To ensure a consistent model comparison, all five prediction algorithms used identical morphological predictors, time-specific target variables, and spatial data partitions. Within each spatial cross-validation fold, separate model instances were developed for individual simulation time steps. Each model was trained to establish a mapping between the static morphological characteristics of grid cells and their corresponding air temperatures at the specified time step. Model fitting, data preprocessing, and hyperparameter selection were conducted exclusively using the corresponding development data. The resulting time-specific models were evaluated using spatially held-out samples associated with the same time step. No temporal extrapolation or forecasting of future air temperature was performed. Simulated air temperature was used exclusively as the prediction target. Neither local wind speed nor mean radiant temperature was included among the model input features. During the training phase, each model identifies the underlying mapping relationship between input parameters and air temperature from the training samples based on its own learning mechanism. MLR performs model fitting by estimating regression coefficients. MLP and CNN use forward propagation to obtain predictions and continuously update the network weights through backpropagation based on the loss function. XGBoost achieves iterative optimization by adding decision trees round by round and fitting the prediction residuals from the previous stage. RF builds multiple independent regression trees using Bootstrap sampling and obtains the final result by combining their outputs. For each outer spatial fold and buffer setting, model fitting and hyperparameter optimization were conducted exclusively within the corresponding non-buffered development dataset. The training subset was used for model parameter estimation, while the spatially separated validation subset was used for hyperparameter selection and model optimization. All temporal observations associated with the same grid cell were retained within the same subset. After model configuration selection, the corresponding held-out spatial test dataset was used exclusively for final performance evaluation using the metrics defined in Equations (17)–(20). Identical spatial test partitions were maintained across the five prediction algorithms and the two buffer settings.
Evaluation criteria: This study evaluates the accuracy of the prediction results using four metrics: mean relative error (MRE), mean absolute error (MAE), root mean square error (RMSE), and coefficient of determination (R2) [31]. MRE is a percentage-based evaluation metric that quantifies the degree of deviation between simulated and actual values at each point; its calculation formula is shown in Equation (17). MAE indicates the magnitude of the deviation between the predicted and actual values; its calculation formula is shown in Equation (18). RMSE is used to measure the degree of error between predicted values and actual values; the smaller the RMSE, the better the model’s predictive performance. The formula for calculating RMSE is shown in Equation (19). In the process of building geometric models, accurately evaluating model performance is a critical step in verifying their generalization ability and application potential. The coefficient of determination (R2) is used to measure a regression model’s ability to explain the observed data; it is calculated as shown in Equation (20).
where, ytrue,i is the ith true value in the dataset, ypre,i is the ith predicted value in the dataset, n is the number of predicted data points, and is the average of the true value in the dataset.
3. Results
3.1. Validation of Simulation Results
To evaluate the ability of ENVI-met to reproduce the observed neighborhood thermal environment, the simulated air temperatures were compared with field measurements collected at 10 monitoring locations over a continuous 24-h period. Figure 10a presents the comparison between the simulated and measured air temperatures throughout the monitoring period. Overall, the simulated temperatures followed the observed diurnal variation, reproducing the general pattern of daytime warming and nighttime cooling. The relative errors remained below 5% throughout the monitoring period. Relatively larger discrepancies were observed during the early morning hours, whereas smaller differences generally occurred during most daytime periods. These results indicate that the ENVI-met simulation was able to reproduce the main temporal characteristics of near-surface air temperature during the investigated day, although the magnitude of the discrepancies varied across the monitoring period. Figure 10b compares the simulated and measured air temperatures at the 10 monitoring locations. Overall, the simulation results showed relatively small differences from the field observations across the selected locations, indicating that ENVI-met captured the general spatial variation in air temperature within the monitored neighborhood. Among the monitoring locations, L10, L8, L7, and L5 exhibited the smallest discrepancies between simulated and measured temperatures, whereas relatively larger differences were observed at L6 and L1. These spatial variations in simulation error may be associated with differences in local surface characteristics, surrounding building configurations, or shading conditions, although further analysis would be required to identify their specific contributions. Taken together, the 24-h temporal comparison, the spatial assessment across 10 monitoring locations, and the quantitative error metrics provide complementary evidence regarding the agreement between the simulated and observed near-surface air temperatures under the investigated conditions.
Figure 10.
Field-based validation of ENVI-met-simulated air temperatures: (a) temporal comparison over the 24-h monitoring period; (b) spatial comparison across the 10 monitoring locations.
3.2. Comparative Analysis of Error Results from Different Predictive Models
The predictive performance of the five algorithms in estimating neighborhood-scale air temperature distributions at specified simulation time steps was evaluated using five-fold spatially blocked cross-validation. Within each spatial fold, time-specific models were trained and tested using the corresponding air temperature observations. Table 6 summarizes the aggregated predictive performance across the investigated time steps and spatial test folds. These results characterize spatial mapping accuracy under the investigated simulation conditions rather than temporal forecasting accuracy. All evaluation metrics are reported as the mean ± standard deviation across the five spatial test folds. No conventional random sample splitting was used to generate the performance results reported in this section. The MLR model exhibited the highest prediction errors, with mean MRE, MAE, and RMSE values of 4.318%, 1.726 °C, and 2.215 °C, respectively. Its RMSE was approximately 1.67, 2.40, 2.71, and 3.06 times those of the MLP, CNN, XGBoost, and RF models, respectively. The MLP model achieved lower prediction errors, with mean MRE, MAE, and RMSE values of 2.145%, 1.052 °C, and 1.324 °C, respectively, corresponding to reductions of 50.32%, 39.05%, and 40.23% compared with MLR. The CNN model further reduced the mean MRE, MAE, and RMSE to 1.489%, 0.841 °C, and 0.923 °C, respectively. Compared with MLP, these metrics decreased by 30.58%, 20.06%, and 30.29%, respectively. The tree-based ensemble models, XGBoost and RF, demonstrated lower prediction errors than the other models. Specifically, XGBoost achieved mean MRE, MAE, and RMSE values of 1.032%, 0.787 °C, and 0.816 °C, respectively, representing reductions of 30.69%, 6.42%, and 11.59% compared with CNN. Among the five models, RF exhibited the lowest mean prediction errors, with MRE, MAE, and RMSE values of 0.955 ± 0.156%, 0.698 ± 0.024 °C, and 0.725 ± 0.029 °C, respectively. Compared with MLR, RF reduced the mean MRE, MAE, and RMSE by 77.88%, 59.56%, and 67.27%, respectively. Regarding goodness of fit, the MLR model exhibited the lowest mean R2 of 0.492 ± 0.092, followed by MLP (0.789 ± 0.077), CNN (0.823 ± 0.062), XGBoost (0.886 ± 0.058), and RF (0.912 ± 0.039). Compared with MLR, the mean R2 of MLP increased by 60.37%. The mean R2 of CNN was 4.31% higher than that of MLP, while XGBoost achieved a further increase of 7.65% relative to CNN. RF achieved the highest mean R2, representing relative increases of 85.37%, 15.59%, 10.81%, and 2.93% compared with MLR, MLP, CNN, and XGBoost, respectively. Overall, RF achieved the most favorable mean predictive performance across all four evaluation metrics. It also exhibited the lowest standard deviations for MRE, MAE, RMSE, and R2 among the five models, indicating comparatively lower variability across the evaluated spatial folds.
Table 6.
Predictive performance of five predictive models.
3.3. Field-Based Assessment of Machine Learning Predictions
Although the five machine learning models were developed using ENVI-met-generated air temperature data as prediction targets, their agreement with numerical simulation outputs does not necessarily imply comparable accuracy against actual field observations. Therefore, an additional field-based validation was conducted to assess the agreement between machine learning predictions and independently measured air temperatures. In this analysis, each monitoring location was first mapped to its corresponding computational grid cell and spatial cross-validation block according to its geographical coordinates. All temporal observations associated with the same monitoring location were evaluated using the corresponding held-out spatial fold, ensuring that the grid cell was not included in the model development dataset used to generate its predictions. The out-of-fold predictions generated by the five machine learning models were subsequently matched with the corresponding field observations in terms of location and observation time. Therefore, an additional field-based validation was conducted to assess the agreement between machine learning predictions and independently measured air temperatures. The results are summarized in Table 7. Against the field observations, RF achieved the lowest prediction errors and the highest R2 among the five machine learning models, with MRE, MAE, RMSE, and R2 values of 0.969%, 0.706 °C, 0.811 °C, and 0.895, respectively. Compared with the corresponding mean metrics obtained through simulation-referenced spatial cross-validation, RF exhibited slightly higher prediction errors and a lower R2 when evaluated against field observations. Although the prediction errors evaluated against field observations were higher than those obtained using ENVI-met simulation outputs as the reference, this discrepancy may be partly attributable to the influence of local shading, transient wind conditions, anthropogenic heat emissions, and other factors not fully represented in the models. These findings distinguish the ability of the machine learning models to reproduce ENVI-met-generated temperature fields from their agreement with independently observed neighborhood air temperatures.
Table 7.
Field-based evaluation of ENVI-met and five machine learning models against observed air temperature.
4. Discussion
4.1. The Causes of the Deterioration of the Thermal Environment
In recent years, global average temperatures have continued to rise, and extreme heat events have shown a trend toward increasing frequency, longer duration, and greater intensity, further amplifying the urban heat island effect. As shown in Figure 11, this study analyzes the causes of the ongoing deterioration of the thermal environment in urban blocks from the following three perspectives. First, higher atmospheric temperatures reduce the city’s ability to release heat into the surrounding environment, making it difficult for the sensible heat accumulated within neighborhoods to dissipate, thereby leading to a significant buildup of heat. Climate change has, first and foremost, altered the energy balance in cities. As atmospheric temperatures rise, long-wave radiation exchange processes change, and the temperature difference between the urban surface and the atmosphere decreases, limiting the surface’s ability to dissipate heat through long-wave radiation [31]. In addition, climate change may also affect the thermal environment at the neighborhood scale by altering regional wind patterns, humidity conditions, and precipitation patterns [32]. Conditions of high temperatures and low rainfall reduce vegetation transpiration efficiency and decrease the proportion of latent heat flux, causing more solar energy to be converted into sensible heat and thereby weakening the natural cooling capacity. Second, existing research has shown that changes in the urban thermal environment are not caused by a single factor, but rather result from the combined effects of multiple factors, including changes in land cover, urban spatial patterns, the thermal properties of materials, and anthropogenic heat emissions [33]. Rapid urbanization has led to the replacement of large areas of natural vegetation and exposed soil with buildings, roads, and hard surfaces, transforming the urban surface from a natural system with strong regulatory capabilities into an artificial system with high thermal capacity and high heat storage capacity. Impermeable materials typically have low albedo and high heat storage capacity [34]; they can absorb large amounts of short-wave solar radiation and continue to release stored heat at night, thereby delaying the urban cooling process and creating a noticeable heat retention effect. Finally, high-density urban development has altered the radiative exchange and aerodynamic processes at the neighborhood scale. Previous studies have shown that the geometric configuration of buildings significantly affects wind field distribution and heat dissipation efficiency; the “urban canyon effect”—created by the combination of narrow streets and tall buildings—is one of the key factors contributing to persistent localized heat [6].
Figure 11.
Flowchart showing the causes of the ongoing deterioration of the thermal environment.
4.2. Analysis of the Predictive Accuracy of Different Predictive Models
The present study compared five established prediction models for approximating neighborhood-scale air temperature fields generated by ENVI-met simulations. Under the unified five-fold spatially blocked cross-validation framework, the five models exhibited different levels of predictive performance. RF and XGBoost achieved the lowest mean prediction errors and the highest mean R2 values, followed by CNN, MLP, and MLR. These observed differences may be associated with the structural characteristics of the models and their respective abilities to represent nonlinear relationships among morphological predictors. The relatively limited predictive performance of MLR may be attributed to its assumption of a linear relationship between the input variables and air temperature. In contrast, MLP can represent nonlinear relationships through multiple hidden layers and nonlinear activation functions, which may partly explain its higher predictive accuracy. CNN further improved predictive performance, achieving a mean R2 of 0.823, compared with 0.789 for MLP. Its convolutional operations allow local combinations of the ordered numerical input features to be learned. However, because the CNN in this study was constructed using morphological feature vectors rather than explicit geographic grids, its improved performance should not be interpreted as direct evidence of spatial feature extraction [35,36]. The tree-based ensemble models exhibited comparatively favorable predictive performance. XGBoost sequentially optimizes regression trees by fitting prediction residuals, whereas RF combines the outputs of multiple regression trees constructed using bootstrap sampling. These characteristics may facilitate the representation of nonlinear relationships and interactions among morphological predictors [37]. Compared with XGBoost, RF reduced the mean MRE, MAE, and RMSE by 7.46%, 11.31%, and 11.15%, respectively. RF also achieved a higher mean R2 of 0.912 ± 0.039 and exhibited lower variability across the five spatial test folds. Nevertheless, these results represent descriptive comparisons under the investigated spatial and meteorological conditions. Without formal statistical testing, systematic feature attribution, or controlled model ablation experiments, the observed differences cannot be interpreted as statistically significant improvements or direct evidence that particular models capture specific urban thermal mechanisms. Overall, the results suggest that tree-based ensemble models may be suitable for approximating simulation-derived neighborhood air temperature fields using the selected morphological indicators.
From a practical perspective, the relatively high predictive accuracy of RF under the investigated conditions suggests its potential value as a supplementary tool for preliminary neighborhood-scale thermal assessment. Because the model uses morphological indicators related to building configuration and vegetation coverage, it could assist urban planners in comparing the estimated thermal implications of alternative neighborhood design scenarios with different building densities, building heights, floor area ratios, sky view factors, and green coverage ratios. For example, RF-based temperature estimates could provide an initial reference for screening candidate building configurations or vegetation coverage arrangements and identifying areas that may warrant more detailed thermal evaluation. Such applications may help inform preliminary discussions on urban design, green space planning, and local heat mitigation strategies. However, these potential uses should be interpreted cautiously. The RF model was trained to approximate ENVI-met-generated air temperature fields under specific simulation conditions, and its predictions do not establish causal cooling effects associated with individual design interventions. Moreover, the present study did not directly evaluate alternative planning scenarios or demonstrate improvements in urban thermal conditions resulting from RF-guided decisions. Therefore, RF should be regarded as a complementary screening and assessment approach rather than a substitute for detailed numerical simulations, field measurements, or comprehensive planning evaluations.
Although machine learning has been increasingly applied to urban thermal environment prediction, several practical considerations remain important when developing simulation-based prediction models at the neighborhood scale. First, the spatial distribution of air temperature is jointly influenced by urban morphology and environmental conditions, and different modeling approaches may vary in their ability to capture these relationships. Second, strong spatial and temporal dependencies among adjacent computational grid cells may lead to overly optimistic performance estimates when conventional random data partitioning methods are employed. Third, the practical utility of predictive models for urban thermal assessment depends not only on their predictive accuracy but also on the availability of the required input variables and the specific conditions under which model performance is evaluated. Therefore, future research should establish a unified evaluation framework for comparing different prediction approaches while clearly distinguishing their ability to reproduce numerical simulation outputs from their predictive accuracy against independent field observations. Such an evaluation would provide a more transparent basis for selecting data-driven models for simulation-assisted neighborhood-scale thermal assessment.
4.3. Implications for Neighborhood Thermal Assessment and Urban Planning
Neighborhood-scale thermal assessment is relevant to urban planning because local air temperature distributions are influenced by spatial configurations that may be modified during the planning and design process. Building density, building height, vegetation coverage, and related morphological characteristics are important considerations when evaluating neighborhood thermal environments. Detailed numerical simulations can provide spatially resolved thermal information, but repeated simulations may be computationally demanding when numerous alternative configurations need to be examined. Within this context, simulation-trained prediction models may offer a complementary approach for approximating temperature fields under specified input conditions. Their potential application lies in preliminary screening rather than replacing detailed numerical simulations. For example, a data-driven prediction model could potentially be incorporated into a planning workflow to provide an initial estimate of neighborhood thermal conditions, allowing a smaller number of candidate designs to be selected for subsequent high-fidelity evaluation. The comparison conducted in this study provides an initial reference for selecting among different modeling approaches for such simulation-assisted assessments. The relative performance of the evaluated models may inform the choice of prediction algorithms when the input variables, urban morphology, and meteorological conditions are comparable to those represented in the training dataset.
The practical applicability of the models benefits from the availability of the five morphological predictors, which can be calculated from independently obtainable urban geometric and land-cover information. However, because the present models were developed separately for individual simulation time steps, their applicability remains conditional on the temporal and meteorological scenarios represented during training. The models should therefore be regarded as supplementary tools for estimating spatial temperature distributions under specified conditions rather than independent tools for forecasting future thermal environments.
4.4. Limitations and Future Research
Several limitations should be acknowledged. First, the models were trained using ENVI-met-generated air temperature data under specific meteorological conditions. Although an additional field-based assessment was conducted using 24-h measurements at 10 monitoring locations, the observational evidence was restricted to a single neighborhood and a single day. Therefore, the field-based evaluation provides complementary evidence regarding the agreement between predicted and observed air temperatures under the investigated conditions, rather than comprehensive validation across different seasons, meteorological conditions, or urban environments. Future research should incorporate long-term field measurements across multiple neighborhoods and diverse climatic conditions to further evaluate the predictive accuracy and generalizability of the models. Second, the comparison included five established models but excluded persistence, spatial interpolation, and climatological benchmarks. Although MLR provided a linear reference, the results do not establish superiority over alternative temperature estimation approaches. Future studies should incorporate additional physically motivated benchmarks. Third, although selected input variables were examined through sensitivity analysis, systematic feature ablation, comprehensive feature attribution, and spatial–temporal error decomposition were not performed. Thus, differences in predictive accuracy cannot demonstrate that particular models captured specific urban thermal mechanisms. Further analyses should examine feature contributions, spatial error patterns, and diurnal performance. Fourth, the present models used only static neighborhood morphological indicators, and temporal variations in air temperature were represented through independently trained time-specific models. Although this approach enables the estimation of spatial temperature distributions at specified time steps, it does not explicitly characterize the temporal evolution of the neighborhood thermal environment. Consequently, the models cannot directly forecast air temperature at unseen time steps or under changing meteorological conditions. Future research should incorporate temporal descriptors and independently available meteorological variables to develop more generalizable spatiotemporal prediction frameworks. Finally, the study focused on a single neighborhood in Guangzhou, whose morphological characteristics reflect specific building configurations and vegetation patterns. Although spatially blocked cross-validation with 50 m and 100 m buffer zones was employed to reduce potential information leakage arising from spatial dependence and overlapping morphological calculation windows, residual spatial autocorrelation beyond these separation distances cannot be entirely excluded. Furthermore, the spatial cross-validation and buffer sensitivity analysis primarily assessed predictive performance within the selected neighborhood and do not establish model transferability across independent neighborhoods, cities, seasons, or meteorological conditions. Future research should evaluate independent neighborhoods with diverse morphologies and use simulation and field measurements covering different seasons, weather scenarios, and extreme heat conditions to assess spatial and climatic generalizability. Despite these limitations, this study provides an application-oriented comparison of five established models for approximating simulation-derived neighborhood air temperature fields. The findings offer preliminary guidance for model selection and highlight priorities for developing more generalizable simulation-assisted urban thermal assessment tools.
5. Conclusions
This study evaluated five established prediction algorithms—MLR, MLP, CNN, XGBoost, and RF—for time-specific spatial mapping of neighborhood-scale air temperature using ENVI-met-generated data from an urban neighborhood in Guangzhou, China. Five static neighborhood morphological indicators were used as predictors, and independent models were developed for individual simulation time steps. All models were evaluated under a unified five-fold spatially blocked cross-validation framework with buffer zones. The main conclusions are as follows:
(1) The five models exhibited different levels of predictive performance in approximating simulation-derived neighborhood air temperature fields. The mean R2 values of MLR, MLP, CNN, XGBoost, and RF were 0.492, 0.789, 0.823, 0.886, and 0.912, respectively. The tree-based ensemble models achieved comparatively lower prediction errors and higher R2 values.
(2) Among the five models, RF achieved the best overall mean predictive performance, with MRE, MAE, RMSE, and R2 values of 0.955 ± 0.156%, 0.698 ± 0.024 °C, 0.725 ± 0.029 °C, and 0.912 ± 0.039, respectively. Compared with the other four models, RF reduced the mean MRE, MAE, and RMSE by 7.46–77.88%, 11.31–59.56%, and 11.15–67.27%, respectively, while its mean R2 was relatively higher by 2.93–85.37%.
(3) Additional field-based assessment showed that RF achieved an MRE of 0.969%, an MAE of 0.706 °C, an RMSE of 0.811 °C, and an R2 of 0.895 against observed air temperatures. These results provide complementary evidence of its predictive performance under the investigated monitoring conditions.
(4) The observed differences in model performance may be associated with differences in their abilities to represent nonlinear relationships and interactions among neighborhood morphological predictors. However, these comparisons are descriptive and do not establish statistically significant differences or demonstrate the representation of specific urban thermal mechanisms.
This study provides an application-oriented comparison of five established machine learning algorithms and offers preliminary guidance for selecting models for time-specific neighborhood thermal assessment. The results demonstrate the potential of morphology-based models to approximate simulation-derived spatial air temperature distributions under specified conditions. However, because the models were developed for individual simulation time steps using static morphological indicators, the findings should not be interpreted as evidence of temporal forecasting capability.
Author Contributions
Y.C.: overall study planning, literature review, original data preparation, investigation, and writing—original draft preparation; S.C.: project administration, and writing—review and editing; X.B.: investigation and field survey; Z.Q.: data optimization, and manuscript quality assurance; H.H.: supervision and resource provision. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by the Guangdong Basic and Applied Basic Research Foundation (No. 2025A1515010575) and the Science and Research Key Program of the Education Department of Jilin Province (No. JJKH20261201KJ) and a program for scientific research start-up funds of Guangdong Ocean University (No. 060302072307) and the Zhanjiang Science and Technology Program (No. 2024B01061) and Jilin Province Foreign Experts Project (No. L202633).
Data Availability Statement
The datasets generated and analyzed during the current study are available from the corresponding author on reasonable request.
Conflicts of Interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
References
- Wu, W.; Yang, X.; Li, M.; Cao, J.; Zhou, J.; Peng, W. Extreme heatwaves exacerbate canopy urban heat islands: Multi-city observational evidence from eastern China. Urban Clim. 2025, 62, 102548. [Google Scholar] [CrossRef] [Scilit]
- Yang, X.; Xu, X.; Wang, Y.; Yang, J.; Wu, X. Heat exposure impacts on urban health: A meta-analysis. Sci. Total Environ. 2024, 947, 174650. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Xi, C.; Han, L.; Wang, J.; Feng, Z.; Kumar, P.; Cao, S.-J. How can greenery space mitigate urban heat island? An analysis of cooling effect, carbon sequestration, and nurturing cost at the street scale. J. Clean. Prod. 2023, 419, 138230. [Google Scholar] [CrossRef] [Scilit]
- Cui, Y.; Zhou, X.; He, H.; Fan, C.; Ye, L. Assessing the coupled exposure risks of heatwaves and particulate matter: Based on the empirical analysis of 347 cities in China. J. Clean. Prod. 2026, 541, 147575. [Google Scholar] [CrossRef] [Scilit]
- Gupta, A.; De, B.; Das, S.; Mukherjee, M. Thermal hazards in urban spaces: A review of climate-resilient planning and design to reduce the heat stress. Urban Clim. 2025, 59, 102296. [Google Scholar] [CrossRef] [Scilit]
- Zhou, X.; Cui, Y.; Fan, C.; Liao, Y.; Zhu, X. How does anthropogenic heat emissions from buildings affect urban heat island intensity? Based on neighborhood scale and urban scale analysis. Urban Clim. 2025, 62, 102525. [Google Scholar] [CrossRef] [Scilit]
- Wang, C.; Li, Z.; Su, Y.; Zhao, Q.; He, X.; Wu, Z.; Gao, W.; Wu, Z. Impact of block mor-phology on urban thermal environment with the consideration of spatial heterogeneity. Sustain. Cities Soc. 2024, 113, 105622. [Google Scholar] [CrossRef] [Scilit]
- Yu, B.; Pan, J. How do 2D and 3D urban morphology impact spatial patterns of thermal environment? A nested multi-scale local climate zone perspective. Build. Environ. 2026, 288, 114014. [Google Scholar] [CrossRef] [Scilit]
- Banerjee, S.; Pek, R.X.Y.; Yik, S.K.; Ching, G.N.; Ho, X.T.; Dzyuban, Y.; Crank, P.J.; Ac-ero, J.A.; Chow, W.T.L. Assessing impact of urban densification on outdoor microclimate and thermal comfort using ENVI-met simulations for Combined Spatial-Climatic De-sign (CSCD) approach. Sustain. Cities Soc. 2024, 105, 105302. [Google Scholar] [CrossRef] [Scilit]
- Tabatabai, G.; Tahsildoost, M.; Ardekani, A.; Zomorodian, Z. Optimizing urban block layouts and density distribution: A generative design framework for neighborhood performance. Smart Sustain. Built Environ. 2026, 15, 1722–1750. [Google Scholar] [CrossRef] [Scilit]
- Lee, J.; Kim, S. Modeling Urban Temperature Using Measurements from Mobile and Stationary Monitoring Stations. Sustainability 2024, 16, 8897. [Google Scholar] [CrossRef] [Scilit]
- Lefevre, A.; Malet-Damour, B.; Boyer, H.; Rivière, G. Advancing Urban Microclimate Monitoring: The Development of an Environmental Data Measurement Station Using a Low-Tech Approach. Sustainability 2024, 16, 3093. [Google Scholar] [CrossRef] [Scilit]
- Ortenzio, F.; Ruddick, K.G.; Vanhellemont, Q. Fouling of outdoor optical sensors—The fore-optics contamination experiment. J. Opt. 2025, 27, 125404. [Google Scholar] [CrossRef] [Scilit]
- De Lieto Vollaro, A.; De Simone, G.; Romagnoli, R.; Vallati, A.; Botillo, S. Numerical Study of Urban Canyon Microclimate Related to Geometrical Parameters. Sustainability 2014, 6, 7894–7905. [Google Scholar] [CrossRef] [Scilit]
- Brozovsky, J.; Simonsen, A.; Gaitani, N. Validation of a CFD model for the evaluation of urban microclimate at high latitudes: A case study in Trondheim, Norway. Build. Environ. 2021, 205, 108175. [Google Scholar] [CrossRef] [Scilit]
- Toparlar, Y.; Blocken, B.; Maiheu, B.; Van Heijst, G.J.F. A review on the CFD analysis of urban microclimate. Renew. Sustain. Energy Rev. 2017, 80, 1613–1640. [Google Scholar] [CrossRef] [Scilit]
- Tominaga, Y.; Wang, L.L.; Zhai, Z.J.; Stathopoulos, T. Accuracy of CFD simu-lations in urban aerodynamics and microclimate: Progress and challenges. Build. Environ. 2023, 243, 110723. [Google Scholar] [CrossRef] [Scilit]
- Han, W. Analyzing the scale dependent effect of urban building morphology on land surface temperature using random forest algorithm. Sci. Rep. 2023, 13, 19312. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- He, J.; Shi, Y.; Xu, L.; Lu, Z.; Feng, M.; Tang, J.; Guo, X. Exploring the scale effect of urban thermal environment through XGBoost model. Sustain. Cities Soc. 2024, 114, 105763. [Google Scholar] [CrossRef] [Scilit]
- Li, J.; Zhai, Z.; Ding, Y.; Li, H.; Deng, Y.; Chen, S.; Ye, L. Effect of optimal allocation of urban trees on the outdoor thermal environment in hot and humid areas: A case study of a university campus in Guangzhou, China. Energy Build. 2023, 300, 113640. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Y.; Xiang, X.; Zhai, Z.; Ding, Y.; Liu, J.; Fan, C. Impacts of block morphological evolution on thermal environment during urbanization: Application of random forest and SHAP method. Sustain. Cities Soc. 2026, 136, 107058. [Google Scholar] [CrossRef] [Scilit]
- Zhou, X.; Wang, J.; Zhang, R.; Chen, G.; Cao, S.-J. Air-conditioning anthropogenic heat in high-density residential areas: Spatial patterns and impacts. Energy Build. 2024, 318, 114406. [Google Scholar] [CrossRef] [Scilit]
- Zhu, X.; Lin, H.; Zhou, X.; Fan, C.; Cui, Y.; Xu, Y. Physics-informed deep learning model for predicting outdoor temperature field incorporating building anthropogenic heat emission. Build. Environ. 2026, 304, 115128. [Google Scholar] [CrossRef] [Scilit]
- Cui, Y.; Zhou, X.; Fan, C.; Lin, H.; Deng, S. Application of physics-informed neural net-works-based hybrid prediction models in campus thermal environment prediction. Build. Environ. 2026, 287, 113880. [Google Scholar] [CrossRef] [Scilit]
- Zhou, X.; Deng, S.; Cui, Y.; Fan, C. Developing a co-benefits evaluation model to optimize greening coverage designs on university campuses in hot and humid areas. Energy Build. 2025, 328, 115214. [Google Scholar] [CrossRef] [Scilit]
- Cui, Y.; Fan, C.; Zhang, W.; Zhou, X. Decoupling prediction of cooling load and opti-mizing control for dedicated outdoor air systems by using a hybrid artificial neural network method. Case Stud. Therm. Eng. 2025, 69, 106046. [Google Scholar] [CrossRef] [Scilit]
- Cui, Y.; Zhang, W.; Zhou, X.; Fan, C.; Chi, Y. Application of attention mecha-nism-convolutional neural network-long and short-term memory neural net-work-based model in load forecasting of dedicated outdoor air systems. J. Build. Eng. 2025, 112, 113769. [Google Scholar] [CrossRef] [Scilit]
- Na, S.; Yayong, X.; Jiawei, G.; Yibo, X. Exploring the main driving factors of gross pri-mary production in different climate zones of China using the XGBoost–SHAP model. J. Arid Land 2026, 18, 903–927. [Google Scholar] [CrossRef] [Scilit]
- Wang, Q.; Wang, H.; Fan, H.; Wang, X. Estimating the causal effects of landscape inter-ventions on urban thermal environments using generalized random forests. Sustain. Cities Soc. 2026, 149, 107809. [Google Scholar] [CrossRef] [Scilit]
- Liu, J.; Zhai, Z.; Zhang, Y.; Wang, Y.; Ding, Y. Comparison of energy consumption pre-diction models for air conditioning at different time scales for large public buildings. J. Build. Eng. 2024, 96, 110423. [Google Scholar] [CrossRef] [Scilit]
- Zarghamipour, M.; Malakooti, H. The projected effects of urbanization and climate change on urban Heat Island and thermal comfort over the Tehran metropolitan. Sci. Total Environ. 2025, 992, 179955. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Xie, Y.; Ishida, Y.; Mochida, A.; Watanabe, H.; Yu, S. Contrasting impacts of urban de-velopment and broader-scale climate change on the advection effects of sea breezes based on an analysis of heat balance mechanism in urban space: A case study in Sendai, Japan. Sustain. Cities Soc. 2025, 131, 106731. [Google Scholar] [CrossRef] [Scilit]
- Zhang, L.; Cao, Y.; Zhao, C.; Wei, S.; Wang, Y.; Liu, P. City function matters: Identifying influential factors of urban thermal comfort. Comput. Environ. Urban Syst. 2026, 129, 102482. [Google Scholar] [CrossRef] [Scilit]
- Li, Q.; Lu, X.; Tang, P.; Qiu, Z.; Li, Q.; Meng, Q. Effects of pavement watering on the thermal environment above an impermeable pavement in a hot and humid area. Urban Clim. 2025, 61, 102387. [Google Scholar] [CrossRef] [Scilit]
- Jia, S.; Wang, Y.; Wong, N.H.; Weng, Q. A hybrid framework for assessing outdoor thermal comfort in large-scale urban environments. Landsc. Urban Plan. 2025, 256, 105281. [Google Scholar] [CrossRef] [Scilit]
- Zhong, G. Convolutional Neural Network Model to Predict Outdoor Comfort UTCI Microclimate Map. Atmosphere 2022, 13, 1860. [Google Scholar] [CrossRef] [Scilit]
- Kupwiwat, C.; Kaewunruen, S.; Prasittisopin, L. Advancing urban thermal comfort: Adaptive ensemble machine learning models for tropical climates. Energy Build. 2025, 339, 115762. [Google Scholar] [CrossRef] [Scilit]
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.










