Journal of Mathematical Imaging and Vision (2020) 62:376–394 https://doi.org/10.1007/s10851-019-00902-2 On Orthogonal Projections for Dimension Reduction and Applications in Augmented Target Loss Functions for Learning Problems A. Breger1·J. I. Orlando2·P. Harar3·M. Dörfler1·S. Klimscha2·C. Grechenig2·B. S. Gerendas1,2 · U. Schmidt-Erfurth2·M. Ehler1 Received: 30 December 2018 / Accepted: 16 August 2019 / Published online: 23 October 2019 © The Author(s) 2019 Abstract The use of orthogonal projections on high-dimensional input and target data in learning frameworks is studied. First, we investigate the relations between two standard objectives in dimension reduction, preservation of variance and of pairwise relative distances. Investigations of their asymptotic correlation as well as numerical experiments show that a projection does usually not satisfy both objectives at once. In a standard classification problem, we determine projections on the input data that balance the objectives and compare subsequent results. Next, we extend our application of orthogonal projections to deep learning tasks and introduce a general framework of augmented target loss functions. These loss functions integrate additional information via transformations and projections of the target data. In two supervised learning problems, clinical image segmentation and music information classification, the application of our proposed augmented target loss functions increases the accuracy. Keywords Orthogonal Projection ·Dimension reduction ·Preservation of data characteristics ·Supervised learning ·Target features 1 Introduction Linear dimension reduction is commonly used for preprocessing of high-dimensional data in complicated learning frameworks to compress and weight important data features. In contrast to nonlinear approaches, the use of orthogonal projections is computationally cheap, since it corresponds to a simple matrix multiplication. Conventional approaches apply specific projections that preserve essential information and complexity within a more compact representation. The projector is usually selected by optimizing distinct objectives, such as information preservation of the sample variance or of pairwise relative distances. Widely used orthogonal projections for dimension reduction are variants of the prin- BA. Breger
[email protected] 1Department of Mathematics, University of Vienna, Vienna, Austria 2Department of Ophthalmology, Medical University of Vienna, Vienna, Austria 3Department of Telecommunications, Brno University of Technology, Brno, Czech Republic cipal component analysis (PCA) that maximize the variance of the projected data [37]. Preservation of relative pairwise distances asks for a near-isometric embedding, and random projections guarantee this embeddings with high probability, cf. [5,15]andseealso[1,6,12,27,30,35]. The use of random projections is especially favorable for large, highdimensional data [48], since the computational complexity is just O(dkm), e.g., using the construction in [1], with d,k∈Nbeing the original and lower dimensions and m∈Nthe number of samples. In contrast, PCA needs O(d2m)+O(d3)operations [24]. Moreover, tasks that do not have all data available at once, e.g., data streaming, ask for dimension reduction methods that are independent of the data. In the present manuscript, we study orthogonal projections regarding the interplay between (O1) preservation of variance, (O2) preservation of pairwise relative distances, aiming for a sufficient lower-dimensional data representation. We shall consider the Euclidean distance exclusively since it is most widely used in applications, especially 123
Journal of Mathematical Imaging and Vision (2020) 62:376–394 377 for error estimation. On manifolds, the geodesic distance is locally equivalent to the Euclidean distance. The two objectives (O1) and (O2) are directly addressed by PCA (O1) and random projections (O2). We achieve the following goals: First, we clarify mathematically and numerically that the two objectives are competing, i.e., PCA and random projections preserve different kinds of information. Depending on the objectives, we discuss beneficial choices of orthogonal projections and numerically find a balancing projector for a given data set. Finally, we define a general framework of augmented target (AT) loss functions for deep neural networks that integrate information about target characteristics via features and projections. We observe that our proposed methodology can increase the accuracy in two deep learning problems. In contrast to conventional approaches, we study the joint behavior of the two objectives with respect to the entire set of orthogonal projectors. By analyzing the correlation between the variance and pairwise relative distances of projected data, we observe that (O1) and (O2) are competing and usually cannot be reached at the same time. In classification experiments with support vector machine and shallow neural networks, we investigate heuristic choices of projections applied to the input features. In view of learning frameworks, we utilize features and projections on target data. The class of augmented target loss functions incorporates suitable transformations and projections that provide beneficial representations of the target space. It is applied in two supervised deep learning problems dealing with real-world data. The first experiment is a clinical image segmentation problem in optical coherence tomography (OCT) data of the human retina. Related principles of dimension reduction for other clinical classification problems in OCT have already been successfully applied in [9]. In the second experiment, we aim to categorize musical instruments based on their spectrogram; see [19] for related results. Our utilized augmented target loss functions can increase the accuracy in both experiments. The outline is as follows. In Sect. 2, we address the analysis of the competing objectives and Theorem 2.5 yields the asymptotic correlation between variance and pairwise relative distances of projected data. Section 3prepares for the numerical investigations by recalling t-designs as considered in [10], enabling subsequent numerics. Heuristic investigations on projected input used in a straightforward classification task are presented in Sect. 4. Our framework of augmented target loss functions as modified standard loss functions for deep learning is introduced in Sect. 5. Finally, in Sects. 6and 7we present classification experiments on OCT images and musical instruments using aligned augmented target loss functions. 2 Dimension Reduction with Orthogonal Projections To reduce the dimension of a high-dimensional data set x= {xi}m i=1⊂Rd,wemapxonto a lower-dimensional affine linear subspace ¯x+V, where ¯x:= 1 mm i=1xiis the sample mean and Vis a k-dimensional linear subspace of Rdwith k<d. This mapping is performed by an orthogonal projector p∈Gk,d, where Gk,d:= {p∈Rd×d:p2=p,p=p,rank(p)=k} denotes the Grassmannian, so that the lower-dimensional data representation is {¯x+p(xi−¯x)}m i=1⊂¯x+V,(2.1) with range(p)=V. A suitable choice of pwithin Gk,d depends on further objectives, i.e., which kind of information preservation shall be favored for subsequent analysis tasks. In the following, we consider two objectives associated with popular choices of orthogonal projectors for dimension reduction, in particular, random projectors and PCA. We will first observe that the two objectives are competing, especially in high dimensions, and then discuss consequences. 2.1 Objective (O1) The total sample variance tvar(x)of x={xi}m i=1⊂Rdis the sum of the corrected variances along each dimension: tvar(x):= 1 m−1 m i=1xi−¯x2.(2.2) PCA aims to construct p∈Gk,d, such that the total sample variance of (2.1) is maximized among all projectors in Gk,d. For other equivalent optimality criteria, we refer to [49]. The total sample variance of px ={pxi}m i=1⊂Vcoincides with the one of (2.1) and satisfies tvar(px)≤tvar(x) for all p∈Gk,d. Thus, PCA achieves optimal variance preservation. The total variance (2.2) can also be expressed via pairwise absolute distances: tvar(x)=1 m(m−1) i<j xi−xj 2.(2.3) Equally, it holds that tvar(px)=1 m(m−1) i<j p(xi)−p(xj) 2,(2.4) 123
378 Journal of Mathematical Imaging and Vision (2020) 62:376–394 which reveals that PCA maximizes the sample mean of the projected pairwise absolute distances. 2.2 Objective (O2) In contrast to pairwise absolute distances, the Johnson– Lindenstrauss lemma targets the global property of preservation of pairwise relative distances: Lemma 2.1 (Johnson–Lindenstrauss, cf. [15,35]). For any 0<<1, any k ≤d,m∈N, with 4log(m) 2/2−3/3≤k, and any set {xi}m i=1⊂Rd, there is a projector p ∈Gk,dsuch that (1−) xi−xj 2≤d k p(xi)−p(xj) 2≤(1+) xi−xj 2 (2.5) holds for all i <j. For small >0, the projector pin Lemma 2.1 yields that all of the m(m−1) 2pairwise relative distances d kp(xi)−p(xj)2 xi−xj2:i<j(2.6) are close to 1, i.e., the projection ppreserves all scaled pairwise relative distances well. A good choice of pin Lemma 2.1 is based on random projectors1P∼λk,d, where λk,ddenotes the unique orthogonally invariant probability measure on Gk,d. The following theorem is essentially proved by following the lines of the proof of Lemma 2.1 in [15] after replacing the constant 4 with (2+τ)2 in the respective bound on k. Theorem 2.2 For any 0<<1, any k ≤d,m∈Nand any 0<τwith (2+τ)2log(m) 2/2−3/3≤k, and any set {xi}m i=1⊂Rd, the random projector P ∼λk,d satisfies d kP(xi)−P(xj)2 xi−xj2:i<j∈[1−, 1+](2.7) with probability at least 1−1 mτ+1 mτ+1. 1We use lower case letters for samples and upper case letters for random vectors/matrices. Fig. 1 A trivial example of PCA distorting smaller distances. Choosing the first principal component, PCA projects the two-dimensional data points * onto the plane of the first eigendirection (−−). The Euclidean distances of the points lying on the diagonal are preserved, whereas the two points with smaller distances are projected onto a single point (the origin) The theorem tells that the preservation property of pairwise relative distances is achieved with high probability when choosing a random projection according to k;d. Note that the random choice is completely independent from the actual data set. 2.3 Competing Objectives A projector psatisfying the near-isometry property (2.5) implies (1−)k dtvar(x)≤tvar(px)≤(1+)k dtvar(x), so that the total variance of the projected data px is not preserved for k<d. In particular, with high probability a random projector P∼λk,ddoes not suit the objective of maximizing the total variance, and we even observe Etvar(Px)=k dtvar(x);see(A.2) in the Appendix. PCA does not guarantee any local geometric property, and distances between pairs of points can be arbitrarily distorted [1]; see [39] for more robust PCA. The preservation of larger distances is favored since PCA maximizes (2.4) among all p∈Gk,dand p(xi)−p(xj)≤xi−xjholds for all i<j. Close but distinct points could even be projected onto a single point, which violates the preservation of pairwise relative distances; see Fig. 1. To more quantitatively understand the relation between the two competing objectives, we consider the sample mean 123
Journal of Mathematical Imaging and Vision (2020) 62:376–394 379 Fig. 2 Competing properties: 10,000 random projections p∼λk,50 versus PCA (∗), plotted concerning tvar(px), M(p,x)and V(p,x).The normal distributed fixed data set xhas total variance tvar(x)=49.5. Random projections cluster around their expectation values (2.10), (2.11) and (2.12), marked by +(a) k=10 (b) k=20 (c) k=30 (d) k=40 (e) k=10 (f) k=20 (g) k=30 (h) k=40 and the uncorrected sample variance of the pairwise relative distances (2.6): M(p,x):= 2 m(m−1) i<j d kp(xi−xj)2 xi−xj2,(2.8) V(p,x):= 2 m(m−1) i<j d2 k2p(xi−xj)4 xi−xj4−M(p,x)2. (2.9) Recall that good preservation of the relative pairwise distances in (2.6)asksforM(p,x)being close to 1 and the variance V(p,x)being small. In the following, we analyze tvar(px),M(p,x)and V(p,x)and their expectations for random P∼λk,d. In Fig. 2, we see a simple numerical experiment, where we first create an independent, normally distributed fixed data set {xi}m i=1with xi∈Rdfor i=1,...,mand m=100, d=50. We then compute PCA, for k=10,20,30,40, as well as n=10,000 random projections pdistributed according to λk,50.InFig.2a–d, we can see that the more the kdiffers from d, the more the PCA and random projections differ concerning tvar(px)and M(p,x). Those differences may lead to diverse behavior in subsequent data analysis. Moreover, we compare M(p,x)and V(p,x)in Fig. 2e–h for the different k. We can see that again when kis much smaller than d, random projections and PCA differ more concerning the variance of pairwise distances V(p,x).For k=10, the variance for PCA is higher in comparison with random projections (Fig. 2e); for k=40 vice versa (Fig. 2h). Note that the theoretical bounds stated in Theorem 2.1 are much higher than the dimensions kused in the experiments, but the projections still preserve relative pairwise distances 123
380 Journal of Mathematical Imaging and Vision (2020) 62:376–394 very well. In [7], similar observations were made on empiric experiments with image and text data. The amount of variance kept in the principal components comparing real-world and random data has been experimentally studied, e.g., in [29] and [46]. Both studies determine that the difference occurs mainly in the first principal component. Remark 2.3 In the numerical example, we compare random projections and PCA directly, serving as the corresponding projections to the objectives (O1) and (O2). We observe that even for not so high-dimensional (d=50) data xand kd/2, PCA severely loses information in terms of total variance, i.e., more than 50% for k=10, and more importantly loses much more information on pairwise relative distances than random projections. If both types of information are of interest, pairwise relative distances and high total variance, one should therefore favor random projections over PCA for kd/2 to balance the two objectives (O1) and (O2) and vice versa. Note that with a large amount of data one might still want to favor random projectors since their construction is computationally much cheaper and independent from the data. On the other hand, if objective (O2) is negligible, e.g., tasks with very noisy data, then PCA would be the favorable choice for all k. Information of data can be quantified and expressed in different ways. One crucial part in dimension reduction is the decision of what kind of information shall be kept, which depends on several parameters including the quality of the data and the analysis task. Variants of PCA, focusing on the preservation of variance, have been widely used in real-world problems with big success, especially in denoising, when the preservation of all pairwise relative distances may be counterproductive, e.g., in dMRI imaging [51] and color filter array images [56]. Drawbacks are the necessity for all data being available from the start and the high computational costs. For very high-dimensional and large data sets, the computation of PCA is often not feasible. Besides the huge benefit of data independence and low computational cost when using random projections, the near-isometry property often allows to establish that the solution found in the low-dimensional space is a good approximation to the solution in the original space [1,34]. Algorithms in machine learning often need or benefit from sufficient estimates of pairwise distances, e.g., approximate nearest-neighbor problems, supervised classification [27] and subspace clustering [26]. In [32], algorithmic applications of near-isometry embeddings have been introduced. In [7], random projections have been successfully applied to noisy and noiseless text and image data. The experimental studies include the comparison of preservation of pairwise distances between random projections and PCA. The results coincide with our observations that for k>d/2 PCA is able to preserve the pairwise distances sufficiently, whereas for k<d/2 PCA distorts them. The smaller the k, the worse the distortion, whereas random projections preserve similarities still well for very small k, while being computationally much cheaper than PCA. One should point out again that favoring preservation of pairwise distances relies on the accuracy of the original distances. PCA and random projections are orthogonal projections favoring two different aims. We want to study in the context of the whole set of orthogonal projections if the two objectives (O1) and (O2) could be reached at the same time. We will see that the objectives act competing, and therefore we suggest a balancing projector for tasks that benefit from both objectives. 2.4 Covariances and Correlation Between Competing Objectives For further mathematical analysis, we first introduce a more general class of probability measures on Gk,dthat resemble λk,dsufficiently well: Definition 2.4 A Borel probability measure λon Gk,dis called a cubature measure of strength t if Gk,d f(p)dλk,d(p)=Gk,d f(p)dλ(p), for all f∈Polt(Rd2), where Polt(Rd2)denotes the set of multivariate polynomials of total degree tin d2variables. Existence of cubature measures is studied, for instance, in [17]. For random P, we now determine the expectation values for our three quantities of interest: tvar(Px),M(P,x)and V(P,x).IfP∼λand λis a cubature measure of strength at least 2, the identities (A.2) and (A.3) in the Appendix and a short calculation yield Etvar(Px)=k dtvar(x), (2.10) EM(P,x)=1,(2.11) EV(P,x)=ak,d1−4 m2(m−1)2 i<j l<rxi−xj xi−xj,xl−xr xl−xr2, (2.12) where ak,d=2d(d−k) k(d−1)(d+2). The expected sample variance in (2.12) satisfies EV(P,x)≤ak,d−→ 2 k,for d→∞. This asymptotic bound relates to Theorem 2.2 and alludes to a near-isometry property of the type (2.7)forksufficiently large. 123
Journal of Mathematical Imaging and Vision (2020) 62:376–394 381 Fig. 3 For x={xi}10 i=1⊂Rd with independent, normal distributed entries, we independently sample 10,000 random projectors pfrom λ10,d and plot M(p,x)versus tvar(px). The expectation values with respect to P∼λare marked with +. The correlation is already 0.9916 for d=50 and grows further when d increases, namely with values 0.9961,0.9985,0.9996 for d=100,200,500 (a) d=50 (b) d= 100 (c) d= 200 (d) d= 500 The following theorem provides a lower bound for random Pon the population correlation Corr(M(P,x), tvar(Px)) =Cov(M(P,x), tvar(Px)) √Var (M(P,x))√Var (tvar(Px)). (2.13) Theorem 2.5 Let x ={xi}m i=1⊂Rdbe pairwise different and let P ∼λ, with λbeing a cubature measure of strength at least 2.Ford ≥m(m−1) 2, the correlation (2.13)is bounded from below by mini=jxi−xj2 maxi=jxi−xj2−m(m−1) 2d·maxi=jxi−xj2 mini=jxi−xj2.(2.14) If {xi}m i=1⊂Rdare random points, whose entries are independent, identically distributed with finite 4-th moments that are uniformly bounded in d, then (2.14)converges towards 1in probability for d →∞. The strong correlation for large dimensions din the second part of Theorem 2.5 suggests that increasing tvar(Px)may also lead to increasing M(P,x); see Fig. 3for illustration. Thus, large projected total variance tvar(Px)and the preservation of scaled pairwise distances, i.e., M(P,x)being close to 1, are competing properties. As discussed in Sect. 2.3,the choice of which kind of information is favorable to preserve depends on the data and the task, e.g., denoising (O1) and nearest-neighbor classification (O2). PCA and random projections are extreme in preserving either (O1) or (O2). We will heuristically study the behavior of orthogonal projections balancing both objectives in the next section and will state a numerical experiment where a balancing projector yields the highest classification accuracy. Remark 2.6 The second part of Theorem 2.5 relates to the well-known fact that random vectors in high dimensions are almost orthogonal [4], and standard concentration of measure arguments may lead to more quantitative statements, cf. [52]. 3 Preparations for Numerical Experiments For the numerical experiments, we need finite sets of projectors that represent the overall space well, i.e., cover Gk,d properly. 123
382 Journal of Mathematical Imaging and Vision (2020) 62:376–394 3.1 Optimal Covering Sequences Let the covering radius of a set {pl}n l=1⊂Gk,dbe denoted by ({pl}n l=1):= sup p∈Gk,d min 1≤l≤np−plF,(3.1) where ·Fis the Frobenius norm. The smaller the covering radius, the better the set {pl}n l=1represents the entire space Gk,d, i.e., there are smaller holes and the points {pl}n l=1are better distributed within Gk,d. Following Lemma 2.1, we can connect finite sets of projections and their covering radius to the near-isometry property: Lemma 3.1 Let {pl}n l=1⊂Gk,dand denote := ({pl}n l=1). For any 0<<1, any m,k,d∈Nwith 4log(m) 2/2−3/3≤k≤d, and any {xi}m i=1⊂Rd, there is l0∈{1,...,n}such that (1−δ) xi−xj 2≤d k pl0(xi)−pl0(xj) 2 ≤(1+δ) xi−xj 2,i<j,(3.2) where δ=+2(1+)d k+d k2. Proof Given an arbitrary projector p∈Gk,d, there is an index l0∈{1,...,n}such that pl0x−px≤pl0−pFx≤x,x∈Rd. From here, standard computations imply Lemma 3.1.We omit the details. The accuracy of the near-isometry property in (3.2) depends on the covering radius. Therefore, a set {pl}n l=1∈ Gk,dwith a small covering radius is more likely to contain a projector with better preservation of pairwise relative distances. According to [11], it holds that2n−1 k(d−k)and we shall see next how to achieve this lower bound. A set of projectors {pl}n l=1⊂Gk,dis called a t-design if the associated normalized atomic measure 1 nn l=1δplis a cubature measure of strength t(see Definition 2.4); see [44] for general existence results. Any sequence of ti-designs {pi l}ni l=1⊂Gk,dwith ti→∞satisfies it−1 i,(3.3) 2We use the symbols and to indicate that the corresponding inequalities hold up to a positive constant factor on the respective righthand side. The notation means that both relations and hold. and moreover, the bound nitk(d−k) iholds, cf. [11,17]. To relate nito ivia ti, a sequence of ti-designs {pi l}ni l=1⊂Gk,d is called a low-cardinality design sequence if ti→∞and nitk(d−k) i,i=1,2,.... (3.4) For their existence and numerical constructions, we refer to [21] and [10,11]. According to [11], see also (3.3) and (3.4), any low-cardinality design sequence {pi l}ni l=1covers asymptotically optimal, i.e., in−1 k(d−k) i. Benefiting from the covering property, we will use lowcardinality design sequences as a representation of the overall space of orthogonal projectors Gk,d. 3.2 Linear Least Squares Fit With the linear least squares fit, we can directly gain information about the relation between M(p,x)and tvar(px)for a given data set x={xi}m i=1⊂Rdwhen pvaries. Given the two samples {tvar(p1x), . . . , tvar(pnx)},{M(p1,x),...,M(pn,x)}, (3.5) the linear least squares fitting provides the best fitting straight line, tvar(plx)≈s·M(pl,x)+γ, l=1,...,n, where sand γare determined by the sample variances and the sample covariance. If {pl}n l=1is a 2-design, then the sample (co)variances coincide with the respective population (co)variances for P∼λk,d; see Appendix A.3 for further details. It follows that s=Cov(M(P,x), tvar(Px)) Var (M(P,x)) with P∼λk,d,(3.6) γ=k dtvar(x)−s.(3.7) The quantities sand γcan be directly computed, where tvar(x)is given by (2.2) and the covariances are stated in Corollary A.1. Note that (3.6) and (3.7) are now independent of the particular choice of {pl}n l=1. The correlation between the two samples (3.5) yields additional information about their relation. As before, if {pl}n l=1 is a 2-design, then the sample correlation coincides with the population correlation (2.13)forP∼λk,d, cf. Appendix A.3. High correlation for a specific data set xsuggests that random projections and PCA preserve competing properties, 123
Journal of Mathematical Imaging and Vision (2020) 62:376–394 383 whose benefits need to be assessed for the specific subsequent task. 4 Numerical Experiments in Pattern Recognition We investigate the impact on classification accuracy when applying specific orthogonal projections to input data. The chosen real-world data yields a straightforward classification task, serving as a toy example for comparing the accuracy of several projected input data in simple learning frameworks. Projectors are chosen from a t-design in view of tvar(px) and M(p,x). For all computations made in this section, the ‘Neural Network’ and ‘Statistics and Machine Learning’ toolboxes in MATLAB R2017a are used. We use the publicly available iris data set from the UCI Repository of Machine Learning Database suitable for supervised classification learning. It consists of three classes with 50 instances each, where each class refers to a type of iris plant. The instances are described by four features resulting in the input samples {xi}150 i=1⊂R4and target samples {yi}150 i=1⊂{0,1}3. For comparison, we classify the diverse input data with support vector machine (SVM) and threelayer neural networks (NN) with 5 and 10 hidden units (HU). 4.1 Choice of Orthogonal Projection In the experiment, we use projections p∈G2,4reducing the original dimension from d=4tok=2. As a finite representation of the overall space, we use a t-design of strength 14 from a low-cardinality sequence (see Sect. 3.1) consisting of 8475 orthogonal projectors. Note that the dimension reduction in practice takes place by applying q∈Vk,dwith qq=p∈Gk,d, where Vk,d:= {q∈Rk×d:qq=Ik} denotes the Stiefel manifold. When taking norms, pand q are interchangeable, i.e., q(x)2=p(x)2, for all x∈Rd. Therefore, we can use w.l.o.g. the theory developed for p. The projections are chosen in a deterministic manner viewing the previously described competing properties. In Fig. 4, the quantities tvar(px)and M(p,x)are pairwise plotted for all projectors in {pl}8475 l=1. For comparison, we choose the following projections p∈{pl}8475 l=1⊂G2,4; see Fig. 4a for a visualization. p×closest to the expected values 1 and k dtvar(x)(see (2.10) and (2.11)), p♦preserving M(p,x)≈1 and maximizing tvar(px), ppreserving M(p,x)≈1 and minimizing tvar(px), ptvar(px)≈tvar(p♦x)and maximizing M(p,x), pminimal tvar(px), p∗maximal tvar(px)(PCA). 4.2 Results In Fig. 4b, we see the linear least squares fitting line, computed directly and via the slope and intercept as stated in (3.6) and (3.7). The correlation coefficient (2.13)is0.98, which suggests that preserving the two properties is highly competing and needs to be balanced. In Table 1, the classification results of the iris data are presented. We can see that in this comparison the projector p♦, which corresponds to preserving M(p,x)≈1 and maximizing tvar(px), yields the highest and most robust results. It even yields better results than working with the original input data. The projections that preserve M(p,x)≈1but do not take care of the magnitude of the total variance yield much worse results. On the other hand, the projections that just focus on high total variance still do not yield as high results as the projection p♦that balances both properties. Remark 4.1 Given a data set x, the projector p♦is a good choice to balance both objectives (O1) and (O2). It can be computed by directly analyzing {tvar(p1x),...,tvar(pnx)} Fig. 4 Projections {pl}8475 l=1⊂G2,4from a t-design of strength 14 evaluated on the iris data set x⊂R4×150 123
384 Journal of Mathematical Imaging and Vision (2020) 62:376–394 Table 1 Classification results of iris data, when using projected input data in support vector machine (SVM) and shallow neural networks (NN) Input/method NN (10 HU) NN (5 HU) SVM x(97.6, 1.25) (97.5, 2.29) (96.7, 0.15) p♦x (98.4, 0.42) (98.3, 2.15) (97.3, 0.06) p×x(88, 1.73) (87.9, 1.92) (87.6, 0.63) px(87.3, 9.56) (86.9, 10.81) (87.7, 0.42) px(96.8, 2.74) (96.7, 1.77) (96, 0.17) p∗x(PCA) (96.9, 1.36) (96.5, 4.07) (96, 0.37) px(62.1, 44.30) (58.9, 70.78) (56, 0.61) Mean and variance (×10−4) of 1000 independent NN runs and 100 independent runs with tenfold cross-validation in SVM Bold values indicate corresponding to the highest (=best) classification accuracy and {M(p1,x),...,M(pn,x)}of a finite covering {pl}n l=1 of Gk,d. For higher dimensions, an accurate representation of Gk,d, in order to heuristically select p♦, requires large computational costs. The least squares regression line for a 2-design, as stated in 3.7, can be directly computed with low computational cost. This offers helpful information about the interplay between (O1) and (O2). 5 Augmented Target Loss Functions In the previous section, projectors were applied to input features of shallow neural networks. In more complex architectures, such as deep neural networks, the adaption of weights can be viewed as optimization of input features, e.g., arising features can be used for transfer learning [54]. Whereas the input data are processed and optimized in each iteration, the target data stay usually unchanged during the whole learning process, serving as a measure of accuracy. The representation of the target data is one key property for successful approximation with neural networks. Here, we will introduce a general class of loss functions, i.e., augmented target (AT) loss functions, that use projections and features to yield beneficial representations of the target space, emphasizing important characteristics. In optimization problems, additional penalty terms are used for regularization or to enforce other constraints. In deep learning, weight decay (i.e., Tikhonov regularization) is a standard adaption of the loss function to that effect. Incorporating additional underlying information via features of the output/target data has been studied in diverse settings tailored to particular imaging applications. Perceptual loss functions have been used in [31] for image super-resolution, incorporating the comparison of high-level image features that arise from pretrained convolutional neural networks, i.e., the VGG network [45]. Deep perceptual similarity metrics have been proposed in [20] for generating images, comparing image features instead of the original images. In [28], a similar approach was successfully used for style transfer and super-resolution, adding a network that defines loss functions. Anatomically constrained neural networks (ACNN) have been introduced in [40] and applied to cardiac image enhancement and segmentation. Their loss functions incorporate structural information by using autoencoders to gain features about lower-dimensional parametrization of the segmentation. Brain segmentation was studied in [22], where information about the desired structure has been added in the loss function via an adjacency matrix. It was used for finetuning the supervised learned network with unlabeled data, reducing the number of abnormalities in the segmentation. The information of certain target characteristics can be very powerful and even replace the need of annotations in some tasks. In [47], label-free learning is approached by using just structural information of the desired output in the loss function instead of annotated target values. In the following, we will define a general framework of loss functions that add information of target characteristics via features and projections in supervised learning tasks. 5.1 General Framework Let the training data be input vectors {xi}m i=1⊂Rrwith associated target values {yi}m i=1⊂Rs. We consider training a neural network fθ:Rr→Rs, where θ∈RNcorresponds to the vector of all free parameters of a fixed architecture. In each optimization step for θ, the network’s output {ˆyi=fθ(xi)}m i=1⊂Rsis compared with the targets {yi}m i=1via an underlying loss function L. In contrast to ordinary learning problems with highly accurate target data, complicated learning tasks arising in many real-world problems do not yield sufficient results when optimizing neural networks with standard loss functions L, such as the widely used mean least squares error LMSE({yi}m i=1,{ˆyi}m i=1):= 1 m m i=1 yi−ˆyi 2.(5.1) The training data may include important information that is obvious for humans, but poorly represented within the original target data and therefore lacks consideration in the learning process. To overcome this issue, we propose to add information tailored to the particular learning problem represented by additional features of the outputs and targets. First, we select transformations Tj:Rs→Rt,j=1,...,d, 123
Journal of Mathematical Imaging and Vision (2020) 62:376–394 391 Suppose that Y2,...,YMare copies of Y1, not necessarily independent. Then, the union bound P$$$Yi2 √d−√dμ$$$≥cσ, for some i=1,...,M≤M c2 implies that √dμ−cσ≤mini(Yi)2 √d≤maxi(Yi)2 √d≤√dμ+cσ holds with probability at least 1 −M c2. Provided that √dμ= cσand 0 <√dμ−cσ, we deduce √dμ−cσ √dμ+cσ≤mini(Yi)2 maxi(Yi)2≤√dμ+cσ √dμ−cσ. We can choose c=μ σ 4 √d, since 0 <c≤4 √dμ σ≤√dμ σ. That directly yields 1−1 4 √d 1+1 4 √d≤mini(Yi)2 maxi(Yi)2≤ 1+1 4 √d 1−1 4 √d and holds with probability at least 1 −μ2M σ2√d. It follows directly that mini(Yi)2 maxi(Yi)2converges toward 1 in probability for d→∞, The choice {Y1,...,YM}={Xi−Xj:1≤i<j≤m} implies the second part of Theorem 2.5. A.3 Calculations for Population Covariances We notice that p(xi−xj)2=trace(pxix i−pxjx j)is a polynomial of degree 1 in p. Hence, tvar(px)in (2.4)isalso a polynomial of degree 1 in p.If{pl}n l=1is a 1-design, then the sample mean of {tvar(p1x),...,tvar(pnx)}satisfies 1 n n l=1 tvar(plx)=Etvar(Px), which is the population mean of tvar(Px), with P∼λk,d. Similarly, the term p(xi−xj)4is a polynomial of degree 2inp, so that (M(p,x))2in (2.8) is a polynomial of degree 2inp.If{pl}n l=1is a 2-design, then we derive n l=1 (M(pl,x))2−⎛ ⎝ n j=1 M(pl,x)⎞ ⎠ 2 =E(M(P,x))2−E⎛ ⎝ n j=1 M(P,x)⎞ ⎠ 2 , with P∼λk,d. In other words, the sample variance of {M(p1,x), . . . , M(pn,x)}coincides with the population variance Var(M(P,x)). Analogously, we deduce that the sample covariance of (3.5) coincides with the population covariance Cov(M(P,x), tvar(Px)) with P∼λk,d. References 1. Achlioptas, D.: Database-friendly random projections: Johnson– Lindenstrauss with binary coins. J. Comput. Syst. Sci. 66(4), 671– 687 (2003) 2. Bachoc, C., Ehler, M.: Tight p-fusion frames. Appl. Comput. Harmon. Anal. 35(1), 1–15 (2013) 3. Bagwell, C.: SoX: Sound eXchange the Swiss army knife of sound processing. https://launchpad.net/ubuntu/+source/sox/14.4. 1-5. Accessed 31 Oct 2018 4. Ball, K.: An elementary introduction to modern convex geometry. Flavors Geom. 31, 1–58 (1997) 5. Baraniuk, R.G., Wakin, M.B.: Random projections of smooth manifolds. Found. Comput. Math. 9, 941–944 (2006) 6. Baraniuk, R., Davenport, M., DeVore, R., Wakin, M.: A simple proof of the restricted isometry property for random matrices. Constr. Approx. 28(3), 253–263 (2008) 7. Bingham, E., Mannila, H.: Random projection in dimensionality reduction: applications to image and text data. In: Proceedings of the Seventh ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (New York, NY, USA), KDD ’01, ACM, pp. 245–250 (2001) 8. Bodman, B., Ehler, M., Gräf, M.: From low to high-dimensional moments without magic. J. Theor. Probab. 31(4), 2167–2193 (2017) 9. Breger, A., Ehler, M., Bogunovic, H., Waldstein, S.M., Philip, A., Schmidt-Erfurth, U., Gerendas, B.S.: Supervised learning and dimension reduction techniques for quantification of retinal fluid in optical coherence tomography images, Eye, Springer Nature (2017) 10. Breger, A., Ehler, M., Gräf, M.: Quasi Monte Carlo Integration and Kernel-based Function Approximation on Grassmannians, Frames and Other Bases in Abstract and Function Spaces, Applied and Numerical Harmonic Analysis Series (ANHA). Springer, Birkhauser (2017) 11. Breger, A., Ehler, M., Gräf, M.: Points on manifolds with asymptotically optimal covering radius. J. Complex. 48, 1–14 (2018) 12. Candès, E.J., Tao, T.: Decoding by linear programming. IEEE Trans. Inf. Theory 51(12), 4203–4215 (2005) 13. Caruana, R.: Multitask learning. Mach. Learn. 28(1), 41–75 (1997) 14. Chollet, F., et al.: Keras (2015) https://keras.io 15. Dasgupta, S., Gupta, A.: An elementary proof of a theorem of Johnson and Lindenstrauss. Random Struct. Algorithms 22(1), 60– 65 (2003) 16. Davis, J., Goadrich, M.: The relationship between precision-recall and roc curves. In: Proceedings of the 23rd International Conference on Machine Learning (New York, NY, USA), ICML ’06, ACM, pp. 233–240 (2006) 17. de la Harpe, P., Pache, C.: Cubature formulas, geometrical designs, reproducing kernels, and Markov operators, Infinite groups: geometric, combinatorial and dynamical aspects (Basel), vol. 248, Birkhäuser, pp. 219–267 (2005) 18. Dörfler, M., Bammer, R., Grill, T.: Inside the spectrogram: convolutional neural networks in audio processing. In: IEEE International Conference on Sampling Theory and Applications (SampTA), pp. 152–155 (2017) 123
392 Journal of Mathematical Imaging and Vision (2020) 62:376–394 19. Dörfler, M., Grill, T., Bammer, R., Flexer, A.: Basic filters for convolutional neural networks applied to music: training or design. Neural Comput. Appl. 1–14 (2018) 20. Dosovitskiy, A., Brox, T.: Generating images with perceptual similarity metrics based on deep networks. In: Proceedings of the 30th International Conference on Neural Information Processing Systems (USA), NIPS’16, Curran Associates Inc., pp. 658–666 (2016) 21. Etayo, U., Marzo, J., Ortega-Cerdà, J.: Asymptotically optimal designs on compact algebraic manifolds. J. Monatsh. Math. 186(2), 235–248 (2018) 22. Ganaye, P.-A., Sdika, M., Benoit-Cattin, H.: Semi-supervised learning for segmentation under semantic constraint. In: 21st International Conference, Granada, Spain, Sept 16–20, 2018, Proceedings, Part III, pp. 595–602 (2018) 23. Gerendas, B.S., Hu, X., Kaider, A., Montuoro, A., Sadeghipour, A., Waldstein, S.M., Schmidt-Erfurth, U.: Oct biomarkers predictive for visual acuity in patients with diabetic macular edema. Investig. Ophthalmol. Vis. Sci. 58(8), 2026–2026 (2017) 24. Golub, G.H., Van Loan, C.F.: Matrix Computations, Johns Hopkins Studies in the Mathematical Sciences. The Johns Hopkins University Press (1996) 25. Harar, P.: Orthovar (2018) https://gitlab.com/hararticles/orthovar 26. Heckel, R., Tschannen, M., Bölcskei, H.: Dimensionality-reduced subspace clustering. Inf. Inference: J. IMA 6, 246–283 (2017) 27. Hedge, C., Sankaranarayanan, A.C., Yin, W., Baraniuk, R.G.: Numax: a convex approach for learning near-isometric linear embeddings. IEEE Trans. Signal Process. 83, 6109–6121 (2015) 28. Johnson, J., Alahi, A., Fei-Fei, L.: Perceptual losses for real-time style transfer and super-resolution. In: ECCV (2016) 29. Karr, J.R., Martin, T.E.: Random numbers and principal components: further searches for the unicorn, Tech. report, United States Forest Service General Technical Report (1981) 30. Krahmer, F., Ward, R.: New and improved Johnson Lindenstrauss embeddings via the restricted isometry property. SIAM J. Math. Anal. 43(3), 1269–1281 (2011) 31. Ledig, C., Theis, L., Huszar, F., Caballero, J., Aitken, A.P., Tejani, A., Totz, J., Wang, Z., Shi W.: Photo-realistic single image superresolution using a generative adversarial network. In: 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 105–114 (2017) 32. Linial, N., London, E., Rabinovich, Y.: The geometry of graphs and some of its algorithmic applications. Combinatorica 15(2), 215– 245 (1995) 33. Long, J., Shelhamer, E., Darrell, T.: Fully convolutional networks for semantic segmentation. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3431–3440 (2015) 34. Mahoney, M.W.: Randomized algorithms for matrices and data. Found. Trends® Mach. Learn. 3(2), 123–224 (2011) 35. Matousek, J.: On variants of the Johnson–Lindenstrauss lemma. Random Struct. Algorithms 33(2), 142–156 (2008) 36. McFee, B., et al.: Librosa: 0.6.2 (2018) https://doi.org/10.5281/ zenodo.1342708 37. Moore, B.: Principal component analysis in linear systems: controllability, observability, and model reduction. IEEE Trans. Autom. Control 26, 17–32 (1981) 38. Navarrete, J.: The sox of silence (2009) https://digitalcardboard. com/blog/2009/08/25/the-sox-of-silence 39. Neumayer, S., Nimmer, M., Setzer, S., Steidl, G.: On the robust PCA and Weiszfeld’s algorithm.Appl. Math. Optim. 1–32 (2019) 40. Oktay, O., Ferrante, E., Kamnitsas, K., Heinrich, M., Bai, W., Caballero, J., Guerrero, R., Cook, S.A., de Marvao, A., Dawes, T., O’Regan, D., Kainz, B., Glocker, B., Rueckert, D.: Anatomically constrained neural networks (ACNN): application to cardiac image enhancement and segmentation. IEEE Trans. Med. Imaging 37, 384–395 (2018) 41. Pabst, G.: Parameters for Compartment-Free Pharmacokinetics- Standardisation of Study Design, Data Analysis and Reporting, ch. 5. Area Under the Concentration-Time Curve, pp. 65–80, Shaker Verlag (1999) 42. Picas, O.R., Rodriguez, H.P., Dabiri, D., Tokuda, H., Hariya, W., Oishi, K., Serra, X.: A real-time system for measuring sound goodness in instrumental sounds. In: Audio Engineering Society Convention 138, Audio Engineering Society (2015) 43. Ronneberger, O., Fischer, P., Brox, T.: U-net: convolutional networks for biomedical image segmentation (2015) arXiv:1505.04597 44. Seymour, P., Zaslavsky, T.: Averaging sets: a generalization of mean values and spherical designs. Adv. Math. 52, 213–240 (1984) 45. Simonyan, K., Zisserman, A.: Very deep convolutional networks for large-scale image recognition (2014) arXiv:1409.1556 46. Stauffer, D.F., Garton, E.O., Steinhorst, R.K.: Ecology: a comparison of principal components from real and random data. Ecology 66(6), 1693–1698 (1985) 47. Stewart, R., Ermon, S.: Label-free supervision of neural networks with physics and domain knowledge. In: AAAI (2017) 48. Thanei, G.-A., Heinze, C., Meinshausen, N.: Random Projections for Large-scale Regression, pp. 51–68. Springer, Cham (2017) 49. Udell, M.: Generalized low rank models, Ph.D. thesis, Stanford University (2015) 50. Varnousfaderani, E.S., Wu, J., Vogl, W.-D., Philip, A.-M., Montuoro, A., Leitner, R., Simader, C., Waldstein, S.M., Gerendas, B.S., Schmidt-Erfurth, U.: A novel benchmark model for intelligent annotation of spectral-domain optical coherence tomography scans using the example of cyst annotation. Comput. Methods Programs Biomed. 130, 93–105 (2016) 51. Veraart, Jelle, Novikov, Dmitry S., Christiaens, Daan, Ades-aron, Benjamin, Sijbers, Jan, Fieremans, Els: Denoising of diffusion MRI using random matrix theory. NeuroImage 142, 394–406 (2016) 52. Vershynin, R.: Introduction to the non-asymptotic analysis of random matrices. In: Eldar, Y., Kutyniok, G. (eds.) Compressed Sensing, Theory and Applications, pp. 210–268. Cambridge University Press, Cambridge (2012) 53. von Hornbostel, E.M., Sachs, C.: Classification of musical instruments: translated from the original german by anthony baines and klaus p. wachsmann. Galpin Soc. J. 3–29 (1961) 54. Yosinski, J., Clune, J., Bengio, Y., Lipson, H.: How transferable are features in deep neural networks? In: Proceedings of the 27th International Conference on Neural Information Processing Systems—Volume 2 (Cambridge, MA, USA), NIPS’14, MIT Press, pp. 3320–3328 (2014) 55. Zhang, Z., Sabuncu, M.: Generalized cross entropy loss for training deep neural networks with noisy labels. In: Advances in Neural Information Processing Systems (NIPS) 31 (2018) 56. Zhang, L., Lukac, R., Wu, X., Zhang, D.: Pca-based spatially adaptive denoising of cfa images for single-sensor digital cameras. IEEE Trans. Image Process. 18(4), 797–812 (2009) 57. ZyTrax Inc.: Frequency ranges (2018) http://www.zytrax.com/ tech/audio/audio.html Publisher’s Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. 123
Journal of Mathematical Imaging and Vision (2020) 62:376–394 393 A. Breger received her MSc degree in Mathematics from the University of Vienna in 2015, followed by a research position in collaboration with the Medical University of Vienna. She focuses on interdisciplinary research with her PhD studies on ’Dimension reduction with orthogonal projections and applications on medical images with learning tasks’. In 2019 she received a grant to work at the Laboratory of Mathematics in Imaging (LMI), Brigham and Women’s Hospital, Harvard Medical School, Boston (MA). J. I. Orlando obtained his Ph.D. in computational and industrial mathematics from Universidad Nacional del Centro de la Provincia de Buenos Aires (UNICEN), Tandil, Argentina. In 2018 and 2019, he has worked as a Postdoctoral Researcher at the Department of Ophthalmology of the Medical University of Vienna (Austria). He is currently a permanent researcher from the National Scientific and Technical Research Council (CONICET, Argentina), working at the research group Yatiris from Pladema Institute (UNICEN). His primary research interests include machine learning and computer vision applied to computer-assisted ophthalmology and medicine in general. P. Harar obtained a M.Sc. in System Engineering and Informatics from Brno University of Technology in 2015 before pursuing a Ph.D. at the Brain Diseases Analysis Laboratory on “Audio Classification with Deep Learning on Limited Data Sets”. He has been working at the Numerical Harmonic Analysis Group (University of Vienna) since 2018. His research focuses on medical audio analysis using deep learning methods and their development. M. Dörfler obtained her PhD in Mathematics from the University of Vienna and is a research assistant at the Mathematics Department of the University of Vienna. She is heading her own research group and is interested in the interplay between aspects of harmonic analysis and the design of learning algorithms based on convolutional neural networks. She has worked on audio signal processing and, being a musician herself, has been particularly interested in developing representations adapted to music applications. S. Klimscha is a team member of the OPTIMA lab and a resident at the Department of Ophthalmology, Medical University of Vienna. She obtained her MD degree at the Medical University of Vienna, Austria in July 2015, joined the OPTIMA team in January 2016 and is enrolled in the PhD Program for Medical Imaging. C. Grechenig obtained his MD degree at the Medical University of Graz, Austria in January 2017, and joined the Christian Doppler Laboratory for Ophthalmic Image Analysis (OPTIMA) in March 2018 and is enrolled in the PhD Program for Medical Imaging at the Medical University of Vienna. As a clinician he currently works as a retina resident at the Department of Ophthalmology and Optometry, Medical University of Vienna. 123
394 Journal of Mathematical Imaging and Vision (2020) 62:376–394 B. S. Gerendas is the Managing Director of the Vienna Reading Center at the Department of Ophthalmology, Medical University of Vienna since 2017. She completed Medical School in 2009 at the University of Heidelberg, Germany, where she in parallel obtained a Master of Science degree in Healthcare Management. Besides her PhD in Medical Physics, she is a board certified ophthalmologist/retina specialist and finished her habilitation (Assoc. Prof.) in 2018. Her primary research interests are in the field of retinal and choroidal imaging and (automated) image analysis as well as translational ophthalmic research in retinal diseases. U. Schmidt-Erfurth is Chair of the Department of Ophthalmology at the Medical University of Vienna, Austria. Her areas of expertise include surgical and medical retina and the development of innovative diagnostic techniques and treatment strategies for chorioretinal diseases. She is the Head of the Vienna Reading Center and the founder and leader of the OPTIMA project which introduces means of artificial intelligence into retinal imaging. She is the author of over 420 original articles. She has received numerous grants/awards and is a member of the American Academy of Ophthalmology, EURETINA, the European and the Austrian Academy of Sciences. M. Ehler After his PhD in mathematics in 2007, he received a 3 year PostDoctoral Fellowship at the National Institutes of Health in Bethesda/Maryland. His research efforts are guided by bridging gaps between theoretical and numerical mathematics and medical applications. Since 2013 he is the head of a Vienna Research Group for Young Investigators on computational harmonic analysis of high-dimensional biomedical data. At the end of 2017 he became Assoc. Professor at the Faculty of Mathematics at the University of Vienna. 123