1 Introduction
In many scientific fields, such as Biology, Medicine and Anthropometry, we can find a great number of applications where it is necessary to predict a categorical variable as a function of a geometrical object predictor. These geometrical objects can be mathematically characterized in different ways, the most popular being as a set of landmarks (
Bookstein (1978); Kendall (1984); Dryden and Mardia (2016)), compact sets (Serra (1982); Baddeley and Molchanov (1998); Simó et al. (2004); Molchanov (2006)) or functions (Loncaric (1998); Kindratenko (2003); GualArnau et al. (2013)). In this paper, the contour of each geometrical object (surface in ) is represented by a mathematical structure named current. This framework was introduced by Vaillant and Glaunès (2005) and Glaunes and Joshi (2006) and it provides a unifying framework in which to process any sets of points, curves and surfaces or a mixture of these. No hypothesis on the topology of the shapes is assumed. Moreover, it is weakly sensitive to the sampling of shapes and it does not depend on the choice of parameterizations.Currents are mathematically complex objects but, fortunately, it is possible to associate a subspace of currents with a vectorvalued Reproducing Kernel Hilbert Space (RKHS) by duality and, as a result, we can represent each geometrical object with a function in an RKHS (Durrleman (2010); Barahona et al. (2017b)). A vectorvalued RKHS is a Hilbert vector space of functions with useful properties.
This work is motivated by an experimental study carried out by the Biomechanics Institute of Valencia, whose ultimate objective was to implement a web application for online shopping for children’s wear. In particular, that application should make it possible to select the right size of children’s clothing without requiring the child to try on the clothes. Selecting the proper size of any garment for a child without trying it on constitutes a problem when buying these items both in a physical store and, especially, online. Seventyeight randomly selected children between the ages of and
years participated in this study. Firstly, the children were scanned using a 3D body scanner. Next, garments were tried on in different sizes and an expert classified the fit of each garment as “too small”, “good fit” or “too big”.
Different approaches to this problem can be found in the literature. Most of them are based on taking the user’s anthropometric measurements and their relationship with the dimensions of the garment. In this paper, we will describe a method based on 3D scanning of the child’s body. Using the currents approach, a child will be represented by a function in a vectorvalued RKHS and Functional Data Analysis (FDA) will be used on this space. Unlike the methods based on landmarks, curves or parameterized surfaces, the great advantage of working with functions is that the shift from two to three dimensions does not increase the complexity of the expressions or the calculations.
Nowadays, the theory of statistics with functional data is an important field of research in statistics. It is used when data are in an infinitedimensional function space. Although this theory is often a generalization of classic parametric or multivariate statistics, the infinitedimensional nature of the sample space poses particular problems. Key references in the FDA literature are the books by Ramsay and Silverman (2005) and Ferraty and Vieu (2006). A more theoretical treatment is taken in Hsing and Eubank (2015).
With respect to the particular problem of regression with a scalar response and a functional predictor, the first papers focused on the continuous version of the multiple linear model, the functional linear model. In these cases, a direct estimation of the parameter function of the proposed functional regression models through the use of least squares methods is not possible. The most commonly used approximated solution for this estimation problem is to consider that functional observations belong to a space generated by a basis of functions and to perform a multiple treatment based on this approach. Different bases have been used in the literature, such as spline functions, trigonometric functions or wavelet functions (
(see Ramsay and Silverman, 2005, and the references therein)).A slightly different approach, and one of the most popular, is to use principal component functional regression. This approach uses the orthonormal basis of eigenfunctions of the covariance function (
Cardot et al. (1999)). Unlike the previous ones, this is a datadriven basis. As in the multivariate case, this technique makes use of the data covariance function to determine the subspace where the data are projected. This subspace is spanned by the data covariance eigenfunctions and it is always an RKHS. This approach solves a typical problem in functional regression: the great dependence between coefficients, that causes that the estimation of the model is not very accurate.Nevertheless, as Morris (2015)
advises, care must be taken when using principal component functional regression for very complex, highdimensional functional data for which the decay rate in the eigenvalues is slow, especially when the number of functions is small. In certain highdimensional, lowsamplesize settings, PCs have been shown to be inconsistent. These problems can be at least partially mitigated using functional principal component analysis with regularization (
Yuan and Cai (2010)).In the same spirit as in the multivariate setting, functional generalized linear models (Escabias et al. (2004)), which are the functional version of generalized linear models (Nelder and Wedderburn (1972); McCullagh and Nelder (1989)), were introduced more recently in the literature. Such models are based on similar ideas to the linear case. In James (2002) the predictors are modeled as cubic splines, and in Cardot and Sarda (2005) the functional coefficient of the functional generalized linear model is estimated via penalized likelihood with spline approximation. Dou et al. (2012) use the functional principal component analysis (FPCA) approach.
However, when we use the FPCA approach in logistic or multinomial functional generalized linear models, we face an additional problem to the one mentioned previously. Logistic or, in general, multinomial generalized linear models, are used to solve classification problems and, as explained in (Jolliffe, 2002, chap. 9)
, when PCA is used in classification problems in order to reduce the dimensionality of the analysis, we have to be aware that there is no guarantee that the separation between groups will be in the direction of the highvariance PCs; the separation between groups may be in the directions of the last few PCs.
On the other hand, as (González, 2010, chap. 3) notes, an improvement in the classification results can be achieved by using other kernels that capture nonlinear dependencies between the data, because the covariance function only deals with linear ones.
RKHSs (usually, scalarvalued) have a long history in the statistical and machine learning literature. RKHSs have been largely used to facilitate statistical modeling and estimation. For example, in the 1940s, probabilists had already begun to employ Hilbert space methods to clarify the structure of time series (
Parzen (1961)). Preda (2007); Yuan and Cai (2010) and Cai and Yuan (2012) use the RKHS framework in prediction problems under which the unknown slope function is assumed to reside in a reproducing kernel Hilbert space but originally data are inwith the usual inner product. In the literature of Support Vector Machines, RKHSs are used to map original data in a higher dimensional space (
Cristianini and ShaweTaylor (2000); Steinwart and Christmann (2008)). RKHSs provide a convenient framework for efficient computation.An important and crucial difference between previous applications of RKHSs and ours is that, in our case, original data are functions in a given vectorvalued Reproducing Kernel Hilbert Space with a previously defined inner product, that is generally different from the inner product. For example, polynomial functions can never be included in an RKHS with a Gaussian kernel (Steinwart and Christmann (2008)).
Because our functional data are vector fields in an RKHS, we propose three different bases to express our vector fields with respect to them. First, the orthonormal basis given by the integral operator defined by its reproducing kernel( Quang et al. (2010)). Secondly, we consider the integral operator from the covariance function regarding our data as a realization of a stochastic process. The relationship between , our original RKHS and the RKHS defined from the covariance function provides another nonorthonormal base. Finally, we prove a result on simultaneous diagonalization that provides an alternative basis system that combines the properties of both. The three approaches are compared in a very novel application to online clothing sales.
The article is organized as follows: Section 2 provides a detailed explanation of the practical case that motivated this work. Section 3 introduces the concepts of currents and Reproducing Kernel Hilbert Spaces. Section 4 reviews the basis of functional generalized linear models and Section 5 gives the different bases of functions in the RKHS. The application for predicting children’s garment fit is detailed in Section 6. Finally, conclusions are discussed in Section 7.
2 Motivating Example
In the current process of buying children’s clothing online, consumers base the size selection on their previous experience or on the size chart that is normally included in the online store. The consumer’s previous experience is not usually very reliable, because each brand uses its own sizing system that usually evolves over time according to the needs of each company. Size tables indicate the ranges of the main anthropometric measures covered by each size. This method is also unreliable, because taking measurements at home is subject to significant errors, and ambiguous, because users can fit into different sizes according to the measurements used. The final result is a high percentage of returns on children’s clothing sold online, meaning that many consumers are reluctant to buy through this channel, thus increasing the cost of sales.
Selection based on the child’s anthropometry seems the most appropriate approach to predict garment size and fit in the child population. However, the 3D anthropometry acquisition systems currently available have several drawbacks. 3D body scanners are too expensive for home use. Parametric avatars configured from manual measurements by the user present three important sources of inaccuracy: they are not based on statistics of real populations but on models and proportions that prevail in aesthetics, the number of measurements entered does not depend on the type of garment selected or the critical measurements for the associated adjustment, and the measurements are taken by an untrained user, with the error that this may entail. Lowcost systems that use domestic technology to capture body measurements have not yet achieved sufficient precision for size allocation or prediction of fit.
Ergonomic childrenswear design and size definition processes have several differences with regard to those of adult apparel. Firstly, childrenswear size designation is usually labeled in ages, which is not a body measurement, so it is usually related to a specific body height per age, which may not necessarily be close to a child of that age, due to the high variability of height by age in children. According to the European standard UNEEN 134023, the 3 to 12 years age range has 10 different sizes associated with it (9501010 mm, 10101070 mm, 10701130 mm, 11301190 mm, 11901250 mm, 12501310 mm, 13101370 mm, 13701430 mm, 14301490 mm and 14901550 mm).
As online clothes shopping is a problem for both the customer and the apparel industry, in recent years both national administrations and industrial groups from the clothing sector have been developing national anthropometric surveys in different countries. Emerging technology for body scanning has also promoted these new sizing surveys.
In order to help solve all these problems, the Biomechanics Institute of Valencia (IBV) started an ambitious research project in 2004, of which this work is a part. This project has two objectives: first, to develop a system for capturing the child body’s 3D morphometry that is precise, easy to use and can be done at home. Second, to build a model to predict how a given garment size of garment fits a child based on the aforementioned 3D reconstruction. Our work in this article focuses on the latter.
With respect to the first objective of the project addressed by the IBV group, an application has already been developed. The system reconstructs the body of the child in 3D from two or three photographs taken with domestic technology (smartphone, tablet or digital camera) using models representative of the European infant morphometry as a base for reconstruction (Ballester et al., 2016).
To achieve both objectives, a 3D anthropometric study of the child population in Spain was conducted in 2004. In this study, a randomly selected sample of Spanish children between the ages of and years was scanned using a Vitus Smart 3D body scanner from Human Solutions, a nonintrusive laser system which performs a sweep of the body. Several cameras capture images and associated software provided by the scanner manufacturer provides information about the 3D spatial location of up to points on the body surface. 3D scan data was processed for the creation of posture harmonized homologous models to obtain a database of individual 3D homologous avatars with anatomical onetoone vertex correspondence among them. Next all the scans were rigidly aligned( Ballester et al. (2014)).
Seventyeight of these children of different ages performed an additional fit test, where they tested up to three different consecutive sizes of the same shirt model: the supposedly correct size, the size above and the size below. Then, an expert in clothing and design evaluated each fit qualitatively (as small, correct fit or large). There were 7 possible shirt sizes available, nominally corresponding to ages 3, 4, 5, 6, 8, 10 and 12. In 24 cases, only two sizes were evaluated. In 18 of these cases, the children tested either had a correct shirt size corresponding to ages 3 or 12. The 6 remaining cases with only two sizes evaluated were due to lack of cooperation by the children. Additionally, 9 children tested just one shirt size because the age 12 size was too small for them or the age 3 size was too large for them.
So, our data set contains the 3D body scans of a total of 78 children (37 boys and 41 girls, between 3 and 12 years old). It also includes the expert’s opinion on the goodness of the fit of different (consecutive) sizes of the same shirt model on the children, codifying the goodness of fit as 1 (if the shirt is too small), 0 (for a good fit) or 1 (if the shirt is too big). The total number of expert observations is 192 (3 evaluations of 45 children, 2 evaluations of 24 children and 1 evaluation of 9 children).
As the children’s head, hands, legs and feet do not come into play in shirt size selection, these parts were discarded from the scans, and a total of points representing the remaining surface per child were considered. This amount of detail is enough to characterize a child for our purposes, while keeping the time and memory requirements to perform the calculations reasonable. These points were grouped into triangles forming a mesh. The body contour from each child in our data set was therefore represented by an oriented triangulated smooth surface, (see Fig. 1).
3 3D geometrical objects as elements in a Reproducing Kernel Hilbert Space
Currents are mathematical elements that can be used to model general geometrical objects( Durrleman et al. (2009); Barahona et al. (2017b)). In this paper, they will be used to model the bodies of the children in our data set.
Let be a compact set in and , the matrixvalued kernel associated with a vectorvalued RKHS .
The current representation of a surface is defined by the integral of along the surface:
Where is the normal vector to the surface at point ( Durrleman et al. (2009); Barahona et al. (2017b)).
In the discrete setting, the vectors are constant over each mesh cell. Then, if is located at the center of mass of mesh cell , and is scaled by the size of the mesh cell,
(1) 
So, the vector field associated with each surface will be defined on a different set of points given by the centers of mass of the respective mesh cells. Using the “Representer Theorem” (Cucker and Smale (2001)), given a sample grid in D, we can find a smooth function , defined as:
(2) 
where is closest to ( Barahona et al. (2017a)).
The inner product of two geometrical objects represented as currents is given by the inner product of the corresponding elements in .; that is, if and are two elements in the RKHS, associated with two surfaces and , then
where is the inner product in .
From now on, the vector fields in will be named functions and will be denoted for the sake of simplicity. The space of quadratic integrable vector fields from to with the Lebesgue measure will simply be denoted by .
Moreover, a Gaussian kernel, will be used in the definition of the operatorvalued reproducing kernels , where
denotes the identity matrix (
Barahona et al. (2017a)).4 The functional generalized linear model
As mentioned in the introduction, the aim of this paper is to predict the fit of a particular garment on a child as “too small” (), “good fit” () or “too big” (), given different predictors, including the child’s surface, which, as shown in the previous section, is modeled as a current.
Generalized linear models (GLMs)( McCullagh and Nelder (1989)) provide a natural generalization of classical linear models. Given a dependent variable , with
, they assume that it is distributed following a probability function in the exponential family (not necessarily a Gaussian distribution), and the relationship between predictors
and response is modeled by means of a link function as:(3) 
where can be any monotonic differentiable function, and and are the parameters to estimate.
When the response variable is a score, representing an ordered category, i.e. when may take one of several discrete ordered values indexed as with probabilities :
, these probabilities can be modeled using cumulative logits (
Agresti (2010)) as:(4) 
GLMs provide a very flexible class of procedures. However, they assume that the predictors have a finite dimension. That is why James (2002) extended GLMs to functional generalized linear models (FGLMs), which directly model the relationship between a single response from any member of the exponential family of distributions and a functional predictor. Then, when the predictor is functional, as in our case, the link given by Eqs. (3) and (4) cannot be applied directly, but a natural generalization is to replace the summation over the finitedimensional space with an integral over the infinitedimensional one. Then, if we were working with functional predictors in , the cumulative logit model (Eq. 4) would become:
where is the functional analogue of in Eq. (4). But, in our case, we have functional predictors in , so:
(5) 
The most widely used approach to estimate these models considers that the functions and belong to spaces generated by bases of functions ((see Ramsay and Silverman, 2005)). In our case, and belong to a common space (a vectorvalued RKHS), so if is a basis of this space, there will exist coefficients , such that:
In practice, these developments are truncated, and and are usually approached by a summation of a finite number of terms, as:
(6) 
Ideally, these basis functions should have similar features to the functions being estimated. Different bases have been used in the literature, such as trigonometric functions, spline functions( Aguilera et al. (1996)), wavelet functions( Ocaña et al. (1998)) or the orthonormal basis of eigenfunctions of the covariance function( Cardot et al. (1999)).
And then:
(8) 
where and are the parameters to estimate.
If the basis is orthonormal for , then Eq. (8) becomes:
5 Bases of functions in
This section focuses on the methodological novelties of our work. It is interesting to remember at this point that we are working in a vectorvalued RKHS, i.e. our data are vectorial fields. Theoretical properties about bases in scalar RKHSs are well known and scalar RKHSs and their bases have been largely used in the statistical literature. However, nowadays theoretical properties of vectorvalued RKHSs in general and their bases in particular are a research field in the functional analysis literature and, as far as we know, they have never been used in classical statistical applications. Vectorvalued RKHSs were used in Image colorization problems, a particular case of a mathematical extension problem(
Quang et al. (2010)).It should be noted that in conventional functional data analysis applications, the original data are functions in the Hilbert space and RKHSs are used to facilitate statistical modeling and estimation. For instance, Preda (2007); Yuan and Cai (2010); Cai and Yuan (2012) use the RKHS framework in prediction problems under which the unknown slope function is assumed to reside in a reproducing kernel Hilbert space with a reproducing kernel , but originally the data are in with the usual inner product. As mentioned previously, in our case the original data are functions in a given vectorvalued Reproducing Kernel Hilbert Space with the previously defined inner product, which is different from the inner product, and this is an important difference between conventional functional data analysis applications and ours.
It is known that the eigen structures of integral operators in an RKHS provide bases of functions; this idea will be explored in the following section.
5.1 Basis from the Operator integral of the Kernel
Let be the integral operator of the kernel in the space , defined by
Since is a compact, continuous, selfadjoint, positive operator, there are eigenvalues and the corresponding eigenfunctions of , with and ( Hsing and Eubank (2015)).
Moreover,
where is the Kronecker delta.
Therefore, if we denote , is an orthonormal basis for , and the hypersurfaces in Eq. (2), as elements of , can be represented as
(9) 
The basis is determined by the RKHS where our functions are included and a generalization to our vectorvalued case of Theorems 4.4.7 and 4.6.8 in Hsing and Eubank (2015) can be proved. Because our functional data are of the form
, these results ensure that the truncated eigenvalueeigenvector decomposition provides the best approximation to
and, as a result, the truncation of Eq. 9 reduces the dimension in an optimal way.5.2 Basis from the Operator integral of the Covariance function
Our functional data are realizations of random variables that take values in a vectorvalued RKHS. Classical
FPCA is based on the eigenvalueeigenvector decomposition of the integral operator of the covariance function. We will show that this operator is also well defined in the case of random elements in vectorvalued RKHS and the Karhunen Lóeve Theorem is fulfilled ( Hsing and Eubank (2015)). The eigenvectors of the decomposition of this operator are different from those of the covariance operator (see Hsing and Eubank (2015) page 197) and, as a result, they do not form a base of . We will prove that they are included in and then we will calculate the inner products in Eq. 8 with respect to the norm.It is known that a random element of is a stochastic process (Hsing and Eubank (2015)). Therefore, we could consider the covariance functions , . Let be the matrix whose elements are . Then is a symmetric and nonnegativedefinite vectorvalued function. We consider the integral operator :
By again using the eigenvalueeigenvector decomposition for a selfadjoint compact operator ( Quang et al. (2010); Hsing and Eubank (2015)), the eigenfunctions of the operator , form an orthonormal basis for , that is, .
Because :
(10) 
As is a symmetric and nonnegativedefinite function, we can consider the vectorvalued RKHS associated with the kernel , ( Aronszajn (1950)). Assuming that is continuous, it is known that ( Lukić and Beder (2001)), and then .
The inner products satisfy the following relationship with respect to the products in :
(11) 
The basis given by the integral operator defined from the covariance functions depends on the random sample, and the Karhunen Lóeve Theorem guarantees that there are random variables with mean zero, decreasing variances and uncorrelated such that:
and as a result, the truncated development of Eq. 10 is optimal in this regard.
As usual in practice, the coefficients are estimated using the matrix approach to the covariance function ( Barahona et al. (2017a)).
This basis has some drawbacks, as mentioned in the introduction. When we use the PCA approach in logistic or multinomial functional generalized linear models, there is no guarantee that the separation between groups will be in the direction of the highvariance PCs. Moreover, following the covariance procedure, only linear relations are captured ( González (2010)).
5.3 Mixed basis
In the preceding subsections we have seen that we can express a function representing a hypersurface as an infinite linear combination with respect to two different bases: , which depends on the random sample and is related to the covariance operator, and , which is determined by the kernel that defines the RKHS. Both of them have different optimality properties. The aim of this section is to obtain a new basis , from a relationship between both operators and . This expression will represent a compromise between the optimality given by the sample information and the one given by the RKHS in which our functions are included.
Define the linear operator and let be the eigenvalueeigenvector pairs of .
As a consequence of Mercer’s theorem, we have ( Quang et al. (2010)). Then, since , we have .
Note that if we assume that the operators and are perfectly aligned, that is, they share the same ordered set of eigenfunctions , then
In this case, and the three bases , and used in the application coincide.
From the basis we will define in Theorem 5.1, a new set of functions in , , which generate all the functions in , and from which we will obtain a relationship (“simultaneous diagonalization”) between the operators and .
Theorem 5.1
Let be the eigenvalueeigenvector pairs of .
Define .
Then, , where ,
and
Proof. Details regarding operators and proof of the theorem can be found in the appendix.
As in the preceding subsection, the products of vectors , which are not necessarily orthonormal with respect to the metric, satisfy a similar equation to Eq. 11.
Similar bases to those used in Subsections 5.2 and 5.3 have been considered in Yuan and Cai (2010) and Cai and Yuan (2012), but in a different framework. In these papers the authors consider a prediction problem in FDA where the functional predictor is a real function defined over a domain in , and the slope function is also a real function which is assumed to reside in a realvalued RKHS. In our case, both the functional predictor and the slope are vectorvalued functions in a vectorvalued RKHS. Then, a metric defined in the vectorvalued RKHS is used instead of the metric.
6 Application
We revisit the motivating example presented in Section 2 and apply the proposed modeling approach.
As stated in Section 2, the points representing the surface of each child were grouped into 2766 triangles, forming a mesh. If denote the vertices of the th oriented triangle for a child , the center of this triangle was defined as and its area vector (that is, its unit normal vector, scaled by its area) was , (see Fig. 2).
Then, each child’s body surface was associated with a function in , where the points differ from one hypersurface to another. All these vector fields were represented in the same sample grid of points chosen in the compact subset , so that each was approximated by a smooth function evaluated on this common grid (Sec.3). In this case we considered and the grid was defined on this domain considering a set of points separated by a fixed gap in the three dimensions. So a grid with points was obtained (see Fig. 3).
A Gaussian kernel, was used in the definition of the operatorvalued reproducing kernels (Eq. 1) and the value of the parameter was chosen by crossvalidation.
The robustness of this representation regarding the preprocessing parameters and the kernel assumption has been discussed in (Barahona et al., 2017b) and Barahona et al. (2017a), using a data base with much simpler geometrical objects and so with much less computational cost.
In Section 5, it has been seen that we can express a function by representing a surface as an infinite linear combination with respect to a basis of that is determined by the RKHS (Sec. 5.1), with respect to a basis of that depends on the random sample (Sec. 5.2), and with respect to a basis of found from both nonnegativedefinite operators (Sec. 5.3).
As our aim is to predict the goodness of fit of a given shirt size for the th child as small (), good fit () or large () as a function of the garment size, the age of the child, his/her body shape and his/her sex, we will get three different models depending on the basis used to express the children’s body surface in the RKHS. Following the notation used in Section 4, let us denote the basis used each time with , and the corresponding coefficients for the th surface with . we will consider ’case 1’, where and (as in Eq. 9), ’case 2’, where and (as in Eq. 10), and ’case 3’, where and (as in Theorem 5.1). Since much of the information inherent in the original data is captured by the first few functional components and their associated coefficients, these bases are truncated with a low number of terms. In ’case 1’, the approach is truncated considering elements in the basis. In ’case 2’, elements are considered in the basis and in ’case 3’ elements are also considered. Then, Eq. (7) to include functional and nonfunctional predictors in the model become:
with , , , and , parameters to estimate.
This model assumes independent observations, but in our case several measurements are taken on each child, so this model is modified to overcome this fact into the following cumulative link mixed model (Agresti, 2010):
where is the number of observations taken on the th child, and the child’s effects are assumed to be random, independent and identically distributed following a Gaussian distribution, i.e. .
The clmm function of the Rpackage ordinal ( Christensen (2015)) is used to fit the model in all three cases.
Additionally, a leaveoneout crossvalidation (CV) analysis is performed to check the predictive power of the model for the different bases. For each basis, the model is iteratively estimated taking into account all the data except for the observations available for each child in turn and a prediction is made for the different observations of this child (i.e. the model selection is performed within the CV and the predictions are completely outofsample). A percentage of agreement between predictions and real observations is computed and used to evaluate the different cases (see table 1).
Case 1  Case 2  Case 3  
Prediction  Prediction  Prediction  
1  0  1  1  0  1  1  0  1  

