원시데이터 수집 시스템
선정목록으로

A machine learning approach to color space Euclidization

관련 필름·전자재료 · (13) 프리즘 필름

기본 정보

저자
  1. Lia Ahrens — Department of Intelligent Networks German Research Center for Artificial Intelligence (DFKI) Kaiserslautern Germany|||Department of Intelligent Networks, German Research Center for Artificial Intelligence (DFKI), Kaiserslautern, Germany
  2. Julian Ahrens — Department of Intelligent Networks German Research Center for Artificial Intelligence (DFKI) Kaiserslautern Germany|||Department of Intelligent Networks, German Research Center for Artificial Intelligence (DFKI), Kaiserslautern, Germany
  3. Hans D. Schotten — Department of Electrical and Computer Engineering Rheinland‐Pfälzische Technische Universität Kaiserslautern‐Landau (RPTU) Kaiserslautern Germany|||Department of Intelligent Networks German Research Center for Artificial Intelligence (DFKI) Kaiserslautern Germany|||Department of Intelligent Networks, German Research Center for Artificial Intelligence (DFKI), Kaiserslautern, Germany
DOI
10.1002/col.22897
저널
Color Research & Application
발행년도
2023
발행기관
Wiley
피인용수
1
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1002/col.22897
토픽
Color Science and Applications
OpenAlex ID
W4386771408

평가 내용

관련도
관련
사업분야
필름·전자재료 · (13) 프리즘 필름
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 프리즘 필름' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Abstract In this work, a machine learning methodology is proposed for the issue of color space Euclidization. Given a color difference formula as reference distance law, the Euclidization task consists in finding an injective transformation from the original color space into a real vector space and the corresponding inverse transformation, such that the Euclidean distances in the embedded color space align with the reference color distances. For this, artificial neural networks are devised as function approximators for the color space transformations being sought. Training these neural networks is accomplished through unsupervised learning, making use of random sampling and gradient descent. As key disagreement measure, either the (symmetric) relative isometric disagreement or the standardized residual sum of squares (STRESS) index is considered at a time and incorporated as part of the optimization criterion into the objective function. Comparative evaluation is carried out on well‐established color distance laws, including the CIELAB‐based DE2000 color difference formula. The evaluation results indicate significant performance advantages of the proposed approach over previous contributions.

본문 100,745자

