Next Article in Journal
Imaging Engineering and Artificial Intelligence in Urinary Stone Disease: Low-Dose Computed Tomography, Spectral Technologies, and Predictive Models
Previous Article in Journal
Evaluation of La-Based Mixed Oxide Catalysts in Catalytic Ammonia Decomposition
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Prediction of Heat Transfer in Building Walls of Different Materials Using Neural Networks and Finite Difference Methods

Institute of Physics and Electrical Engineering, University of Miskolc, 3515 Miskolc, Hungary
*
Author to whom correspondence should be addressed.
Eng 2026, 7(4), 173; https://doi.org/10.3390/eng7040173
Submission received: 4 March 2026 / Revised: 31 March 2026 / Accepted: 5 April 2026 / Published: 10 April 2026
(This article belongs to the Section Chemical, Civil and Environmental Engineering)

Abstract

This study introduces a hybrid framework that integrates transient numerical simulations with artificial neural networks (ANNs) to analyze and predict heat transfer in building walls. The framework is applied to ten different material–insulation combinations. Using the Leapfrog–Hopscotch (LH) finite difference scheme, we evaluated dynamic heat transfer and identified optimal insulation thicknesses for buildings in the cold continental climate of Bukhara. An ANN model was trained and validated on a dataset generated from 410 simulated wall configurations. The model achieved high predictive accuracy, with a mean squared error below 0.005. The thickness of the outer material layer ranged from 20 cm to 35 cm, while the inner layer thickness varied from 1 cm to 3 cm. Among the materials analyzed, glass wool + steel and gypsum + brick demonstrated superior insulation performance by minimizing heat loss most effectively, with values as low as 361,234 J/m2 and 4,983,441 J/m2, respectively, at 35 cm wall thickness. These findings underscore the potential of combining ANN-based predictions with physics-based simulations to design energy-efficient building envelopes in cold climates.

1. Introduction

The building sector represents one of the largest energy-consuming sectors globally, accounting for approximately 40% of total energy consumption and 30% of greenhouse gas emissions worldwide [1]. This substantial environmental impact, coupled with rising energy costs, has intensified the focus on improving energy efficiency in buildings, particularly through enhanced thermal performance of building envelopes [2]. Recent studies employing advanced numerical and optimization techniques further confirm that improving envelope design and optimizing insulation strategies remain among the most effective pathways for reducing operational energy demand and carbon emissions in residential and commercial buildings [3].
In cold continental climates, such as Bukhara in Uzbekistan, characterized by extreme seasonal temperature variations and prolonged heating seasons, space heating constitutes the dominant component of building energy use [4]. Consequently, optimizing external walls, as the primary interface between indoor and outdoor environments, is critical for achieving sustainable development goals and reducing operational costs [5].
A growing body of research has emphasized the importance of selecting appropriate insulation materials and configurations to reduce heat loss and energy demand [6]. While steady-state methods provide simplified calculations using metrics such as U-value and R-value, they fail to capture transient effects caused by fluctuating ambient temperatures and solar radiation and differences in the thermal mass of the wall configurations [7]. Therefore, advanced numerical methods have become essential for accurately predicting dynamic heat transfer through multi-layer wall assemblies.
Studies by Kaynakli [8] and Bolattürk [9] have shown that climatic conditions, energy prices, and material properties play key roles in identifying the most cost-effective insulation levels for buildings. Determining the optimum insulation thickness has become a primary application of these simulations, as it significantly affects both energy consumption and life-cycle cost efficiency.
Cabeza et al. [10] further emphasized that low-carbon and bio-based materials not only improve thermal insulation performance but also reduce embodied energy, contributing to more sustainable construction practices. Borreguero et al. [11] demonstrated that a gypsum board containing 25% shape-stabilized PCM is more thermally insulating than standard gypsum, with sheet-PCM and pellets-PCM increasing average heat capacity by 41% and 33%, respectively. These findings are supported by Cosentino et al. [12], who reviewed natural bio-based insulation materials and their role in lowering building energy demand.
However, high-fidelity transient simulations, such as those using finite difference and finite element methods, remain computationally demanding for iterative design applications [13]. To address this challenge, hybrid numerical and optimization techniques have been explored, as reviewed by Machairas et al. [14], demonstrating the effectiveness of multi-objective optimization approaches in improving building energy performance.
In recent years, Artificial Neural Networks (ANNs) have emerged as a powerful alternative for modelling and predicting complex thermal behaviors in buildings. Kalogirou [15] demonstrated that ANNs can learn nonlinear interactions between parameters and provide rapid, accurate energy performance predictions. Building upon this, Tsanas and Xifara [16] showed that statistical and machine learning models can accurately estimate building energy performance using limited data.
Further research by Gossard et al. [13] confirmed that integrating ANNs with genetic algorithms allows for the multi-objective optimization of building envelopes, balancing thermal performance and cost. Similarly, Ascione et al. [17] introduced a new cost-optimal methodology for building energy analysis using multi-objective optimization frameworks.
Ozel [18] investigated the effect of wall orientation on optimum insulation thickness through a dynamic method, highlighting how climatic and directional factors influence energy efficiency. In a related study, Ozel [19] numerically investigated the thermal, economical, and environmental effects of insulated building walls under dynamic conditions in a cold climate, finding that the most economical orientation was a south-facing brick wall with 9.2 cm of XPS insulation, which reduced fuel consumption and emissions by 85%.
The combination of machine learning and numerical simulation continues to demonstrate great promise. Askar et al. [20,21] successfully applied ANN models alongside recent finite difference schemes to predict and optimize building thermal loads and roof configurations in various climates. In a complementary study, Chou and Bui [22] confirmed that hybrid ANN-based models can significantly reduce computational effort while maintaining high predictive accuracy.
Despite this progress, there remains a clear research gap in systematically applying hybrid numerical ANN frameworks to optimize insulation thickness and material combinations in cold continental climates such as Bukhara.
To bridge this gap, this study proposes a comprehensive hybrid framework that integrates the recently invented leapfrog–hopscotch (LH) finite difference scheme with artificial neural networks (ANNs) for analyzing and optimizing wall compositions. The framework uses the LH numerical scheme to perform a dynamic thermal analysis of walls composed of ten different material and insulation combinations. It then generates a comprehensive dataset from these simulations to train and validate an ANN model for rapid thermal performance prediction. The trained ANN is subsequently used as a solution model to calculate the heat transfer of any material used, based on observation and without the need for solving differential equations by numerical methods. This novel and user-friendly solution approach can be considered a comprehensive solution package for the materials used in this model.

