Two-Dimensional Steady-State Boundary Shape Inversion of CGM-SPSO Algorithm on Temperature Information

Addressing the problem of two-dimensional steady-state thermal boundary recognition, a hybrid algorithm of conjugate gradient method and social particle swarm optimization (CGM-SPSO) algorithm is proposed. The global search ability of particle swarm optimization algorithm and local search ability of gradient algorithm are effectively combined, which overcomes the shortcoming that the conjugate gradient method tends to converge to the local solution and relies heavily on the initial approximation of the iterative process. The hybrid algorithm also avoids the problem that the particle swarm optimization algorithm requires a large number of iterative steps and a lot of time. The experimental results show that the proposed algorithm is feasible and effective in solving the problem of two-dimensional steady-state thermal boundary shape.


Introduction
As a branch of the inverse problem of heat transfer, inverse geometrical problem [1] of heat conduction has a broad application prospect in industrial equipment testing, nondestructive testing [2], geometry optimization [3], biological lesions [4], and other fields.Two-dimensional steady-state space is first discretized in inverse geometrical boundary of the heat transfer system, and discretization methods mainly include finite difference method [5] (FDM) and finite element method [6] (FEM) and boundary element method [7] (BEM), which can be used for solving heat transfer problems, inverting the geometric boundary through various optimization techniques on the basis of solving the forward problem.Inversion methods based on optimization techniques can be divided into gradient-based optimization algorithms and nongradient optimization algorithms.Gradient optimization algorithm mainly includes the conjugate gradient method [8] (CGM), Levenberg-Marquardt method [9] (L-MM) and the steepest descent method [9] (SDM), and nongradient optimization algorithm mainly includes genetic algorithm [10] (GA), neural network algorithm [11] (NNM), particle swarm optimization (PSO) [12], and so forth.CGM, L-MM, SDM, and other gradient-based optimization algorithms are the main algorithms to study the inverse problem of heat transfer and are applied to the study of geometric inverse problems of heat transfer.Carey et al. [13] studied the parallel conjugate gradient solution of the sparse system produced by the least squares combined finite element method, which showed that the algorithm was suitable for convection diffusion equation and fixed Navier-Stokes equations.Tarzanagh et al. [14] proposed a new derivative-free preconditioned conjugate gradient method to solve largescale square and undetermined nonlinear equations.The numerical results of this method for some square and undervalued test systems showed the efficiency and effectiveness, and new application was also provided for solving nonlinear differential equations.
Sellami and Chaib [15] proposed a new conjugate gradient method for unconstrained optimization, which included two existing nonlinear conjugate gradient methods that have a decrease in each iteration search direction and global convergence.Huang and Chao [16] used BEM and CGM to study the geometrical problems of heat transfer.The problem of dynamic identification of irregular boundary shape in twodimensional multiconnected region and the identification of 2 Advances in Materials Science and Engineering Bin and LinHua [17,18] used BEM and CGM to study the geometrical shape of the inner wall of the two-dimensional cylinder and discussed the influence of the initial stochastic value, the measurement information error, and the number of measuring points on the inversion results of the inner wall shape.Fan et al. [19] used FEM and CGM to invert the internal defects of the two-dimensional pipeline and discussed the effects of initial values and measurement errors on the inversion results.Tanweer et al. [20] proposed the problem of self-regulating particle swarm optimization (SRPSO), which achieves faster convergence and provides better solutions.Hong et al. [21][22][23][24] optimized the PSO algorithm, which can search for more simultaneous solutions and make it possible to give an unbiased estimate that provides a better way to find the global optimal solution in search space.Yuan et al. [25] introduced the improved algorithm of genetic algorithm, particle swarm optimization in two-dimensional steady-state thermal boundary problem.
CGM [26] is currently used in a more extensive inversion algorithm, which has been used in the inverse problem of heat transfer.However, gradient-based optimization algorithm belongs to the local search algorithm, which is easy to fall into the local extreme value.The inversion result has serious dependencies on the initial guess of the geometric boundary.More importantly, since the inverse problem of heat transfer, including the geometric inverse problem of heat transfer, is a typical ill-posed problem, when the temperature measurement information is not complete or there is a large measurement error, the inversion results obtained based on the gradient optimization method may deteriorate.In addition, when the geometric shapes to be inverted are more complex or the number of inversion points is larger, the calculation of the gradient matrix is time-consuming and difficult, which directly affects the engineering application of the gradient optimization method.
PSO [27] is an intelligent nongradient optimization algorithm, which is a global search algorithm with good adaptability.However this method is a global search, so the computation is relatively large, and search process is time-consuming, which result in very large restrictions in practical application of geometric inverse problem of heat transfer, especially when the inversion parameters are increased, and the shortcomings of the performance are more serious.In particular, when the measurement information is incomplete or there is a large measurement error, the inversion results obtained according to such intelligent optimization methods will also have some gaps, and the inversion method lacks the necessary antimisalignment.
In this paper, a hybrid algorithm combining conjugate gradient method [28,29] and social particle swarm optimization (CGM-SPSO) algorithm is proposed to solve the problem of boundary shape recognition.In the CGM-SPSO algorithm, particle swarm optimization algorithm is used to obtain the smooth estimation of the shape by using fewer boundary elements.As the initial guess value of the conjugate gradient method, the boundary element is applied in the conjugate gradient method to ensure the accuracy of the solution.In this paper, the influence of the number of inversion parameters on the inversion solution is discussed.The convergence of CGM and SPSO algorithm in CGM-SPSO algorithm is analyzed (see Tables 1 and 2).