본문 펼치기
In this work, a machine learning methodology is proposed for the issue of color space Euclidization.Given a color difference formula as reference distance law, the Euclidization task consists in finding an injective transformation from the original color space into a real vector space and the corresponding inverse transformation, such that the Euclidean distances in the embedded color space align with the reference color distances.For this, artificial neural networks are devised as function approximators for the color space transformations being sought.Training these neural networks is accomplished through unsupervised learning, making use of random sampling and gradient descent.As key disagreement measure, either the (symmetric) relative isometric disagreement or the standardized residual sum of squares (STRESS) index is considered at a time and incorporated as part of the optimization criterion into the objective function.Comparative evaluation is carried out on well-established color distance laws, including the CIELAB-based DE2000 color difference formula.The evaluation results indicate significant performance advantages of the proposed approach over previous contributions. | INTRODUCTION The derivation of perceptually uniform color spaces is considered one of the key issues in colorimetry.Back in 1943, based on the experimental data collected by MacAdam, 1 Siberstein 2 constructed a curvilinear coordinate system on the CIE 1931 xy chromaticity diagram whose coordinate curves are parallel to the principal axes of the MacAdam ellipses.He also sketched a method for constructing a surface embedded in three-dimensional Euclidean space from this coordinate system, such that perceived color distances are faithfully represented by geodesics (shortest paths) on the surface.A key observation was that the resulting surface could never be flat and that its curvature would be of quite noticeable proportion.In the following decades, extensive research has been conducted on relating human visual color perception to a specified color coordinate system, which led to color models such as the CIELUV and CIELAB color spaces, 3 as well as the perceptually uniform color spaces (UCS) based on the CIECAM02 4 and CIECAM16 5 color appearance models.Accompanying the development of such models, refined color difference formulas were derived, augmenting the original color space and thereby allowing for more accurate predictions of visually perceived color differences.As a well-known instance of this, a series of color difference formulas based on the CIELAB color space came into existence, including the CMC, 6 BFD, 7 CIE94, 8 DIN99d, 9 and DE2000 10 color difference formulas, with the last one currently being recommended as standard by the International Commission on Illumination (CIE) for small color differences below 5 CIELAB-units (cf.Reference 11).One major concern over these performance-enhancing color difference formulas consists in the non-Euclidean nature of the corresponding metric spaces, which is rather undesirable in practical applications.If the original color space endowed with the considered color difference formula (so-called color difference system) could be embedded isometrically into a Euclidean space, a new perceptually uniform color space would emerge.At this point, it should be noted that, in a sense, the work by Silberstein 2 already represents an early instance of an attempt at finding such an isometric embedding, albeit directly using experimental data in absence of a reference color difference formula. | INTRODUCTION In general, in order for an isometric embedding into a Euclidean space (so-called Euclidization) to exist, the color difference formula has to satisfy the following conditions: | INTRODUCTION 1.By definition, an isometric embedding is a map between two metric spaces that preserves distances.Thus, for an isometric embedding to exist, it is necessary that the color difference formula satisfies the defining properties of a metric, that is, positivity, symmetry in its two arguments, and the triangle inequality.(This condition is not always fulfilled for existing color difference formulas.For instance, CMC and CIE94 are asymmetric in their two arguments; when being Euclidized, this may be compensated for through symmetrization such as in Reference 12.) 2. While the original color space can always be trivially embedded into a metric space through the identity mapping once the underlying color difference formula indeed defines a metric, limiting the choice of codomain to a Euclidean vector space adds further constraints on the color difference formula.When the dimension of the codomain is not specified, these constraints are difficult to characterize, but in the case where the codomain is of dimension three (i.e., of the same dimension as that of the original color space), a differential geometric characterization is available (cf.Reference 13, Thm.7.10): The original color space endowed with the color difference formula as metric is isometrically embeddable into the Euclidean vector space ℝ 3 if and only if there exists a smooth structure 13(Appendix A) and a Riemannian metric 13(Ch. 2) on the color space turning the color space into a Riemannian manifold 13(Ch. 2) such that a. the given color difference formula is exactly the Riemannian distance function (i.e., the shortest path metric, cf.Reference 13, Thm.2.55) of the Riemannian manifold and b. the Riemannian manifold has zero curvature 13(Ch. 7) . | INTRODUCTION Concerning condition (a), the ansatz of modeling the space of perceived colors as a Riemannian manifold is at least over a century old 14 and many of today's color difference formulas can be seen to at least asymptotically (i.e., as color difference tends towards zero) agree with a Riemannian distance function.Concerning condition (b), for the CIELAB-based color difference formulas, CMC, CIE94, and DE2000, Urban et al. 12(sec. 1.A) analyzed the curvature of the ab-plane of CIELAB and showed that the corresponding Riemannian metrics exhibit nonzero Gaussian curvature, which poses an obstruction to the existence of an isometric embedding of CIELAB into ℝ 3 with respect to these color difference formulas. | INTRODUCTION In view of the above limitations while attempting to embed a color difference system isometrically into a Euclidean space, efforts have been made to identify nearly-isometric embeddings.That is, given a color difference formula as reference distance law, an injective transformation from the original color space into a Euclidean space is being sought, such that the deviation of the resulting Euclidean distances from their respective reference color distances is minimized with respect to a certain disagreement measure.Approaches to this type of color space embedding problem include, but are not limited to: analytical methods, for example, References 15,16, and numerical methods, for example, References 12,17.Among these, the analytical approaches basically aim at working out the antiderivative of the reference color difference formula, which is only feasible for rather simple color distance laws, whereas the numerical methods mainly rely on coupled local optimizations on meshes complemented by interpolation techniques. | INTRODUCTION This work continues the previous efforts on identifying mathematical approximations for embedding existing non-Euclidean color difference systems isometrically into Euclidean ones, referred to as color space Euclidization in the sequel.While the derivation of the color difference formula ΔE itself is based on experimental visual data (i.e., perceived color differences ΔV ), the corresponding color space Euclidization constitutes a theoretical approach that is detached from actual visual experiments.Performance-wise, the perceptual non-uniformity of the Euclidized color difference system (i.e., deviation of ΔE Euclidean from ΔV ) is upper-bounded by the perceptual non-uniformity of the reference color difference formula (i.e., deviation of ΔE from ΔV ) plus the isometric disagreement arising from the color space embedding (i.e., deviation of ΔE Euclidean from ΔE).Therefore, if the isometric disagreement in the Euclidization step could be minimized, the resulting new color space would largely preserve the perceptual uniformity of the underlying color difference formula while benefiting from the inherent advantages of a vector space representation, which constitutes the general motivation of color space Euclidization.From a practical point of view, functioning as a perceptually uniform color space, the Euclidized color difference system would offer more possibilities than the original one endowed with non-Euclidean color difference formula in a number of applications.For instance, the vector space representation of perceptual uniformity would allow for linear interpolation between color coordinates within the new space while preserving the perceived color difference ratios, for example, the midpoint between two points within the new vector space could be used for representing the perceived average color of the two corresponding color samples.In the context of image processing, in contrast to the color difference formula merely serving the purpose of a metric, the invertible transformation associated with the color space Euclidization would allow for encoding color information into a Cartesian coordinate system to work with and decoding back into the original color coordinate system.Typical instances benefiting from this are represented by image quantization and lossy image compression, where transforming the initial color space (e.g., sRGB or CIELAB) into a linear working domain that is arranged in a perceptually uniform manner would allow for determining threshold values for just-noticeable or -tolerable color distance through equal-sized l 2 -spheres, based on which an efficient and perception-based information reduction could be implemented (cf.e.g., Reference 18, sec. 1 for a more detailed discussion). | INTRODUCTION In recent years, with the rising availability of computational power, machine learning techniques have come into use in a variety of research fields and real world applications such as image processing, biomedicine, and virtual reality.The main aim of this work is to explore the capability of such techniques in tackling the above color space Euclidization problem.For this, a machine learning approach making use of artificial neural networks is proposed herein.In general, neural networks are function approximators that typically are composed of intermediate mappings (layers), each combining an affine transformation with adjustable parameters (weights or kernels, and bias) and a fixed nonlinear transformation (activation function).Given an optimization criterion (loss function), the parameters of a neural network are adjusted to best fit all the available training examples through stochastic gradient descent (training), cf. for example, Reference 19.When applied to the present Euclidization task, the neural network under consideration represents a continuously differentiable color space transformation.Concerning the optimization criterion employed during training, it is natural to define this in accordance with a pre-determined key performance metric.In the literature, the two most considered disagreement measures in the context of color space Euclidization are the relative isometric disagreement (cf.e.g., References 15,17) and the standardized residual sum of squares (STRESS) index (cf.e.g., References 12,20).While the former is a common relative error function, the latter is a statistical measure of absolute disagreement.Without attempting to judge which one of these disagreement indices is more appropriate for evaluating the efficacy of a nearly-isometric color space embedding, in this work, they are optimized separately through training and the resulting neural network color space transformations are evaluated for comparison.In this exposition of the method, the DE2000, CMC, and CIE94 color difference formulas are taken as example color distance laws for evaluation.Compared to previous contributions, the proposed machine learning approach applies to a broader range of settings and proves to be more powerful when evaluated with various disagreement metrics, regardless of the choice between the aforementioned training criteria. | INTRODUCTION In order to avoid confusion, it should be emphasized that the approach to color space Euclidization merely aims at achieving an alignment of the Euclidean metric on the embedded color space with the metric induced by the reference color distance law, which is independent of the efficacy of the underlying color difference formula itself in predicting actual visual differences. | INTRODUCTION The remainder of the article is organized as follows.In Section 2, a mathematical formulation of the problem of color space Euclidization is presented.Section 3 provides a general machine learning methodology for the considered Euclidization problem, including the architecture of the employed neural networks, the random sampling procedure for generating training examples, the loss functions associated with the aforementioned disagreement measures, and the training algorithm that is based on stochastic gradient descent and fortified with certain regularization measures.In Section 4, a series of example scenarios selected for training and evaluation are introduced.The layout of the neural network color space transformations and the training configurations employed for those example scenarios are specified in Section 5.The evaluation results are presented in Section 6. Section 7 includes the following discussions: the computational effort required during the inference stage of the proposed neural network approach is discussed in Section 7.1; the perceptual uniformity of the Euclidized DE2000 color difference system is evaluated on experimental visual data in Section 7.2; as an outlook, potential challenges that may be encountered when carrying over the present approach to the issue of color space modeling with experimental visual data are addressed in Section 7.3; for expanding perspective, potential intersections of the present work with a selection of machine learning approaches to perception-based image processing issues are discussed in Section 7.4.Section 8 concludes the article. | INTRODUCTION Throughout this work, k Á k refers to the Euclidean norm and bold symbols refer to multidimensional vectors or tensors. | PROBLEM OF COLOR SPACE EUCLIDIZATION ,r 0 ð Þ7 !err r, r 0 ð Þ denote the reference error function that measures the discrepancy between two metrics.For a color space transformation f : | PROBLEM OF COLOR SPACE EUCLIDIZATION for all x, y ℝ 3 with x ≠ y.Further, let R ⊆ ℝ 3 denote the reference region and P Δx denote the probability distribution of the test color difference vector in the original color space.For predetermined ΔE, err, R, and P Δx , and given the dimension of the codomain, d ≥ 3, the problem of nearly-isometric color space embedding according to the reference distance law ΔE consists in finding an injective transformation, f ΔE : | PROBLEM OF COLOR SPACE EUCLIDIZATION where,  Δx$P Δx refers to the expectation with respect to the probability measure P Δx .Correspondingly, the inverse mapping of f ΔE is to be approximated by a transformation, e f ΔE : | PROBLEM OF COLOR SPACE EUCLIDIZATION In this work, either of the following two types of isometric disagreement function is considered at a time and incorporated as reference disagreement measure into the embedding problem: | PROBLEM OF COLOR SPACE EUCLIDIZATION • The first type is related to the symmetric relative error, err : r, r 0 ð Þ7 !max r, r 0 f g= min r, r 0 f gÀ 1.The corresponding relative isometric disagreement function reads as | PROBLEM OF COLOR SPACE EUCLIDIZATION for any x, y ℝ 3 with x ≠ y, and f : ℝ 3 !ℝ d .In this case, problem (1) translates to minimizing the mean squared relative disagreement between the Euclidean distances in the embedded color space and the distances according to the reference color difference formula.The relative isometric disagreement is a common relative error function and has been incorporated as key performance measure into the objective function in various forms in previous contributions, cf. for example, References 15,17. | PROBLEM OF COLOR SPACE EUCLIDIZATION Since the L 2 space lies midway between the L 1 and L ∞ spaces in the sense of interpolation theory (cf.Reference 21), the squared error minimization proposed herein can be considered as a compromise between the minimizations of mean and maximum relative isometric disagreement.• The second type is related to the absolute error, err : r, r 0 ð Þ7 !j r À r 0 j.The corresponding absolute isometric disagreement function reads as | PROBLEM OF COLOR SPACE EUCLIDIZATION for any x, y ℝ 3 , and f : ℝ 3 !ℝ d .When taking this function as the key disagreement measure in (1) and approximating the double integral therein through Monte-Carlo simulation with a finite number of random samples (law of large numbers), the respective optimization problem translates to minimizing the standardized residual sum of squares (STRESS) index 20 while excluding any scale ambiguity inherent in that index.More details on this equivalence are provided in Section 3.4.2.In colorimetry, the STRESS index is considered a statistically more reliable alternative to the PF/3 index 22 for evaluating the similarity between two color difference datasets (cf.Reference 20).Apart from the correspondence with the STRESS index, the mean squared absolute error is a common indicator for average discrepancy and has been employed as optimization criterion in previous contributions to the issue of color space Euclidization, cf.References 12,18. | PROBLEM OF COLOR SPACE EUCLIDIZATION Depending on the nature of the underlying color difference formula, the choice between the above reference disagreement measures as optimization criterion may have a notable impact on the resulting color space transformation, which will be elucidated in the evaluation section. | PROBLEM OF COLOR SPACE EUCLIDIZATION The introduction of the probability measure P Δx in (1) mainly aims at a unified description of the Euclidization problem in terms of the reference range and weights of color distances.Typically, the color difference vector Δx in (1) is decomposed into its length r and direction v, that is, Δx ¼ r Á v, with r and v independently distributed according to their respective probability measures P r and P v .For instance, the direction component v is usually assumed to follow the uniform distribution on the unit sphere S 2 ⊆ ℝ 3 ; the absolute color difference r may be uniformly distributed on an interval r min ,r max ð as in Reference 12, or normally distributed as in Reference 17 where the probability density function of P r was used as weighting factor in the objective function. | GENERAL METHODOLOGY In this section, a general machine learning methodology is proposed for the color space Euclidization problem.The basic idea herein is to exploit the excellence of artificial neural networks in the task of function approximation and training these properly so as to obtain the desired color space transformations. | GENERAL METHODOLOGY Being intended for readers who are not yet familiar with machine learning techniques, the general approach is presented in a self-contained manner, with most of the recurring basic notions and terminology regarding artificial neural networks and training principles introduced in a general fashion in Sections 3.1 and 3.2.Readers who are familiar with machine learning techniques may skip most parts of Sections 3.1 and 3.2, except for the thoughts behind the somewhat unconventional use of residual connections in-between fully connected layers in the present application (cf.second-last paragraph of Section 3.1).Furthermore, in order to enable the machine learning expert to quickly skim through Sections 3.3-3.5,some distinctive characteristics of the proposed approach tailored to the present Euclidization issue are highlighted as follows: | GENERAL METHODOLOGY • Training relies on unsupervised learning through random sampling, which is based on Monte-Carlo simulation following the law of large numbers (cf.Section 3.3); in particular, no external labels are required and overfitting may not occur.• In accordance with the distinction of cases in terms of the reference isometric disagreement measure (recall (3) and ( 4)), two different loss functions are employed for the corresponding optimization problems (cf.Section 3.4).In particular, for minimization with respect to the relative isometric disagreement, a nonobvious choice of loss function is made, which acts as an infinitely differentiable proxy for the original non-differentiable (symmetric) relative disagreement function (cf.discussion in Section 3.4.1);for minimization with respect to the absolute isometric disagreement, the inherent relationship between the minimization of mean squared absolute disagreement and that of STRESS is elaborated (cf.discussion in Section 3.4.2). • A composed training procedure is proposed where the two central optimization problems, (1) and ( 2), are considered jointly and tackled in alternation through certain regularization measures, which aids in preventing potential invertibility issues and speeding up training (cf.Section 3.5). | Feedforward neural network with residual connections In the present application, fully connected neural networks with feedforward architecture augmented by residual connections are employed.Subsequently, a precise description of the related transformations is provided.Let f NN be the output function of a neural network and let u in ℝ I , u out ℝ J , and ξ ℝ P denote the input and output vectors, and the vector of all parameters of the neural network, respectively.For a basic feedforward fully connected neural network, the output function is of the form | Feedforward neural network with residual connections with | Feedforward neural network with residual connections referred to as weight matrix and bias vector, respectively, and f m ð Þ actv : ℝ !ℝ representing the activation function of the layer, which is typically defined as a nonlinear almosteverywhere differentiable function operating component-wise. | Feedforward neural network with residual connections In particular, it holds that u 0 | Feedforward neural network with residual connections , and | Feedforward neural network with residual connections for all m ¼ 0, …, M À 2. In (7), the output dimension, J m ð Þ , is also called the size or number of channels of the layer; the input dimension of the first layer, I, and the output dimension of the last layer, J, are referred to as the number of input channels and number of output channels of the neural network, respectively.A layer whose output is not the final output of the entire neural network, that is, (6), is called a hidden layer.The total number of layers, M, is referred to as the depth of the neural network. | Feedforward neural network with residual connections For the present Euclidization task, the solutions to the optimization problems (1) and ( 2) are each approximated by a feedforward neural network where the numbers of input and output channels of the neural network are set to I ≔ 3, J ≔ d ð Þfor the embedding problem (1) and vice versa, I ≔ d,J ≔ 3 ð Þfor the inverse problem (2).Throughout the neural network transformation (except for at the output layer), the hyperbolic tangent function, tanh , is chosen as the activation function, which is defined as | Feedforward neural network with residual connections Compared to other common choices such as the rectified linear unit (ReLU), the hyperbolic tangent is an analytic function, which implies the infinitely differentiable nature of the resulting color space transformation, as opposed to the piecewise-smooth transformations devised in previous contributions. 12,17n top of the basic fully connected layers, the hidden layers employed in the present application are endowed with so-called residual connections.Keeping the above notations for the parameters and layer indices and assuming that M is an even number and the sizes of channels satisfy | Feedforward neural network with residual connections each group of two adjacent layers is considered as a building block, called residual layer, and the input vector to each block, denoted by e u 2lþ1 ð Þ , is additionally propagated through shortcut connections within the block, as illustrated in Figure 1A.The transformation of the resid- | Feedforward neural network with residual connections where, e | Feedforward neural network with residual connections Þ follows the same transformation as in (7). | Feedforward neural network with residual connections Originally, residual connections were introduced for the purpose of improving gradient propagation within a deep convolutional neural network, cf.Reference 23.In the present application, on the other hand, employing residual layers mainly aims at a relatively parsimonious parametrization for the sake of saving computational effort.More specifically, as illustrated through the transition from (B) to (A) in Figure 1, when inserting a small mid-layer between two adjacent fully connected layers of equal size, the total number of weight parameters is reduced, as long as the in-between layer is smaller than half the size of the outer layers.However, because of the dimensionality reduction in the mid-layer, employing such a layout without modification entails the so-called bottleneck effect in general and may lead to a decline in performance; as a countermeasure, introducing skip connections between the outer layers within such an architecture aids in mitigating the bottleneck effect while maintaining the sleekness of the original reduced-size layout, which in particular yields a residual building block as introduced above (cf.Reference 23 for a similar argument).Moreover, from a heuristic point of view, the present Euclidization problem can be thought of as looking for a neural network color space transformation that comprises some linear distortions (e.g., linear embedding or shear) and a (higher-dimensional) nonlinearly distorted identity mapping, which, respectively, can be expressed in terms of the linear parts of the input and output layers, and the operations within a residual building block.In this sense, the aforementioned potential bottle-neck issue mainly affects the component of nonlinear distortions within the entire color space transformation, which is not expected to cause a significant increase in the overall isometric disagreement.In fact, as depicted in Figure 2, experimentation in this work reveals that, despite the concerns over its inherent sparsity, the proposed residual architecture even exhibits slightly better performance and faster convergence compared to its densely connected counterpart. | Feedforward neural network with residual connections The neural network layout employed in the example scenarios for evaluation is determined in consideration of performance, computational efficiency, and training speed, which will be presented in Section 5.1 and discussed in Section 7.1. | Basic principles of stochastic gradient descent The algorithm proposed for training the neural network color space transformations is built on stochastic gradient descent (SGD).Basically, training with SGD requires an almost-everywhere differentiable neural network output function with respect to all parameters (which is fulfilled in the architecture introduced in Section 3.1), a set of training examples, and an almost-everywhere differentiable loss function. | Basic principles of stochastic gradient descent The set of training examples consists of pairs of input vectors to the neural network and target values towards which the neural network is to be trained.The total number of available training examples may be finite, as is the case with supervised learning where a fixed training dataset is randomly partitioned into mini-batches during each training epoch, or infinite, as is the case with the present approach where a mini-batch of training examples is generated through random sampling for each parameter update (unsupervised learning).A detailed description of the data generation procedure will be presented in Section 3.3. | Basic principles of stochastic gradient descent A loss function measures the distance of the neural network output from the training target and serves as an indicator for the current approximation error.In the context of color space Euclidization, the shape of the loss function depends on the choice of the reference disagreement measure (recall ( 3) and ( 4)) as well as possible regularization measures.This will be further specified in Sections 3.4 and 3.5. | Basic principles of stochastic gradient descent In SGD, the loss function is evaluated minibatch-wise and minimized iteratively by moving the parameter vector of the neural network in the direction of the negative gradient.Let f NN Á , ξ ð Þ be the neural network output function with parameter vector ξ (recall (5)) and let f loss denote the loss function.In the update step with index ι, given the corresponding mini-batch of | Basic principles of stochastic gradient descent n¼0 , the parameter vector ξ is adjusted through | Basic principles of stochastic gradient descent where, γ > 0 is a tunable hyperparameter, referred to as learning rate, and the gradient can be computed by means of backpropagation which is an instance of reverse mode automatic differentiation based on the chain rule, cf. for example, Reference 19, Ch. 4. Throughout all experiments in this work, the Adam algorithm is employed, which is a refined version of SGD, incorporating an adaptive moment estimator into the update rule (cf.Reference 24 for more details).Following the above general principles of training with SGD, the upcoming subsections are devoted to the individual components of the training procedure devised for the present Euclidization problem. | Generation of training examples In the proposed machine learning approach, training examples for both the color space embedding problem and the corresponding inverse approximation are generated through random sampling on the original color space. | Generation of training examples For the color space embedding problem, random samples are generated with the aim of approximating the double integral in (1) through Monte-Carlo simulation (law of large numbers), which is performed as follows: | Generation of training examples 1.For each mini-batch indexed by ι, draw independently | Generation of training examples n¼0 , according to the uniform probability distribution on the reference region R ⊆ ℝ 3 .2. For each color center x ι,n R, draw independently | Generation of training examples k¼0 , according to the probability distribution of the test color difference vector 1 P Δx .3. Collect the above samples for all indices n and k into a tensor of training inputs for mini-batch ι, | Generation of training examples When training a neural network color space embedding with respect to a given color difference formula ΔE, in each update step ι, the samples associated with each of the selected color centers, 8) for an index n, are processed through the embedding neural network, from which the Euclidean distances of the transformed samples from the transformed color center are computed.The corresponding training loss is then determined by the disagreement of these Euclidean distances with their respective reference color distances, | Generation of training examples k¼0 , where the latter serve as the training targets associated with the color center | Generation of training examples Similarly, for the inverse approximation, training examples are generated through random sampling following Step 1 of the above procedure, so as to approximate the integral in (2) through Monte-Carlo simulation.While being processed through the composition of the trained embedding neural network and the current inverse neural network, the samples drawn from the original color space serve as the inverse training targets and the inverse training loss is determined by the total transformation error of the joint neural network compared to the identity mapping. | Isometric disagreement functions for training loss Henceforth, for a fixed reference color difference formula ΔE, let f ΔE Á , ξ ð Þ and e f ΔE Á , e ξ denote the neural network output functions with parameter vectors ξ and e ξ employed for solving the embedding problem (1) and the corresponding inverse approximation (2), respectively. | Isometric disagreement functions for training loss As introduced in Section 3.2, training a neural network relies on the SGD algorithm, which requires primarily the specification of an almost-everywhere differentiable loss function.In general, it is reasonable to define the loss function in accordance with the key performance metric being included in the optimization criterion.Based on these considerations, when training the embedding neural network f ΔE Á , ξ ð Þ for solving problem (1), either of the following isometric disagreement functions is considered at a time and employed for computing the training loss: | Isometric disagreement functions for training loss • When minimizing in (1) the mean squared relative isometric disagreement associated with (3), the logarithmic error function, err: r, r 0 ð Þ7 !j ln r=r 0 ð Þj, serves as a proxy for the original symmetric relative error function during training.The corresponding isometric disagreement function is defined as | Isometric disagreement functions for training loss for any x,y ℝ 3 with x ≠ y. • When minimizing in (1) the mean squared absolute isometric disagreement associated with (4), the isometric disagreement function employed during training reads as | Isometric disagreement functions for training loss for any x,y ℝ 3 . | Isometric disagreement functions for training loss When training the inverse neural network transformation e f ΔE Á , e ξ for solving problem (2), the inverse training loss is determined by means of the total transformation error function, defined as | Isometric disagreement functions for training loss for all x ℝ 3 . | Isometric disagreement functions for training loss In each parameter update step during training, the respective disagreement function introduced above is evaluated on the current mini-batch of random color coordinates generated according to Section 3.3, from which the mean squared value is determined and minimized as training loss through gradient descent.The rigorous parameter update rules including possible regularization measures will be presented shortly (in Section 3.5).Prior to this, the following explanatory comments are provided for justifying the choice of the isometric disagreement functions ( 9) and (10) in their respective optimization contexts: | Notes on minimization of mean squared relative disagreement In (9), the original symmetric relative error function, r, r 0 ð Þ7 !max r,r 0 f g= min r,r 0 f gÀ 1, is replaced by the logarithmic error function, r,r 0 ð Þ7 !j ln r=r 0 ð Þj, due to the following consideration: The symmetry of the symmetric relative error in its arguments relies on the distinction of cases inherent in the min and max expressions, whereas the logarithmic error exhibits the same type of symmetry while having an infinitely differentiable square; employing the latter for gradient descent aids in avoiding potential instabilities during training.Note that both of these error functions are directly determined by the quotient of their arguments r=r 0 (as opposed to the absolute error function) and minimized at r ¼ r 0 , and their values are close to one another near their joint minimum, as illustrated in Figure 3. | Notes on minimization of mean squared absolute disagreement When evaluated on a finite number of samples, minimizing the mean squared absolute disagreement corresponds to minimizing the STRESS index.To demonstrate this correspondence, let c ΔE i n o i I and ΔE i f g i I denote the estimated and reference color differences evaluated on a dataset indexed with i I, respectively.According to one of the equivalent definitions given in Reference 20, eq. ( 9), the STRESS index between | Notes on minimization of mean squared absolute disagreement where the scale factor | Notes on minimization of mean squared absolute disagreement When employed as a loss function, the mean squared absolute disagreement based on (10) is preferred over the STRESS index, as the scale ambiguity introduced by the normalizing scale factor embedding neural network, as it can trivially be satisfied by rescaling the parameters of the output layer. | Training procedure In the subsequent description of the algorithm, all notations are carried over from Sections 3.3 and 3.4. | Training procedure Basically, the joint neural network, e f ΔE f ΔE Á , ξ ð Þ, e ξ , can be considered as an autoencoder 2 where color coordinates in the original color space are encoded into their counterparts in the embedded space through the forward path, f ΔE Á ,ξ ð Þ, and then to be decoded back into themselves through the inverse path, e f ΔE Á , e ξ .Due to the consideration of potential invertibility issues, the minimization of the inverse training loss is incorporated as regularization measures into the training routine for the forward path.This can be expressed in terms of two alternating subroutines that are characterized by their respective parameter update rules as follows: | Training procedure R1. Adjust the parameters of the forward path, f ΔE Á ,ξ ð Þ, by minimizing the forward loss.That is, for the current mini-batch indexed by ι, update the parameter vector ξ via | Training procedure with γ > 0 and | Training procedure where, disg ΔE refers to the isometric disagreement function defined in ( 9) or (10), and | Training procedure with e γ > 0, β ≥ 0, and | Training procedure where, g disg ΔE refers to the total transformation error function defined in (11) and | Training procedure ⊆ R are the training samples of mini-batch ι generated for the inverse approximation (recall last paragraph of Section 3.3). | Training procedure In (13), the factor β acts as a tuning parameter that balances the proportion between the actual training loss and the regularization term. | Training procedure Starting off by training the embedding neural network, f ΔE Á , ξ ð Þ, Subroutines R1 and R2 are run blockwise and alternately, each for a pre-determined number of iterations within the current rotation.The update of parameters ξ is terminated if the performance of f ΔE Á , ξ ð Þ is considered satisfactory (e.g., compared to baseline methods) or no longer exhibits significant improvement.Subsequently, if necessary, the inverse transformation e f ΔE Á , e ξ is further trained by only iterating Subroutine R2 with β ≔ 0 in (13), until the total transformation accu- | Training procedure reaches a predetermined reference value.The entire training procedure is summarized in a concise form in Algorithm 1.In the pseudo code, the integers I, #R1 i ð Þ, and #R2 i ð Þ are hyperparameters that are to be tuned for each individual setting.Note that in the case where β ≔ 0 in (13) and the "while loop" in Algorithm 1 is only run for a single iteration with I ≔ 1, the corresponding routine translates to training the embedding and inverse neural network transformations separately in succession without any regularization measures. | Training procedure The introduction of the above regularization measures primarily aims to prevent the embedding neural network from being driven towards a noninjective transformation.The key idea behind this consists in taking the performance of the potential inverse transformation, e f ΔE Á , e ξ , as an indicator for the regularity (in particular the injectivity) of the embedding transformation, f ΔE Á , ξ ð Þ.In fact, when looking for a nearly-isometric color space embedding by iterating Subroutine R1 alone, the resulting neural network f ΔE Á , ξ ð Þ is trained to emulate the potentially rather complex characteristics of the underlying reference color difference formula ΔE, which, with rising number of iterations, increases the difficulty of training the corresponding inverse transformation, e f ΔE Á , e ξ .In the worst-case scenario, training in this manner may lead to local irregularities in the form of large local approximation errors or even local noninjectivities.Such irregularities may occur, for instance, when it is possible to achieve a low average loss over the entire color space at the price of sacrificing the performance of the transformation f ΔE Á , ξ ð Þ within a few extremely small regions, cf.Appendix A for an example.As a countermeasure, through the alternation with Subroutine R2 and in particular the regularization term therein (governed by factor β), the joint transformation e f ΔE f ΔE Á , ξ ð Þ, e ξ considered as a whole is driven towards the identity mapping and thereby, the forward path f ΔE Á , ξ ð Þ is more likely to remain injective.It is worth noting that training the forward and inverse paths of the autoencoder e f ΔE ∘ f ΔE alternately as proposed is reminiscent of the approach with generative adversarial nets (GANs) 25 in the sense that the two component neural networks, f ΔE and e f ΔE , indeed operate against one another during training.Figure 4 illustrates the interaction between these two neural networks during the alternations between Subroutines R1 and R2.Each time switching to Subroutine R1, the performance of the inverse path degrades with the growing complexity of the forward path; vice versa, each time switching to Subroutine R2, the minimization of the forward loss is temporarily halted and small adjustments of the forward path in favor of the inverse training are triggered instead. | Training procedure In general, the occurrence of invertibility issues depends on the nature of the color difference formula and the composition of the objective function.Appendix A provides an instance of such where imposing the proposed regularization measures is essential to the injectivity of the embedding neural network transformation.In cases where the invertibility issue is not of concern, the regularization measures are optional; however, when configured properly, including them in the training routine may significantly speed up the inverse training (typically time consuming), without compromising the performance of the embedding transformation, as demonstrated in Figure 5. (Notice that in Figure 5A, the two courses of forward training loss hardly differ from one another, which indicates that the imposed regularization does not have a negative impact on the embedding neural network; on the other hand, in Figure 5B, the inverse training loss decreases faster through the regularization measures.)Ideally, the progress of the inverse training is spread over the course of the forward loss minimization such that the parameter updates of both the embedding and inverse transformations are terminated simultaneously.Similarly to GANs, the crucial point here is to figure out an appropriate proportion between the forward and inverse routines within each rotation (i.e., #R1 i ð Þ : | Training procedure γ,e γ,β ð Þ).This will be clarified for the selected example scenarios in Section 5.2. | EXAMPLE SCENARIOS FOR TRAINING AND EVALUATION In order to assess the efficacy of the proposed machine learning approach, the following instances of the Euclidization problem introduced in Section 2 are considered for training and evaluation: | EXAMPLE SCENARIOS FOR TRAINING AND EVALUATION As example reference color distance law, ΔE, the CIE-LAB-based color difference formulas, DE2000, 10 CMC, 6 and CIE94 8 are considered.The default dimension of the embedding's codomain is d ≔ 3.For comparative purposes and in accordance with Reference 12, the reference region is set to R ≔ 0,100 ½ Â À128,128 ½ 2 in the CIELAB coordinate space and the probability distribution of the test color difference vector, P Δx , is defined as that of the random vector Δx ¼ r Á v where the absolute color difference r follows the uniform distribution on r min , r max ½ (in CIELAB-units) and the direction vector v follows the uniform distribution on the unit sphere S 2 ⊆ ℝ 3 .Since the selected reference color difference formulas are all recommended for predicting small color differences and only nonzero color difference is admissible for evaluating the (symmetric) relative isometric disagreement (recall (3)), the interval r min , r max ½ ≔ ε,5 ½ with ε ≔ 10 À3 is taken as the default range of the absolute color difference r.Scenarios associated with the above default settings are considered as primary cases, for which neural network color space transformations are trained with respect to both the relative and the absolute disagreement measures (each at a time).On top of the primary scenarios, for experimental purposes, embedding neural networks are also trained for color differences within r min , r max ½ ≔ 5, 20 ½ according to the DE2000 and CIE94 color difference formulas, despite the lack of a definitive statement on the efficacy of these formulas in predicting large color differences.Furthermore, as a dimensional analysis, embeddings with codomains of higher dimensions, d ¼ 4,5,6, are explored for the DE2000 color difference formula, where only the mean squared relative isometric disagreement is minimized through training. | EXAMPLE SCENARIOS FOR TRAINING AND EVALUATION Concerning the training data generation for the example scenarios, in accordance with the above selected probability distribution of the test color difference vector, P Δx , Step 2 in Section 3.3 is implemented through the following procedure: i.For mini-batch ι and for each of the color centers | EXAMPLE SCENARIOS FOR TRAINING AND EVALUATION x ι,n f g | EXAMPLE SCENARIOS FOR TRAINING AND EVALUATION k¼0 , according to the uniform probability distribution on the unit sphere S 2 ⊆ ℝ 3 .More specifically, for each coordinate | EXAMPLE SCENARIOS FOR TRAINING AND EVALUATION ence 26 for a derivation of this method). | EXAMPLE SCENARIOS FOR TRAINING AND EVALUATION ii.For each direction v ι,n,k S 2 around each color center x ι,n , draw a random number, r ι,n,k , according to the uniform probability distribution on the interval r min , r max ½ and record Δx ι,n,k ≔ r ι,n,k Á v ι,n,k . | EXAMPLE SCENARIOS FOR TRAINING AND EVALUATION The mini-batch sizes determined by N ι ð Þ and K ι ð Þ are hyperparameters for training and will be specified in Section 5.2.Similarly to the training data generation, as in Reference 12, 4 million test samples (i.e., 2 million color pairs) are drawn randomly from the CIELAB color space for evaluation, which is performed through Step 1 in Section 3.3 complemented by the above procedure, with N ι ð Þ ≔ 2 Á 10 6 and K ι ð Þ ≔ 1 for ι ≔ 0 fixed.Among the generated test samples, the color centers are also used for evaluating the inverse approximation.In total, there are two test datasets, each containing 2 million color pairs generated as above, one for example scenarios associated with small color differences from the range r min , r max ½ ≔ 10 À3 ,5 ½ , one for those associated with large color differences from the range r min , r max ½ ≔ 5, 20 ½ (all in CIELAB-units).Note that as mentioned at the beginning of Section 3, the unsupervised approach to training through random sampling eliminates the danger of overfitting.This contrasts with most other machine learning problems where training data may inadvertently introduce bias in the resulting neural network.In the present case, however, the law of large numbers ensures that the objective functions in ( 1) and ( 2) will be approached arbitrarily closely as the number of random samples drawn for approximating the expectation and integrals therein tends to infinity.In particular, as random training examples keep being generated over the course of the entire training procedure, the training data do not introduce bias.For this reason, it is legitimate to indeed generate the test dataset according to the same procedure as the training data. | NEURAL NETWORK LAYOUT AND TRAINING CONFIGURATION FOR EXAMPLE SCENARIOS In this section, the layout of the neural network color space transformations and the hyperparameters of the training algorithm are specified for the example scenarios introduced in Section 4. In general, the optimal configuration may not be unique.The tuning work herein merely aims at finding one configuration per example that exhibits decent performance, so as to demonstrate the efficacy of the proposed approach.As a guideline, the neural network layout and the hyperparameter choice for all selected example scenarios are determined through minor adjustment of the configuration for the default setting associated with the most recognized and most complex color difference formula, DE2000.All neural networks and training routines are implemented using the PyTorch machine learning framework. 27 | Layout of neural network color space transformations For the sake of comparative evaluation and in accordance with previous contributions, 12,17 the L-coordinate and the ab-plane of the CIELAB color space are treated independently and processed through two separate (sub-)neural networks with the same architecture. 3Moreover, since the standard methods for initializing the neural network parameters rely on the assumption that the magnitudes of the entries of the input vector are not much larger than 1, as a normalization step, the input to each neural network color space transformation is divided by 100 and, correspondingly, the output is multiplied by 100 (coordinate-wise). | Layout of neural network color space transformations The (sub-)neural network for embedding the ab-plane of the CIELAB color space into ℝ dÀ1 employs a single residual hidden layer of size 45 : 15 : 45, as presented in Table 1.The corresponding inverse neural network transformation uses the same layout, apart from flipped numbers of input and output channels.Analogously, the embedding and inverse transformations associated with the L-coordinate of the CIELAB color space employ the same layouts as those for the ab-plane, except that the numbers of input and output channels are all set to 1. 4 The embedding and inverse neural network transformations in case of d ¼ 3 are visualized in Figure 6, with thin arrows passing scalar values and thick arrows passing vectors. 5 | Training configuration The mini-batch size for running Subroutine R1 in Section 3.5 is determined through the total number of color centers sampled from the reference region R per mini-batch times the total number of directions sampled from S 2 ⊆ ℝ 3 per color center (recall training data generation steps in Sections 3.3 and 4), which are set to N ι ð Þ ≔ 1000, K ι ð Þ ≔ 100.For running Subroutine R2 in Section 3.5, the mini-batch size is the total number of color samples generated on R per mini-batch, which is set to N ι ð Þ ≔ 100000. | Training configuration T A B L E 1 Neural network layout for embedding ab-plane of CIELAB into ℝ dÀ1 according to DE2000, CMC, or CIE94. Index Layer type Shape Activation Among the considered example scenarios, the ones with d ≔ 3 and r min , r max ½ ≔ 10 À3 ,5 ½ are the most relevant, for which the embedding and inverse neural network transformations are jointly trained using the proposed regularization measures.As a preliminary step for tuning the hyperparameters γ,e γ, β ð Þ, #R1 i ð Þ, and #R2 i ð Þ in Algorithm 1, the embedding neural network is first trained with Subroutine R1 alone, so as to set a target performance and roughly estimate the total number of forward iterations, Index Layer type Shape Activation , are executed at learning rates γ ≔ e γ ≔ 10 À5 , β ≔ 10 À8 ð Þ for determining an embedding color space transformation in each setting.As accuracy requirement for the inverse transformation, the total transformation accuracy evaluated on the DE2000 color difference formula in Reference 12 is taken as baseline. 6n 5 of the 6 considered primary scenarios, this accuracy of the inverse transformation is achieved while terminating the last training block, with the only exception being the scenario where the mean squared relative isometric disagreement with the CMC color difference formula is minimized, for which a follow-up inverse training with Subroutine R2 (where β ≔ 0) at a learning rate of e γ ≔ 10 À5 is run until the stop criterion is fulfilled.To give an impression of the actual duration of the training process: on a single NVIDIA Quadro RTX 5000 graphics processing unit (GPU), the time required for running 150 training blocks for the DE2000 color difference formula with respect to the relative isometric disagreement amounts to about 61.5 h in total, with about 1 h and 43 min spent on the forward training and slightly under 60 h spent on the inverse training.In particular, the most expensive part is the training of the inverse transformation, which reflects the training schedule introduced above (recall the configured forward-inverse-ratio Index Layer type Shape Activation Since the inverse training is extremely timeconsuming, for the remaining supplementary example scenarios where r min , r max ½ ≔ 5, 20 ½ or d ¼ 4,5,6, only the embedding neural network is trained and all regularization measures are omitted (visual inspection of injectivity indicates no invertibility issue).Since those scenarios are considered for rather experimental purposes, no extra tuning is performed therefor and Subroutine R1 with a learning rate of γ ≔ 10 À5 is simply run for 600000 or 2400000 iterations in case of r min , r max ½ ≔ 5, 20 ½ or d ¼ 4,5,6, respectively. | EVALUATION RESULTS In this section, the proposed machine learning method for color space Euclidization is evaluated on the example scenarios introduced in Section 4 and compared to previous contributions.In each example scenario, 2 million randomly generated test color pairs are used for evaluation (recall generation procedure described in Section 4).The performance metrics considered while evaluating the embedding transformations are the STRESS index (recall (12)) and the (symmetric) relative isometric disagreement (recall (3)) evaluated statistically in its mean, maximum, and standard deviation.To assess the accuracy of the corresponding inverse approximations, the point-wise Euclidean distances between the identity mapping and the composition of the embedding and inverse neural network transformations are evaluated statistically in the mean, maximum, and standard deviation; as noted in Section 5.2, implied by the stop criterion for the inverse training, these indices are below 0:0221, 0:3939, and 0:0176, respectively, and will not be further specified in the sequel. | Results for DE2000 color difference formula The DE2000 color difference formula is implemented according to Reference 28 where k L ≔ k C ≔ k H ≔ 1.The reference methods considered for comparative evaluation on this formula are the multigrid optimization method 12 and the multidimensional scaling techniques, 17 referred to as Multigrid and MDS, respectively.The neural network color space embeddings trained for minimizing either the mean squared relative isometric disagreement or the mean squared absolute isometric disagreement are referred to as NN mrd or NN mse, respectively. | Comparative evaluation on small color differences The results of the comparative evaluation for small color differences are presented in Table 2. Compared to the multigrid optimization method (Multigrid) which is based on minimization of the mean squared absolute isometric disagreement, the neural network transformation trained with the same optimization criterion (NN mse) exhibits a 44% reduction in the STRESS index (recall correspondence elaborated in Section 3.4.2).Compared to the multidimensional scaling techniques (MDS) which employ the (asymmetric) relative isometric disagreement as key disagreement measure for optimization, the embedding neural network trained with a similar criterion, NN mrd, performs better in the mean and standard deviation of the relative isometric disagreement, with the corresponding second moment (i.e., mean 2 þ σ 2 ) being more than halved, but almost doubles the maximum relative isometric disagreement.The excellence of the MDS method in lowering the maximum relative isometric disagreement relies in part on this metric being included in the objective function and minimized directly through the optimization algorithm therein.More generally, both of the reference methods (Multigrid and MDS) rely on local optimization while looping through meshes defined on the original color space, which implies a greater potential for producing better local approximation results.In contrast, the present machine learning method is based on minimization of average loss over the entire color space and thereby has less control over local features of the resulting color space transformation.In fact, except for the maximum relative isometric disagreement, all considered performance metrics are average-based disagreement measures, in respect of which the proposed approach turns out to be more effective than the reference methods, regardless of the choice between the relative and absolute disagreement measures being employed in the training criterion. | Comparative evaluation on small color differences Among the proposed embedding neural network transformations, NN mrd and NN mse, the former is superior to the latter in the second moment of the relative isometric disagreement (i.e., mean 2 þ σ 2 ), and vice versa in the STRESS index, where the respective performance advantages amount to 35% and 20%. Figure 7 displays the images of a (rectangular) grid in the ab-plane of CIELAB under the respective neural network transformations; here and in the sequel, the colored region in the plot is the image of the intersection between the corresponding region in CIELAB and the sRGB gamut for constant lightness of L Ã ¼ 50. 7,8Comparing both plots, the geometry of the two transformations differs visibly; in particular, the transformation optimized with respect to the mean squared relative disagreement (NN mrd) exhibits a stronger shearing effect at the center of the ab-plane.Figure 8 shows the local maximum relative isometric disagreement of the embedding neural networks evaluated on the ab-plane of CIELAB; in the images, each pixel corresponds to a color center and the local maximum relative isometric disagreement is evaluated on color difference vectors around this center. 9From Figure 8A, in the optimization with respect to the mean squared relative disagreement (NN mrd), the highest relative disagreement values are located near the gray axis on the one hand and in the region between hue angles 270 and 295 on the other.From Figure 8B, in the optimization with respect to the mean squared absolute disagreement (NN mse), the local maximum relative disagreement is particularly large around hue angle 275 , which is consistent with the results in Reference 12 and the discussion on (approximate) Gaussian curvature provided therein.The spatial distribution of the isometric disagreement is further illustrated through the unity color difference ellipses in the transformed ab-plane as depicted in Figure 9, where some skew is still present in the Euclidized coordinates and the largest distortions of the unity circle are located in accordance with the highest isometric disagreement values. | Comparative evaluation on small color differences For experimental purposes, color differences in the range of 5 to 20 CIELAB-units are also considered for evaluation.The main aim here is to explore the feasibility of the present approach for Euclidization with respect to large color differences.The reason for the DE2000 color difference formula being taken as reference law for such experimentation is the comparability of the outcome with the preceding results for small color differences, even though the efficacy of this formula in predicting a higher range of visual differences is yet to be verified.After the first 600000 iterations of training with respect to either the relative or the absolute disagreement measure, the resulting neural network color space transformation delivers a STRESS index of 0:0231 or 0:0189, respectively, | Comparative evaluation on small color differences Images of a rectangular grid in the ab-plane of CIELAB under neural network color space transformations trained according to the DE2000 color difference formula. 2 evaluated on small color differences, with no significant decline of performance being identified in any of the considered metrics.This in particular demonstrates that the proposed machine learning method is able to handle color differences that are significantly away from zero, as opposed to the other two numerical methods in References 12,17 for which a direct adaptation to large color differences is nonobvious. | Dimensional analysis Another advantage of employing artificial neural networks for approximating color space transformations is the possibility of a straightforward alteration in the dimension of the input and output vectors.Making use of this feature, embeddings with higher-dimensional codomain for d ¼ 4,5,6 are explored where the corresponding neural networks are endowed with the respective numbers of output channels (recall Table 1).Actually, compared to the case of d ¼ 3, the higher-dimensional embedding problem is more complex in terms of degrees of freedom being required; for d ≥ 4, deeper neural networks, for instance, those endowed with 4 residual hidden layers, exhibit better performance and faster convergence during experimentation.However, for the sake of comparability with the preceding results for d ¼ 3, the same inner layout of the embedding neural network is kept through all considered dimensions and, as a compensation for the lower capacity, the total number of training iterations for d ≥ 4 is set to be four times as large as that for d ¼ 3. | Dimensional analysis The evaluation results of the dimensional analysis are provided in Table 3. Similarly to the results in Reference 17, when including one more dimension in the codomain of the embedding, that is, transitioning from d ¼ 3 to d ¼ 4, the performance of the resulting color space transformation is improved significantly in all considered disagreement metrics.This effect diminishes when further increasing the output dimension to d ¼ 5, and there is 10 and in comparison with Reference 17, fig.3, the present higher-dimensional embedding transformation exhibits a smoother appearance with less folding of the embedded surface.This results from the infinitely differentiable nature of the neural network transformation as well as the fewer degrees of freedom inherent in the present global optimization approach (i.e., minimization of average loss over the entire color space) compared to the local optimization method in Reference 17. | Results for CMC color difference formula The implementation of the CMC(l:c) color difference formula is based on Reference 6 with l ≔ c ≔ 1.For the sake of symmetry in the sense of the defining properties of a metric and as previously also implemented in Reference 12, the weights S L , S C , and S H appearing in the formula are computed with respect to the mean coordinates of each color pair.The reference method considered in the comparative evaluation for this formula is the multigrid optimization method 12 (Multigrid).The neural network color space transformations trained with respect to the mean squared relative or absolute isometric disagreement are again referred to as NN mrd or NN mse, respectively.The evaluation results are presented in Table 4.In all considered performance metrics, both of the proposed neural network color space embeddings exhibit significant performance advantages compared to the reference method, with most of the reference disagreement values being more than halved.It should be noted that the exact manner in which the symmetrization of the CMC color difference formula is implemented may affect the final results; to the best of the authors' knowledge, this is not explicitly specified in any standards or reference implementation.In the present work, the arithmetic means of the lightness, chroma, and hue coordinates of each color pair are computed as in the implementation of the DE2000 formula detailed in Reference 28, which in particular includes an ambiguity resolution method for the hue angles and the hue angle difference.Table 5 demonstrates the effect of the symmetrization, where the neural network transformations associated with the two considered optimization criteria, NN mse and NN mrd, are trained with either the symmetrized or the original (asymmetric) CMC color difference formula as ground truth and then cross-evaluated on the symmetrized or the original (asymmetric) formula through the STRESS index.Overall, the performance of the neural network transformations degrades by a factor of about 2:5 when evaluated against the asymmetric CMC formula (last line vs. second-last line of table).In fact, without prior symmetrization, the asymmetry of the original CMC formula severely conflicts with the inherently symmetric nature of the Euclidean distances resulting from the neural network color space transformations, which leads to large increase in the STRESS indices that overshadows the more subtle differences resulting from the distinction between the two training loss functions.On the other hand, comparing the third column with the second column, or the fifth column with the fourth column of the table, training the neural networks with the original asymmetric CMC formula instead of the symmetrized version leads to hardly any performance improvement (or even performance decline) when evaluated on the original asymmetric formula, but significantly increases the isometric disagreement when evaluated on the symmetrized formula.From the above considerations and in view of the practical advantages of using a symmetric description of color differences, the symmetrized version of the CMC color difference formula is preferred over the original asymmetric one while training the corresponding neural network color space embeddings.When comparing the proposed neural network color space transformations NN mrd and NN mse among one another, the former exhibits a 19% lower second moment of the relative disagreement (i.e., mean 2 þ σ 2 ) and the latter produces a 9% lower STRESS index.Compared to the preceding results for the DE2000 color difference formula, smaller performance differences between the two neural network transformations are observed across all considered metrics, which may be attributed to the lower complexity of the CMC color difference formula expressed in terms of its deviation from the distance function of a Riemannian manifold with zero curvature.The diminished dependency on the optimization criterion is also reflected in the geometry of the respective transformations, as depicted in Figure 11, 10 where only a slightly larger magnification of the center area in the transformation optimized with respect to the mean squared absolute disagreement (NN mse) is noticeable.The impact of the optimization criterion is more visible in the spatial distribution of the disagreement values within the ab-plane of CIELAB displayed in Figure 12.Similarly to the Euclidization according to the DE2000 color difference formula, optimization with respect to the mean squared relative isometric disagreement (NN mrd) results in larger relative disagreement values being more concentrated near the gray axis.In contrast, in the optimization with respect to the mean squared absolute isometric disagreement (NN mse), the local maximum relative disagreement becomes slightly more uniformly (A) (B) Optimization Optimization F G E 1 1 Images of a rectangular grid in the ab-plane of CIELAB under neural network color space transformations trained according to the CMC color difference formula. (A) (B) Optimization Optimization distributed and the area with higher disagreement values around the center is slightly further spread out in the ab-plane.On top of the region near the gray axis, both optimizations also exhibit larger relative disagreement around hue angle 45 , which is consistent with the results in Reference 12.As shown in Figure 13, the unity color difference ellipses in both of the transformed abplanes appear very uniform with little skew, where the few ellipses exhibiting visible eccentricity are located in the regions of the largest isometric disagreement values. (A) (B) Optimization Optimization Optimization Optimization (A) (B) Optimization Optimization Local maximum relative isometric disagreement of neural network color space embeddings w.r.t.CMC, evaluated on the ab-plane of CIELAB. (A) (B) Optimization Optimization (A) Optimization Optimization F I G U R E 1 3 Unity color difference in the embedded ab-plane associated with neural network color space transformations trained for the CMC color difference formula. | Results for CIE94 color difference formula The implementation of the CIE94 color difference formula is based on Reference 8 with k L ≔ k C ≔ k H ≔ 1, K 1 ≔ 0:045, and K 2 ≔ 0:015.Again, for the sake of symmetry in the sense of the defining properties of a metric, the weights S C and S H in the formula are determined through the arithmetic mean of the chroma coordinates of each color pair.For this color difference formula, the reference methods evaluated for comparison are the multigrid optimization method 12 (Multigrid) and the analytical method in Reference 15.For comparative purposes, the original (follow-up) convex optimization for minimizing the maximum relative isometric disagreement in Reference 15 is adapted to the present setting by minimizing instead the mean squared relative or absolute isometric disagreement in accordance with Section 3.4 through gradient descent, and the resulting embedding transformations (determined by the correspondingly adjusted constants P and Q in Reference 15) are referred to as Analytic mrd or Analytic mse, respectively.Note that this adaptation of the method does not lead to a degradation of the overall performance, but on the contrary, except for the maximum relative disagreement of Analytic mrd, all considered performance metrics are improved in the present evaluation.Again, the neural network color space transformations optimized with respect to the mean squared relative or absolute isometric disagreement are referred to as NN mrd or NN mse, respectively. | Comparative evaluation on small color differences The evaluation results for small color differences are summarized in Table 6.Compared to the multigrid optimization method (Multigrid) which is based on minimizing the mean squared absolute isometric disagreement, the embedding neural network trained with the same optimization criterion (NN mse) delivers a 39% lower STRESS index.Compared to the analytical method, the neural network color space transformations optimized with respect to the relative or absolute disagreement measure (NN mrd/mse) slightly outperform their respective analytical counterparts (Analytic mrd/mse) in the corresponding reference indices (by about 10%).Interestingly, in contrast to the preceding results for the DE2000 color difference formula, changing from the absolute to the relative disagreement measure in the objective function seems to cause an increase in the maximum relative isometric disagreement, which is observed for both the machine learning and the analytical approaches.Overall, the neural network color space embeddings again exhibit lower average isometric disagreement than the transformations of the reference methods, which is reflected in their corresponding STRESS indices and means and standard deviations of the relative isometric disagreement, irrespective of the optimization criterion being employed during training.In addition, Table 7 provides the evaluation of the symmetrization effect with respect to the CIE94 color difference formula, where the neural network embeddings associated with the absolute or relative disagreement measure, NN mse and NN mrd, are trained with either the symmetrized or the original asymmetric version of the formula as ground truth and subsequently cross-evaluated on these two formulas through the STRESS index.As expected, evaluating the nearly isometric embeddings on the original asymmetric formula degrades the performance in general (last line vs. second-last line).However, the effect is much less noticeable compared to the case of CMC, showing a performance decline of at most 20%.Moreover, training with the original asymmetric formula instead of the symmetrized version makes hardly any difference in performance, no matter which version of the formula is taken as reference for evaluation (compare the second with the third column, or the fourth with the fifth column of the table ).With CIE94 being the simplest among all considered color difference formulas, the lowest isometric disagreement values are observed for this formula and the performance variation across the neural network color space transformations trained with different optimization criteria dilutes further in value (with less than 7% difference in all average-based indices).As illustrated in Figure 14, 11 the dependency of the embedding transformations on the choice of optimization criterion is hardly discernible in respect of their geometry; when comparing the two images very closely, a slightly more stretched central area is identified in the transformation minimizing the mean squared relative disagreement (NN mrd).The difference becomes more distinct when comparing the respective and the spatial distribution of the relative isometric disagreement.The unity color difference ellipses in both of the transformed ab-planes presented in Figure 16 appear nearly perfectly circular, which indicates a high agreement of the Euclidean metric on the transformed spaces with the underlying color difference formula. | Evaluation on large color differences Since the CIE94 color difference formula exhibits to a certain extent improvement over the Euclidean metric in CIELAB space (CIE76) in predicting large-scale visual differences (as opposed to the CMC formula, cf.Reference 29), as one more example for demonstrating the broad applicability of the proposed machine learning Euclidization with color differences from 5 to 20 CIELAB-units is also evaluated on this formula.After the first 600 000 iterations of training with respect to the mean squared relative or absolute isometric disagreement, the STRESS index and the mean, maximum, and standard deviation of the relative isometric disagreement of the resulting neural network color space transformations amount to 0:0074, 0:0039,0:1203,0:0070 ð Þ or 0:0070, 0:0043,0:1048,0:0074 ð Þ , respectively.As with the preceding evaluation on the DE2000 color difference formula, the results for small and large color differences herein are similar (compare Table 6); in particular, no significant deterioration in any of the considered disagreement indices is identified in the evaluation results for large color differences.This again verifies that the proposed approach is not limited to small color differences. | DISCUSSION Subsequently, four subjects are discussed: the computational effort required during the inference stage of the proposed neural network approach (cf.Section 7.1), the total performance of Euclidized color difference systems in terms of their perceptual uniformity evaluated on experimental visual data (cf.Section 7.2), the feasibility of adapting the present method to the task of color space modeling with experimental visual data (cf.Section 7.3), and comparison as well as potential intersections between the present work and a selection of machine learning approaches to perception-based image processing issues (cf.Section 7.4). | Computational effort A typical issue with machine learning based methods is the relatively large amount of computational resources required to perform the necessary computations.In the present work, particular care is taken to devise efficient neural networks, so as to avoid using an excessive Optimization Optimization F I U R E 1 Unity color difference ellipses in the embedded ab-plane associated with neural network color space transformations trained for the CIE94 color difference formula. Optimization Optimization amount of operations (recall discussion on residual layers in Section 3.1). Optimization Optimization According to the layout presented in Section 5.1 (Table 1 and Figure 6), in case of d ¼ 3, transforming a single point in the original color space into its coordinates in the embedded color space through the proposed neural network color space transformation implies a computational burden of 2970 multiplications, 3060 additions, and 210 evaluations of the hyperbolic tangent activation function.Here, one third of the multiplications associated with the densely connected alternative are saved through the architecture with residual connections.While this transformation is still computationally more expensive than traditional color space conversions, it is not prohibitively costly when performed on modern graphics processing hardware.In this context, it should also be noted that the computational effort of the neural network color space transformations herein is much lower than that of some modern image enhancement algorithms such as machine learning based super resolution methods (cf.e.g., Reference 30).For reference, when performed on the same hardware as employed for training the neural network transformations (NVIDIA Quadro RTX 5000 GPU), the time for converting the color coordinates of an image in four common resolutions amounts to 5:4ms for an image in VGA resolution, 16:2ms for an HD (720 p) image, 36:8ms for a Full HD (1080 p) image, and 149:3ms for a 4K UHD image.It should be noted that, at this stage, no attempt at optimizing the algorithm for reduced conversion time (e.g., through the use of lookup tables or quantization) has been made. Optimization Optimization In total, the neural network employed in this exposition of the method is parametrized with 3183 free floating point parameters (for d ¼ 3).The amount of memory required for storing these parameters is less than that required for the storage of the look-up table employed in Reference 12 or the pairs of grid points defining the transformation developed in Reference 17. Optimization Optimization Depending on the color difference formula as well as other factors such as requirements on accuracy or training speed, a modification of the neural network layout decreasing the computational effort and memory requirements may be feasible.In fact, embedding the original color space into ℝ 3 is a much easier task compared to the corresponding inverse approximation or the problem of higher-dimensional embedding for d ≥ 4 in terms of network capacity being required; the layout in Table 1 is chosen mainly in consideration of the speed and stability of the inverse training and is therefore rather generous in size in respect of the actual Euclidization problem.For instance, experimentation reveals that, if a 5% higher mean squared relative isometric disagreement with the DE2000 color difference formula is acceptable, it suffices to endow the corresponding embedding neural network with only one third of the existing neurons, which then requires about 20% of the original computational effort.Further reduction of both the computational effort and the size of the parameter storage may be achieved through quantization and the use of fixed point arithmetic. | Perceptual uniformity of Euclidized color difference system As noted in the introduction Section 1, functioning as a new color space, the Euclidized color difference system endowed with the Euclidean metric is expected to exhibit similar perceptual uniformity to that of the underlying reference color difference formula, as long as the isometric disagreement in the Euclidization step is insignificant.To demonstrate this, the currently CIE-recommended DE2000 color difference formula is taken as reference and the four original experimental visual datasets employed for its derivation, BFD-P, 31 Leeds, 32 RIT-DuPont, 33 and Witt, 34 are considered for evaluation 12 of the corresponding two Euclidean spaces resulting from the neural network nearly-isometric embeddings, referred to as NNmrd [DE2000] and NNmse[DE2000] in the sequel (recall Section 6.1 for analogous notations).In accordance with Reference 35, the STRESS between the visual and measured color differences (ΔV i vs. ΔE i ) is employed as performance metric for assessing the perceptual uniformity of each color difference system and the statistical significance of the performance deviation from the reference color difference formula is evaluated through the twotailed F-test (i.e., the F-statistic is determined through the ratio of two squared STRESS indices, cf.Reference 20 for more details).The evaluated STRESS indices and Fstatistics are given in Table 8 where values associated with the reference color difference formula, DE2000, are highlighted in bold.From the STRESS evaluation (upper half of table), the performance of both Euclidized color difference systems, NNmrd[DE2000] and NNmse [DE2000], is close to that of the DE2000 color difference formula.Across various datasets, the STRESS values of both embedded spaces fluctuate slightly around the reference values associated with DE2000, with the maximum relative performance gain below 9% identified in the RIT-DuPont dataset and the maximum relative performance decline below 3% identified in the Leeds dataset.According to the results of the F-test (lower half of table), all evaluated F-statistics fall within the mid-range of the corresponding 95%-confidence intervals, which indicates that there is no statistically significant difference between the perceptual uniformity of NNmrd [DE2000] or NNmse[DE2000] and that of the original DE2000 color difference system.For an extensive performance comparison across various color difference systems as well as an indepth discussion on proper statistical evaluation of performance discrepancy in respect of perceptual uniformity, the reader is referred to Reference 35 (note that the STRESS values therein are all upscaled by a factor of 100). | Perceptual uniformity of Euclidized color difference system Again, it is noted that the Euclidization task only focuses on minimizing the isometric disagreement between the metric defined by a given reference color difference formula and the Euclidean metric on the corresponding embedded color space, which constitutes a theoretical function approximation problem detached from experimental visual data.Accordingly, evaluating the resulting Euclidean color space on experimental visual data as above is only meant to provide additional information on the performance variation of the considered color difference system prior to and after Euclidization, which cannot replace the rigorous efficacy assessment of the proposed Euclidization approach presented in Section 6, nor should this be confused with the quality assessment of existing color difference formulas. | Outlook on color space modeling with visual data Considering the promising Euclidization results of the proposed neural network color space transformations, it is natural to discuss the feasibility of carrying over the present machine learning approach to the task of modeling a perceptually uniform color space by means of data from visual experiments, similarly to the development of the various performance-enhancing color difference formulas based on the CIELAB color space.First of all, it should be emphasized that the present approach to color space Euclidization relies on unsupervised learning with randomly generated color difference vectors as training examples, which in particular excludes the issue of overfitting.In contrast, when employed for approximating a perceptually uniform color space according to experimental visual data, the neural network would be trained in a supervised manner and the performance of the resulting color model would depend on the extent and distribution of the underlying training data.Ideally, the labeled data in such a context, that is, example color pairs labeled with their perceived visual differences (ΔV i ), should be uniformly distributed across the original color space so as to prevent local distortions in the resulting color model, and the amount of them should be proportional to the size of the neural network so as to prevent overfitting.Under this consideration, existing experimental visual datasets, such as those employed for deriving the DE2000 color difference formula (cf.BFD-P, 31 Leeds, 32 RIT-DuPont, 33 and Witt 34 ), may need further enhancement to support a highly accurate neural network approximator for a perceptually uniform color space.As a solution, more extensive training data may be obtained, for instance, by conducting supplementary visual experiments with particular attention payed to the above aspects, or by augmenting existing experimental visual data with artificial training data, for example, through interpolation techniques, noise injection, 36 or GANs. 25More study on this topic is left to future work. | Some notes regarding further related works In view of the plethora of vision-related machine learning efforts, it is reasonable to address how the present article relates to those works.The subsequent discussion includes a small selection of references on adjacent issues, which serve as representatives for drawing comparison with and expanding perspective. | Some notes regarding further related works From an interdisciplinary point of view, machine learning methodology and color-related issues based on human visual perception are both strongly represented in The unifying feature of the works mentioned so far is that they are all in one way or another concerned with image processing by means of deep neural networks, that is, a two-dimensional image signal is processed through a neural network, for which building blocks that excel in analyzing information within a spatial context are employed, such as by exploiting the translation invariance of two-dimensional convolutional layers and pooling layers.In the present work, on the other hand, the color information is present in its pure form as a color coordinate triple, and accordingly, the neural network employed for processing this information falls within the category of fully connected architectures and need not even be deep.In particular, for tackling the present Euclidization problem, there are no spatial patterns to be analyzed, and deep CNNs that are so ubiquitously being exploited in other vision-related works are not well suited in this context.Actually, the same applies to modeling perceptual uniformity in general: in CIE colorimetry, color difference modeling is based on psychophysical experiments where the difference between two plain color patches on a uniform background is identified at a time (cf.e.g., References 22,31,33); in particular, no complex patterns are considered and deep CNNs that may aid in modeling spatial visual response would not be useful in deriving a perceptually uniform color space from existing experimental visual data (also recall discussion in Section 7.3). | Some notes regarding further related works However, it may be beneficial in general to explore the impact of taking a perceptually uniform color space as working domain on the performance of the aforementioned machine learning approaches in perception-based image processing contexts.For instance, the neural network color space transformations derived in the present work may be employed as color space pre-or post-transformations at the input or output layers of existing image processing neural network architectures.The research in Reference 44 on color conversion in variational autoencoders suggests that this type of pre-or post-coding may indeed affect the performance of the original neural networks. | CONCLUSION In this work, a general methodology making use of machine learning techniques is proposed for the issue of color space Euclidization.A parsimonious neural network architecture is employed herein and training is conducted in an unsupervised manner based on random sampling.The impact of the key disagreement measure on the color space embedding is elucidated through a distinction of cases where either the relative or the absolute isometric disagreement forms the basis of the objective function.Evaluation on well-established color difference formulas demonstrates that the proposed approach is able to deliver powerful approximators for the desired color space transformations and outperforms previous contributions in respect of commonly used average disagreement measures. AUTHOR CONTRIBUTIONS Lia Ahrens developed and implemented the machine learning algorithm.Julian Ahrens provided the differential geometric background information and verified and visualized the evaluation results.Hans D. Schotten contributed further to the technical background and ensured the availability of the necessary equipment. AUTHOR CONTRIBUTIONS for verifying the tables and figures in this article are available in the following Git repository: https://github.com/julian-ahrens-dfki/mlacse.Therein, only the six primary scenarios introduced in Section 4 are included. ORCID Lia Ahrens https://orcid.org/0000-0002-9382-4732ENDNOTES 1 The probability distribution of the test color difference vector P Δx and the corresponding sampling procedure for the color difference vector Δx will be specified for each of the considered example scenarios in Section 4. 2 In this context, the isometric disagreement loss term takes the role of a sparsity penalty.The joint neural network can therefore be regarded as a variant of a sparse autoencoder (cf.Reference 19, sec.14.2.1). 3 Recall that in References 12,17, the reason for separating the L-coordinate from the ab-plane of CIELAB is that the lightness difference is calculated independently from chroma and hue in all considered color difference formulas, CMC, and CIE94.Of course, it is possible to employ a neural network architecture without this type of channel separation, which indeed exhibited no significant performance difference during experimentation.However, since the absence of cross-contamination between lightness and chroma (as is the case with CIELAB) is a desirable feature in practical applications such as image processing tasks, a separation of the L-channel from channels associated with the ab-plane is also imposed in the present neural network transformations. 4Here, the case of embedding the lightness coordinate according to CIE94 is an exception, as the corresponding optimal transformations are by definition the trivial identity mapping and thereby do not require any approximation. 5In case of CIE94, the transformations associated with the L-coordinate in the upper half of Figure 6 are replaced by the trivial identity mappings (recall Footnote 4). 6In the present approach, since unlimited training examples can be generated through random sampling, overfitting may not occur, so that the training result may be improved indefinitely.However, the inverse training typically progresses very slowly; in order to limit training time, a baseline value that is accurate enough in practice is taken here as stop criterion for the inverse approximation. 7Recall that for all three considered example color difference formulas, the L-coordinate is processed independently from the abplane of CIELAB (cf.Section 5.1, in particular Figure 6 and Footnote 3).Therefore, the transformation of the ab-plane is invariant under changes of L Ã , which applies to all upcoming figures, Figures 7-16.(In those figures, the only part that depends on L Ã is the auxiliary sRGB gamut plotted on the background.) 8In order to maximize the similarity of the transformed ab-plane with the familiar ab-plane of the CIELAB color space, in these plots, the transformed ab-plane is first translated so that the white point again resides at coordinates 0,0 ð Þ and then rotated and, if necessary, mirrored so that the average squared difference between the CIELAB color coordinates and the coordinates in the transformed ab-plane is minimized.Note that all performance metrics considered in the evaluation are based on the Euclidean distance and thus invariant under translations, rotations, and reflections of the transformed color space. 9In order to avoid artifacts caused by sampling the color difference vectors randomly, a deterministic procedure is used herein.This procedure consists in generating a regular grid within a cube around the color center with an edge length of 2 Á 5 ¼ 10 CIELAB-units and then selecting from this grid only the points that have a distance of at most 5 CIELAB-units from the center. 10Here and in the sequel, Figures 11-13 are generated analogously to Figures 7-9, respectively; for more details on the generation procedure for those figures, the reader is referred to the last paragraph of Section 6.1.1, in particular Footnotes 7-9. 11Again, Figures 14-16 are generated analogously to Figures 7-9, respectively; for more details on the generation procedure for those figures, the reader is referred to the last paragraph of Section 6.1.1, in particular Footnotes 7-9. ORCID on itself (region marked with red rectangle).In contrast, when including the proposed regularization measures in the training routine as presented in Algorithm 1, with hyperparameters #R1 i ð Þ : ORCID and γ ≔ e γ ≔ 10 À5 , β ≔ 10 À8 ð Þ , the resulting neural network color space transformation does not suffer from any local noninvertibility issues, with the corresponding ab-plane transformation visualized in Figure A1B. Figure A2 provides a comparison of the respective training course while including or omitting the proposed regularization measures.On the one hand, in the lower half of Figure A2, the two courses of training loss hardly differ from one another, which indicates that imposing the regularization term in (13) with a small factor β does not have a negative impact on the performance of the embedding transformation.On the other hand, as illustrated in the upper half of Figure A2, while the maximum relative isometric disagreement begins to explode after running Subroutine R1 for about 400k iterations continuously, this metric is kept low at a level around 1 through the alternation with Subroutine R2 in between the training iterations, which demonstrates the damping effect of the regularization measures on the local approximation error of the neural network color space transformation. ORCID F I G U R E A 2 Course of forward loss (i.e., STRESS 2 ) and maximum relative isometric disagreement while training an embedding neural network with respect to the objective function given in the modified setting associated with the DE2000 color difference formula, with versus without regularization measures. 1 Comparison: residual versus densely connected layers. F I G U R E 2 Course of mean squared relative isometric disagreement while training embedding neural networks according to the DE2000 color difference formula, where the hidden layers consist of either two densely connected layers of size 45:45 or a residual building block of size 45:15:45. F I G U R E 2 F 2 would lead to a subsequent target ambiguity in the output of the neural network transformation and thereby entails the potential to destabilize training.The additional constraint on the global scale of the color difference estimates does not introduce a significant extra burden to the training of the F I G U R E 3 Illustration of relative error functions. ALGORITHM 1 Training algorithm.[Correction added on 11 October 2023, after first Online publication: The formatting of Algorithm 1 has been corrected.]F I G U R E 4 Course of forward and inverse losses while training an embedding neural network according to the DE2000 color difference formula; only the first 8 rotations of Algorithm 1 are depicted in the figure, where the forward-to-inverse ratio for regularization is set to # ALGORITHM 1 U R E 5 Comparison: including versus omitting the proposed regularization measures while training the embedding and inverse color space transformations according to the DE2000 color difference formula. ALGORITHM 1 needed over the entire training course with regularization.As a candidate for the forward-to-inverse ratio, #R1 i ð Þ : #R2 i ð Þ ½ , a base number of rotations per training block, I, a fixed number of forward iterations per rotation, #R1 i ð Þ, and a blockwise linearly increasing number of inverse iterations #R2 i ð Þ are chosen.Here, the linear increase aims to compensate for the typically convex decreasing trend of the inverse training loss.In total, 15 training blocks of I ≔ 10 rotations, with rotation lengths # F I G U R E 6 Embedding and inverse neural network transformations for CIELABbased examples in case of d ¼ 3. F I G U R E 6 Local maximum relative isometric disagreement of neural network color space embeddings w.r.t.DE2000, evaluated on the ab-plane of CIELAB.and the mean, maximum, and standard deviation of the relative isometric disagreement amount to 0:0122,0:4127,0:0197 ð Þ or 0:0144,0:8329,0:0248 ð Þ , respectively.These disagreement values are similar to the preceding ones in Table 9 Unity color difference ellipses in the embedded ab-plane associated with neural network color space transformations trained for the DE2000 color difference formula.T A B L E 3 Evaluation results for embedding CIELAB into ℝ d w.r.t.DE2000, where d ¼ 3,4,5,6. F I G U R E 1 0 Image of a rectangular grid in the ab-plane of CIELAB embedded into ℝ 3 via a neural network color space transformation trained according to the DE2000 color difference formula.T A B L E 4 Performance comparison when embedding CIELAB into ℝ 3 w.r.t.CMC for small color differences.Bold values are the minima of the corresponding columns. 1 Local maximum relative isometric disagreement of neural network color space embeddings w.r.t.CIE94, evaluated on the ab-plane of CIELAB. T A B L E 8 Perceptual uniformity of the Euclidean color spaces resulting from the neural network embeddings w.r.t. the DE2000 color difference formula evaluated on experimental visual data.computer vision.A typical class of instances is represented by deep learning approaches to perceptual-quality-based image compression, for example, Reference 37, and tone mapping of high dynamic range (HDR) scenes, for example, References 38,39, where multiscale decompositions based on Laplacian/ Gaussian pyramid40 or/and bilateral filtering41 are encapsulated in various forms in the early layers of deep convolutional neural networks (CNNs) for encoding visual information within an image (also compare Reference 42 for a typical deep CNN architecture (U-net) for hierarchical multiscale encoding and decoding).It is worth noting that those multiscale decompositions on the input side of CNNs resemble the early stages of human visual response in the sense that they reflect the bandpass/lowpass nature of human contrast sensitivity functions (CSFs) in the spatial frequency domain.Recently, Akbarinia et al.43 investigated CSFs within pretrained task-dependent deep neural networks (mostly CNNs) through feature extraction and transfer learning, which revealed that human-like CSFs can be recognized with various degrees of similarity at different layers within a neural network and across different neural networks, depending on the considered image processing task. T A B L E 8 Performance comparison when embedding CIELAB into ℝ 3 w.r.t.DE2000 for small color differences. T A B L E 8 T A B L E 2Note: Bold values are the minima of the corresponding columns. T A B L E 8 Effect of symmetrizing the CMC color difference formula. T A B L E 8 T A B L E 5 T A B L E 8 Bold values are the minima of the corresponding columns. T A B L E 8 Note:

섹션 본문 149문단 · 95,582자

(제목 없음)

1In this work, a machine learning methodology is proposed for the issue of color space Euclidization.Given a color difference formula as reference distance law, the Euclidization task consists in finding an injective transformation from the original color space into a real vector space and the corresponding inverse transformation, such that the Euclidean distances in the embedded color space align with the reference color distances.For this, artificial neural networks are devised as function approximators for the color space transformations being sought.Training these neural networks is accomplished through unsupervised learning, making use of random sampling and gradient descent.As key disagreement measure, either the (symmetric) relative isometric disagreement or the standardized residual sum of squares (STRESS) index is considered at a time and incorporated as part of the optimization criterion into the objective function.Comparative evaluation is carried out on well-established color distance laws, including the CIELAB-based DE2000 color difference formula.The evaluation results indicate significant performance advantages of the proposed approach over previous contributions.

| INTRODUCTION

2The derivation of perceptually uniform color spaces is considered one of the key issues in colorimetry.Back in 1943, based on the experimental data collected by MacAdam, 1 Siberstein 2 constructed a curvilinear coordinate system on the CIE 1931 xy chromaticity diagram whose coordinate curves are parallel to the principal axes of the MacAdam ellipses.He also sketched a method for constructing a surface embedded in three-dimensional Euclidean space from this coordinate system, such that perceived color distances are faithfully represented by geodesics (shortest paths) on the surface.A key observation was that the resulting surface could never be flat and that its curvature would be of quite noticeable proportion.In the following decades, extensive research has been conducted on relating human visual color perception to a specified color coordinate system, which led to color models such as the CIELUV and CIELAB color spaces, 3 as well as the perceptually uniform color spaces (UCS) based on the CIECAM02 4 and CIECAM16 5 color appearance models.Accompanying the development of such models, refined color difference formulas were derived, augmenting the original color space and thereby allowing for more accurate predictions of visually perceived color differences.As a well-known instance of this, a series of color difference formulas based on the CIELAB color space came into existence, including the CMC, 6 BFD, 7 CIE94, 8 DIN99d, 9 and DE2000 10 color difference formulas, with the last one currently being recommended as standard by the International Commission on Illumination (CIE) for small color differences below 5 CIELAB-units (cf.Reference 11).One major concern over these performance-enhancing color difference formulas consists in the non-Euclidean nature of the corresponding metric spaces, which is rather undesirable in practical applications.If the original color space endowed with the considered color difference formula (so-called color difference system) could be embedded isometrically into a Euclidean space, a new perceptually uniform color space would emerge.At this point, it should be noted that, in a sense, the work by Silberstein 2 already represents an early instance of an attempt at finding such an isometric embedding, albeit directly using experimental data in absence of a reference color difference formula.