2. Geometry and Material Properties

Figure 1 illustrates the various wall models investigated in this study, consisting of different combinations of construction materials and insulation layers. The left side of the wall faces the interior of the building, while the right side is exposed to outdoor weather conditions. In all models, the left boundary temperature is fixed as a constant reference (representing indoor conditions), whereas the right boundary temperature is varied systematically following real weather data. This orientation is clearly indicated in the figure with labels for “Interior” and “Exterior” sides.
The wall assemblies consist of two distinct material layers:
  • Inner layer (adjacent to the interior environment): Includes materials such as gypsum, glass, EPS, XPS, cement, concrete, and steel.
  • Outer layer (adjacent to the exterior environment): Includes materials such as brick, wood, stone, glass wool, and mineral wool.
To systematically evaluate the effect of layer thickness on thermal performance, the inner layer thickness varied across three values: 0.01 m, 0.02 m, and 0.03 m. For each inner layer thickness, the outer layer thickness was varied over a range of values to capture the thermal behavior across a spectrum of configurations.
For inner layer thicknesses of 0.01 m and 0.02 m, the outer layer thickness was varied over the following set of values: 0.20, 0.21, 0.22, 0.23, 0.24, 0.25, 0.26, 0.27, 0.28, 0.30, 0.31, 0.32, 0.33, 0.34, and 0.35 m (15 values in total).
For an inner layer thickness of 0.03 m, certain outer layer thicknesses were omitted due to computational constraints and convergence issues. Specifically, the outer layer thickness values of 0.26, 0.27, 0.32, and 0.33 m were excluded. Consequently, the outer layer thicknesses used for this case were: 0.20, 0.21, 0.22, 0.23, 0.24, 0.25, 0.28, 0.30, 0.31, 0.34, and 0.35 m (11 values in total).
Based on these selections, the 0.01 m and 0.02 m inner layer thicknesses each correspond to 15 outer layer thickness values, while the 0.03 m inner layer thickness corresponds to 11 values. Considering all ten material combinations (gypsum + brick, glass + brick, EPS + brick, XPS + brick, cement + brick, concrete + wood, concrete + stone, steel + glass wool, steel + mineral wool, and gypsum + wood), the total number of configurations is:
10 × 15 + 10 × 15 + 10 × 11 = 410
This systematic combination of layer thicknesses provides a robust basis for evaluating thermal resistance and heat-transfer behavior across all wall configurations.
In this investigation, the thermal and physical material properties listed in Table 1—namely, thermal conductivity ( k ), density ( ρ ), and specific heat capacity (c)—are taken into account. Although these coefficients have a discontinuity at the material’s boundary, they are constants inside the material and do not vary with temperature, time, or space.
When a finish coat is necessary for mechanical protection in the case of a soft insulator such as glass wool, this is neglected from the point of view of the heat transfer simulation due to its low thickness.

Methodology

Building energy optimization is often computationally demanding. Artificial Neural Networks (ANNs) offer an effective compromise between predictive accuracy and computational efficiency. ANNs were first introduced by McCulloch and Pitts in 1943 [25]. In recent decades, they have gained widespread popularity in statistical and engineering applications due to their ability to model complex nonlinear relationships.
In this study, feature selection techniques were applied to simplify the predictive models. Various construction materials for external walls were selected and systematically analyzed. The ANN was implemented using a Multi-Layer Perceptron (MLP) architecture. Model parameters were optimized using three different approaches, and the resulting predictions were compared with empirical data to validate the theoretical framework and demonstrate its practical applicability.
The MLP provides structural flexibility, strong representational capability, and the ability to integrate multiple data sources [26]. It has become the most widely adopted neural network architecture, surpassing earlier models. MLPs are universal function approximators trained using the backpropagation algorithm and operate as feedforward neural networks [27]. They employ interconnected neurons to approximate the functional relationship between input and output variables.
The architecture of the MLP-ANN developed in this study is illustrated in Figure 2, which presents the input, hidden, and output layers, along with their interconnections [28]. The model was implemented using MATLAB R2022b, with the primary objective of identifying an algorithm that achieves an optimal balance between performance, reliability, and accuracy.
The implemented MLP consists of three main layers: one input layer, one hidden layer, and one output layer with a single neuron representing the predicted total heat loss (W/m2). The number of neurons in the hidden layer (12 neurons) was determined through a systematic parametric analysis to identify the optimal network configuration.
Specifically, several hidden layer sizes (5, 8, 10, 12, 15, and 20 neurons) were tested. For each configuration, the model performance was evaluated based on the mean squared error (MSE) on the validation dataset, the correlation coefficient (R) between predicted and target values, and the degree of overfitting, assessed by comparing training and validation errors.
The results indicated that a hidden layer with 12 neurons achieved the best overall performance, yielding the lowest validation MSE, a high correlation coefficient (R > 0.99), and minimal overfitting. Therefore, this configuration was selected as the optimal architecture for the neural network.
The database was constructed by randomly selecting twelve wall materials. As shown in Figure 2, the input parameters (Mᵢ) correspond to wall assembly types (M1–M10) detailed in Table 2, while the output variable (Y) represents the predicted thermal performance indicator.
To reduce the computational cost associated with repeated transient numerical simulations, a data-driven surrogate model based on an ANN was developed. The MLP architecture was selected due to its strong nonlinear approximation capability and its proven effectiveness in engineering prediction problems.
To prevent any single input parameter from dominating the learning process due to differences in scale, the input and output data were normalized. While normalization is commonly performed within the interval [0, 1], in this study, the data were scaled to the range of 0.1 to 0.9 using Equation (1).
This choice was made to avoid numerical issues associated with the saturation of sigmoid-type activation functions used in the neural network. When values approach the boundaries of 0 or 1, the activation function tends to saturate, resulting in very small gradients. This can slow down the learning process and lead to vanishing gradient problems during training [28].
By mapping the data to the interval [0.1, 0.9], the inputs remain within the sensitive (quasi-linear) region of the activation function, where gradients are sufficiently large and stable. This improves convergence speed, enhances numerical stability, and leads to more reliable model performance.
X = a + X r X m i n b a X m a x X m i n ,
where  X X r , X m i n , and  X m a x are the minimum and maximum values of the parameter in the dataset, respectively. a and b are the lower and upper bounds of the new normalized range (0.1 and 0.9, respectively). The model was trained using an LM algorithm to iteratively adjust the connection weights, minimizing the error between the predicted and target outputs. The performance of the trained ANN was evaluated based on its accuracy in predicting the thermal performance of the unseen testing data.
The dataset used for training the ANN model consisted of 410 simulated wall configurations. The data were randomly divided into training (70%), validation (15%), and testing (15%) subsets using MATLAB’s R2022b Neural Network Fitting default “dividerand” function. This resulted in 287 samples for training, 62 for validation, and 61 for testing.
This random splitting ensures an unbiased representation of all material combinations and thickness variations across the three subsets. The performance of the model was evaluated using the mean squared error (MSE) and the correlation coefficient (R) for all datasets, confirming high accuracy and no evidence of overfitting.