Two-Dimensional Steady-State
Thermal Conductivity Model and Its Forward Problem

Two-Dimensional Steady-State Thermal Conductivity
Model.A two-dimensional nonthermal source-dependent steady-state thermal conductivity model [25] for the detection of inner wall defects in industrial equipment is shown in Figure 1, where region is a two-dimensional space set of  = 0.0,  = 10.0,  = 0, and  = ().Here, both sides of  = 0.0 and  = 10.0 are adiabatic, and a known constant heat flow 0 is passed out by cooling at  = 0 so that a constant known temperature 0 is maintained at  = ().
The temperature distribution   at  = 0 can be measured by infrared scanning thermometer.The purpose is to realize the fault detection of the inner wall of the industrial thermal equipment by reverse deduction of shape () of the inner wall defect.The mathematical model is shown in Figure 1.
This is a two-dimensional steady-state boundary-shaped thermal inversion problem for a known boundary temperature measurement of several boundary points and to solve the unknown boundary shape () of the other boundary.The solution of the inverse problem can be mathematically transformed into the optimal control problem of the following functional variants: where   (, 0) is the temperature value actually measured at the measurement point of the model surface and   (, 0) is the temperature value at the measurement point calculated from the above equations according to the guessed boundary shape.
The iterative method is used to search for the boundary problem of () involving the standard problem of iterative stoppage and temperature measurement error.If no measurement error exists, the stop criterion is where  is a lesser number, such as 0.01, which is determined by the specific convergence.If there is a measurement error and the standard deviation of the temperature measurement is , then the minimum criterion is determined according to the error principle.

Boundary Element Analysis of Two-Dimensional Planar Steady Heat Conduction
Problems.Boundary element method (BEM) is a computational method based on the classical integral equation, which absorbs the discrete technique of finite element method.The basic idea of the boundary element method is to use the integral equation method to solve the differential equation.The boundary element method is based on the establishment of the boundary integral equation.The solution process can be divided into two steps: the first step is the boundary of the problem, the Green formula is applied, and the differential equation in the solution domain is transformed into the integral equation on the boundary by the basic solution.The second step is the discretization of the boundary.