3In general, in order for an isometric embedding into a Euclidean space (so-called Euclidization) to exist, the color difference formula has to satisfy the following conditions:

41.By definition, an isometric embedding is a map between two metric spaces that preserves distances.Thus, for an isometric embedding to exist, it is necessary that the color difference formula satisfies the defining properties of a metric, that is, positivity, symmetry in its two arguments, and the triangle inequality.(This condition is not always fulfilled for existing color difference formulas.For instance, CMC and CIE94 are asymmetric in their two arguments; when being Euclidized, this may be compensated for through symmetrization such as in Reference 12.) 2. While the original color space can always be trivially embedded into a metric space through the identity mapping once the underlying color difference formula indeed defines a metric, limiting the choice of codomain to a Euclidean vector space adds further constraints on the color difference formula.When the dimension of the codomain is not specified, these constraints are difficult to characterize, but in the case where the codomain is of dimension three (i.e., of the same dimension as that of the original color space), a differential geometric characterization is available (cf.Reference 13, Thm.7.10): The original color space endowed with the color difference formula as metric is isometrically embeddable into the Euclidean vector space ℝ 3 if and only if there exists a smooth structure 13(Appendix A) and a Riemannian metric 13(Ch. 2) on the color space turning the color space into a Riemannian manifold 13(Ch. 2) such that a. the given color difference formula is exactly the Riemannian distance function (i.e., the shortest path metric, cf.Reference 13, Thm.2.55) of the Riemannian manifold and b. the Riemannian manifold has zero curvature 13(Ch. 7) .