1  47  16  1  51  12  1  51  12  1  
0  10  41  10  11  38  12  10  39  12  
1  1  12  54  0  13  54  1  11  55  
of agreement 
As can be seen, although in the functional data analysis literature, the basis of eigenfunctions of the covariance function is one of the most commonly used to approach functional observations, and to work with them, we have found two additional bases, and we have obtained a similar predictive power for this particular application with all of them. Although the differences are quite small, the results are slightly better with the mixed basis, as initially expected.
6.1 Robustness against the number of points in the grid
To evaluate the influence of the gap that determines the number of points in the grid, we have repeated the previous procedure for two additional values: and . The experimental results shown in Table 3 reflect that the procedure is robust enough and the fact that better results are obtained from a balance between small and large values of .


of agreement  
Case 1  Case 2  Case 3  
100  450  71.88%  69.79%  71.35%  
200  90  73.96%  74.48%  75.52%  
250  60  70.31%  69.79%  70.83% 
6.2 Comparison with other methods
The European Standard CEN  EN 134023, establishes tables for body measurements and intervals to be used for compiling standard garment sizes for men, women, boys, girls and infants. Additionally, each brand usually has its own sizing chart that relates consecutive ranges of the main anthropometric measurements with size assignations. So, several new technologies and online services have been developed in recent years to address the selection of proper garment sizes or models based on the user’s anthropometric measurements (see, for instance, www.fits.me). In the case of Tshirts, shirts and/or blouses, the main anthropometric dimensions established by the European standard are height, chest and neck for boys, and height and bust for girls.
In Pierola et al. (2016)
, the authors used ordered logistic regression and random forest methodologies to predict a garment’s goodness of fit from the differences between the measurements of the reference mannequin for the evaluated size and the child’s anthropometric measurements.
Following this line, we could also have used different children’s anthropometric measurements to fit a mixed proportional odds model, as in
McCullagh (1980). So if denotes the response as (small (1)/good (0)/large (1)) fit of a shirt size for the child, and denotes a vector of explicative variables formed by the sex of the child, his/her age and the values of the 27 anthropometric measurements considered by Pierola et al. (2016), we could have fitted:(12)  
where once again is the number of observations taken on the th child, and the child’s effects are assumed to be random, independent and identically distributed following a Gaussian distribution, i.e. .
Performing a leaveoneout crossvalidation study, choosing the model on each step by a forward stepwise model selection based on likelihood ratio tests ( Christensen (2015)), we obtain worse results than those obtained with our methodology. The percentage of correct classifications is now (see table 3).
As in our case, many problems in medical imaging analysis and computer vision involve the classification of bodies (geometrical objects with bounded boundaries), based on their size and shape. Several mathematical frameworks have been proposed in the literature to deal with such objects, three of these being the most widely used. Firstly, functions can be used to represent closed contours of the objects (curves in 2D and surfaces in 3D). Secondly, geometrical objects can be treated as compact subsets of
and, finally, these geometrical objects can be characterized by sequences of points with certain geometrical or anatomical properties (landmarks).In our application, we are working with rigidly aligned 3D homologous avatars with anatomical onetoone vertex correspondence among them ( Ballester et al. (2014)), so we can consider these 1423 points as landmarks, and define as the configuration matrix of the th child. As the shape of an object is all the geometric information that remains invariant with translations, rotations and changes of scale, the shape space and sizeandshape space are not flat Euclidean spaces, so classical statistical methods cannot be directly applied to the manifoldvalued data ( Pennec (2006)). However, if the sample has little variability, the problem can be transferred to a tangent space (at the Procrustes mean of these shapes or sizeandshapes, for example) and then standard multivariate procedures can be performed in this space ( Dryden and Mardia (2016)), such as Principal Component Analysis (PCA), where the first PC scores, which summarize most of the variability in the tangent plane data, are usually chosen in order to reduce the dimensionality of the data set.
The tangent space is defined from a point called pole, so the distance from the shape to the pole is preserved. As one moves away from the pole, the Euclidean distances between some pairs of points in the tangent space are smaller than their corresponding shape distances. This distortion becomes larger as one considers points further from it. For this reason, the pole should be taken close to all of the points and the mean of the observed shapes is the best choice ( Dryden and Mardia (2016)).
So, given the configuration matrices , the size of each child is obtained and the full Procrustes mean shape is computed. Then, the coordinates of the projection of onto the tangent plane defined at its corresponding mean shape is obtained. The first PC scores of these coordinates are calculated and they will be used as covariates in our predictive model. The first PC components that explain of the variability are considered.
So, given the response variable with ordered categories and given the garment size to evaluate and a vector with the child’s size, his/her sex, his/her age and the first PC scores of his/her coordinates in the tangent space, we can fit the model given by Eq. 12.
Once again, performing a leaveoneout crossvalidation study using this model, we obtain worse results than those obtained with our methodology. The percentage of correct classification is now (see table 3).
Multivariate  Landmarks  
Prediction  Prediction  
1  0  1  1  0  1  