Boundary Integral Equations for Mixed Boundary Conditions.
Considering the difference of boundary conditions in practical problems, two-dimensional steady-state thermal boundary conditions are taken as examples.As shown in Figure 2, boundary element analysis is carried out.Without considering the heat source, the governing equation is the Laplace equation.
In the Ω area, On the boundary Γ 1 , On the boundary Γ 2 , On the boundary Γ 3 , In the above formula: , and   is the ambient temperature.The weighting function is introduced for Laplace's equation of the above control equation  * , applying the weighted margin method available: Conducting the second division points and applying Green's function for (9) available, Substituting equations (10) into equation ( 9), Make  = /, and then  * =  * /, On type (11) consolidation can be obtained: The weight function in (12) is the basic solution of Laplace's equation, which is where the point "" represents the point source point, we get formula (13) into formula ( 12) and use the nature of the function , and we can get This is the boundary integral equation for the inner nodes of any point in the Ω domain.Moving the point "" to the boundary and getting the boundary integral equation at any point on the boundary, Formula ( 14) and formula (15) can be combined to obtain the boundary integral equation of any point in the domain Ω and, at any point on the boundary, where, in area domain Ω,   = 1 and, on the border Γ,   = 1/2.The weight function  * is the fundamental solution of the two-dimensional Laplace equation: 2.2.2.Boundary Discrete Equations for Mixed Boundary Conditions.Formula ( 16) is discretized, and the boundary is divided into  units.On each boundary element,  and  can be uniformly interpolated by ordinary unit, linear unit, or quadratic unit according to different interpolation to form matrix: where When  = , then   =   + Ĥ ; when  ̸ = , then   = Ĥ ; and when "" falls Γ 3 , then   =   + (ℎ/) ⋅   ; moving the unknown amount to the right and moving the known amount to the left, Solution for the above equations can be obtained in  and  in the unknown amount.

Inverse Problem
3.1.Improved Particle Swarm Optimization Algorithm.All the individual optimal solutions pbest (best particle) in particle swarm optimization algorithm are connected with the population optimal solution gbest (best group), which is a typical star structure with the center node gbest.In this structure, each individual unconditionally follows the population optimal, so that the individual optimal can easily converge to the population optimal.When the gbest is the local optimal, the particle swarm algorithm will fall into the local optimal.Thus, an improved strategy is proposed named social particle swarm optimization (SPSO).By setting a different harsh threshold for each individual, one determines whether the individual is following other individuals, or is maintaining the current state, or is free to move, in order to maintain the diversity of individuals in the population, to avoid the algorithm precocious and into the local optimum.
In the social particle swarm algorithm, the characteristics of social atoms are introduced into the particle swarm algorithm, and each individual is given a skeleton threshold, where the individual with a threshold of 0 means that the movement is not affected by any other individual information, and the threshold with a threshold of nonzero may have different attraction points in the process of population updating to maintain the current state, so the social particle swarm algorithm may have different attraction points in the process of updating the population according to the new attracting point.
There are two types of particles in the social particle swarm algorithm: free particles and followers.The free particle is a particle with a threshold of zero, which is not affected by the behavior of other particles and randomly determines the next generation particle position.The follower particle with a nonzero value is affected by the attraction point during the search process.Whether or not to follow the attraction point depends on how many other particles follow.The updating formula of follower particle in SPSO algorithm is where the third term in ( 21) is changed from the standard   in PSO to the attraction point   , and it may be different for different particles.When the algorithm is initialized, the individual with the best fitness is selected as the initial attraction point in the particle selection population.
As the search progresses, each free particle is likely to become a new attraction point, and if there is a fitness for a free particle that is better than the fitness of all other particles, it becomes a new attraction.Individuals with a threshold of 1 in the particle are first attracted, and then the individual with higher thresholds will also move toward the attraction point, and the individuals whose attraction population does not reach the threshold will remain unchanged.
The implementation steps of social particles swarm algorithm are shown as follows.
Step 1 (algorithm initialization).The population size , the largest evolution algebra Gen, acceleration factors 1, 2, and inertia weight  are given in advance.Give each particle a follow threshold, which is taken as an integer in [0, ].The optimal individual in initial population is set to attraction point.
Step 2. Update the speed and position of the following particles according to ( 21) and ( 22), and free particles randomly generate the next generation position.
Step 4. Update optimal positions pbest of all individuals.
Step 5.If the optimal fitness value of free particle is better than the population optimal fitness value, then update attracting point attraction equal to pbest, which indicates the free individual is more attractive and will attract the individual of getting the threshold.These attractive points that follow the individual will be updated to the optimal position of the free particle individual, and the attraction point of the other unattended individuals will remain unchanged.
Step 6. Repeat Steps 2 to 5 until the algorithm termination condition is met.
The flow chart of SPSO algorithm is shown in Figure 3. [25] transforms the inverse problem into three problems: direct question, sensitive problem, and concomitant problem.The problem is based on the assumed boundary shape (1d) and other boundary conditions, using the boundary element method to solve (1a)-(1e), then calculating the minimum value of the objective function (2).The circulation mode of conjugate gradient method is