3. The Equations Used in the Transient Simulations

A linear parabolic partial differential equation (PDE) describes the simplest form of Fourier-type heat transfer in a homogeneous material with an internal heat source as follows:
u t = α   2 u + q ,
where  u = u r , t is the temperature,  α = k / ( c ρ ) is the thermal diffusivity, and  c = c r , t ρ = ρ r , t k = k r , t are the specific heat, the density and the heat conductivity of the material, respectively. Here, q is the heat generation or source of heat.
Newton’s law of cooling defines the convective transfer of heat between a moving fluid and a surface as  K u a u . During this process, the fluid, which can be either a liquid or a gas, travels due to temperature and density fluctuations. The rate of heat transfer is affected by the fluid velocity, the temperature difference between the fluid and the surface, and the fluid’s physical properties, such as viscosity and thermal conductivity [29].
In this case, the ambient temperature (in Kelvin),  u a , is unaffected by the unknown variable u. As a result, the term  K u a should be added to the formula q, representing the heat source. The Stefan–Boltzmann equation [7] expresses radiative heat loss from a surface as  σ u 4 , where the proportionality constant σ is the product of the positive Stefan–Boltzmann constant and surface area. Similar to the previously stated  K u a term, the incoming radiation, which includes direct sunlight, may be included into the source term q. The radiation, convection, and heat source terms are added to the heat conduction Equation (2) as follows:
u t = α   2 u + q K u σ u 4 .
With the exception of the conduction component, Equation (3) includes local terms which are nonzero only at the wall boundaries. We use the most popular central difference approach for the  α   2 u term in the one-dimensional Equation (1):
2 x 2 u ( x i ) u ( x i + 1 ) u ( x i ) Δ x + u ( x i - 1 ) u ( x i ) Δ x Δ x = u i - 1 2 u i + u i + 1 Δ x 2 ,
where  i = 1 , , N if there are N nodes in total. The following is the one-dimensional discretized form of the heat transfer Equation (3) that we obtain using this approximation method:
d u i d t = α   u i - 1 2 u i + u i + 1 Δ x 2 + q K u i σ u i 4 ,
where K and σ are nonzero only for the boundary computational cells, as we will see below. We now show how the heat transfer equation has been discretized by assuming that the variables α, k, c, and ρ are functions of the space rather than a fixed value, reflecting the characteristics of materials. Instead of focusing on the  α   2 u component, we now examine the more general term
1 c x ρ x   x k x u x .
The equation for heat transfer in this case may be discretized as
  c ( x i ) ρ ( x i ) u t x i = 1 Δ x k x i + Δ x 2 u ( x i + Δ x ) u ( x i ) Δ x + k x i Δ x 2 u ( x i Δ x ) u ( x i ) Δ x
At the current moment, we are transitioning to a resistance–capacitance model comparable to lumped parallel thermal networks, but with a larger number of nodes than usual. Cells encircle the nodes, and the heat conductivity between node i and its right neighbor is  k i , i + 1 . The following is the discretized equation:
d u i d t = 1 c i ρ i Δ x k i , i + 1 u i + 1 u i Δ x + k i - 1 , i u i - 1 u i Δ x + q K u i σ u i 4 .
A cell’s length and cross-sectional area are expressed as  Δ x and S. The volume of the unit can be calculated as  V = S   Δ x , and heat capacity can be calculated from  C i = c i ρ i V . It is possible to estimate the heat transfer resistance between the two nodes using the formula  R i , i + 1 Δ x / k i , i + 1 S . Using the new numbers, the time derivative of each cell variable can be calculated as follows:
d u i d t = u i 1 u i R i 1 , i C i + u i + 1 u i R i + 1 , i C i + q K u i σ u i 4

3.1. The Leapfrog–Hopscotch Formulation and Structure