1  47  12  3  48  14  2  
0  13  31  15  14  34  13  
1  1  15  49  0  21  46  
of agreement 
7 Discussion
In this paper we have proposed a new methodology for modeling an ordinal response variable in terms of 3D geometrical objects. It is based on their characterization by means of currents and the expression of each geometrical object in terms of three different bases of functions that generate the corresponding vectorvalued RKHS.
Firstly, the predictors were expressed in the orthonormal basis given by the kernel of the RKHS. Secondly, we used a basis obtained in a similar way as the usual basis given by the covariance kernel in the scalar setting. Thirdly, a basis of functions that connect the benefits of the two previous expressions was sought by “simultaneous diagonalization” of operators. The coefficients of each geometrical predictor in relation to the three bases of functions were estimated. The goodness of the method was checked by leaveoneout crossvalidation.
Then, it was applied to predict whether the size fits a customer or is too large or small for him/her, which is useful for an application to online clothing sales. This was done using a 3D training database obtained from an anthropometric survey of the Spanish child population. The results were quite promising, taking into account the difficulty of the application. Although the results obtained are quite similar with the three bases tested, as expected they are slightly better with the mixed basis. In near future this methodology could be incorporated into the mobile application (kidsize) recently developed by the Biomechanical Institute of Valencia.
We compare our methodology with another two methods traditionally used in biometric size determination. The first is based on considering children’s anthropometric measurements and classical ordinal regression. The second is based on landmark configuration and its projection in the tangent space where classical multivariate statistical methods can be applied. In both cases, the classification results obtained are slightly worse than those obtained with the methodology developed in this paper.
It is important to note that the success of the three bases proposed in our methodology depends on the data and the application, so our suggestion to practitioners would be to check the performance of all of them for each particular problem.
Appendix A Theorem 5.1
Before starting with the proof of the Theorem 5.1, let us recall some definitions regarding operators. If an operator is nonnegative, there is a unique nonnegative operator , called the squareroot of the operator, such that , and it commutes with any operator that commutes with . When an operator is bijective, there is an operator , called the inverse operator, such that and are the identity operator.
Due the fact that is compact, positivedefinite and selfadjoint, the operator can be defined, and it works as follows:
is also compact, positivedefinite and selfadjoint.
Note that and are injective because they are positivedefinite (their eigenvalues are strictly positive). Hence, restricting their arrival spaces to their respective images converts them into bijective operators on preHilbert spaces. These restricted operators will also be denoted by and ; then, there are the inverse operators o , , and we have
Proof of Theorem 5.1.
Since and , we prove that, for all .
Moreover, is selfadjoint and is an orthogonal system. Thus,
Finally, if ,
being an orthogonal basis of with respect to the metric and using the definition of .
References
 Agresti (2010) Agresti, A. (2010). Analysis of ordinal categorical data, volume 656. John Wiley & Sons.
 Aguilera et al. (1996) Aguilera, A. M., Gutiérrez, R., and Valderrama, M. J. (1996). Approximation of estimators in the pca of a stochastic process using bsplines. Communications in StatisticsSimulation and Computation, 25(3), 671–690.
 Aronszajn (1950) Aronszajn, N. (1950). Theory of reproducing kernels. Transactions of the American Mathematical Society, pages 337–404.
 Baddeley and Molchanov (1998) Baddeley, A. and Molchanov, I. (1998). Averaging of random sets based on their distance functions. Journal of Mathematical Imaging and Vision, 8, 79–92.
 Ballester et al. (2014) Ballester, A., Parrilla, E., Uriel, J., Pierola, A., Alemany, S., Nacher, B., Gonzalez, J., and Gonzalez, J. C. (2014). 3dbased resources fostering the analysis, use, and exploitation of available body anthropometric data. In 5th international conference on 3D body scanning technologies.
 Ballester et al. (2016) Ballester, A., Parrilla, E., Piérola, A., Uriel, J., Pérez, C., Piqueras, P., Nácher, B., Vivas, J. A., and Alemany, S. (2016). Datadriven threedimensional reconstruction of human bodies using a mobile phone app. International Journal of the Digital Human, 1(4), 361–388.
 Barahona et al. (2017a) Barahona, S., Centella, P., GualArnau, X., Ibáñez, M. V., and Simó, A. (2017a). Classification of geometrical objects by integrating currents and functional data analysis. An application to a 3D database of Spanish child population. ArXiv eprints 1707.02147. URL http://arxiv.org/abs/1707.02147.
 Barahona et al. (2017b) Barahona, S., GualArnau, X., Ibáñez, M. V., and Simó, A. (2017b). Unsupervised classification of children’s bodies using currents. Advances in Data Analysis and Classification, pages 1–33.
 Bookstein (1978) Bookstein, F. (1978). Lecture notes in biomathematics. In The measurement of biological shape and shape change. SpringerVerlag.