Conjugate Gradient Method. The conjugate gradient
where   is the search step of  to +1 and   () is the search direction: where   () is gradient direction, so the th search direction   () is the conjugate of gradient direction   () and search direction  −1 () of  − 1.   is conjugate coefficient, which can be calculated by the equation where  0 = 0.

Sensitivity Problem.
For the inverse problem of heat transfer, the existence of solutions can be determined from the physical problem; for example, for a transient problem, the temperature distribution has changed, which must be caused by a change in the parameters, such as boundary conditions and geometric conditions.For some individual antirecognition problems, we can also prove the uniqueness of the strict solution.Although the validity of the solution must be judged from the physical problem for most problems, the biggest problem of the inverse problem is that when the temperature distributed measurement results with some error may cause some parameters of the anticalculation results with unpredictable errors.Therefore, in the process of calculation, we must use some technical means to ensure the stability of the results, so as to detect whether an inverse problem calculation method is effective but also to discuss the calculation results on the temperature measurement error sensitivity.So the conjugate gradient needs to solve the problem of sensitivity when solving the inverse problem.
The determination of the search step in (23) needs to find out a sensitivity problem called the increment problem.The sensitivity problem refers to the variation of the change amount Δ() of surface temperature  when the boundary shape() has an increment Δ(), and the formula is The specific approach is as follows: in the formula (1a)-(1e),  + Δ replaces the original , and () + Δ() replaces the original ().And then subtract the original equations to get the sensitivity problem, so, in the region Ω, the thermal equation is When  = 0, the thermal equation is When  = 10, the thermal equation is When  = 0, the thermal equation is When  = (), the thermal equation is Similarly, the boundary element method is used to discretize the above equations and obtain the temperature increment Δ.According to formula (2), iteration ( +1 ) of  + 1 can be written: Take Taylor expansion   (  −     ) and take out two linear terms, and the following equation can be drawn: Seeking derivative for   and making it zero, the search step is available: 3.2.2.Adjoint Problems.In formula (23), the new boundary shape function  +1 () is calculated according to the boundary function   () of the last iteration, and the search direction   () is also needed to be found out.Therefore, the gradient direction   () is needed to be calculated according to (24), which is the so-called functional derivative problem, known as the adjoint problem.In order to derive the equation of the adjoint direction, we need to multiply the basic control formula (1a) by a Lagrangian operator (, ) (also called adjoint function) and integrate the spatial domain and then add the result to the right of (2).The expression of the function [()] is as follows: With +Δ instead of  and +Δ instead of , the following are obtained after a series of arrangement: Then Make the second distribution equal to integral twice in the right side of (33), and use the boundary conditions of sensitivity problem, then make Δ closer to 0, and finally adjoint problems can be as follows.
In the region Ω, When  = 0, When  = 10, Advances in Materials Science and Engineering When  = (), The boundary element method is used to solve the corresponding value of the adjoint function (, ), so that the functional increment is So according to Alifanov's definition, The derivative of the functional  is The above three problems including the forward problem, the sensitivity problem, and the adjoint problem can be solved, and the following are iterative calculation step of conjugate gradient method: (1) Select a stochastic initial value of inner wall shape in () to solve the forward problem (1a)-(1e) and calculate the temperature distribution (, ) in the domain.
(2) According to   and   determine whether to meet the convergence stop standard (3) [ +1 ()] < ; if satisfied, then stop the iteration; otherwise, calculate the next step.
(5) Calculate the conjugate gradient coefficient   and the descent direction   .
(8) Make  =  + 1 to calculate the new boundary shape   () and new   and go back to step (2).

