# The regression problem

A common task in shape modelling is to infer the full shape from a set of measurements of the shape. This task can be formalised as a *regression problem*.
In the following, we quickly review the standard regression problem and discuss how it extends to
shape modelling.

## Standard regression problem

Let be a fixed set of input points defined on some domain and assume that there is an (unknown) function , which generates values according to

$$y_i = f_0(x_i) + \epsilon_i, \, i = 1, \ldots, n.$$A common assumption is that is independent Gaussian noise, i.e. . The function is called the *regression function*.

The regression problem is to infer the function from given observations at the input points. Figure 1 (left) illustrates this setting. It is clear that, since we only have access to the function value at a finite number of points, there are in general many solutions that could have generated the data, as illustrated in Figure 1 (right).

^{Figure 1: the regression setting (left) with some possible solutions that explain the data (right)}

In order to obtain a well-posed problem with a unique solution, we need to make prior assumptions about the possible functions that could have generated the data.
One possibility is to assume that the functions are distributed according to a Gaussian Process: . In this case the problem is called *Gaussian Process regression*. Gaussian Process regression provides an elegant solution to the regression problem, and it turns out that this method
has immediate applications in shape modelling. Before we explain this method in detail in the next video, we will quickly discuss how the regression setting extends to the case of shape modelling, and how the regression problem arises in shape modelling applications.

## Regression in shape modelling

In shape modelling, the regression problem can be formulated as follows: the points are points on the reference shape . The regression model is defined as

$$u_i = u_0(x_i) + \epsilon$$where the regression function is a deformation field and is independent Gaussian noise. Analogically to the
standard setting, the goal is to infer the regression function from given observations .
Figure 2 illustrates this setting.
^{Figure 2: the regression problem for shape is to infer from the given deformations (left) the regression function u_0 (right).}

The possible deformations are modelled using a Gaussian Process model that models the shape variations of a given shape family.

There are two typical applications of the regression problem. The first one arises when we have obtained a sparse set of measurements of the shape and would like to infer the full shape (Figure 3, left). In the second application, it is possible to obtain an arbitrary number of measurements, but only for a part of the shape. This setting is typical for shape reconstruction problems, where we are given only a part of a shape and the goal is to infer the shape of the unseen part (Figure 3, right).

^{Figure 3: two typical applications of regression in shape modelling: inferring the full shape from a sparse set of measurements (left) and reconstructing the complete shape from a given part of the shape (right).}

© University of Basel