The recently developed leapfrog–hopscotch (LH) strategy [30], like all hopscotch approaches, requires a unique chessboard-like spatial structure. In essence, the mesh must be divided into two parts, known as odd and even nodes (or cells), with odd cells being nearest to even cells and vice versa. Its time pattern includes two half-time steps and a large number of full-time steps. The calculation begins with a half-sized time step for the odd nodes, using the original values. After that, the even and odd nodes execute full-time steps in strict alternating order until the final time step is reached; for odd nodes, this time step should be cut in half to reach the same final time point as the even nodes, as illustrated in Figure 3.
The leapfrog–hopscotch (LH) formulas are the following: The “zeroth” stage equation has the form:
u i 1 / 2 = u i 0 + r i / 2 ( u i 1 0 + u i + 1 0 ) K Δ t u i 0 / 4 1 + r i + K Δ t / 4 + δ Δ t ( u i 0 ) 3 / 2   ,
where  r i = Δ t / C i R i , i 1 + Δ t / C i R i , i + 1   . Then, a full-time step stage is calculated as
u i 1 = u i 0 + r i ( u i 1 1 / 2 + u i + 1 1 / 2 ) K Δ t u i 0 / 2 1 + r i + K Δ t / 2 + δ Δ t ( u i 0 ) 3 ,  
and this equation is applied at the last stage as well, but with halved time step size.

3.2. Numerical Simulation of the Wall

A constant time step of Δt = 50 s was used for all transient simulations. We chose this time step size because, in our earlier work [24], when the LH approach was vali-dated, we demonstrated that they produce an error maximum of 0.01 °C, meeting the precision requirement. Additionally, it is demonstrated that this time step size is still significantly larger than the explicit Euler or Runge–Kutta CFL limit. The duration of the simulation was 121 days; hence, T = Ndays × Nhours × Nsecond = 121 × 24 × 3600 = 10,454,400 s is the simulation’s overall time, and it represents the whole winter season (4 of November to 4 of March). In total, NT = T/Δt = 209,088 time steps are used, and the analysis focuses on the south-facing section of the wall.

3.3. Initial and Boundary Conditions

For all wall situations and all boundaries in the simulations, zero Neumann boundary conditions are applied to prevent the passage of conductive heat. To do this, we set the matrix components describing heat conduction over the border to zero. Nonetheless, it has been assumed that the left and right sides of the wall experience convective and radiative heat transmission in the x direction, respectively, as shown in Table 3. The computational elements inside the body of the wall cannot lose or absorb heat by convection or radiation, and they lack a heat source; hence, the coefficients K, σ, and q are zero in Equation (3) for the interior cells.
We use the following formulae to determine the coefficient values for our equations:
K = h c c ρ   Δ x ,   σ = σ c ρ   Δ x ,   q = q c ρ   Δ x + h c c ρ Δ x u a ,
Also, we assumed that the right and left components have the following heat sources:
For   the   inside   components :   q l = 1 c ρ × q l + h c l c ρ Δ x × 295   K
For   the   outside   elements :   q r ( t ) = 1 c ρ × q r t + h c r t c ρ Δ x × u r t
K t = h c r t c ρ   Δ x ,   σ = σ r c ρ   Δ x ,   q t = q r t c ρ   Δ x + h c r t c ρ Δ x u r t
where  q l = ε l σ l 295 4   and   q r t = α sun G c r t + α Low ε r σ r u r t 4  [23].
The following formula is used to determine the convection heat transfer coeffi-cient for external components as a function of air velocity:
h c r t = 0.6 + 6.64 v t ,
v t u r t u l G c r t : According to the website data [33], every 50 s, we took measurements of the air velocity [m/s], outside air temperature [°C], and sun radiation [W/m2] in November, December, January, February and March. The interior ambient temperature is taken to  22   ° C 295   K  on the left side.
α sun : The absorption of solar radiation by the surface, calculated to be 0.95.
α Low : The painted surface’s absorptivity to low-temperature thermal radiation is 0.93.
We approximated the initial temperature within the wall using the assumption that a stationary heat flow with constant flux had formed between the designated boundary values of the internal and external air temperatures before the simulation period, which began at 00:00 on 4 November. At this initial moment, the temperature on the outer, right surface of the wall was  u r , initial = 282   K . For the starting condition, it produces a piecewise linear function of the x variable in the case of two layers:
For   the   part   of   gypsum   plaster :   u x ,   t = 0 = u mid u l x / L g + u l
For the part of brick:
u x ,   t = 0 = u r , initial u mid x / L b u r , initial u mid L g / L b + u mid
where   u mid = u l q flux L g / k g and   q flux = u l u r , initial / L g / k g + L b / k b ,
where the subscripts g and b stand for the gypsum and brick layers, respectively,  L g , for example, is the gypsum plaster’s thickness. In general, these subscripts correspond to the specific material used in each case, and they may vary across the ten different wall materials considered in this study.

4. Results for the Simulation Walls

In this study, twelve different wall materials were analyzed, resulting in 410 possible multi-layer wall configurations. The dataset derived from these combinations was used to train an ANN model based on an MLP architecture to predict the building envelope’s energy performance parameter.

4.1. Calculation of Heat Loss Through Walls

The total energy requirement Q in kWh units is calculated from Equation (12).
Q = t = 1 T i m e Δ t Q cell ( t )
where  Q cell = q * cell S and  q * is the current density of heat loss, and, using Fourier’s law, we can calculate it as  q * cell = ( u 1 u 3 ) k cond 2 Δ x , i.e., the heat flux close to the inner surface of the wall.

4.2. Verification and Validation