CGM-SPSO Hybrid
Algorithm.CGM is computationally fast, but it usually converges to local optimal solutions and relies heavily on the initial approximation of the iterative process.The SPSO algorithm requires tens of thousands of iterations and a lot of computation time.The fitness function evaluation of a complex problem is very time-consuming, so we propose a hybrid algorithm of CGM and SPSO, whose purpose is to combine global search ability of SPSO and fast convergence ability of CGM.Since CGM needs a smooth and appropriate initial value, it can converge to a very precise solution.Therefore, this paper gets the temperature of the measured point  ( 1 ,  2 , . . .,   ) by the SPSO method when the boundary shape is unknown, and then the value obtained by SPSO is processed by the interpolation calculation to obtain a smooth function as the initial value of CGM.

Exponential Analysis
As shown in Figure 1, the physical model of the inner wall defect detection of industrial thermal equipment is a twodimensional thermostatic heat conduction problem.The domain Ω is a two-dimensional space composed of  = 0.0,  = 10.0,  = 0, and  = ().Here, both sides of  = 0.0 and  = 10.0 are adiabatic, and a known constant heat flow 0 is passed out by cooling at  = 0 so that a constant known temperature 0 is maintained at  = ().When  = 50, As can be seen from Figure 4, when using the CGM-SPSO hybrid algorithm for geometric inversion, regardless of whether the number of inversion parameters is  = 50,  = 100, or  = 150, the estimated boundary shape and the exact boundary shape are very close, and this happens equally in the edge and peak.The average relative errors of the inversion are 1.12%, 0.73%, and 0.52%, respectively, which shows CGM-SPSO algorithm is good to overcome the influence of the number of inversion parameters on the exact value of the inversion.It can be seen from the above experiments that when the number of geometric inversion parameters increases, the inversion solution accuracy is improved, but it can be seen from the figure that increasing the number does not have much effect on the accuracy of the inversion solution.Therefore, the conclusion is that the proposed method is not affected by the influence of the number of inversion parameters on the inversion solution.The following discusses the convergence of SPSO and CGM when the number of inversion parameters is  = 100, as shown in Figures 5  and 6.

Influence of the Number of Geometric Inversion
As shown in Figures 5 and 6, the convergence curve of the SPSO algorithm shows that the objective function converges rapidly after the fifth iteration.Then, CGM obtains initial value from SPSO.After 10 iterations, a convergent optimal solution is produced.It shows that CGM-SPSO algorithm spends the less computation time and has not only high accuracy of the solution but also the higher efficiency of the algorithm.

Conclusion
In this paper, a hybrid algorithm of conjugate gradient method and particle swarm optimization algorithm is used to study the inversion problem of the boundary shape.The social particle swarm optimization algorithm and the conjugate gradient method are introduced, and the twodimensional steady-state model is used to verify and discuss the algorithm.The influence of the number of inversion parameters on the inversion results is discussed, and the convergence of the SPSO algorithm and the CGM algorithm is obtained.The main conclusions are as follows.
(1) The CGM-SPSO algorithm is used to reconstruct the geometric shape of the two-dimensional steady-state thermal conduction system.When the number of geometric inversion parameters increases, the inversion solution is improved, but when the number of geometric inversion parameters is appropriate, increasing the number does not have much effect on the inversion solution.It is proved that CGM-SPSO is effective for two-dimensional steady-state thermal boundary identification.
(2) CGM-SPSO algorithm has high accuracy to the peak and edge value of geometric shape.
(3) Less times of iterations can meet the convergence conditions; thus calculation time is greatly reduced.

Figure 1 :
Figure 1: Physical model of inner wall defect detection of thermal equipment.

Figure 4 :
Figure 4: Inverse solution of different geometric inversion parameters number.
Parameters.Assume the function of the thermal device boundary is expressed as  () = 0.75 + 0.4 exp (distribution of the temperature measurement points in the outer boundary of the thermal equipment, there is no measurement error.Three geometric inversion parameters  = 50,  = 100, and  = 150 are geometrically inversed.The inversion results are shown in Figure 4.The experimental data for each group are as follows.

Table 1 :
The number of iterations to convergence using SPSO.

Table 2 :
The number of iterations to convergence using CGM.