Improved PDE Models for Image Restoration through Backpropagation

by   Sílvia Barbeiro, et al.

In this paper we focus on learning optimized partial differential equation (PDE) models for image filtering. In this approach, the grey-scaled images are represented by a vector field of two real-valued functions and the image restoration problem is modelled by an evolutionary process such that the restored image at any time satisfies an initial-boundary-value problem of cross-diffusion with reaction type. The coupled evolution of the two components of the image is determined by a nondiagonal matrix that depends on those components. A critical question when designing a good-performing filter lies in the selection of the optimal coefficients and influence functions which define the cross-diffusion matrix. We propose the use of deep learning techniques in order to optimize the parameters of the model. In particular, we use a back propagation technique in order to minimize a cost function related to the quality of the denoising processe, while we ensure stability during the learning procedure. Consequently, we obtain improved image restoration models with solid mathematical foundations. The learning framework and resulting models are presented along with related numerical results and image comparisons.



There are no comments yet.


page 13

page 15

page 17


Results of improved fractional/integer order PDE-based binarization model

In this report, we present and compare the results of an improved fracti...

Adaptive diffusion constrained total variation scheme with application to `cartoon + texture + edge' image decomposition

We consider an image decomposition model involving a variational (minimi...

On learning optimized reaction diffusion processes for effective image restoration

For several decades, image restoration remains an active research topic ...

Learning Generic Diffusion Processes for Image Restoration

Image restoration problems are typical ill-posed problems where the regu...

Gradient Vector Flow Models for Boundary Extraction in 2D Images

The Gradient Vector Flow (GVF) is a vector diffusion approach based on P...

Re-initialization Free Level Set Evolution via Reaction Diffusion

This paper presents a novel reaction-diffusion (RD) method for implicit ...

Entropy-guided Retinex anisotropic diffusion algorithm based on partial differential equations (PDE) for illumination correction

This report describes the experimental results obtained using a proposed...
This week in AI

Get the week's most popular data science and artificial intelligence research sent straight to your inbox every Saturday.

1 Introduction

Nonlinear diffusion processes are well-known and widely used for image noise removal. Roughly speaking, the idea is to combine an effective noise reduction by diffusion with the preservation of the edges and other important image features. Amongst the better known approaches are those where the diffusion coefficient depends on the gradient with an inverse proportion, [15, 18].

The use of nonlinear complex diffusion filters (NCDF) where the image is represented by a complex function and the process of filtering is governed by a diffusion equation with a complex-valued diffusion coefficient, was investigated in [12]. Those filters, which bring the advantage of using the imaginary part of the solution as an edge detector avoiding the computation of the gradient to control the diffusion coefficient, can be successfully applied for denoising in particular for medical imaging despeckling [6, 16].

A complex diffusion equation can be written as a cross-diffusion system for the real and imaginary parts. The use of general cross-diffusion systems for image processing, which encompasses the complex-diffusion equations as particular cases, was investigated in [2]. The theoretical studies of the correspondent initial valued boundary problems were presented in [1] and [2] for the linear and nonlinear cases, respectively, where well-posedness and some scale-space representation properties were derived under hypothesis on the cross-diffusion coefficient matrix. However, besides these conditions, there is not much insight on the form that these coefficients should take in practical applications. In [3], the same authors applied the cross-diffusion model to several examples related to the problem of reducing the speckle noise in optical coherence tomography (OCT) images. The conclusion is that the performance of the model is greatly influenced by the choice of the cross-diffusion coefficient matrix.

All those methods based on diffusion filtering are highly dependent on some crucial parameters (e.g. [2, 17]). The parameters that lead to the most effective methods vary depending on the acquisition methods, the nature of the images and the associated noise profile. Furthermore, diffusion filters require the specification of a stopping time. To circumvent this issue, a reaction term can be introduced which keeps the steady-state solution close to the original image [18].

The challenge lies in the formulation of robust models with optimal parameters corresponding to each architecture. The use of neural networks for image processing tasks has set the pace of current research in this area. However, the general intrinsic “black box” nature of such algorithms is a drawback, particularly in the context of medical applications. In

[10] the authors use a learning framework inspired in nonlinear reaction diffusion processes where the filters and the influence functions are simultaneously learned from training data. The results are auspicious. There are, however, some important questions remaining: the numerical solution is not related with the original reaction diffusion problem, and more importantly, the qualitative properties of the computed solution are not derived. Moreover, the method does not cover promising models as the one based on cross-diffusion.

We propose the use of deep learning techniques such as backpropagation [13] and Adam algorithm [14] to optimize the parameters of a system of PDEs for a specific task. In this work, we focus on nonlinear cross-diffusion with reaction filters in order to optimize the reaction parameter and the influence functions of the cross-diffusion matrix for the removal of gaussian noise.

The optimization process we suggest includes the stability of the inherent numerical method, which is crucial for obtaining successful results. We drive our attention first to synthetic images in order to develop our learning strategy. The methodology consists in the parametrization of the functions that govern the cross-diffusion system, the computation of the gradient of a cost function with respect to these parameters and the application of the backpropagation technique, widely used in neural network supervised learning, to learn the optimal parameters. Experiments in real noisy images show that the training process improves significantly the performance of the filters.

Our contributions can be summarized as follows:

  • we derive the stability conditions for a broad class of cross-diffusion models;

  • we build a recurrent neural network equivalent to a cross-diffusion system where its neurons are the points of the spatial discretization and the weights are the non-linear diffusion coefficients;

  • we obtain improved stable cross-diffusion models for image denoising through backpropagation.

The article is organized as follows. In Section 2 the fully discrete cross-diffusion with reaction model is presented. Next, the stability conditions are derived. Section 4 is devoted to the learning model. We present the numerical experiments in Section 5. We end the paper with a section dedicated to conclusions.

2 Cross-diffusion reaction model

In this section we present a fully discrete cross-diffusion reaction model for image restoration. The image is represented by a two-component vector field, , and the restoration process is governed by the nonlinear cross-diffusion reaction system


where is the domain of interest, and are the given initial conditions for and and denotes the outward normal vector to the boundary . The cross-diffusion matrix of the model is given by


is a time dependent non-negative parameter.

The domain is discretized by the points , where

for two given integers , and . This spatial mesh on is denoted by and . Points halfway between two adjacent grid points are denoted by , , where is the canonical basis, that is, is the standard basis unit vector in the th direction.

For the discretization in time, we consider a mesh with time step , , where .

We denote by the value of a mesh function at the point . For the formulation of the finite difference approximations, we use the centered finite difference quotients in the th spatial direction, for ,

In order to formulate the discrete cross-diffusion restoration problem, let be a discrete real-valued function standing for the grey level values on of the noisy image to be restored. From , an initial distribution , for the cross-diffusion, is required. This is given by two real-valued functions , that can be selected following different criteria. A simple choice, that will be considered in the experiments we present later in this paper, consists of taking and , . A more detailed discussion on the initial data can be seen in [1, 2].

Let , such that . Given the initial solution , the numerical solution of (1) at the time is obtained considering the following finite difference scheme



and . If then (3) is an explicit method. If then method (3) is semi-implicit and its solution is obtained by solving a system of linear equations. In the next section we will derive the stability properties of both, explicit and semi-implicit, methods. Later, in sections 4.2 and 4.3, we will discuss their role in our learning strategy: to optimize the cross-diffusion model we will use the explicit scheme ; to denoise the images we will use the semi-implicit discretization of the optimized model.

Equations (3) and (4), for such that , are defined using points of the form and , which don’t belong to and are not yet defined. For those points and , we consider the solution in and , respectively. This corresponds to the usual discretization of the homogeneous Neumann boundary conditions on with central finite differences.

3 Stability of the numerical scheme

We will now investigate the stability of the finite difference scheme (3)-(4). The approach generalizes the strategies in [4] used to study the stability of the particular case of complex-diffusion equations written as a cross-diffusion system.

For each , we define the rectangle and denote by the measure of . We consider the discrete inner products


Their correspondent norms are denoted by , and , respectively. For we define .

To simplify the notation and where it is clear from the context, we write in what follows instead of or , for

Multiplying both members of equations (3) and (4) by and , respectively, according to the discrete inner product , and using summation by parts we get

We can write

and then


For any we have that


3.1 Stability of the semi-implicit scheme

We start by considering the case where . With the assumption that


which corresponds to the natural assumption of the diffusion matrix to be uniformly positive definite, from (5) and (6) we get

Assuming that


for some where is a constant arbitrarily chosen, we get

If (8) holds, using the Duhamel’s principle ([9], Lemma 4.1 in Appendix B) we get

and we conclude that the method is stable.

3.2 Stability of the explicit scheme

We now consider the case where . Applying the norm on both sides of equations (3) and (4), and using the inequalities and for , we obtain, respectively,


for any and


Combining the inequalities (6), (9) and (10) with (5) leads to

Let . In order to obtain a stable scheme we impose that


for some .

If (11) holds, then


We now take and . From (12) and using the Duhamel’s principle we get

and we conclude that the method is stable.

Note that we can rewrite (11) as


where is a square matrix of dimension . In order for (13) to hold we require

to be semi-positive definite, that is, the eigenvalues of

are all non-negative. Using the Gershgorin Theorem, a sufficient condition for the method to be stable is to impose that the influence functions satisfy, for some ,


4 Learning model

Our goal is to optimize the parameters of our model using deep learning techniques. In order to adapt the cross-diffusion scheme (3)-(4) to a neural network architecture, we concatenate and into a single column vector with entries:

The -th iteration of the scheme (3)-(4) can now be written in the vector formulation


with , and where the first difference matrices () are block matrices:

and denote the backward difference operators with respect to and , respectively. The matrices and are diagonal matrices. Each entry of and depend on the function for and on the function for , at the time . The entries of and follow the same pattern, replacing and by e , respectively. It remains to define the difference matrices and :

where and denote the forward difference operators with respect to and , respectively.

We reiterate that the scheme (15) is equivalent to the cross-diffusion scheme (3)-(4).

4.1 Parameterization of the influence functions

An important aspect of the methodology of our learning strategy consists in the parametrization of arbitrary influence functions. We parameterize the influence functions of the cross-diffusion matrix (2

) through gaussian radial basis functions (RBFs)

[8]. Here we consider that they only depend on the second component of the vector , i.e., they depend on the component which plays the role of edge detector. Each of these functions has the expression


where , for , are equidistant points in the set of edge-detector range of values, is a positive scalar (the so called scale of the RBF), and are, for each , the interpolants od . A good approximation requires a careful balance between and .

In the learning model, we consider in (15) , where is a positive scalar.

4.2 Constrained optimization

In order to optimize the influence functions of the cross diffusion matrix and and also the scalar which characterizes the reaction term, a training cost function and a training dataset are required. We will use a set of gray-scale images which will serve as basis for our training set. We fix the time-step and a number of steps , which will result in a cross-diffusion stopping time of . In the learning viewpoint, we will have a

-layered convolutional neural network. We aim to minimize the loss function



with , , where and are, respectively, the - th iteration of (15) of the -th corrupted image and the non-corrupted image, respectively, is the learning batch size, and is the set of parameters we want to optimize. As such, the set of parameters is

and we must now obtain to solve the minimization problem.

We need to guarantee that the learning procedure ends up with a stable scheme. For that, we will make use of the stability conditions derived in Section 3. Although the use of the explicit method (15) with can bring some advantages in terms of computational effort, the stability conditions are much more restrictive when compared to the semi-implicit method (15) with . Moreover, since we need to impose the stability conditions over the values of , the nonlinearities in the stability condition (14) corresponding to the explicit scheme carry out some issues that we want to avoid here. For that reason our goal is to learn a semi-implicit scheme for image denoising.

To obtain a stable semi-implicit scheme, instead of minimizing the loss function (17) we seek the solution of the constrained optimization problem

s.t. (18b)

This constraints ensure that (7) hold. We first note that (18b)-(18c) are not in the standard formulation over the values of . As the radial basis functions (16) are strictly positive, we replace (18b)-(18c) with


using the fact that (19a)-(19d) implies (18b)-(18c). To solve the inequality constrained problem we define the augmented Lagrangian as