The target values used for training, validation, and testing of the neural network were obtained from the numerical heat transfer simulations described in Section 2. For each wall configuration (combination of inner and outer layer materials and thicknesses), the transient 1D heat conduction equation was solved using an explicit finite-volume method with a time step of  Δ t = 50 [s] over a simulation period of 121 days. The resulting heat loss values (W/m2), integrated over the simulation period, served as the target outputs for the neural network.
Figure 4 illustrates the network’s training behavior in terms of gradient, learning rate ( μ ), and validation checks. Figure 5 compares the target values (obtained from numerical simulations) and the predicted values (obtained from the neural network) for the training, validation, and testing phases. The plots demonstrate that the data points closely align with the 45° reference line ( Y = T ), which represents perfect agreement between predicted and actual values. The correlation coefficient ( R ) equals 1 for all datasets, confirming an almost perfect linear relationship and indicating that the model accurately predicts the heat loss across all samples. This high level of agreement verifies the robustness and reliability of the developed neural network model for heat loss estimation.
The mean squared error (MSE) and regression coefficient (R) for the training, validation, and testing stages were evaluated to verify the performance of the constructed neural network in predicting homogenized attributes. Figure 6 presents the MSE variation over the training epochs. The MSE values are notably low, indicating a high level of prediction accuracy, as lower MSE values correspond to better model performance. The best validation performance was achieved at epoch 430, with an MSE of approximately ( 2.79 10 10 ). Additionally, the regression coefficients (R) were found to be close to one, signifying a strong correlation between the predicted and target values. These results confirm that the neural network effectively captures the underlying relationships in the dataset and accurately represents the homogenized properties.
Figure 7 illustrates the error histogram, which represents the distribution of prediction errors for the training, validation, and testing datasets across all 410 wall configurations. The histogram displays a tall and narrow peak centered near zero, indicating that most prediction errors are minimal. This pattern suggests that the model achieves high accuracy and generalizes effectively across different data splits. Moreover, the absence of noticeable bias or extended tails confirms the model’s reliability and consistency in estimating heat loss. Figure 8 demonstrates a strong positive correlation between insulation thickness and system performance. The close agreement between experimental and predicted values validates the model’s accuracy.
To further quantify the predictive uncertainty of the ANN model, an error analysis was performed based on the comparison between predicted and reference values, as illustrated in Figure 8.
The results show that the model achieves a high level of accuracy, with an average relative error of approximately 2.3% and a maximum relative error of 4.7%. The corresponding root mean square error (RMSE) is approximately 0.016 kW/m2/day. These values fall well within acceptable engineering limits, typically below 5–10%.
Additionally, the regression analysis presented in Figure 4, Figure 5, Figure 6 and Figure 7, with a correlation coefficient (R) close to 1 and a very low mean squared error (MSE), further confirms the robustness and low uncertainty of the proposed model.
Figure 9 presents a direct parity plot (ANN vs. LH), including a reference line for perfect agreement, demonstrating the strong consistency between the two approaches.
This addition provides a clearer visual validation of the ANN model and further confirms its accuracy and reliability.
Daily temperature variations in Bukhara during the study period are illustrated in Figure 10. The data, obtained from the Open-Meteo Historical Weather API [33], cover 121 days from early November 2024 to early March 2025, capturing the transition from autumn to winter.
Figure 11 presents the total heat loss calculated by the LH scheme (Leapfrog–Hopscotch) with a time step size of Δt = 50 s for two representative wall assemblies—steel + glass wool and concrete + stone—each with a thickness of 0.25 m, over the 121-day winter simulation period (4 November–4 March).
The results illustrate the dynamic response of each wall assembly to seasonal climate variations, as characterized by the monthly climate parameters summarized in Table 4. The data reveal a consistent pattern between external temperature fluctuations and the observed heat loss. For instance, the highest heat loss values are recorded during January, which had the lowest average temperature of 2.0 °C, while lower heat loss values are observed during November and March, when average temperatures are higher (7.4 °C and 9.1 °C, respectively).
This pattern confirms that the wall’s thermal performance is strongly influenced by external climatic forcing.
As illustrated in Figure 12, the total heat flux exhibits substantial variation among the analyzed wall assemblies, each consisting of a 0.01 m internal insulation layer and a 0.30 m primary material layer. The evaluation was performed during the coldest period of the study, 15–16 December, when the minimum outdoor temperature reached −10 °C.
Under these conditions, the assembly incorporating a stone primary layer demonstrated the greatest thermal losses, whereas those employing mineral wool or glass wool as the primary layer displayed markedly improved thermal performance, characterized by minimal heat loss.
It should be noted that the reported ANN performance metrics (MSE and R) are evaluated using normalized output data, while all heat loss values presented in the results and tables are obtained after de-normalizing the ANN predictions to physical units (W/m2).
It should be noted that the results were computed for three discrete thickness values (0.20 m, 0.26 m, and 0.35 m). The continuous curves shown in the figure are obtained by connecting these data points to improve visualization and to highlight the overall trend. No additional simulations were performed for intermediate thickness values.
The three thickness values detailed in Table 5—0.20 m, 0.26 m, and 0.35 m—refer to the outer layer (right side) thickness, while the inner layer (left side) remained constant at 0.01 m. These values served as reference points representing the initial, average, and final states for each material assembly.
This tripartite approach was utilized to determine the variance in thermal resistance throughout the testing procedure. By calculating cumulative heat loss at these distinct phases, we quantified how structural changes in the material influenced the overall heat transfer rate.
The methodology, described in detail in Section 2, provides a comprehensive evaluation by capturing the system’s initial state (0.20 m thickness), mean behavior (0.26 m thickness), and final state (0.35 m thickness) over the 121-day winter simulation period (4 November–4 March). This tripartite approach leads to a robust estimation of total cumulative heat loss for each material assembly. The resulting cumulative heat loss values for all wall assemblies across the thicknesses examined are presented in Figure 13.

5. Conclusions