5Concerning condition (a), the ansatz of modeling the space of perceived colors as a Riemannian manifold is at least over a century old 14 and many of today's color difference formulas can be seen to at least asymptotically (i.e., as color difference tends towards zero) agree with a Riemannian distance function.Concerning condition (b), for the CIELAB-based color difference formulas, CMC, CIE94, and DE2000, Urban et al. 12(sec. 1.A) analyzed the curvature of the ab-plane of CIELAB and showed that the corresponding Riemannian metrics exhibit nonzero Gaussian curvature, which poses an obstruction to the existence of an isometric embedding of CIELAB into ℝ 3 with respect to these color difference formulas.

6In view of the above limitations while attempting to embed a color difference system isometrically into a Euclidean space, efforts have been made to identify nearly-isometric embeddings.That is, given a color difference formula as reference distance law, an injective transformation from the original color space into a Euclidean space is being sought, such that the deviation of the resulting Euclidean distances from their respective reference color distances is minimized with respect to a certain disagreement measure.Approaches to this type of color space embedding problem include, but are not limited to: analytical methods, for example, References 15,16, and numerical methods, for example, References 12,17.Among these, the analytical approaches basically aim at working out the antiderivative of the reference color difference formula, which is only feasible for rather simple color distance laws, whereas the numerical methods mainly rely on coupled local optimizations on meshes complemented by interpolation techniques.

7This work continues the previous efforts on identifying mathematical approximations for embedding existing non-Euclidean color difference systems isometrically into Euclidean ones, referred to as color space Euclidization in the sequel.While the derivation of the color difference formula ΔE itself is based on experimental visual data (i.e., perceived color differences ΔV ), the corresponding color space Euclidization constitutes a theoretical approach that is detached from actual visual experiments.Performance-wise, the perceptual non-uniformity of the Euclidized color difference system (i.e., deviation of ΔE Euclidean from ΔV ) is upper-bounded by the perceptual non-uniformity of the reference color difference formula (i.e., deviation of ΔE from ΔV ) plus the isometric disagreement arising from the color space embedding (i.e., deviation of ΔE Euclidean from ΔE).Therefore, if the isometric disagreement in the Euclidization step could be minimized, the resulting new color space would largely preserve the perceptual uniformity of the underlying color difference formula while benefiting from the inherent advantages of a vector space representation, which constitutes the general motivation of color space Euclidization.From a practical point of view, functioning as a perceptually uniform color space, the Euclidized color difference system would offer more possibilities than the original one endowed with non-Euclidean color difference formula in a number of applications.For instance, the vector space representation of perceptual uniformity would allow for linear interpolation between color coordinates within the new space while preserving the perceived color difference ratios, for example, the midpoint between two points within the new vector space could be used for representing the perceived average color of the two corresponding color samples.In the context of image processing, in contrast to the color difference formula merely serving the purpose of a metric, the invertible transformation associated with the color space Euclidization would allow for encoding color information into a Cartesian coordinate system to work with and decoding back into the original color coordinate system.Typical instances benefiting from this are represented by image quantization and lossy image compression, where transforming the initial color space (e.g., sRGB or CIELAB) into a linear working domain that is arranged in a perceptually uniform manner would allow for determining threshold values for just-noticeable or -tolerable color distance through equal-sized l 2 -spheres, based on which an efficient and perception-based information reduction could be implemented (cf.e.g., Reference 18, sec. 1 for a more detailed discussion).

8In recent years, with the rising availability of computational power, machine learning techniques have come into use in a variety of research fields and real world applications such as image processing, biomedicine, and virtual reality.The main aim of this work is to explore the capability of such techniques in tackling the above color space Euclidization problem.For this, a machine learning approach making use of artificial neural networks is proposed herein.In general, neural networks are function approximators that typically are composed of intermediate mappings (layers), each combining an affine transformation with adjustable parameters (weights or kernels, and bias) and a fixed nonlinear transformation (activation function).Given an optimization criterion (loss function), the parameters of a neural network are adjusted to best fit all the available training examples through stochastic gradient descent (training), cf. for example, Reference 19.When applied to the present Euclidization task, the neural network under consideration represents a continuously differentiable color space transformation.Concerning the optimization criterion employed during training, it is natural to define this in accordance with a pre-determined key performance metric.In the literature, the two most considered disagreement measures in the context of color space Euclidization are the relative isometric disagreement (cf.e.g., References 15,17) and the standardized residual sum of squares (STRESS) index (cf.e.g., References 12,20).While the former is a common relative error function, the latter is a statistical measure of absolute disagreement.Without attempting to judge which one of these disagreement indices is more appropriate for evaluating the efficacy of a nearly-isometric color space embedding, in this work, they are optimized separately through training and the resulting neural network color space transformations are evaluated for comparison.In this exposition of the method, the DE2000, CMC, and CIE94 color difference formulas are taken as example color distance laws for evaluation.Compared to previous contributions, the proposed machine learning approach applies to a broader range of settings and proves to be more powerful when evaluated with various disagreement metrics, regardless of the choice between the aforementioned training criteria.

9In order to avoid confusion, it should be emphasized that the approach to color space Euclidization merely aims at achieving an alignment of the Euclidean metric on the embedded color space with the metric induced by the reference color distance law, which is independent of the efficacy of the underlying color difference formula itself in predicting actual visual differences.

10The remainder of the article is organized as follows.In Section 2, a mathematical formulation of the problem of color space Euclidization is presented.Section 3 provides a general machine learning methodology for the considered Euclidization problem, including the architecture of the employed neural networks, the random sampling procedure for generating training examples, the loss functions associated with the aforementioned disagreement measures, and the training algorithm that is based on stochastic gradient descent and fortified with certain regularization measures.In Section 4, a series of example scenarios selected for training and evaluation are introduced.The layout of the neural network color space transformations and the training configurations employed for those example scenarios are specified in Section 5.The evaluation results are presented in Section 6. Section 7 includes the following discussions: the computational effort required during the inference stage of the proposed neural network approach is discussed in Section 7.1; the perceptual uniformity of the Euclidized DE2000 color difference system is evaluated on experimental visual data in Section 7.2; as an outlook, potential challenges that may be encountered when carrying over the present approach to the issue of color space modeling with experimental visual data are addressed in Section 7.3; for expanding perspective, potential intersections of the present work with a selection of machine learning approaches to perception-based image processing issues are discussed in Section 7.4.Section 8 concludes the article.

11Throughout this work, k Á k refers to the Euclidean norm and bold symbols refer to multidimensional vectors or tensors.

| PROBLEM OF COLOR SPACE EUCLIDIZATION

12,r 0 ð Þ7 !err r, r 0 ð Þ denote the reference error function that measures the discrepancy between two metrics.For a color space transformation f :

13for all x, y ℝ 3 with x ≠ y.Further, let R ⊆ ℝ 3 denote the reference region and P Δx denote the probability distribution of the test color difference vector in the original color space.For predetermined ΔE, err, R, and P Δx , and given the dimension of the codomain, d ≥ 3, the problem of nearly-isometric color space embedding according to the reference distance law ΔE consists in finding an injective transformation, f ΔE :

14where,  Δx$P Δx refers to the expectation with respect to the probability measure P Δx .Correspondingly, the inverse mapping of f ΔE is to be approximated by a transformation, e f ΔE :

15In this work, either of the following two types of isometric disagreement function is considered at a time and incorporated as reference disagreement measure into the embedding problem:

16• The first type is related to the symmetric relative error, err : r, r 0 ð Þ7 !max r, r 0 f g= min r, r 0 f gÀ 1.The corresponding relative isometric disagreement function reads as

17for any x, y ℝ 3 with x ≠ y, and f : ℝ 3 !ℝ d .In this case, problem (1) translates to minimizing the mean squared relative disagreement between the Euclidean distances in the embedded color space and the distances according to the reference color difference formula.The relative isometric disagreement is a common relative error function and has been incorporated as key performance measure into the objective function in various forms in previous contributions, cf. for example, References 15,17.

18Since the L 2 space lies midway between the L 1 and L ∞ spaces in the sense of interpolation theory (cf.Reference 21), the squared error minimization proposed herein can be considered as a compromise between the minimizations of mean and maximum relative isometric disagreement.• The second type is related to the absolute error, err : r, r 0 ð Þ7 !j r À r 0 j.The corresponding absolute isometric disagreement function reads as

19for any x, y ℝ 3 , and f : ℝ 3 !ℝ d .When taking this function as the key disagreement measure in (1) and approximating the double integral therein through Monte-Carlo simulation with a finite number of random samples (law of large numbers), the respective optimization problem translates to minimizing the standardized residual sum of squares (STRESS) index 20 while excluding any scale ambiguity inherent in that index.More details on this equivalence are provided in Section 3.4.2.In colorimetry, the STRESS index is considered a statistically more reliable alternative to the PF/3 index 22 for evaluating the similarity between two color difference datasets (cf.Reference 20).Apart from the correspondence with the STRESS index, the mean squared absolute error is a common indicator for average discrepancy and has been employed as optimization criterion in previous contributions to the issue of color space Euclidization, cf.References 12,18.

20Depending on the nature of the underlying color difference formula, the choice between the above reference disagreement measures as optimization criterion may have a notable impact on the resulting color space transformation, which will be elucidated in the evaluation section.

21The introduction of the probability measure P Δx in (1) mainly aims at a unified description of the Euclidization problem in terms of the reference range and weights of color distances.Typically, the color difference vector Δx in (1) is decomposed into its length r and direction v, that is, Δx ¼ r Á v, with r and v independently distributed according to their respective probability measures P r and P v .For instance, the direction component v is usually assumed to follow the uniform distribution on the unit sphere S 2 ⊆ ℝ 3 ; the absolute color difference r may be uniformly distributed on an interval r min ,r max ð as in Reference 12, or normally distributed as in Reference 17 where the probability density function of P r was used as weighting factor in the objective function.

| GENERAL METHODOLOGY

22In this section, a general machine learning methodology is proposed for the color space Euclidization problem.The basic idea herein is to exploit the excellence of artificial neural networks in the task of function approximation and training these properly so as to obtain the desired color space transformations.

23Being intended for readers who are not yet familiar with machine learning techniques, the general approach is presented in a self-contained manner, with most of the recurring basic notions and terminology regarding artificial neural networks and training principles introduced in a general fashion in Sections 3.1 and 3.2.Readers who are familiar with machine learning techniques may skip most parts of Sections 3.1 and 3.2, except for the thoughts behind the somewhat unconventional use of residual connections in-between fully connected layers in the present application (cf.second-last paragraph of Section 3.1).Furthermore, in order to enable the machine learning expert to quickly skim through Sections 3.3-3.5,some distinctive characteristics of the proposed approach tailored to the present Euclidization issue are highlighted as follows:

24• Training relies on unsupervised learning through random sampling, which is based on Monte-Carlo simulation following the law of large numbers (cf.Section 3.3); in particular, no external labels are required and overfitting may not occur.• In accordance with the distinction of cases in terms of the reference isometric disagreement measure (recall (3) and ( 4)), two different loss functions are employed for the corresponding optimization problems (cf.Section 3.4).In particular, for minimization with respect to the relative isometric disagreement, a nonobvious choice of loss function is made, which acts as an infinitely differentiable proxy for the original non-differentiable (symmetric) relative disagreement function (cf.discussion in Section 3.4.1);for minimization with respect to the absolute isometric disagreement, the inherent relationship between the minimization of mean squared absolute disagreement and that of STRESS is elaborated (cf.discussion in Section 3.4.2). • A composed training procedure is proposed where the two central optimization problems, (1) and ( 2), are considered jointly and tackled in alternation through certain regularization measures, which aids in preventing potential invertibility issues and speeding up training (cf.Section 3.5).

| Feedforward neural network with residual connections

25In the present application, fully connected neural networks with feedforward architecture augmented by residual connections are employed.Subsequently, a precise description of the related transformations is provided.Let f NN be the output function of a neural network and let u in ℝ I , u out ℝ J , and ξ ℝ P denote the input and output vectors, and the vector of all parameters of the neural network, respectively.For a basic feedforward fully connected neural network, the output function is of the form

26with

27referred to as weight matrix and bias vector, respectively, and f m ð Þ actv : ℝ !ℝ representing the activation function of the layer, which is typically defined as a nonlinear almosteverywhere differentiable function operating component-wise.

28In particular, it holds that u 0

29, and

30for all m ¼ 0, …, M À 2. In (7), the output dimension, J m ð Þ , is also called the size or number of channels of the layer; the input dimension of the first layer, I, and the output dimension of the last layer, J, are referred to as the number of input channels and number of output channels of the neural network, respectively.A layer whose output is not the final output of the entire neural network, that is, (6), is called a hidden layer.The total number of layers, M, is referred to as the depth of the neural network.

31For the present Euclidization task, the solutions to the optimization problems (1) and ( 2) are each approximated by a feedforward neural network where the numbers of input and output channels of the neural network are set to I ≔ 3, J ≔ d ð Þfor the embedding problem (1) and vice versa, I ≔ d,J ≔ 3 ð Þfor the inverse problem (2).Throughout the neural network transformation (except for at the output layer), the hyperbolic tangent function, tanh , is chosen as the activation function, which is defined as

32Compared to other common choices such as the rectified linear unit (ReLU), the hyperbolic tangent is an analytic function, which implies the infinitely differentiable nature of the resulting color space transformation, as opposed to the piecewise-smooth transformations devised in previous contributions. 12,17n top of the basic fully connected layers, the hidden layers employed in the present application are endowed with so-called residual connections.Keeping the above notations for the parameters and layer indices and assuming that M is an even number and the sizes of channels satisfy

33each group of two adjacent layers is considered as a building block, called residual layer, and the input vector to each block, denoted by e u 2lþ1 ð Þ , is additionally propagated through shortcut connections within the block, as illustrated in Figure 1A.The transformation of the resid-

34where, e

35Þ follows the same transformation as in (7).

36Originally, residual connections were introduced for the purpose of improving gradient propagation within a deep convolutional neural network, cf.Reference 23.In the present application, on the other hand, employing residual layers mainly aims at a relatively parsimonious parametrization for the sake of saving computational effort.More specifically, as illustrated through the transition from (B) to (A) in Figure 1, when inserting a small mid-layer between two adjacent fully connected layers of equal size, the total number of weight parameters is reduced, as long as the in-between layer is smaller than half the size of the outer layers.However, because of the dimensionality reduction in the mid-layer, employing such a layout without modification entails the so-called bottleneck effect in general and may lead to a decline in performance; as a countermeasure, introducing skip connections between the outer layers within such an architecture aids in mitigating the bottleneck effect while maintaining the sleekness of the original reduced-size layout, which in particular yields a residual building block as introduced above (cf.Reference 23 for a similar argument).Moreover, from a heuristic point of view, the present Euclidization problem can be thought of as looking for a neural network color space transformation that comprises some linear distortions (e.g., linear embedding or shear) and a (higher-dimensional) nonlinearly distorted identity mapping, which, respectively, can be expressed in terms of the linear parts of the input and output layers, and the operations within a residual building block.In this sense, the aforementioned potential bottle-neck issue mainly affects the component of nonlinear distortions within the entire color space transformation, which is not expected to cause a significant increase in the overall isometric disagreement.In fact, as depicted in Figure 2, experimentation in this work reveals that, despite the concerns over its inherent sparsity, the proposed residual architecture even exhibits slightly better performance and faster convergence compared to its densely connected counterpart.

37The neural network layout employed in the example scenarios for evaluation is determined in consideration of performance, computational efficiency, and training speed, which will be presented in Section 5.1 and discussed in Section 7.1.

| Basic principles of stochastic gradient descent

38The algorithm proposed for training the neural network color space transformations is built on stochastic gradient descent (SGD).Basically, training with SGD requires an almost-everywhere differentiable neural network output function with respect to all parameters (which is fulfilled in the architecture introduced in Section 3.1), a set of training examples, and an almost-everywhere differentiable loss function.

39The set of training examples consists of pairs of input vectors to the neural network and target values towards which the neural network is to be trained.The total number of available training examples may be finite, as is the case with supervised learning where a fixed training dataset is randomly partitioned into mini-batches during each training epoch, or infinite, as is the case with the present approach where a mini-batch of training examples is generated through random sampling for each parameter update (unsupervised learning).A detailed description of the data generation procedure will be presented in Section 3.3.