Cai and Yuan (2012)
Cai, T. T. and Yuan, M. (2012).
Minimax and adaptive prediction for functional linear regression.
Journal of the American Statistical Association, 107(499), 1201–1216. 
Cardot and Sarda (2005)
Cardot, H. and Sarda, P. (2005).
Estimation in generalized linear models for functional data via
penalized likelihood.
Journal of Multivariate Analysis
, 92(1), 24–41.  Cardot et al. (1999) Cardot, H., Ferraty, F., and Sarda, P. (1999). Functional linear model. Statistics & Probability Letters, 45(1), 11–22.
 Christensen (2015) Christensen, R. H. B. (2015). ordinal—regression models for ordinal data. R package version 2015.628. http://cran.rproject.org/package=ordinal/.
 Cristianini and ShaweTaylor (2000) Cristianini, N. and ShaweTaylor, J. (2000). An introduction to support vector machines and other kernelbased learning methods. Cambridge university press.
 Cucker and Smale (2001) Cucker, F. and Smale, S. (2001). On the mathematical foundations of learning. American Mathematical Society, 39(1), 1–49.
 Dou et al. (2012) Dou, W. W., Pollard, D., Zhou, H. H., et al. (2012). Estimation in functional regression for general exponential families. The Annals of Statistics, 40(5), 2421–2451.
 Dryden and Mardia (2016) Dryden, I. L. and Mardia, K. V. (2016). Statistical Shape Analysis: With Applications in R. John Wiley & Sons.
 Durrleman (2010) Durrleman, S. (2010). Statistical models of currents for measuring the variability of anatomical curves, surfaces and their evolution. PhD thesis, Université Nice Sophia Antipolis.
 Durrleman et al. (2009) Durrleman, S., Pennec, X., Trouvé, A., and Ayache, N. (2009). Statistical models of sets of curves and surfaces based on currents. Medical image analysis, 13(5), 793–808.
 Escabias et al. (2004) Escabias, M., Aguilera, A. M., and Valderrama, M. J. (2004). Principal component estimation of functional logistic regression: discussion of two different approaches. Journal of Nonparametric Statistics, 16(34), 365–384.
 Ferraty and Vieu (2006) Ferraty, F. and Vieu, P. (2006). Nonparametric functional data analysis: theory and practice. Springer Science & Business Media.
 Glaunes and Joshi (2006) Glaunes, J. A. and Joshi, S. (2006). Template estimation form unlabeled point set data and surfaces for computational anatomy. In 1st MICCAI Workshop on Mathematical Foundations of Computational Anatomy: Geometrical, Statistical and Registration Methods for Modeling Biological Shape Variability.
 González (2010) González, J. (2010). Representing functional data in reproducing Kernel Hilbert spaces with applications to clustering, classification and time series problems. PhD thesis, Universidad Carlos III de Madrid.
 GualArnau et al. (2013) GualArnau, X., HeroldGarcía, S., and Simó, A. (2013). Shape description from generalized support functions. Pattern Recognition Letters, 34(6), 619–626.
 Hsing and Eubank (2015) Hsing, T. and Eubank, R. (2015). Theoretical foundations of functional data analysis, with an introduction to linear operators. John Wiley & Sons.
 James (2002) James, G. M. (2002). Generalized linear models with functional predictors. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 64(3), 411–432.
 Jolliffe (2002) Jolliffe, I. (2002). Principal component analysis. Wiley Online Library.
 Kendall (1984) Kendall, D. G. (1984). Shape manifolds, Procrustean metrics, and complex projective spaces. Bulletin of the London Mathematical Society, 16(2), 81–121.
 Kindratenko (2003) Kindratenko, V. (2003). On using functions to describe the shapes. J. Math. Imaging Vision, 18, 225–245.
 Loncaric (1998) Loncaric, S. (1998). A survey of shape analysis techniques. Pattern recognition, 31(8), 983–1001.
 Lukić and Beder (2001) Lukić, M. and Beder, J. (2001). Stochastic processes with sample paths in reproducing kernel hilbert spaces. Transactions of the American Mathematical Society, 353(10), 3945–3969.
 MATLAB (2015) MATLAB (2015). version 8.6.0 (R2015b). The MathWorks Inc., Natick, Massachusetts.
 McCullagh (1980) McCullagh, P. (1980). Regression models for ordinal data. Journal of the royal statistical society. Series B (Methodological), pages 109–142.
 McCullagh and Nelder (1989) McCullagh, P. and Nelder, J. (1989). Generalised linear models. Second edition. London: Chapman and Hall.
 Molchanov (2006) Molchanov, I. (2006). Theory of random sets. Springer Science & Business Media.
 Morris (2015) Morris, J. S. (2015). Functional regression. Annual Review of Statistics and Its Application, 2, 321–359.
 Nelder and Wedderburn (1972) Nelder, J. and Wedderburn, R. (1972). Generalized linear models. Journal of the Royal Statistical Society. Series A, pages 370–384.
 Ocaña et al. (1998) Ocaña, F. A., Valenzuela, O., and Aguilera, A. M. (1998). A wavelet approach to functional principal component analysis. In COMPSTAT, pages 413–418. Springer.
 Parzen (1961) Parzen, E. (1961). An approach to time series analysis. The Annals of Mathematical Statistics, pages 951–989.
 Pennec (2006) Pennec, X. (2006). Intrinsic statistics on riemannian manifolds: Basic tools for geometric measurements. J. Math. Imaging Vis., 25, 127–154.
 Pierola et al. (2016) Pierola, A., Epifanio, I., and Alemany, S. (2016). An ensemble of ordered logistic regression and random forest for child garment size matching. Computers & Industrial Engineering, 101, 455–465.
 Preda (2007) Preda, C. (2007). Regression models for functional data by reproducing kernel hilbert spaces methods. Journal of statistical planning and inference, 137(3), 829–840.
 Quang et al. (2010) Quang, M. H., Kang, S. H., and Le, T. M. (2010). Image and video colorization using vectorvalued reproducing kernel hilbert spaces. Journal of Mathematical Imaging and Vision, 37(1), 49–65.
 R Core Team (2017) R Core Team (2017). R: A Language and Environment for Statistical Computing. R Foundation for Statistical Computing, Vienna, Austria. URL https://www.Rproject.org/.
 Ramsay and Silverman (2005) Ramsay, J. and Silverman, B. (2005). Functional Data Analysis. Second edition. Springer.
 Serra (1982) Serra, J. (1982). Image Analysis and Mathematical Morphology. Academic Press.
 Simó et al. (2004) Simó, A., De Ves, E., and Ayala, G. (2004). Resuming shapes with applications. Journal of Mathematical Imaging and Vision, 20(3), 209–222.
 Steinwart and Christmann (2008) Steinwart, I. and Christmann, A. (2008). Support vector machines. Springer Science & Business Media.
 Vaillant and Glaunès (2005) Vaillant, M. and Glaunès, J. (2005). Surface matching via currents. In Information Processing in Medical Imaging, pages 381–392. Springer.
 Yuan and Cai (2010) Yuan, M. and Cai, T. T. (2010). A reproducing kernel hilbert space approach to functional linear regression. The Annals of Statistics, 38(6), 3412–3444.
Comments
There are no comments yet.