An ANN model was developed in this study to predict transient heat transfer through building walls in Bukhara, Uzbekistan, considering ten different material–insulation combinations. Training data were generated using the Leapfrog–Hopscotch finite difference method for 410 simulation cases, capturing the region’s large seasonal temperature variations. The optimized ANN achieved a mean squared error below 0.005 and a regression coefficient near 1, demonstrating high predictive accuracy and reliability as a surrogate for computationally intensive simulations.
The results in Table 5 and Figure 12 show that increasing wall thickness from 0.20 m to 0.35 m consistently reduces total cumulative heat for all wall configurations. For example, the cumulative heat for the Gypsum + Brick wall decreases from 7,304,327 J/m2 at 0.20 m to 4,983,441 J/m2 at 0.35 m. Similarly, insulation-based materials such as Glass Wool + Steel and Mineral Wool + Steel exhibit significantly lower heat losses (e.g., 640,516 and 560,011 J/m2 at 0.20 m, respectively) compared to heavy materials like Concrete + Stone (11,848,689 J/m2 at 0.20 m). This demonstrates that both increasing thickness and selecting low-conductivity insulation materials play a critical role in reducing heat transfer and improving the thermal performance of building envelopes.
This hybrid FDM–ANN framework offers a practical and efficient tool for rapidly estimating heat transfer in building envelopes, reducing computational effort while supporting informed design decisions. By combining physics-based simulations with data-driven modeling, it enables optimization of insulation thickness and material choice to enhance thermal performance. It should be noted that the present study is limited to one-dimensional wall configurations without considering thermal bridges or multiple wall orientations. Therefore, the applicability of the proposed ANN model to more complex geometrical configurations has not been investigated in this work. Extending the model to account for such complexities represents a potential direction for future research.
Future work could extend this methodology to multi-dimensional wall configurations, dynamic indoor conditions, and long-term energy performance analyses, with a crucial emphasis on incorporating material costs. This would further improve its applicability for designing practical and energy-efficient buildings in various climates.

Author Contributions

Conceptualization, methodology, software, validation, visualization, and investigation, H.K.; methodology, Writing—review and editing and supervision: I.O.; project administration, supervision, and resources, E.K.; Writing—original draft H.K. and E.K. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflict of interest.

Nomenclature

SymbolsGreek symbols
LHLeapfrog–HopscotchρMass density [kg/m3]
CHeat capacity [J/K]ΔDifference
cSpecific heat [J/(kgK)]αThermal diffusivity [m2/s]
UOverall heat transfer coefficient [W/(m2K)] Δ t Time step size [s]
KConvection coefficient [1/s] σ Realistic values of the non-black body [W/(m2.K4)]
kThermal conductivity [W/(m.K)]σCoefficient of the radiation term [s−1°K−3]
LThickness [m]εEmisivity
QHeat transfer rate [W]δFactor to indicate Daily mean temperature
RThermal resistance [K/W]Subscripts
q heat generation [W/m2]aAmbient air
qHeat source rate [K/s]lLeft side
uTemperature [K]rRight side
tTime [s]p, g, insPanel, Gypsum and Insulation
ANNArtificial Neural NetworkscConvection
FDMFinite Difference Methods