40A loss function measures the distance of the neural network output from the training target and serves as an indicator for the current approximation error.In the context of color space Euclidization, the shape of the loss function depends on the choice of the reference disagreement measure (recall ( 3) and ( 4)) as well as possible regularization measures.This will be further specified in Sections 3.4 and 3.5.

41In SGD, the loss function is evaluated minibatch-wise and minimized iteratively by moving the parameter vector of the neural network in the direction of the negative gradient.Let f NN Á , ξ ð Þ be the neural network output function with parameter vector ξ (recall (5)) and let f loss denote the loss function.In the update step with index ι, given the corresponding mini-batch of

42n¼0 , the parameter vector ξ is adjusted through

43where, γ > 0 is a tunable hyperparameter, referred to as learning rate, and the gradient can be computed by means of backpropagation which is an instance of reverse mode automatic differentiation based on the chain rule, cf. for example, Reference 19, Ch. 4. Throughout all experiments in this work, the Adam algorithm is employed, which is a refined version of SGD, incorporating an adaptive moment estimator into the update rule (cf.Reference 24 for more details).Following the above general principles of training with SGD, the upcoming subsections are devoted to the individual components of the training procedure devised for the present Euclidization problem.

| Generation of training examples

44In the proposed machine learning approach, training examples for both the color space embedding problem and the corresponding inverse approximation are generated through random sampling on the original color space.

45For the color space embedding problem, random samples are generated with the aim of approximating the double integral in (1) through Monte-Carlo simulation (law of large numbers), which is performed as follows:

461.For each mini-batch indexed by ι, draw independently

47n¼0 , according to the uniform probability distribution on the reference region R ⊆ ℝ 3 .2. For each color center x ι,n R, draw independently

48k¼0 , according to the probability distribution of the test color difference vector 1 P Δx .3. Collect the above samples for all indices n and k into a tensor of training inputs for mini-batch ι,

49When training a neural network color space embedding with respect to a given color difference formula ΔE, in each update step ι, the samples associated with each of the selected color centers, 8) for an index n, are processed through the embedding neural network, from which the Euclidean distances of the transformed samples from the transformed color center are computed.The corresponding training loss is then determined by the disagreement of these Euclidean distances with their respective reference color distances,

50k¼0 , where the latter serve as the training targets associated with the color center

51Similarly, for the inverse approximation, training examples are generated through random sampling following Step 1 of the above procedure, so as to approximate the integral in (2) through Monte-Carlo simulation.While being processed through the composition of the trained embedding neural network and the current inverse neural network, the samples drawn from the original color space serve as the inverse training targets and the inverse training loss is determined by the total transformation error of the joint neural network compared to the identity mapping.

| Isometric disagreement functions for training loss

52Henceforth, for a fixed reference color difference formula ΔE, let f ΔE Á , ξ ð Þ and e f ΔE Á , e ξ denote the neural network output functions with parameter vectors ξ and e ξ employed for solving the embedding problem (1) and the corresponding inverse approximation (2), respectively.

53As introduced in Section 3.2, training a neural network relies on the SGD algorithm, which requires primarily the specification of an almost-everywhere differentiable loss function.In general, it is reasonable to define the loss function in accordance with the key performance metric being included in the optimization criterion.Based on these considerations, when training the embedding neural network f ΔE Á , ξ ð Þ for solving problem (1), either of the following isometric disagreement functions is considered at a time and employed for computing the training loss:

54• When minimizing in (1) the mean squared relative isometric disagreement associated with (3), the logarithmic error function, err: r, r 0 ð Þ7 !j ln r=r 0 ð Þj, serves as a proxy for the original symmetric relative error function during training.The corresponding isometric disagreement function is defined as

55for any x,y ℝ 3 with x ≠ y. • When minimizing in (1) the mean squared absolute isometric disagreement associated with (4), the isometric disagreement function employed during training reads as

56for any x,y ℝ 3 .

57When training the inverse neural network transformation e f ΔE Á , e ξ for solving problem (2), the inverse training loss is determined by means of the total transformation error function, defined as

58for all x ℝ 3 .

59In each parameter update step during training, the respective disagreement function introduced above is evaluated on the current mini-batch of random color coordinates generated according to Section 3.3, from which the mean squared value is determined and minimized as training loss through gradient descent.The rigorous parameter update rules including possible regularization measures will be presented shortly (in Section 3.5).Prior to this, the following explanatory comments are provided for justifying the choice of the isometric disagreement functions ( 9) and (10) in their respective optimization contexts:

| Notes on minimization of mean squared relative disagreement

60In (9), the original symmetric relative error function, r, r 0 ð Þ7 !max r,r 0 f g= min r,r 0 f gÀ 1, is replaced by the logarithmic error function, r,r 0 ð Þ7 !j ln r=r 0 ð Þj, due to the following consideration: The symmetry of the symmetric relative error in its arguments relies on the distinction of cases inherent in the min and max expressions, whereas the logarithmic error exhibits the same type of symmetry while having an infinitely differentiable square; employing the latter for gradient descent aids in avoiding potential instabilities during training.Note that both of these error functions are directly determined by the quotient of their arguments r=r 0 (as opposed to the absolute error function) and minimized at r ¼ r 0 , and their values are close to one another near their joint minimum, as illustrated in Figure 3.

| Notes on minimization of mean squared absolute disagreement

61When evaluated on a finite number of samples, minimizing the mean squared absolute disagreement corresponds to minimizing the STRESS index.To demonstrate this correspondence, let c ΔE i n o i I and ΔE i f g i I denote the estimated and reference color differences evaluated on a dataset indexed with i I, respectively.According to one of the equivalent definitions given in Reference 20, eq. ( 9), the STRESS index between

62where the scale factor

63When employed as a loss function, the mean squared absolute disagreement based on (10) is preferred over the STRESS index, as the scale ambiguity introduced by the normalizing scale factor embedding neural network, as it can trivially be satisfied by rescaling the parameters of the output layer.

| Training procedure

64In the subsequent description of the algorithm, all notations are carried over from Sections 3.3 and 3.4.

65Basically, the joint neural network, e f ΔE f ΔE Á , ξ ð Þ, e ξ , can be considered as an autoencoder 2 where color coordinates in the original color space are encoded into their counterparts in the embedded space through the forward path, f ΔE Á ,ξ ð Þ, and then to be decoded back into themselves through the inverse path, e f ΔE Á , e ξ .Due to the consideration of potential invertibility issues, the minimization of the inverse training loss is incorporated as regularization measures into the training routine for the forward path.This can be expressed in terms of two alternating subroutines that are characterized by their respective parameter update rules as follows:

66R1. Adjust the parameters of the forward path, f ΔE Á ,ξ ð Þ, by minimizing the forward loss.That is, for the current mini-batch indexed by ι, update the parameter vector ξ via

67with γ > 0 and

68where, disg ΔE refers to the isometric disagreement function defined in ( 9) or (10), and

69with e γ > 0, β ≥ 0, and

70where, g disg ΔE refers to the total transformation error function defined in (11) and

71⊆ R are the training samples of mini-batch ι generated for the inverse approximation (recall last paragraph of Section 3.3).

72In (13), the factor β acts as a tuning parameter that balances the proportion between the actual training loss and the regularization term.

73Starting off by training the embedding neural network, f ΔE Á , ξ ð Þ, Subroutines R1 and R2 are run blockwise and alternately, each for a pre-determined number of iterations within the current rotation.The update of parameters ξ is terminated if the performance of f ΔE Á , ξ ð Þ is considered satisfactory (e.g., compared to baseline methods) or no longer exhibits significant improvement.Subsequently, if necessary, the inverse transformation e f ΔE Á , e ξ is further trained by only iterating Subroutine R2 with β ≔ 0 in (13), until the total transformation accu-

74reaches a predetermined reference value.The entire training procedure is summarized in a concise form in Algorithm 1.In the pseudo code, the integers I, #R1 i ð Þ, and #R2 i ð Þ are hyperparameters that are to be tuned for each individual setting.Note that in the case where β ≔ 0 in (13) and the "while loop" in Algorithm 1 is only run for a single iteration with I ≔ 1, the corresponding routine translates to training the embedding and inverse neural network transformations separately in succession without any regularization measures.

75The introduction of the above regularization measures primarily aims to prevent the embedding neural network from being driven towards a noninjective transformation.The key idea behind this consists in taking the performance of the potential inverse transformation, e f ΔE Á , e ξ , as an indicator for the regularity (in particular the injectivity) of the embedding transformation, f ΔE Á , ξ ð Þ.In fact, when looking for a nearly-isometric color space embedding by iterating Subroutine R1 alone, the resulting neural network f ΔE Á , ξ ð Þ is trained to emulate the potentially rather complex characteristics of the underlying reference color difference formula ΔE, which, with rising number of iterations, increases the difficulty of training the corresponding inverse transformation, e f ΔE Á , e ξ .In the worst-case scenario, training in this manner may lead to local irregularities in the form of large local approximation errors or even local noninjectivities.Such irregularities may occur, for instance, when it is possible to achieve a low average loss over the entire color space at the price of sacrificing the performance of the transformation f ΔE Á , ξ ð Þ within a few extremely small regions, cf.Appendix A for an example.As a countermeasure, through the alternation with Subroutine R2 and in particular the regularization term therein (governed by factor β), the joint transformation e f ΔE f ΔE Á , ξ ð Þ, e ξ considered as a whole is driven towards the identity mapping and thereby, the forward path f ΔE Á , ξ ð Þ is more likely to remain injective.It is worth noting that training the forward and inverse paths of the autoencoder e f ΔE ∘ f ΔE alternately as proposed is reminiscent of the approach with generative adversarial nets (GANs) 25 in the sense that the two component neural networks, f ΔE and e f ΔE , indeed operate against one another during training.Figure 4 illustrates the interaction between these two neural networks during the alternations between Subroutines R1 and R2.Each time switching to Subroutine R1, the performance of the inverse path degrades with the growing complexity of the forward path; vice versa, each time switching to Subroutine R2, the minimization of the forward loss is temporarily halted and small adjustments of the forward path in favor of the inverse training are triggered instead.

76In general, the occurrence of invertibility issues depends on the nature of the color difference formula and the composition of the objective function.Appendix A provides an instance of such where imposing the proposed regularization measures is essential to the injectivity of the embedding neural network transformation.In cases where the invertibility issue is not of concern, the regularization measures are optional; however, when configured properly, including them in the training routine may significantly speed up the inverse training (typically time consuming), without compromising the performance of the embedding transformation, as demonstrated in Figure 5. (Notice that in Figure 5A, the two courses of forward training loss hardly differ from one another, which indicates that the imposed regularization does not have a negative impact on the embedding neural network; on the other hand, in Figure 5B, the inverse training loss decreases faster through the regularization measures.)Ideally, the progress of the inverse training is spread over the course of the forward loss minimization such that the parameter updates of both the embedding and inverse transformations are terminated simultaneously.Similarly to GANs, the crucial point here is to figure out an appropriate proportion between the forward and inverse routines within each rotation (i.e., #R1 i ð Þ :

77γ,e γ,β ð Þ).This will be clarified for the selected example scenarios in Section 5.2.

| EXAMPLE SCENARIOS FOR TRAINING AND EVALUATION

78In order to assess the efficacy of the proposed machine learning approach, the following instances of the Euclidization problem introduced in Section 2 are considered for training and evaluation:

79As example reference color distance law, ΔE, the CIE-LAB-based color difference formulas, DE2000, 10 CMC, 6 and CIE94 8 are considered.The default dimension of the embedding's codomain is d ≔ 3.For comparative purposes and in accordance with Reference 12, the reference region is set to R ≔ 0,100 ½ Â À128,128 ½ 2 in the CIELAB coordinate space and the probability distribution of the test color difference vector, P Δx , is defined as that of the random vector Δx ¼ r Á v where the absolute color difference r follows the uniform distribution on r min , r max ½ (in CIELAB-units) and the direction vector v follows the uniform distribution on the unit sphere S 2 ⊆ ℝ 3 .Since the selected reference color difference formulas are all recommended for predicting small color differences and only nonzero color difference is admissible for evaluating the (symmetric) relative isometric disagreement (recall (3)), the interval r min , r max ½ ≔ ε,5 ½ with ε ≔ 10 À3 is taken as the default range of the absolute color difference r.Scenarios associated with the above default settings are considered as primary cases, for which neural network color space transformations are trained with respect to both the relative and the absolute disagreement measures (each at a time).On top of the primary scenarios, for experimental purposes, embedding neural networks are also trained for color differences within r min , r max ½ ≔ 5, 20 ½ according to the DE2000 and CIE94 color difference formulas, despite the lack of a definitive statement on the efficacy of these formulas in predicting large color differences.Furthermore, as a dimensional analysis, embeddings with codomains of higher dimensions, d ¼ 4,5,6, are explored for the DE2000 color difference formula, where only the mean squared relative isometric disagreement is minimized through training.

80Concerning the training data generation for the example scenarios, in accordance with the above selected probability distribution of the test color difference vector, P Δx , Step 2 in Section 3.3 is implemented through the following procedure: i.For mini-batch ι and for each of the color centers

81x ι,n f g

82k¼0 , according to the uniform probability distribution on the unit sphere S 2 ⊆ ℝ 3 .More specifically, for each coordinate

83ence 26 for a derivation of this method).

84ii.For each direction v ι,n,k S 2 around each color center x ι,n , draw a random number, r ι,n,k , according to the uniform probability distribution on the interval r min , r max ½ and record Δx ι,n,k ≔ r ι,n,k Á v ι,n,k .

85The mini-batch sizes determined by N ι ð Þ and K ι ð Þ are hyperparameters for training and will be specified in Section 5.2.Similarly to the training data generation, as in Reference 12, 4 million test samples (i.e., 2 million color pairs) are drawn randomly from the CIELAB color space for evaluation, which is performed through Step 1 in Section 3.3 complemented by the above procedure, with N ι ð Þ ≔ 2 Á 10 6 and K ι ð Þ ≔ 1 for ι ≔ 0 fixed.Among the generated test samples, the color centers are also used for evaluating the inverse approximation.In total, there are two test datasets, each containing 2 million color pairs generated as above, one for example scenarios associated with small color differences from the range r min , r max ½ ≔ 10 À3 ,5 ½ , one for those associated with large color differences from the range r min , r max ½ ≔ 5, 20 ½ (all in CIELAB-units).Note that as mentioned at the beginning of Section 3, the unsupervised approach to training through random sampling eliminates the danger of overfitting.This contrasts with most other machine learning problems where training data may inadvertently introduce bias in the resulting neural network.In the present case, however, the law of large numbers ensures that the objective functions in ( 1) and ( 2) will be approached arbitrarily closely as the number of random samples drawn for approximating the expectation and integrals therein tends to infinity.In particular, as random training examples keep being generated over the course of the entire training procedure, the training data do not introduce bias.For this reason, it is legitimate to indeed generate the test dataset according to the same procedure as the training data.

| NEURAL NETWORK LAYOUT AND TRAINING CONFIGURATION FOR EXAMPLE SCENARIOS

86In this section, the layout of the neural network color space transformations and the hyperparameters of the training algorithm are specified for the example scenarios introduced in Section 4. In general, the optimal configuration may not be unique.The tuning work herein merely aims at finding one configuration per example that exhibits decent performance, so as to demonstrate the efficacy of the proposed approach.As a guideline, the neural network layout and the hyperparameter choice for all selected example scenarios are determined through minor adjustment of the configuration for the default setting associated with the most recognized and most complex color difference formula, DE2000.All neural networks and training routines are implemented using the PyTorch machine learning framework. 27

| Layout of neural network color space transformations

87For the sake of comparative evaluation and in accordance with previous contributions, 12,17 the L-coordinate and the ab-plane of the CIELAB color space are treated independently and processed through two separate (sub-)neural networks with the same architecture. 3Moreover, since the standard methods for initializing the neural network parameters rely on the assumption that the magnitudes of the entries of the input vector are not much larger than 1, as a normalization step, the input to each neural network color space transformation is divided by 100 and, correspondingly, the output is multiplied by 100 (coordinate-wise).

88The (sub-)neural network for embedding the ab-plane of the CIELAB color space into ℝ dÀ1 employs a single residual hidden layer of size 45 : 15 : 45, as presented in Table 1.The corresponding inverse neural network transformation uses the same layout, apart from flipped numbers of input and output channels.Analogously, the embedding and inverse transformations associated with the L-coordinate of the CIELAB color space employ the same layouts as those for the ab-plane, except that the numbers of input and output channels are all set to 1. 4 The embedding and inverse neural network transformations in case of d ¼ 3 are visualized in Figure 6, with thin arrows passing scalar values and thick arrows passing vectors. 5

| Training configuration

89The mini-batch size for running Subroutine R1 in Section 3.5 is determined through the total number of color centers sampled from the reference region R per mini-batch times the total number of directions sampled from S 2 ⊆ ℝ 3 per color center (recall training data generation steps in Sections 3.3 and 4), which are set to N ι ð Þ ≔ 1000, K ι ð Þ ≔ 100.For running Subroutine R2 in Section 3.5, the mini-batch size is the total number of color samples generated on R per mini-batch, which is set to N ι ð Þ ≔ 100000.

90T A B L E 1 Neural network layout for embedding ab-plane of CIELAB into ℝ dÀ1 according to DE2000, CMC, or CIE94.

Index Layer type Shape Activation

91Among the considered example scenarios, the ones with d ≔ 3 and r min , r max ½ ≔ 10 À3 ,5 ½ are the most relevant, for which the embedding and inverse neural network transformations are jointly trained using the proposed regularization measures.As a preliminary step for tuning the hyperparameters γ,e γ, β ð Þ, #R1 i ð Þ, and #R2 i ð Þ in Algorithm 1, the embedding neural network is first trained with Subroutine R1 alone, so as to set a target performance and roughly estimate the total number of forward iterations,

