3 A framework for parameter identification
Once a network giving an approximation of u has been set up, it can be used to solve inverse problems. Let us consider values that the function u takes at given observation points , . In Section 4, the points are either in a spatial domain , or in a space-time domain . We are looking for the optimal parameter that minimizes
where or . A minimizer of (1.4) can be searched using any optimization algorithm. The derivatives can typically be computed using automatic differentiation [5], which allows the use of gradient-type methods. Nevertheless, these methods usually require some a priori knowledge for the choice of the initial guess in order to converge. Numerical experiments show that such initial guess may be difficult to find uniformly in the parameter space. On the other hand, derivative-free approaches, such as, e. g., the Particle Swarm Optimization (PSO) algorithm [12], [16], [20], allow for global optimization and more robustness. We start by presenting here both approaches, before illustrating their behavior on several numerical experiments.
3.1 Particle-swarm optimization
Among derivative-free methods, particle-swarm optimization relies on iteratively updating a group of several particles, which individually and collectively evolve to find a global minimizer of a function. This approach has been proved to be very adapted and robust for global optimization problems where the function is nonconvex and may present several local minimizers. The underlying idea is to update the solution for each particle at each iteration taking into consideration its current position but also the positions in the whole group.
We initialize particles in , and make their position evolve in order to find a minimizer of (1.4). At iteration , the position of the particle i is
where the components of the velocity are
In (1.5), are random numbers with uniform distribution in (0,1), denotes the best position that the particle i has reached during the previous iterations, and denotes the best position that has been among all particles. As suggested in [14], [17], we use varying coefficients ω, , given at iteration by
with , , , , , . In the sequel, unless explicitly stated otherwise, we choose , and then allow the algorithm to perform another 200 iterations with constant values of , , and w. The optimization algorithm stops if the maximum number of iterations (300) is reached or if does not decrease for 10 iterations in a row. The initial position of the particles is chosen uniformly at random in . During the optimization process, the particles are constrained in a slightly extended compact set (but not strictly in ), in order to be able to recover parameters that lie on the boundary of . The implementation of the PSO algorithm has been made using PySwarms [15].
3.2 Gradient method
The alternative is to consider a gradient-based method in the parameter space. Given an initial guess , we make the position of the particle evolve as
where . As for the PSO algorithm, we constrain the iterates to remain in . The implementation of the gradient algorithm relies on automatic differentiation [5] and has been made using Tensorflow [21].
We choose as initial guess , where is the exact solution, , , and characterizes the size of the attraction basin of the method. This corresponds to choosing the initial guess in the neighborhood of the exact solution. If denotes the best parameter that has been found during iterations , the algorithm is stopped if
for 20 iterations in a row.