References

  1. International Energy Agency (IEA). Buildings Tracking Report 2023; IEA Publications: Paris, France, 2023. [Google Scholar]
  2. Pérez-Lombard, L.; Ortiz, J.; Pout, C. A review on buildings energy consumption information. Energy Build. 2008, 40, 394–398. [Google Scholar] [CrossRef]
  3. Łach, Ł.; Svyetlichnyy, D. Advances in Numerical Modeling for Heat Transfer and Thermal Management: A Review of Computational Approaches and Environmental Impacts. Energies 2025, 18, 1302. [Google Scholar] [CrossRef]
  4. Santamouris, M. Cooling the buildings: Past, present and future. Energy Build. 2016, 128, 617–638. [Google Scholar] [CrossRef]
  5. Asdrubali, F.; D’Alessandro, F.; Schiavoni, S. A review of unconventional sustainable building insulation materials. Sustain. Mater. Technol. 2015, 4, 1–17. [Google Scholar] [CrossRef]
  6. Ascione, F.; Bianco, N.; De Masi, R.F.; Mauro, G.M.; Vanoli, G.P. A new methodology for cost-optimal analysis by means of the multi-objective optimization of building energy performance. Energy Build. 2016, 111, 420–434. [Google Scholar] [CrossRef]
  7. Omle, I.; Kovács, E.; Bolló, B. Applying recent efficient numerical methods for long-term Simulations of heat transfer in walls to optimize thermal insulation. Results Eng. 2023, 20, 101476. [Google Scholar] [CrossRef]
  8. Kaynakli, O. A review of the economical and optimum thermal insulation thickness for building applications. Renew. Sustain. Energy Rev. 2012, 16, 415–425. [Google Scholar] [CrossRef]
  9. Bolattürk, A. Optimum insulation thicknesses for building walls with respect to cooling and heating degree-hours in the warmest zone of Turkey. Energy Build. 2008, 40, 763–773. [Google Scholar] [CrossRef]
  10. Cabeza, L.F.; Barreneche, C.; Miró, L.; Morera, J.M.; Bartolí, E.; Fernández, A.I. Low carbon and low embodied energy materials in buildings: A review. Renew. Sustain. Energy Rev. 2013, 23, 536–542. [Google Scholar] [CrossRef]
  11. Serrano, S.; Barreneche, C.; Fernández, A.I.; Farid, M.M.; Cabeza, L.F. Composite Gypsum Containing Fatty-Ester PCM to Be Used as Constructive System: Thermophysical Characterization of Two Shape-Stabilized Formulations. Energy Build. 2015, 86, 190–193. [Google Scholar] [CrossRef]
  12. Cosentino, L.; Fernandes, J.; Mateus, R. A review of natural bio-based insulation materials. Energies 2023, 16, 4676. [Google Scholar] [CrossRef]
  13. Gossard, D.; Lartigue, B.; Thellier, F. Multi-objective optimization of a building envelope for thermal performance using genetic algorithms and artificial neural networks. Energy Build. 2013, 67, 253–260. [Google Scholar] [CrossRef]
  14. Machairas, V.; Tsangrassoulis, A.; Axarli, K. Algorithms for optimization of building design: A review. Renew. Sustain. Energy Rev. 2014, 31, 101–112. [Google Scholar] [CrossRef]
  15. Kalogirou, S.A. Artificial neural networks in energy applications in buildings. Int. J. Low-Carbon Technol. 2006, 1, 201–216. [Google Scholar] [CrossRef]
  16. Tsanas, A.; Xifara, A. Accurate quantitative estimation of energy performance of residential buildings using statistical machine learning tools. Energy Build. 2012, 49, 560–567. [Google Scholar] [CrossRef]
  17. Ascione, F.; Bianco, N.; Mauro, G.M.; Napolitano, D.F.; Vanoli, G.P. Artificial neural networks to predict energy performance and retrofit scenarios for any member of a building category: A novel approach. Appl. Energy 2017, 208, 997–1017. [Google Scholar] [CrossRef]
  18. Ozel, M. Effect of wall orientation on the optimum insulation thickness by using a dynamic method. Appl. Energy 2011, 88, 2429–2435. [Google Scholar] [CrossRef]
  19. Ozel, M. Thermal, Economical and Environmental Analysis of Insulated Building Walls in a Cold Climate. Energy Convers. Manag. 2013, 76, 674–684. [Google Scholar] [CrossRef]
  20. Askar, A.H.; Kovács, E.; Bolló, B. Prediction and optimization of thermal loads in buildings with different shapes by neural networks and recent finite difference methods. Buildings 2023, 13, 2862. [Google Scholar] [CrossRef]
  21. Askar, A.H.; Kovács, E.; Bolló, B. Multi-objective optimization for house roof using artificial neural network model. Multidiszcip. Tudományok 2023, 13, 11–25. [Google Scholar] [CrossRef]
  22. Chou, J.S.; Bui, D.T. Modeling heating and cooling loads by artificial intelligence for energy-efficient building design. Energy Build. 2014, 82, 437–446. [Google Scholar] [CrossRef]
  23. Kadhim, S.A.; Al-Ghezi, M.K.S.; Shehab, W.Y. Optimum orientation of non-tracking solar applications in Baghdad City. Int. J. Heat Technol. 2023, 41, 125–134. [Google Scholar] [CrossRef]
  24. Omle, I.; Askar, A.H.; Kovács, E. Optimizing the design of container house walls using argon and recycled plastic materials. Buildings 2024, 14, 3944. [Google Scholar] [CrossRef]
  25. McCulloch, W.S.; Pitts, W. A logical calculus of the ideas immanent in nervous activity. Bull. Math. Biophys. 1990, 52, 99–115. [Google Scholar] [CrossRef]
  26. Fan, X.; Wang, L.; Li, S. Predicting chaotic coal prices using a multi-layer perceptron network model. Resour. Policy 2016, 50, 86–92. [Google Scholar] [CrossRef]
  27. Zarei, T.; Behyad, R. Predicting the water production of a solar seawater greenhouse desalination unit using multi-layer perceptron model. Sol. Energy 2019, 177, 595–603. [Google Scholar] [CrossRef]
  28. Heidari, M.; Shamsi, H. Analog programmable neuron and case study on VLSI implementation of multi-layer perceptron (MLP). Microelectron. J. 2019, 84, 36–47. [Google Scholar] [CrossRef]
  29. Holman, J.P. Heat Transfer, 10th ed.; McGraw-Hill Education: New York, NY, USA, 2010. [Google Scholar]
  30. Khayrullaev, H.; Omle, I.; Kovács, E. Exploring the performance of some efficient explicit numerical methods with good stability properties for Huxley’s equation. Mathematics 2025, 13, 207. [Google Scholar] [CrossRef]
  31. Incropera, F.P.; DeWitt, D.P.; Bergman, T.L.; Lavine, A.S. Fundamentals of Heat and Mass Transfer, 8th ed.; Wiley: Hoboken, NJ, USA, 2020. [Google Scholar]
  32. Omle, I.; Kovács, E.; Bolló, B. The effect of surface triangular roughness inspired by nature with different angles on the interaction between free convection and surface radiation in a square cavity. Heat Transf. Res. 2024, 55, 1–24. [Google Scholar] [CrossRef]
  33. Open-Meteo. Historical forecast API. [Internet]. Available online: https://open-meteo.com/en/docs/historical-forecast-api#location_and_time (accessed on 20 October 2025).