92, are executed at learning rates γ ≔ e γ ≔ 10 À5 , β ≔ 10 À8 ð Þ for determining an embedding color space transformation in each setting.As accuracy requirement for the inverse transformation, the total transformation accuracy evaluated on the DE2000 color difference formula in Reference 12 is taken as baseline. 6n 5 of the 6 considered primary scenarios, this accuracy of the inverse transformation is achieved while terminating the last training block, with the only exception being the scenario where the mean squared relative isometric disagreement with the CMC color difference formula is minimized, for which a follow-up inverse training with Subroutine R2 (where β ≔ 0) at a learning rate of e γ ≔ 10 À5 is run until the stop criterion is fulfilled.To give an impression of the actual duration of the training process: on a single NVIDIA Quadro RTX 5000 graphics processing unit (GPU), the time required for running 150 training blocks for the DE2000 color difference formula with respect to the relative isometric disagreement amounts to about 61.5 h in total, with about 1 h and 43 min spent on the forward training and slightly under 60 h spent on the inverse training.In particular, the most expensive part is the training of the inverse transformation, which reflects the training schedule introduced above (recall the configured forward-inverse-ratio

93Since the inverse training is extremely timeconsuming, for the remaining supplementary example scenarios where r min , r max ½ ≔ 5, 20 ½ or d ¼ 4,5,6, only the embedding neural network is trained and all regularization measures are omitted (visual inspection of injectivity indicates no invertibility issue).Since those scenarios are considered for rather experimental purposes, no extra tuning is performed therefor and Subroutine R1 with a learning rate of γ ≔ 10 À5 is simply run for 600000 or 2400000 iterations in case of r min , r max ½ ≔ 5, 20 ½ or d ¼ 4,5,6, respectively.

| EVALUATION RESULTS

94In this section, the proposed machine learning method for color space Euclidization is evaluated on the example scenarios introduced in Section 4 and compared to previous contributions.In each example scenario, 2 million randomly generated test color pairs are used for evaluation (recall generation procedure described in Section 4).The performance metrics considered while evaluating the embedding transformations are the STRESS index (recall (12)) and the (symmetric) relative isometric disagreement (recall (3)) evaluated statistically in its mean, maximum, and standard deviation.To assess the accuracy of the corresponding inverse approximations, the point-wise Euclidean distances between the identity mapping and the composition of the embedding and inverse neural network transformations are evaluated statistically in the mean, maximum, and standard deviation; as noted in Section 5.2, implied by the stop criterion for the inverse training, these indices are below 0:0221, 0:3939, and 0:0176, respectively, and will not be further specified in the sequel.

| Results for DE2000 color difference formula

95The DE2000 color difference formula is implemented according to Reference 28 where k L ≔ k C ≔ k H ≔ 1.The reference methods considered for comparative evaluation on this formula are the multigrid optimization method 12 and the multidimensional scaling techniques, 17 referred to as Multigrid and MDS, respectively.The neural network color space embeddings trained for minimizing either the mean squared relative isometric disagreement or the mean squared absolute isometric disagreement are referred to as NN mrd or NN mse, respectively.

| Comparative evaluation on small color differences

96The results of the comparative evaluation for small color differences are presented in Table 2. Compared to the multigrid optimization method (Multigrid) which is based on minimization of the mean squared absolute isometric disagreement, the neural network transformation trained with the same optimization criterion (NN mse) exhibits a 44% reduction in the STRESS index (recall correspondence elaborated in Section 3.4.2).Compared to the multidimensional scaling techniques (MDS) which employ the (asymmetric) relative isometric disagreement as key disagreement measure for optimization, the embedding neural network trained with a similar criterion, NN mrd, performs better in the mean and standard deviation of the relative isometric disagreement, with the corresponding second moment (i.e., mean 2 þ σ 2 ) being more than halved, but almost doubles the maximum relative isometric disagreement.The excellence of the MDS method in lowering the maximum relative isometric disagreement relies in part on this metric being included in the objective function and minimized directly through the optimization algorithm therein.More generally, both of the reference methods (Multigrid and MDS) rely on local optimization while looping through meshes defined on the original color space, which implies a greater potential for producing better local approximation results.In contrast, the present machine learning method is based on minimization of average loss over the entire color space and thereby has less control over local features of the resulting color space transformation.In fact, except for the maximum relative isometric disagreement, all considered performance metrics are average-based disagreement measures, in respect of which the proposed approach turns out to be more effective than the reference methods, regardless of the choice between the relative and absolute disagreement measures being employed in the training criterion.

97Among the proposed embedding neural network transformations, NN mrd and NN mse, the former is superior to the latter in the second moment of the relative isometric disagreement (i.e., mean 2 þ σ 2 ), and vice versa in the STRESS index, where the respective performance advantages amount to 35% and 20%. Figure 7 displays the images of a (rectangular) grid in the ab-plane of CIELAB under the respective neural network transformations; here and in the sequel, the colored region in the plot is the image of the intersection between the corresponding region in CIELAB and the sRGB gamut for constant lightness of L Ã ¼ 50. 7,8Comparing both plots, the geometry of the two transformations differs visibly; in particular, the transformation optimized with respect to the mean squared relative disagreement (NN mrd) exhibits a stronger shearing effect at the center of the ab-plane.Figure 8 shows the local maximum relative isometric disagreement of the embedding neural networks evaluated on the ab-plane of CIELAB; in the images, each pixel corresponds to a color center and the local maximum relative isometric disagreement is evaluated on color difference vectors around this center. 9From Figure 8A, in the optimization with respect to the mean squared relative disagreement (NN mrd), the highest relative disagreement values are located near the gray axis on the one hand and in the region between hue angles 270 and 295 on the other.From Figure 8B, in the optimization with respect to the mean squared absolute disagreement (NN mse), the local maximum relative disagreement is particularly large around hue angle 275 , which is consistent with the results in Reference 12 and the discussion on (approximate) Gaussian curvature provided therein.The spatial distribution of the isometric disagreement is further illustrated through the unity color difference ellipses in the transformed ab-plane as depicted in Figure 9, where some skew is still present in the Euclidized coordinates and the largest distortions of the unity circle are located in accordance with the highest isometric disagreement values.

98For experimental purposes, color differences in the range of 5 to 20 CIELAB-units are also considered for evaluation.The main aim here is to explore the feasibility of the present approach for Euclidization with respect to large color differences.The reason for the DE2000 color difference formula being taken as reference law for such experimentation is the comparability of the outcome with the preceding results for small color differences, even though the efficacy of this formula in predicting a higher range of visual differences is yet to be verified.After the first 600000 iterations of training with respect to either the relative or the absolute disagreement measure, the resulting neural network color space transformation delivers a STRESS index of 0:0231 or 0:0189, respectively,

99Images of a rectangular grid in the ab-plane of CIELAB under neural network color space transformations trained according to the DE2000 color difference formula. 2 evaluated on small color differences, with no significant decline of performance being identified in any of the considered metrics.This in particular demonstrates that the proposed machine learning method is able to handle color differences that are significantly away from zero, as opposed to the other two numerical methods in References 12,17 for which a direct adaptation to large color differences is nonobvious.

| Dimensional analysis

100Another advantage of employing artificial neural networks for approximating color space transformations is the possibility of a straightforward alteration in the dimension of the input and output vectors.Making use of this feature, embeddings with higher-dimensional codomain for d ¼ 4,5,6 are explored where the corresponding neural networks are endowed with the respective numbers of output channels (recall Table 1).Actually, compared to the case of d ¼ 3, the higher-dimensional embedding problem is more complex in terms of degrees of freedom being required; for d ≥ 4, deeper neural networks, for instance, those endowed with 4 residual hidden layers, exhibit better performance and faster convergence during experimentation.However, for the sake of comparability with the preceding results for d ¼ 3, the same inner layout of the embedding neural network is kept through all considered dimensions and, as a compensation for the lower capacity, the total number of training iterations for d ≥ 4 is set to be four times as large as that for d ¼ 3.

101The evaluation results of the dimensional analysis are provided in Table 3. Similarly to the results in Reference 17, when including one more dimension in the codomain of the embedding, that is, transitioning from d ¼ 3 to d ¼ 4, the performance of the resulting color space transformation is improved significantly in all considered disagreement metrics.This effect diminishes when further increasing the output dimension to d ¼ 5, and there is 10 and in comparison with Reference 17, fig.3, the present higher-dimensional embedding transformation exhibits a smoother appearance with less folding of the embedded surface.This results from the infinitely differentiable nature of the neural network transformation as well as the fewer degrees of freedom inherent in the present global optimization approach (i.e., minimization of average loss over the entire color space) compared to the local optimization method in Reference 17.

| Results for CMC color difference formula

102The implementation of the CMC(l:c) color difference formula is based on Reference 6 with l ≔ c ≔ 1.For the sake of symmetry in the sense of the defining properties of a metric and as previously also implemented in Reference 12, the weights S L , S C , and S H appearing in the formula are computed with respect to the mean coordinates of each color pair.The reference method considered in the comparative evaluation for this formula is the multigrid optimization method 12 (Multigrid).The neural network color space transformations trained with respect to the mean squared relative or absolute isometric disagreement are again referred to as NN mrd or NN mse, respectively.The evaluation results are presented in Table 4.In all considered performance metrics, both of the proposed neural network color space embeddings exhibit significant performance advantages compared to the reference method, with most of the reference disagreement values being more than halved.It should be noted that the exact manner in which the symmetrization of the CMC color difference formula is implemented may affect the final results; to the best of the authors' knowledge, this is not explicitly specified in any standards or reference implementation.In the present work, the arithmetic means of the lightness, chroma, and hue coordinates of each color pair are computed as in the implementation of the DE2000 formula detailed in Reference 28, which in particular includes an ambiguity resolution method for the hue angles and the hue angle difference.Table 5 demonstrates the effect of the symmetrization, where the neural network transformations associated with the two considered optimization criteria, NN mse and NN mrd, are trained with either the symmetrized or the original (asymmetric) CMC color difference formula as ground truth and then cross-evaluated on the symmetrized or the original (asymmetric) formula through the STRESS index.Overall, the performance of the neural network transformations degrades by a factor of about 2:5 when evaluated against the asymmetric CMC formula (last line vs. second-last line of table).In fact, without prior symmetrization, the asymmetry of the original CMC formula severely conflicts with the inherently symmetric nature of the Euclidean distances resulting from the neural network color space transformations, which leads to large increase in the STRESS indices that overshadows the more subtle differences resulting from the distinction between the two training loss functions.On the other hand, comparing the third column with the second column, or the fifth column with the fourth column of the table, training the neural networks with the original asymmetric CMC formula instead of the symmetrized version leads to hardly any performance improvement (or even performance decline) when evaluated on the original asymmetric formula, but significantly increases the isometric disagreement when evaluated on the symmetrized formula.From the above considerations and in view of the practical advantages of using a symmetric description of color differences, the symmetrized version of the CMC color difference formula is preferred over the original asymmetric one while training the corresponding neural network color space embeddings.When comparing the proposed neural network color space transformations NN mrd and NN mse among one another, the former exhibits a 19% lower second moment of the relative disagreement (i.e., mean 2 þ σ 2 ) and the latter produces a 9% lower STRESS index.Compared to the preceding results for the DE2000 color difference formula, smaller performance differences between the two neural network transformations are observed across all considered metrics, which may be attributed to the lower complexity of the CMC color difference formula expressed in terms of its deviation from the distance function of a Riemannian manifold with zero curvature.The diminished dependency on the optimization criterion is also reflected in the geometry of the respective transformations, as depicted in Figure 11, 10 where only a slightly larger magnification of the center area in the transformation optimized with respect to the mean squared absolute disagreement (NN mse) is noticeable.The impact of the optimization criterion is more visible in the spatial distribution of the disagreement values within the ab-plane of CIELAB displayed in Figure 12.Similarly to the Euclidization according to the DE2000 color difference formula, optimization with respect to the mean squared relative isometric disagreement (NN mrd) results in larger relative disagreement values being more concentrated near the gray axis.In contrast, in the optimization with respect to the mean squared absolute isometric disagreement (NN mse), the local maximum relative disagreement becomes slightly more uniformly

(A) (B) Optimization Optimization

103F G E 1 1 Images of a rectangular grid in the ab-plane of CIELAB under neural network color space transformations trained according to the CMC color difference formula.

104distributed and the area with higher disagreement values around the center is slightly further spread out in the ab-plane.On top of the region near the gray axis, both optimizations also exhibit larger relative disagreement around hue angle 45 , which is consistent with the results in Reference 12.As shown in Figure 13, the unity color difference ellipses in both of the transformed abplanes appear very uniform with little skew, where the few ellipses exhibiting visible eccentricity are located in the regions of the largest isometric disagreement values.

105Optimization Optimization

106Local maximum relative isometric disagreement of neural network color space embeddings w.r.t.CMC, evaluated on the ab-plane of CIELAB.

107(A)

Optimization Optimization

108F I G U R E 1 3 Unity color difference in the embedded ab-plane associated with neural network color space transformations trained for the CMC color difference formula.

| Results for CIE94 color difference formula

109The implementation of the CIE94 color difference formula is based on Reference 8 with k L ≔ k C ≔ k H ≔ 1, K 1 ≔ 0:045, and K 2 ≔ 0:015.Again, for the sake of symmetry in the sense of the defining properties of a metric, the weights S C and S H in the formula are determined through the arithmetic mean of the chroma coordinates of each color pair.For this color difference formula, the reference methods evaluated for comparison are the multigrid optimization method 12 (Multigrid) and the analytical method in Reference 15.For comparative purposes, the original (follow-up) convex optimization for minimizing the maximum relative isometric disagreement in Reference 15 is adapted to the present setting by minimizing instead the mean squared relative or absolute isometric disagreement in accordance with Section 3.4 through gradient descent, and the resulting embedding transformations (determined by the correspondingly adjusted constants P and Q in Reference 15) are referred to as Analytic mrd or Analytic mse, respectively.Note that this adaptation of the method does not lead to a degradation of the overall performance, but on the contrary, except for the maximum relative disagreement of Analytic mrd, all considered performance metrics are improved in the present evaluation.Again, the neural network color space transformations optimized with respect to the mean squared relative or absolute isometric disagreement are referred to as NN mrd or NN mse, respectively.

| Comparative evaluation on small color differences

110The evaluation results for small color differences are summarized in Table 6.Compared to the multigrid optimization method (Multigrid) which is based on minimizing the mean squared absolute isometric disagreement, the embedding neural network trained with the same optimization criterion (NN mse) delivers a 39% lower STRESS index.Compared to the analytical method, the neural network color space transformations optimized with respect to the relative or absolute disagreement measure (NN mrd/mse) slightly outperform their respective analytical counterparts (Analytic mrd/mse) in the corresponding reference indices (by about 10%).Interestingly, in contrast to the preceding results for the DE2000 color difference formula, changing from the absolute to the relative disagreement measure in the objective function seems to cause an increase in the maximum relative isometric disagreement, which is observed for both the machine learning and the analytical approaches.Overall, the neural network color space embeddings again exhibit lower average isometric disagreement than the transformations of the reference methods, which is reflected in their corresponding STRESS indices and means and standard deviations of the relative isometric disagreement, irrespective of the optimization criterion being employed during training.In addition, Table 7 provides the evaluation of the symmetrization effect with respect to the CIE94 color difference formula, where the neural network embeddings associated with the absolute or relative disagreement measure, NN mse and NN mrd, are trained with either the symmetrized or the original asymmetric version of the formula as ground truth and subsequently cross-evaluated on these two formulas through the STRESS index.As expected, evaluating the nearly isometric embeddings on the original asymmetric formula degrades the performance in general (last line vs. second-last line).However, the effect is much less noticeable compared to the case of CMC, showing a performance decline of at most 20%.Moreover, training with the original asymmetric formula instead of the symmetrized version makes hardly any difference in performance, no matter which version of the formula is taken as reference for evaluation (compare the second with the third column, or the fourth with the fifth column of the table ).With CIE94 being the simplest among all considered color difference formulas, the lowest isometric disagreement values are observed for this formula and the performance variation across the neural network color space transformations trained with different optimization criteria dilutes further in value (with less than 7% difference in all average-based indices).As illustrated in Figure 14, 11 the dependency of the embedding transformations on the choice of optimization criterion is hardly discernible in respect of their geometry; when comparing the two images very closely, a slightly more stretched central area is identified in the transformation minimizing the mean squared relative disagreement (NN mrd).The difference becomes more distinct when comparing the respective and the spatial distribution of the relative isometric disagreement.The unity color difference ellipses in both of the transformed ab-planes presented in Figure 16 appear nearly perfectly circular, which indicates a high agreement of the Euclidean metric on the transformed spaces with the underlying color difference formula.

| Evaluation on large color differences

111Since the CIE94 color difference formula exhibits to a certain extent improvement over the Euclidean metric in CIELAB space (CIE76) in predicting large-scale visual differences (as opposed to the CMC formula, cf.Reference 29), as one more example for demonstrating the broad applicability of the proposed machine learning Euclidization with color differences from 5 to 20 CIELAB-units is also evaluated on this formula.After the first 600 000 iterations of training with respect to the mean squared relative or absolute isometric disagreement, the STRESS index and the mean, maximum, and standard deviation of the relative isometric disagreement of the resulting neural network color space transformations amount to 0:0074, 0:0039,0:1203,0:0070 ð Þ or 0:0070, 0:0043,0:1048,0:0074 ð Þ , respectively.As with the preceding evaluation on the DE2000 color difference formula, the results for small and large color differences herein are similar (compare Table 6); in particular, no significant deterioration in any of the considered disagreement indices is identified in the evaluation results for large color differences.This again verifies that the proposed approach is not limited to small color differences.

| DISCUSSION

112Subsequently, four subjects are discussed: the computational effort required during the inference stage of the proposed neural network approach (cf.Section 7.1), the total performance of Euclidized color difference systems in terms of their perceptual uniformity evaluated on experimental visual data (cf.Section 7.2), the feasibility of adapting the present method to the task of color space modeling with experimental visual data (cf.Section 7.3), and comparison as well as potential intersections between the present work and a selection of machine learning approaches to perception-based image processing issues (cf.Section 7.4).

| Computational effort

113A typical issue with machine learning based methods is the relatively large amount of computational resources required to perform the necessary computations.In the present work, particular care is taken to devise efficient neural networks, so as to avoid using an excessive

Optimization Optimization

114F I U R E 1 Unity color difference ellipses in the embedded ab-plane associated with neural network color space transformations trained for the CIE94 color difference formula.

115amount of operations (recall discussion on residual layers in Section 3.1).

116According to the layout presented in Section 5.1 (Table 1 and Figure 6), in case of d ¼ 3, transforming a single point in the original color space into its coordinates in the embedded color space through the proposed neural network color space transformation implies a computational burden of 2970 multiplications, 3060 additions, and 210 evaluations of the hyperbolic tangent activation function.Here, one third of the multiplications associated with the densely connected alternative are saved through the architecture with residual connections.While this transformation is still computationally more expensive than traditional color space conversions, it is not prohibitively costly when performed on modern graphics processing hardware.In this context, it should also be noted that the computational effort of the neural network color space transformations herein is much lower than that of some modern image enhancement algorithms such as machine learning based super resolution methods (cf.e.g., Reference 30).For reference, when performed on the same hardware as employed for training the neural network transformations (NVIDIA Quadro RTX 5000 GPU), the time for converting the color coordinates of an image in four common resolutions amounts to 5:4ms for an image in VGA resolution, 16:2ms for an HD (720 p) image, 36:8ms for a Full HD (1080 p) image, and 149:3ms for a 4K UHD image.It should be noted that, at this stage, no attempt at optimizing the algorithm for reduced conversion time (e.g., through the use of lookup tables or quantization) has been made.

117In total, the neural network employed in this exposition of the method is parametrized with 3183 free floating point parameters (for d ¼ 3).The amount of memory required for storing these parameters is less than that required for the storage of the look-up table employed in Reference 12 or the pairs of grid points defining the transformation developed in Reference 17.

118Depending on the color difference formula as well as other factors such as requirements on accuracy or training speed, a modification of the neural network layout decreasing the computational effort and memory requirements may be feasible.In fact, embedding the original color space into ℝ 3 is a much easier task compared to the corresponding inverse approximation or the problem of higher-dimensional embedding for d ≥ 4 in terms of network capacity being required; the layout in Table 1 is chosen mainly in consideration of the speed and stability of the inverse training and is therefore rather generous in size in respect of the actual Euclidization problem.For instance, experimentation reveals that, if a 5% higher mean squared relative isometric disagreement with the DE2000 color difference formula is acceptable, it suffices to endow the corresponding embedding neural network with only one third of the existing neurons, which then requires about 20% of the original computational effort.Further reduction of both the computational effort and the size of the parameter storage may be achieved through quantization and the use of fixed point arithmetic.

| Perceptual uniformity of Euclidized color difference system

119As noted in the introduction Section 1, functioning as a new color space, the Euclidized color difference system endowed with the Euclidean metric is expected to exhibit similar perceptual uniformity to that of the underlying reference color difference formula, as long as the isometric disagreement in the Euclidization step is insignificant.To demonstrate this, the currently CIE-recommended DE2000 color difference formula is taken as reference and the four original experimental visual datasets employed for its derivation, BFD-P, 31 Leeds, 32 RIT-DuPont, 33 and Witt, 34 are considered for evaluation 12 of the corresponding two Euclidean spaces resulting from the neural network nearly-isometric embeddings, referred to as NNmrd [DE2000] and NNmse[DE2000] in the sequel (recall Section 6.1 for analogous notations).In accordance with Reference 35, the STRESS between the visual and measured color differences (ΔV i vs. ΔE i ) is employed as performance metric for assessing the perceptual uniformity of each color difference system and the statistical significance of the performance deviation from the reference color difference formula is evaluated through the twotailed F-test (i.e., the F-statistic is determined through the ratio of two squared STRESS indices, cf.Reference 20 for more details).The evaluated STRESS indices and Fstatistics are given in Table 8 where values associated with the reference color difference formula, DE2000, are highlighted in bold.From the STRESS evaluation (upper half of table), the performance of both Euclidized color difference systems, NNmrd[DE2000] and NNmse [DE2000], is close to that of the DE2000 color difference formula.Across various datasets, the STRESS values of both embedded spaces fluctuate slightly around the reference values associated with DE2000, with the maximum relative performance gain below 9% identified in the RIT-DuPont dataset and the maximum relative performance decline below 3% identified in the Leeds dataset.According to the results of the F-test (lower half of table), all evaluated F-statistics fall within the mid-range of the corresponding 95%-confidence intervals, which indicates that there is no statistically significant difference between the perceptual uniformity of NNmrd [DE2000] or NNmse[DE2000] and that of the original DE2000 color difference system.For an extensive performance comparison across various color difference systems as well as an indepth discussion on proper statistical evaluation of performance discrepancy in respect of perceptual uniformity, the reader is referred to Reference 35 (note that the STRESS values therein are all upscaled by a factor of 100).

120Again, it is noted that the Euclidization task only focuses on minimizing the isometric disagreement between the metric defined by a given reference color difference formula and the Euclidean metric on the corresponding embedded color space, which constitutes a theoretical function approximation problem detached from experimental visual data.Accordingly, evaluating the resulting Euclidean color space on experimental visual data as above is only meant to provide additional information on the performance variation of the considered color difference system prior to and after Euclidization, which cannot replace the rigorous efficacy assessment of the proposed Euclidization approach presented in Section 6, nor should this be confused with the quality assessment of existing color difference formulas.

| Outlook on color space modeling with visual data

121Considering the promising Euclidization results of the proposed neural network color space transformations, it is natural to discuss the feasibility of carrying over the present machine learning approach to the task of modeling a perceptually uniform color space by means of data from visual experiments, similarly to the development of the various performance-enhancing color difference formulas based on the CIELAB color space.First of all, it should be emphasized that the present approach to color space Euclidization relies on unsupervised learning with randomly generated color difference vectors as training examples, which in particular excludes the issue of overfitting.In contrast, when employed for approximating a perceptually uniform color space according to experimental visual data, the neural network would be trained in a supervised manner and the performance of the resulting color model would depend on the extent and distribution of the underlying training data.Ideally, the labeled data in such a context, that is, example color pairs labeled with their perceived visual differences (ΔV i ), should be uniformly distributed across the original color space so as to prevent local distortions in the resulting color model, and the amount of them should be proportional to the size of the neural network so as to prevent overfitting.Under this consideration, existing experimental visual datasets, such as those employed for deriving the DE2000 color difference formula (cf.BFD-P, 31 Leeds, 32 RIT-DuPont, 33 and Witt 34 ), may need further enhancement to support a highly accurate neural network approximator for a perceptually uniform color space.As a solution, more extensive training data may be obtained, for instance, by conducting supplementary visual experiments with particular attention payed to the above aspects, or by augmenting existing experimental visual data with artificial training data, for example, through interpolation techniques, noise injection, 36 or GANs. 25More study on this topic is left to future work.

| Some notes regarding further related works

122In view of the plethora of vision-related machine learning efforts, it is reasonable to address how the present article relates to those works.The subsequent discussion includes a small selection of references on adjacent issues, which serve as representatives for drawing comparison with and expanding perspective.

123From an interdisciplinary point of view, machine learning methodology and color-related issues based on human visual perception are both strongly represented in The unifying feature of the works mentioned so far is that they are all in one way or another concerned with image processing by means of deep neural networks, that is, a two-dimensional image signal is processed through a neural network, for which building blocks that excel in analyzing information within a spatial context are employed, such as by exploiting the translation invariance of two-dimensional convolutional layers and pooling layers.In the present work, on the other hand, the color information is present in its pure form as a color coordinate triple, and accordingly, the neural network employed for processing this information falls within the category of fully connected architectures and need not even be deep.In particular, for tackling the present Euclidization problem, there are no spatial patterns to be analyzed, and deep CNNs that are so ubiquitously being exploited in other vision-related works are not well suited in this context.Actually, the same applies to modeling perceptual uniformity in general: in CIE colorimetry, color difference modeling is based on psychophysical experiments where the difference between two plain color patches on a uniform background is identified at a time (cf.e.g., References 22,31,33); in particular, no complex patterns are considered and deep CNNs that may aid in modeling spatial visual response would not be useful in deriving a perceptually uniform color space from existing experimental visual data (also recall discussion in Section 7.3).

124However, it may be beneficial in general to explore the impact of taking a perceptually uniform color space as working domain on the performance of the aforementioned machine learning approaches in perception-based image processing contexts.For instance, the neural network color space transformations derived in the present work may be employed as color space pre-or post-transformations at the input or output layers of existing image processing neural network architectures.The research in Reference 44 on color conversion in variational autoencoders suggests that this type of pre-or post-coding may indeed affect the performance of the original neural networks.

| CONCLUSION

125In this work, a general methodology making use of machine learning techniques is proposed for the issue of color space Euclidization.A parsimonious neural network architecture is employed herein and training is conducted in an unsupervised manner based on random sampling.The impact of the key disagreement measure on the color space embedding is elucidated through a distinction of cases where either the relative or the absolute isometric disagreement forms the basis of the objective function.Evaluation on well-established color difference formulas demonstrates that the proposed approach is able to deliver powerful approximators for the desired color space transformations and outperforms previous contributions in respect of commonly used average disagreement measures.

AUTHOR CONTRIBUTIONS

126Lia Ahrens developed and implemented the machine learning algorithm.Julian Ahrens provided the differential geometric background information and verified and visualized the evaluation results.Hans D. Schotten contributed further to the technical background and ensured the availability of the necessary equipment.

127for verifying the tables and figures in this article are available in the following Git repository: https://github.com/julian-ahrens-dfki/mlacse.Therein, only the six primary scenarios introduced in Section 4 are included.

ORCID

128Lia Ahrens https://orcid.org/0000-0002-9382-4732ENDNOTES 1 The probability distribution of the test color difference vector P Δx and the corresponding sampling procedure for the color difference vector Δx will be specified for each of the considered example scenarios in Section 4. 2 In this context, the isometric disagreement loss term takes the role of a sparsity penalty.The joint neural network can therefore be regarded as a variant of a sparse autoencoder (cf.Reference 19, sec.14.2.1). 3 Recall that in References 12,17, the reason for separating the L-coordinate from the ab-plane of CIELAB is that the lightness difference is calculated independently from chroma and hue in all considered color difference formulas, CMC, and CIE94.Of course, it is possible to employ a neural network architecture without this type of channel separation, which indeed exhibited no significant performance difference during experimentation.However, since the absence of cross-contamination between lightness and chroma (as is the case with CIELAB) is a desirable feature in practical applications such as image processing tasks, a separation of the L-channel from channels associated with the ab-plane is also imposed in the present neural network transformations. 4Here, the case of embedding the lightness coordinate according to CIE94 is an exception, as the corresponding optimal transformations are by definition the trivial identity mapping and thereby do not require any approximation. 5In case of CIE94, the transformations associated with the L-coordinate in the upper half of Figure 6 are replaced by the trivial identity mappings (recall Footnote 4). 6In the present approach, since unlimited training examples can be generated through random sampling, overfitting may not occur, so that the training result may be improved indefinitely.However, the inverse training typically progresses very slowly; in order to limit training time, a baseline value that is accurate enough in practice is taken here as stop criterion for the inverse approximation. 7Recall that for all three considered example color difference formulas, the L-coordinate is processed independently from the abplane of CIELAB (cf.Section 5.1, in particular Figure 6 and Footnote 3).Therefore, the transformation of the ab-plane is invariant under changes of L Ã , which applies to all upcoming figures, Figures 7-16.(In those figures, the only part that depends on L Ã is the auxiliary sRGB gamut plotted on the background.) 8In order to maximize the similarity of the transformed ab-plane with the familiar ab-plane of the CIELAB color space, in these plots, the transformed ab-plane is first translated so that the white point again resides at coordinates 0,0 ð Þ and then rotated and, if necessary, mirrored so that the average squared difference between the CIELAB color coordinates and the coordinates in the transformed ab-plane is minimized.Note that all performance metrics considered in the evaluation are based on the Euclidean distance and thus invariant under translations, rotations, and reflections of the transformed color space. 9In order to avoid artifacts caused by sampling the color difference vectors randomly, a deterministic procedure is used herein.This procedure consists in generating a regular grid within a cube around the color center with an edge length of 2 Á 5 ¼ 10 CIELAB-units and then selecting from this grid only the points that have a distance of at most 5 CIELAB-units from the center. 10Here and in the sequel, Figures 11-13 are generated analogously to Figures 7-9, respectively; for more details on the generation procedure for those figures, the reader is referred to the last paragraph of Section 6.1.1, in particular Footnotes 7-9. 11Again, Figures 14-16 are generated analogously to Figures 7-9, respectively; for more details on the generation procedure for those figures, the reader is referred to the last paragraph of Section 6.1.1, in particular Footnotes 7-9.

129on itself (region marked with red rectangle).In contrast, when including the proposed regularization measures in the training routine as presented in Algorithm 1, with hyperparameters #R1 i ð Þ :

130and γ ≔ e γ ≔ 10 À5 , β ≔ 10 À8 ð Þ , the resulting neural network color space transformation does not suffer from any local noninvertibility issues, with the corresponding ab-plane transformation visualized in Figure A1B. Figure A2 provides a comparison of the respective training course while including or omitting the proposed regularization measures.On the one hand, in the lower half of Figure A2, the two courses of training loss hardly differ from one another, which indicates that imposing the regularization term in (13) with a small factor β does not have a negative impact on the performance of the embedding transformation.On the other hand, as illustrated in the upper half of Figure A2, while the maximum relative isometric disagreement begins to explode after running Subroutine R1 for about 400k iterations continuously, this metric is kept low at a level around 1 through the alternation with Subroutine R2 in between the training iterations, which demonstrates the damping effect of the regularization measures on the local approximation error of the neural network color space transformation.

131F I G U R E A 2 Course of forward loss (i.e., STRESS 2 ) and maximum relative isometric disagreement while training an embedding neural network with respect to the objective function given in the modified setting associated with the DE2000 color difference formula, with versus without regularization measures.

1

132Comparison: residual versus densely connected layers.

F I G U R E 2

133Course of mean squared relative isometric disagreement while training embedding neural networks according to the DE2000 color difference formula, where the hidden layers consist of either two densely connected layers of size 45:45 or a residual building block of size 45:15:45.

134F 2 would lead to a subsequent target ambiguity in the output of the neural network transformation and thereby entails the potential to destabilize training.The additional constraint on the global scale of the color difference estimates does not introduce a significant extra burden to the training of the F I G U R E 3 Illustration of relative error functions.

ALGORITHM 1

135Training algorithm.[Correction added on 11 October 2023, after first Online publication: The formatting of Algorithm 1 has been corrected.]F I G U R E 4 Course of forward and inverse losses while training an embedding neural network according to the DE2000 color difference formula; only the first 8 rotations of Algorithm 1 are depicted in the figure, where the forward-to-inverse ratio for regularization is set to #

136U R E 5 Comparison: including versus omitting the proposed regularization measures while training the embedding and inverse color space transformations according to the DE2000 color difference formula.

137needed over the entire training course with regularization.As a candidate for the forward-to-inverse ratio, #R1 i ð Þ : #R2 i ð Þ ½ , a base number of rotations per training block, I, a fixed number of forward iterations per rotation, #R1 i ð Þ, and a blockwise linearly increasing number of inverse iterations #R2 i ð Þ are chosen.Here, the linear increase aims to compensate for the typically convex decreasing trend of the inverse training loss.In total, 15 training blocks of I ≔ 10 rotations, with rotation lengths #

F I G U R E 6

138Embedding and inverse neural network transformations for CIELABbased examples in case of d ¼ 3.

139Local maximum relative isometric disagreement of neural network color space embeddings w.r.t.DE2000, evaluated on the ab-plane of CIELAB.and the mean, maximum, and standard deviation of the relative isometric disagreement amount to 0:0122,0:4127,0:0197 ð Þ or 0:0144,0:8329,0:0248 ð Þ , respectively.These disagreement values are similar to the preceding ones in Table

9

140Unity color difference ellipses in the embedded ab-plane associated with neural network color space transformations trained for the DE2000 color difference formula.T A B L E 3 Evaluation results for embedding CIELAB into ℝ d w.r.t.DE2000, where d ¼ 3,4,5,6.

F

141I G U R E 1 0 Image of a rectangular grid in the ab-plane of CIELAB embedded into ℝ 3 via a neural network color space transformation trained according to the DE2000 color difference formula.T A B L E 4 Performance comparison when embedding CIELAB into ℝ 3 w.r.t.CMC for small color differences.Bold values are the minima of the corresponding columns.

1

142Local maximum relative isometric disagreement of neural network color space embeddings w.r.t.CIE94, evaluated on the ab-plane of CIELAB.

T A B L E 8

143Perceptual uniformity of the Euclidean color spaces resulting from the neural network embeddings w.r.t. the DE2000 color difference formula evaluated on experimental visual data.computer vision.A typical class of instances is represented by deep learning approaches to perceptual-quality-based image compression, for example, Reference 37, and tone mapping of high dynamic range (HDR) scenes, for example, References 38,39, where multiscale decompositions based on Laplacian/ Gaussian pyramid40 or/and bilateral filtering41 are encapsulated in various forms in the early layers of deep convolutional neural networks (CNNs) for encoding visual information within an image (also compare Reference 42 for a typical deep CNN architecture (U-net) for hierarchical multiscale encoding and decoding).It is worth noting that those multiscale decompositions on the input side of CNNs resemble the early stages of human visual response in the sense that they reflect the bandpass/lowpass nature of human contrast sensitivity functions (CSFs) in the spatial frequency domain.Recently, Akbarinia et al.43 investigated CSFs within pretrained task-dependent deep neural networks (mostly CNNs) through feature extraction and transfer learning, which revealed that human-like CSFs can be recognized with various degrees of similarity at different layers within a neural network and across different neural networks, depending on the considered image processing task.

144Performance comparison when embedding CIELAB into ℝ 3 w.r.t.DE2000 for small color differences.

145T A B L E 2Note: Bold values are the minima of the corresponding columns.

146Effect of symmetrizing the CMC color difference formula.

147T A B L E 5

148Bold values are the minima of the corresponding columns.

149Note:

참고문헌 36건

  1. Image Super-Resolution Using Deep Convolutional Networks IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2015 10.1109/tpami.2015.2439281
  2. U-Net: Convolutional Networks for Biomedical Image Segmentation Lecture notes in computer science · Springer Science+Business Media · 2015 10.1007/978-3-319-24574-4_28
  3. Chromaticity‐discrimination ellipses for surface colours Color Research & Application · Wiley · 1986 10.1002/col.5080110107
  4. Performance of recent advanced color-difference formulas using the standardized residual sum of squares index Journal of the Optical Society of America A · Optica Publishing Group · 2008 10.1364/josaa.25.001828
  5. Investigations on the Intrinsic Properties of the Color Domain II* Journal of the Optical Society of America · Optica Publishing Group · 1943 10.1364/josa.33.000001
  6. Measurement of the relationship between perceived and computed color differences Journal of the Optical Society of America A · Optica Publishing Group · 2007 10.1364/josaa.24.001823
  7. The CIEDE2000 color-difference formula: Implementation notes, supplementary test data, and mathematical observations Color Research & Application · Wiley · 2004 10.1002/col.20070
  8. Visual Sensitivities to Color Differences in Daylight* Journal of the Optical Society of America · Optica Publishing Group · 1942 10.1364/josa.32.000247
  9. Geometric relations between scales of small colour differences Color Research & Application · Wiley · 1999 10.1002/(sici)1520-6378(199904)24:2<78::aid-col3>3.0.co;2-m
  10. BFD<i>(l:c)</i>colour‐difference formula Part 1ndashDevelopment of the formula Journal of the Society of Dyers and Colourists · Wiley · 1987 10.1111/j.1478-4408.1987.tb01099.x
  11. Toward a Unified Color Space for Perception-Based Image Processing IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2011 10.1109/tip.2011.2163522
  12. Euclidization of the first quadrant of the CIEDE2000 color difference system for the calculation of large color differences Color Research & Application · Wiley · 2005 10.1002/col.20168
  13. A note on a method for generating points uniformly on <i>n</i> -dimensional spheres Communications of the ACM · Association for Computing Machinery · 1959 10.1145/377939.377946
  14. Investigation of parametric effects using small colour differences Color Research & Application · Wiley · 1999 10.1002/(sici)1520-6378(199910)24:5<331::aid-col5>3.0.co;2-9
  15. Embedding non-Euclidean color spaces into Euclidean color spaces with minimal isometric disagreement Journal of the Optical Society of America A · Optica Publishing Group · 2007 10.1364/josaa.24.001516
  16. A Euclidean color space in high agreement with the CIE94 color difference formula Color Research & Application · Wiley · 2000 10.1002/(sici)1520-6378(200002)25:1<64::aid-col9>3.0.co;2-b
  17. Uniform colour spaces based on the DIN99 colour‐difference formula Color Research & Application · Wiley · 2002 10.1002/col.10066
  18. Visual determination of suprathreshold color‐difference tolerances using probit analysis Color Research & Application · Wiley · 1991 10.1002/col.5080160505
  19. Modification to the JPC79 Colour–difference Formula Journal of the Society of Dyers and Colourists · Wiley · 1984 10.1111/j.1478-4408.1984.tb00969.x
  20. Using additive noise in back-propagation training IEEE Transactions on Neural Networks · Institute of Electrical and Electronics Engineers · 1992 10.1109/72.105415
  21. The Laplacian Pyramid as a Compact Image Code IRE Transactions on Communications Systems · Institute of Electrical and Electronics Engineers · 1983 10.1109/tcom.1983.1095851
  22. Uniform colour spaces based on CIECAM02 colour appearance model Color Research & Application · Wiley · 2006 10.1002/col.20227
  23. The development of the CIE 2000 colour‐difference formula: CIEDE2000 Color Research & Application · Wiley · 2001 10.1002/col.1049
  24. Deep Residual Learning for Image Recognition 2016 10.1109/cvpr.2016.90
  25. Investigating Euclidean Mappings for CIEDE2000 Color Difference Formula Color and Imaging Conference · Society for Imaging Science & Technology · 2010 10.2352/cic.2010.18.1.art00058
  26. Advances in Neural Information Processing Systems 28 2015
  27. Comprehensive color solutions: CAM16, CAT16, and CAM16‐UCS Color Research & Application · Wiley · 2017 10.1002/col.22131
  28. Introduction to Riemannian Manifolds Graduate texts in mathematics · Springer Nature · 2018 10.1007/978-3-319-91755-9
  29. Deep Tone Mapping Operator for High Dynamic Range Images IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2019 10.1109/tip.2019.2936649
  30. Fast bilateral filtering for the display of high-dynamic-range images ACM Transactions on Graphics · Association for Computing Machinery · 2002 10.1145/566654.566574
  31. Semantic Perceptual Image Compression With a Laplacian Pyramid of Convolutional Networks IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2021 10.1109/tip.2021.3065244
  32. Color Conversion in Deep Autoencoders Journal of Perceptual Imaging · Society for Imaging Science & Technology · 2021 10.2352/j.percept.imaging.2021.4.2.020401
  33. Deep Tone-Mapping Operator Using Image Quality Assessment Inspired Semi-Supervised Learning IEEE Access · Institute of Electrical and Electronics Engineers · 2021 10.1109/access.2021.3080331
  34. Advances in neural information processing systems 7 Computers & Mathematics with Applications · Elsevier BV · 1996 10.1016/s0898-1221(96)90463-0
  35. Some aspects of the visual scaling of large colour differences Color Research & Application · Wiley · 1997 10.1002/(sici)1520-6378(199710)22:5<298::aid-col3>3.0.co;2-s
  36. Contrast sensitivity function in deep networks Neural Networks · Elsevier BV · 2023 10.1016/j.neunet.2023.04.032