Figure 1. The wall with different thicknesses and insulation materials.
Figure 1. The wall with different thicknesses and insulation materials.
Eng 07 00173 g001
Figure 2. A schematic diagram of the ANN and its relation to the input and output parameters.
Figure 2. A schematic diagram of the ANN and its relation to the input and output parameters.
Eng 07 00173 g002
Figure 3. The leapfrog–hopscotch (LH) structure.
Figure 3. The leapfrog–hopscotch (LH) structure.
Eng 07 00173 g003
Figure 4. Gradient, Mu, and validation checks over training epochs.
Figure 4. Gradient, Mu, and validation checks over training epochs.
Eng 07 00173 g004
Figure 5. Evaluation of Model Accuracy on Training, Validation, Test, and Combined Datasets.
Figure 5. Evaluation of Model Accuracy on Training, Validation, Test, and Combined Datasets.
Eng 07 00173 g005
Figure 6. Schematic of the MSE performance of the network with number of iterations.
Figure 6. Schematic of the MSE performance of the network with number of iterations.
Eng 07 00173 g006
Figure 7. Histogram of Prediction Errors Across Training, Validation, and Testing.
Figure 7. Histogram of Prediction Errors Across Training, Validation, and Testing.
Eng 07 00173 g007
Figure 8. The test of the prediction model with data out of training data.
Figure 8. The test of the prediction model with data out of training data.
Eng 07 00173 g008
Figure 9. Comparison of the ANN predictions with the results obtained from the Leapfrog–Hopscotch (LH) method for several representative case studies.
Figure 9. Comparison of the ANN predictions with the results obtained from the Leapfrog–Hopscotch (LH) method for several representative case studies.
Eng 07 00173 g009
Figure 10. Daily ambient temperature variations in Bukhara, Uzbekistan, from 4 November 2024 to 4 March 2025.
Figure 10. Daily ambient temperature variations in Bukhara, Uzbekistan, from 4 November 2024 to 4 March 2025.
Eng 07 00173 g010
Figure 11. Total heat flux computed using the LH scheme (Δt = 50 s) for a two-layer wall (steel + glass wool; concrete + stone, 0.25 m thick) over 121 days.
Figure 11. Total heat flux computed using the LH scheme (Δt = 50 s) for a two-layer wall (steel + glass wool; concrete + stone, 0.25 m thick) over 121 days.
Eng 07 00173 g011
Figure 12. Comparative 24 h heat flux, showing the significant reduction in total energy loss with a 0.3 m insulation thickness for a time step size of Δt = 50 s.
Figure 12. Comparative 24 h heat flux, showing the significant reduction in total energy loss with a 0.3 m insulation thickness for a time step size of Δt = 50 s.
Eng 07 00173 g012
Figure 13. Illustrates the cumulative heat loss (J/m2) for all wall assemblies at three different thicknesses.
Figure 13. Illustrates the cumulative heat loss (J/m2) for all wall assemblies at three different thicknesses.
Eng 07 00173 g013
Table 1. Properties of the materials used in the simulation [23,24].
Table 1. Properties of the materials used in the simulation [23,24].
Material c Jkg 1 K 1 ρ   kgm 3 k Wm 1 K 1
Brick80016000.74
Gypsum9778050.29
Glass75025000.8
EPS1300300.04
XPS1400400.03
Cement84013000.6
Concrete88022001.5
Stone80026002.5
Wood15005000.13
Steel490785050
Glass wool7001200.039
Mineral wool9001000.035
Table 2. Input materials and thickness of wall.
Table 2. Input materials and thickness of wall.
InputMaterialsThickness of Wall
Model 1Brick + gypsum0.21–0.38
Model 2Brick + glass0.21–0.38
Model 3Brick + eps0.21–0.38
Model 4Brick + exp0.21–0.38
Model 5Brick + cement0.21–0.38
Model 6Wood + concrete0.21–0.38
Model 7Stone + concrete0.21–0.38
Model 8Glass wool + steel0.21–0.38
Model 9Mineral wool + steel0.21–0.38
Model 10Wood + gypsum0.21–0.38
Table 3. Convection, radiation, and heat source characteristics are located on both sides of the wall for all kinds of walls [31,32].
Table 3. Convection, radiation, and heat source characteristics are located on both sides of the wall for all kinds of walls [31,32].
h c   W m 2 K σ *   W m 2 K 4 × 1 0 8 ε
Left Elements (inside)83.970.7
Right Elements (outside)0.6–254.820.85
Table 4. Monthly Climate Parameters for Bukhara (4 November 2024–4 March 2025).
Table 4. Monthly Climate Parameters for Bukhara (4 November 2024–4 March 2025).
MonthPeriodAvg. Temp (°C)Min–Max Temp (°C)Solar Radiation (W/m2)Wind Speed (m/s)
November4–30 November 20247.41.5 to 13.0112.53.5
December1–31 December 20243.1−1.5 to 8.588.13.1
January1–31 January 20252.0−3.5 to 6.996.43.9
February1–28 February 20255.0−1.0 to10.5140.04.1
March1–4 March 20259.13.0 to 15.0169.24.4
Table 5. Cumulative heat loss (J/m2) for the three thicknesses.
Table 5. Cumulative heat loss (J/m2) for the three thicknesses.
MaterialThickness [m]
0.200.260.35
Gypsum + Brick7,304,3276,156,4674,983,441
Glass + Brick7,683,7096,423,1565,156,308
EPS + Brick4,924,8944,377,5183,751,439
XPS + Brick4,373,7833,937,3253,423,808
Cement + Brick7,608,7366,370,7995,122,631
Concrete + Wood9,359,1418,374,7447,233,596
Concrete + Stone11,848,68910,308,5468,628,443
Glass Wool + Steel640,516489,960361,234
Mineral Wool + Steel560,011427,521316,398
Gypsum + Wood1,864,8101,468,1401,112,413
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Khayrullaev, H.; Omle, I.; Kovács, E. Prediction of Heat Transfer in Building Walls of Different Materials Using Neural Networks and Finite Difference Methods. Eng 2026, 7, 173. https://doi.org/10.3390/eng7040173

AMA Style

Khayrullaev H, Omle I, Kovács E. Prediction of Heat Transfer in Building Walls of Different Materials Using Neural Networks and Finite Difference Methods. Eng. 2026; 7(4):173. https://doi.org/10.3390/eng7040173

Chicago/Turabian Style

Khayrullaev, Husniddin, Issa Omle, and Endre Kovács. 2026. "Prediction of Heat Transfer in Building Walls of Different Materials Using Neural Networks and Finite Difference Methods" Eng 7, no. 4: 173. https://doi.org/10.3390/eng7040173

APA Style

Khayrullaev, H., Omle, I., & Kovács, E. (2026). Prediction of Heat Transfer in Building Walls of Different Materials Using Neural Networks and Finite Difference Methods. Eng, 7(4), 173. https://doi.org/10.3390/eng7040173

Article Metrics

Back to TopTop