METHOD OF VERYFING PRETRAINED NEURAL NET MAPPING FOR USE IN SAFETY-CRITICAL SOFTWARE

Abstract: A method of verifying pretrained, static, feedforward neural network mapping software using Lipschitz constants for determining bounds on output values and estimation errors is disclosed. By way of example, two cases of interest from the point of view of safety-critical software, like aircraft fuel gauging systems, are discussed. The first case is the simpler case of when neural net mapping software is trained to replace look-up table mapping software. A detailed verification procedure is provided to establish functional equivalence of the neural net and look-up table mapping functions on the entire range of inputs accepted by the look-up table mapping function. The second case is when a neural net is trained to estimate the quantity of interest from the process (such as fuel mass, for example) from redundant and noisy sensor signals. Given upper and lower bounds on sensor noises and on modeling inaccuracies, it is demonstrated how to verify the performance of such a neural network estimator ("a black box") when compared to a true value of the estimated quantity.

Description: METHOD OF VERIFYING PRETRAINED NEURAL NET MAPPING FOR USE IN SAFETY-CRITICAL SOFTWARE Background of the Invention The present invention is directed to a method of verifying neural network mapping software, in general, and more particularly, to a method of verifying pretrained, static, feedforward neural network mapping software using Lipschitz constants for determining bounds on output values and estimation errors . Certification of flight software containing neural network mapping functions generally encounters significant difficulties. Neural net mapping software has the reputation for probabilistic and unpredictable behavior. Such perception seems to be mainly a result of lack of understanding of the true nature of feedforward neural nets, in particular the distinction between the training process (which indeed can be unpredictable) and operation of a previously trained neural net (which is always deterministic) . What is needed is a finite testing procedure for verifying the behavior of pretrained neural net mapping software. Applicant has realized that the issue of how to train a neural net does not have to be addressed when analyzing the performance of the trained neural net software, rather it can be analyzed irrespective of the particular way it was trained. Applicant has discovered that pretrained neural net mapping software can be fully verified without any need to address the preceding training process. Static, feedforward neural nets represent purely deterministic mappings for which the output value can be fully predicted based on current instantaneous input values. While use of dynamic (recurrent) neural networks might understandably cause concerns about stability issues, static neural nets do not pose any such problems. Static neural network mapping software is merely a method of implementing multidimensional functions, just as look-up table mapping software is. Consequently, certification of a previously trained neural net should not be any more difficult than certification of any other mapping software, such as a look-up table. In this document, Applicant will focus on this analogy, and demonstrate mathematically that if a look-up table software implementation of a mapping is certifiable, so should be a neural net software implementation. Therefore, Applicant's focus here is to provide a verification method or testing procedure to guarantee proper behavior of static, feedforward neural network mapping software, especially for use under flight conditions . Summary of the Invention In accordance with the present invention, a method of verifying pretrained, static, feedforward neural network mapping software having a neural net mapping function /(x) that is intended to replace look up table mapping software having a look up table mapping function φ(x) comprises the steps of: (1) establishing a multi-axis rectangular domain including upper and lower limits of each axis to bound all input vectors x of both said look up table mapping function φ(x) and said neural net mapping function /(x) ; (2) determining a set of test points within the rectangular domain based on said upper and lower limits of each axis; (3) determining Lipschitz constant K/ for said neural net mapping function /(x) ; and (4) determining upper and lower value bounds of said neural net mapping function /(x) for said domain based on a function of said set of test points and said Lipschitz constant K/, whereby if said upper and lower value bounds can be determined, then the neural network mapping software is verified. In another aspect of the present invention, the foregoing described method includes the additional steps of : determining Lipschitz constant K/' for the gradient f ix) ' ; and determining upper and lower error bounds for the neural net and look up table functions based on a function of the set of test points and said Lipschitz constant Ky , whereby if the upper and lower value bounds and said upper and lower error bounds can be determined, then the neural network mapping software is verified. In yet another aspect of the present invention, a method of verifying pretrained, static, feedforward neural network mapping software having a neural network mapping function /(ψ(x) + ζ ), where ψ (x) is a predetermined mapping of n dimensional state vectors x of a process into m dimensional measurement vectors z = ψ (x) , ζ is representative of a noise component of the process, and /(ψ(x) + ζ ) is an estimate of the desired output parameter y(est) of the process, comprises the steps of: (1) providing model mapping software including a predetermined mapping function φ (x) for mapping said n dimensional state vectors x directly into a true value y(true) of said desired output parameter; (2) establishing a multi-axis rectangular domain including upper and lower limits of each axis to bound all state vectors x of both said predetermined mapping functions φ(x) and ψ (x) ; (3) determining a set of test points within the rectangular domain based on said upper and lower limits of each axis; (4) determining Lipschitz constant K j for neural net mapping function /(ψ(x)),- (5) determining an upper bound ζ up and a lower bound ζ lD of the noise component ζ; and (6) determining upper and lower value bounds of said neural net mapping function /(ψ(x) + ζ ) for said domain based on a function of said set of test points, said Lipschitz constant K^ and said upper bound ζ up and lower bound ζ lc , whereby if said upper and lower value bounds can be determined, then the neural network mapping software is verified. In still another aspect of the present invention, the foregoing described method includes the additional steps of: (7) determining Lipschitz constant K f ' for the gradient /(ψ(x))'; and determining upper and lower error bounds for said neural net function /(ψ(x) + ζ ) and predetermined mapping function φ (x) based on a function of said set of test points, said Lipschitz constant K/' , and said upper bound ζ up and a lower bound ζ 10 , whereby if the upper and lower value bounds and said upper and lower error bounds can be determined, then the neural network mapping software is verified. Brief Description of the Drawings Figure 1 is an illustration of an exemplary multiple-input, single-output neural network mapping function suitable for use in describing the principles of the present invention. Figure 2 is an illustration of a two-dimensional case that exemplifies dividing a rectangular domain into cells and a set of test points for use in describing the principles of the present invention. Figures 3A and 3B depict a software flowchart suitable for use in programming a digital processor to embody one aspect of the present invention. Figure 4 is a graphical illustration of a mapping suitable for use in explaining another aspect of the present invention. Figures 5A through 5D depict a software flowchart suitable for use in programming a digital processor to embody another aspect of the present invention. Figure 6 is a graphical illustration of a bounding method for use in one embodiment of the present invention. Description of the Preferred Embodiment By way of example, two cases of interest from the point of view of flight software, like fuel gauging systems, for example, will be analyzed. The first case is the simpler case of when neural net mapping software is trained to 'replace look-up table mapping software. A detailed testing procedure is provided to establish functional equivalence of the neural net and look-up table mapping functions on the entire range of inputs accepted by the look-up table mapping function. The second case is when a neural net is trained to estimate the quantity of interest form the process (such as fuel mass, for example) from redundant and noisy sensor signals. Given upper and lower bounds on sensor noises and on modeling inaccuracies, it is demonstrated how to assess the performance of such a neural network estimator (a "black box") when compared to a true value of the estimated quantity. Feedforward Neural Nets By way of example, only mapping software of neural networks with multiple-input single-output neural nets such as that shown in Figure 1 will be described. Extension to multiple-output nets is conceptually very simple - each coordinate mapping may be treated as a separate single-output function. However, inclusion of such cases here would unnecessarily complicate notation. Thus, for purposes of describing the exemplary neural network of Figure 1, let us assume a neural net mapping software having a neural net function with n- dimensional real argument, and one-dimensional real output value: f- " →<R with a single hidden layer containing p hidden neurons. Its output is calculated as /(_) = w r + ϊ>, w r(w,<*,' + ι=l j=\ where w are hidden layer weights corresponding to i-th neuron and j-th input, w 0 are hidden layer bias terms corresponding to i-th neuron, w are output weights corresponding to i-th hidden neuron, and W Q is the output bias term. The hidden layer activation function γ is a one-dimensional function ;κ:$R→9ϊ Two most common examples of an activation function are the logistic function y{x) = l + e- χ and the hyperbolic tangent e - e γ(x) = e + e Two weight matrices may be defined as : with two bias vectors b (Λ) = and a diagonal nonlinear mapping r:9t p —» $R P , whose coordinate functions are defined as f7= rtø): !&=/(£) This neural network mapping function may be expressed in a matrix form as : /(x) = W (0) r(w (Λ) x +b (Λ) )+b The above definition can be extended to multiple layers - one has to define a weight matrix and a bias vector for each layer. However, to avoid notational clutter, and because one hidden layer is usually enough, we constrain ourselves to the one-layer case. If more hidden layers are deemed necessary, all the arguments in this application can be very easily modified to handle such cases. Upon inspection of the above formulae, it is seen that a feedforward neural net mapping function is a superposition of simple matrix operations and a particularly simple diagonal nonlinear operation Y (which can be thought of as a soft-limiter) . Thus, certification of mapping software including a neural net function should be no more difficult than certification of other types of mapping software having elementary mathematical functions . Arriving at appropriate weight matrices W , W and bias vectors b , b of the neural network is accomplished through the process customarily called "training" that usually involves a number of training points - different values of input vector X - for which a desired, or correct output value v is known. Training a neural net is equivalent to minimization of mean square error between the desired and actual output of a neural net with respect to the unknown weight values J 'X, , (/(_.<« - /") 2 → min The minimization process is typically done using gradient of the error function with respect to unknown weight and bias values (which we will jointly call "the weights"). Depending on the particular optimization algorithm used, its outcome may be not deterministic, or may be difficult to predict. However, once the training is done and weights are fixed, the input-output behavior of the net becomes fully deterministic . It should be mentioned here that some applications of neural networks involve on-line training, or adaptation. In such cases, the weights are continually changed during the actual operation of the neural network mapping software. Hence, if the same input vector is fed to the neural net twice, it may result in different output values. Because current operation of an adaptive neural network depends on its past inputs, it may be considered unpredictable, and danger of instability does exists. However, on-line training is not contemplated for the present embodiment. Instead, training of the neural network and its actual mapping software operation are fully separated: training of the software occurs off-line, and software operation occurs on-line. The actual input-output properties of the neural network mapping function are fully determined by the weight matrices. Accordingly, the construction of a verification procedure that will guarantee full knowledge of the behavior of the trained neural network is based on the assumption that training and testing points can be generated at will by a computer simulation model. If this is true, the input-output behavior of the neural network mapping software may be analyzed without any reference whatsoever to its training process. In the preferred embodiment, a method of verifying pretrained neural network mapping software evaluates the output of the neural network mapping function thereof over a large set of uniformly spaced test points and to find upper and lower bounds on the values that can possibly be attained between those test points. To this end, Lipschitz constants K , and K f ' , are determined for the neural network mapping finction / " and for its gradient f , respectively, such that for any two input vectors V, Z the growth of f and / " 'can be expressed in terms of distance between v and z |/ " (v) -/(z)| < /_7|v - z| '(v)'-/'(z)' ≤ }||v-z||. Such constants can easily be calculated in terms of weight matrices as shown in Appendix A.l wherein two sets of formulae for such Lipschitz constants are derived with the expressions: or, alternatively: K / =^^ W maxλ,(W« τ W«) where y_' m}i are ^^ are constants dependent on the neuron activation function Y(X) , and λ stands for i-th eigenvalue of a matrix. Applicability of the second set of formulae depends on availability and certifiability of matrix eigenvalue calculation. If this is inadmissible, more conservative expressions for the Lipschitz constants are: Any of the above expressions can be used in the error-bounding procedures to be described later. From the efficiency standpoint it is desired to use the lowest possible values of K , and K , . One application of a neural net mapping function is to replace a nonlinear mapping function given by a look-up table, for example. Look-up table mapping software has traditionally been used to express geometric relationships in processes, like fuel systems, for example. With larger number of input variables, practical implementation of a look-up table becomes cumbersome. A feedforward neural net is an ideal compact replacement for a large look-up table. Below differences and similarities between the two approaches to nonlinear mapping function approximation are considered. By way of example, a look-up table, which is used to map an n- dimensional rectangle R = \ , X " p ) into the space of real numbers is considered. Assume that each of the coordinate intervals is partitioned into N, — 1, N, > 2 intervals, with the corresponding discretization step ,(«/>) ,('o) Δ,=- N, -1 The N ( discretization points along the i-th axis are x' 0 ,x l0) +Δ,,...,x, (,0) + ,,...,x, (,o) +(N, -2)A l ,x^ ) Such a look-up table contains N = N ] N 2 ...N n entries. The table entry (k λ ,k 2 ,...,k n ) , 0</c. <N ( contains the value of the tabulated function at a point \(k χ ,k 2 ,...,k n ) The value of the function at an arbitrary point within the rectangle is found via interpolation. Denote that point X GR (which satisfies for all l≤i≤n) . Integers k λ ,k 2 ,...,k n are determined by the expression: These indices define a rectangular cell containing X , which satisfies x t ( " >) +k I A l ≤x 1 ≤x' o) +(k l +l)A l Using the two-dimensional analogy, the cell containing X has lower- left vertex characterized by indices k 1 ,k 2 ,...,k n . Now distances between the point X and the walls of the cell may be defined as : δ?=x,-(x +k l A,) Next, the corresponding 2" table entries Φ(k l + are retrieved. Then the value of the function is calculated through multi-linear interpolation φ(x) = =— ∑ ∑... ∑Φ(k l + f ,...,k n + Jn ) Hδ/ > [ 1, =1 Δ , Λ=°Λ= 0 = 0 '=1 In this application, upper case Φ, indexed by integers, is used to denote values and gradients of the look-up table at discretization points (table entries) . Lower case φ , with a real argument, is used to denote values and gradients of the interpolated mapping evaluated at arbitrary points within its domain. By comparison, both the look-up table approach and a feedforward neural network involve relatively simple calculations based on stored parameters. In case of a neural network mapping, the parameters are matrices (A) ,W (o) , b (Λ) ,b (o) (total of np + 2p + 1 parameters) . In the case of a look-up table, the parameters are limit vectors X , X , discretization steps Δ, and table entries Φ(k l ,k 2 ,...,k n ), 0 < k t < N ( (total of 3n + ~ ["_ N, parameters). Putting aside the issues of software storage requirements and computational efficiency (both favorable for the neural net software implementation) , there is only one substantial difference between a look-up table and a neural net. The weighted sum formula used for a look-up table calculations assures that the interpolated value does not exceed the minimal and maximal vertex values for a given cell <_>(*. + /.,...,£„ + /„) In addition, within each cell the interpolated function is monotonically increasing (or decreasing) along any straight line. Thus, the bounds for values of the look up table mapping function φ(X) can be obtained directly through inspection of the stored values (parameters) Φ(k 1 , k 2 , . .. , k n ) . Accordingly, the only true difference between the mapping software of neural nets and look-up tables from the point of view of a certification process is that bounds for values of the neural net mapping function ~(x) may not be immediately derived directly from the stored parameters W ,W , b ) ,b . Therefore, in what follows, how to derive guaranteed bounds on output values and on accuracy of a neural net mapping function by constructing an appropriate set of testing points will be addressed. If these bounds can be determined, certification of a pre-trained neural net will be equivalent to certification of a look-up table, which is a well- understood problem. Verification of a Neural Net - Case of Look-Up Table Approximation In this section, verification of input-output properties of a neural net mapping function / " (x) , which has been trained to replace a look-up table mapping φ(x) will be addressed. Let X denote an n- dimensional input vector, referred to as the state, and let V = ^(x)be the output of the function. In one embodiment of mapping software for flight application, the input vector X may consist of three fuel plane coefficients, and y may be the fuel quantity of at least one fuel tank on an aircraft. The goal is to verify that the trained neural network mapping function indeed approximates the given look-up table in software operation. A procedure to achieve this is outlined herebelow. Specific technical assumptions are made to ensure the goal is well defined. Fist, the domain of both mappings is restricted to an n-dimensional rectangle R = \X , X . That is, for each coordinate x t we assume there are lower and upper bounds for the admissible values x i {l0) ≤ x i ≤ x^ It is assumed that during validation of the approximating mapping function f there is unrestricted access to values of the approximated mapping φ , that is for any X G R we can freely calculate φ(x) ■ It is further assumed that implementation of φ is validated (certified) and values φ(X) are trusted to be true. For inputs outside the domain of the lookup table, X g R , an appropriate "snap-to" method is implemented for the look-up table mapping function. That is, the reported value φ(x) of the tabulated function corresponds to some X G R that is close to X. Any sensible software implementation of a look-up table mapping function will include such a "snap-to" procedure. Then, the same method of clipping the input values will be used for the neural net software implementation. Alternatively, the software which uses the look-up table mapping φ may be implemented in such a manner that input values never lie outside the rectangle R . Then, the same assumption may be made for the neural network mapping function f . In any case, the behavior of mapping f will be limited to input vectors such that X € R . Now, the following two questions which are relevant to the problem of validating behavior of neural network mapping f on the rectangle R will be addressed. Boundedness of output value: Can values M h , M which bound outputs of /, that is satisfy, for any G R , M lo ≤ f(x) ≤ M up be determined? Accuracy of approximation: Can values M ror ,M e " or such that for any X G R we have M ≤ f(x) - φ(x) ≤ M ° r be determined? Finding an answer to the first question above guarantees that the value produced by the neural network mapping function is always bounded by M lo , M . Knowledge of these constants may be important for analysis and verification of other segments of the software implementation, which may use f(x) as input. For networks with sigmoidal activation function γ output of each neuron is bounded, so the output of the whole neural network is also bounded. For example, if hyperbolic tangent is used as activation function, bounds for value of f(x) can be easily found as These value bounds will hold for any conceivable input X , not just for the rectangle R . However, they may be too conservative, and may exceed the true desired range of the mapping function for inputs in R . Therefore, tighter bounds, based on actual values attained by the neural network mapping on a set of test points from R may be determined. The answer to the second question assesses the goodness of the neural network software implementation replacement of the nonlinear look up table mapping. If it can be verified that the neural net mapping function approximates the look-up table within some sufficiently small neighborhood of zero (M ror ,MJ e ™ r ) , then the neural net can be judged equivalent to the look-up table, and certifiability of the two should also be equivalent. For particular software implementations it may be desirable to verify value bounds or accuracy bounds on some sub-rectangles of the form R = X ,X ) , which are subsets of R (that is satisfy , (0) < Λ, ( ' o) < , i = 1, ... , n ). Of course, a validation procedure on the whole set may be easily applied to any subset. Therefore, value and accuracy bounds on the whole set /.will be considered. The bounds for the mapping function f may be obtained by dividing the rectangle R into a large number of small sub- rectangles, or "cells". That is, each coordinate or axis is discretized with a step X up) - X t0) Δ. =- N, - l In Figure 2 is illustrated a two-dimensional case, with N, = 5 and N 2 = 4 , in which the rectangle R is divided into 12 rectangular cells, vertices of which constitute a set of 20 testing points. In each of the resulting cells or sub-rectangles, its 2" vertices are used to calculate a mean value of the look-up table at those vertices y . Then, as demonstrated in appendix A.6, bounds for value of the function within the sub-rectangle are determined by the expression: y - K f D ^ ≤ f(x) ≤ y + K f D tmιi where D^ is a constant depending on discretization steps (see appendix A.5) . Then, an upper and lower value bound is selected from the plurality of upper and lower bounds of the individual cells, respectively. In the present embodiment, the maximum and minimum of the bounds for individual rectangular cells are selected to obtain the desired value bounds M h , M . The details of this determination are hereinbelow. The essence of the procedure may be best understood in a one- dimensional case. Each of sub-rectangles is just an interval. A value of function f in two endpoints of each sub-interval may be determined. Lipschitz constant K , defines two cones of admissible values of f , which start at those two endpoints. Because of definition of the Lipschitz constants, it is know that the graph of function f on each of the sub-intervals must lie in the intersection of these two cones. Then the lower and upper bound on each sub- interval is just the highest and the lowest point in the intersection of the admissibility cones. This is described in detail in appendix A.6. In summary, the verification method contemplated for the present embodiment, evaluates the neural network mapping function over a large set of uniformly spaced testing points, and uses the Lipschitz constants to make inference about all points in between. Albeit, not particularly elegant, this procedure gives guaranteed bounds for the neural network mapping function throughout the whole domain of interest. The method for determining the error bounds for the mapping functions f(x) and φ(x) starts again with dividing the rectangle R into a large number of small sub-rectangles, or "cells" such as shown by way of example for the two dimensional case in Figure 2. The discretization Δ ; may be chosen such that it coincides with, or is a refinement of the discretization of the look-up table mapping function which is to be replaced. That way it is ensured that lookup table mapping ψ(X) will be differentiable within each sub- rectangle. Continuing, the Lipschitz constant K , is determined for the neural network mapping, so that knowledge of the gradient at the testing points allows inference about gradient values throughout the whole rectangle. Because error bounds are to be determined between f(x) nd <p(X) , knowledge of the difference between gradients of the two functions are determined. Strictly speaking, the look-up table mapping is not differentiable everywhere. Therefore, its gradient is calculated separately for each sub-rectangle, restricting φ(x) only to that sub-rectangle. Then, for each rectangular cell a local Lipschitz constant K is determined for the gradient of the look-up table mapping. Calculation of K' is described in detail in appendix A.2 supra. This constant, in conjunction with K allows calculating bounds for the error within each rectangular cell e + G^D^ - - λ (K f ' + K φ ' )D∞ < /(x) - (x) < e + G nιax E> n]ax + \ {K f ' + K φ ' )D Quantities £ nιax and D^ mx depend only on discretization steps, and quantities G^ , G nιax , and e are calculated from values and gradients of f(x) and φ(X) at all vertices of a sub-rectangle. Detailed formulae are given hereinbelow and derivations can be found in appendix A.7 supra. After lower and upper bounds for approximation error within each rectangular cell have been determined, a lower and an upper error bound is selected therefrom for the desired error bounds of the mapping functions f(x) and φ(x) • In the present embodiment, the minimum and maximum of these error bound quantities over all cells are selected to obtain the desired lower and upper error bound valid for every point within the domain R . Figures 3A and 3B depict an exemplary software flow chart that may be used to program a computer routine that may be executed in a digital computer to verify performance of a previously trained, feedforward (i.e static) neural network mapping software that approximates a look-up table mapping software implementation defined on a rectangular domain, when the input to the neural net is the same as that of the look-up table. The procedure described below m connection with the exemplary flowchart of Figures 3 A and 3B provides a basis for actually coding the verification procedures in high level programming language. It is show that by evaluating the neural net finitely many times we can verify with complete certainty its behavior, provided the mput is within the specified range. Detailed derivations may be found m the Appendix supra Procedure 1 for determining lower and upper bound for values attained by f(x) on rectangle R , that is numbers M lo , M up such that M l0 ≤ f(x) ≤ M up The flowchart of Figures 3A and 3B, presume a single layer neural network mapping f(x) , specified by weight and bias matrices W , W , b , b , and by neuron activation function γ . A value of the function is calculated as /(x)= W (0) r(w (Λ) x+b (A) )+b (0) . Referring to the flowchart of Figures 3A and 3B, a multi-axis rectangular input domain R = X ,X / is determined by block 100 and upper and lower limits X__ lup) and Xj . ' 10 ', respectively, are determined for each axis l within R in block 102. A set of test points for the domain R is determined in blocks 104 and 106 by discretizing each axis of the domain R into Nj . test point coordinates and into N — 1 equal intervals of length Δ _(«/>) - x (lo) Δ. = • N, -1 Next, a rate-of -growth bound K , for the neural network mapping function is determined in block 108. A more detailed derivation is provided in appendix A.l to show that the Lipschitz constant ¥L j may be determined from the following expressions: or In block 110, the neural net mapping at all N = N,N 2 ...N n discretization test points are evaluated x(k i ,k 2 O≤k, <N, resulting in N function values y(k l ,k 2 ,...,k n ) = f(x(k l ,k 2 ,...,k n )) Then, for each rectangular cell of the domain, with the "lower-left" vertex (/, ,k 2 ,... ,k n ) , 0 < k l < N, - 1 , a mean value of the function is calculated over all 2 n vertices of that cell 1 ' ' ' y(k i ,k 2 ,...,k n ) = — ∑∑...∑y(k l +j_,k 2 +j 2 ,...,k n +/„). 1 Λ=θy 2 =o . „=o Next in block 112, the upper and lower bound for the value of the function within each cell are determined by the following expressions : M l0 (k i ,k 2 ,...,k n ) = y(k,k 2 ,...,k n )-K f D m M lιp (k 1 ,k 2 ,...,k n ) = y(k l ,k 2 ,...,k n ) + K f D tmx where the maximal mean distance O^ * is determined between an arbitrary point and all vertices of the corresponding cell by the following expression: D = X Σ Σ ■ ■ ■ Σ ι Δ ι + 2 Δ 2 + • ■ • + Z . The above described ^ Vι=0_- 2 =0 _ ■ „=<> expressions are described in greater detail in appendixes A.5 and A.6. In block 114, the lower and upper bounds for the values of function f over the entire rectangle R are determined by selecting the minimum of the lower value bounds and the maximum of the upper value bounds of the cells according to the following expressions: ' . min . M lo (k x ,k 2 ,...,k n ) M up = k max^ M up (k , k 2 ,... , k n ) . Thus, according to block 116, if the values of the upper and lower bounds can be determined, then the function f(x) is value bounded for all x e R. If the uncertainty margin K^D^^ is too large when compared to maximal and minimal value on the domain of the test points, the discretization steps Δ ( may be decreased for some (or all) coordinates, and the procedure repeated (possibly reusing, after necessary re-labeling, some of the previously calculated values of the neural network mapping) . At a cost of slightly less tight (more conservative) bounds, computational cost of the software may be reduced if mean values of y are replaced by maximal and minimal values over whole testing set. Then a step in the procedure may be eliminated, since: M u P = maX . y( k l> k 2>---> k n) + K f D n nx Procedure 2 for determining lower and upper bound for approximation error between known look-up table function φ(x) and neural net mapping f(x), that is numbers M^ eror ,M u e p ror such that Steps defined in blocks 100 through 110 may be repeated for the instant procedure. Next, in block 120, the rate-of-growth bound or Lipschitz constant K ', for the neural net mapping is determined by the following expression: or More details of the above expressions are derived in appendix A.l. Also in block 120, the value of the Lipschitz constant K φ ' is determined for each cell (refer to appendix A.2) from the value of the look-up table mapping v(k x ,k 2 ,...,k n ) = φ(x(k x ,k 2 ,...,k n )) and the error value e(k x ,k 2 ,...,k n ) = y(k ,k 2 ,...,k n )-v(k x ,k 2 ,...,k n ) and the gradient vector of the neural network mapping f'{x(k x ,k 2 ,...,k n )) by the following method: At each vertex of a cell, calculate Hessian matrix Φ "(Ji » J 2 ' • ••»/ « ) ' w hose elements are given by: Φ J^J2,--- n)=- l ^ L (^' l U l ,--- -J m ,--- „)-Φ' l U l ,---J )) Next, find an upper bound for each element of the Hessian over all cell vertices Φ" » max = max |Φ" m (/, ,j 2 ,...,j n )| .,=0,1 =0,1 Then calculate the desired Lipschitz constant valid within the current cell by the expression: In block 122, the mean value of e, G maX and G mιn of the cell is determined by the following method: Calculate maximal mean square distance between an arbitrary point and all vertices of the corresponding cell , as derived in appendix A.5 D m = I - max 2 ^—' . =1 J For each cell of the lattice, with the "lower-left" vertex (k χ ,k 2 ,...,k n ) , 0</. <N ( -1, perform the following: Denote the values of f and φ at the 2" vertices of the current cell as: f'U l ,---J„) = f'{x(k_ +/„... A +/„)) Φ(/ ..,Λ) = A +/,,... +y„) Use •• . /„) for the look-up table values indexed relative to the current cell, in order to distinguish them from values Φ(k x ,...,k n ) indexed relative to the whole table. alculate the mean value of error e over all vertices of the current cell j 1 1 1 e(k x ,k 2 ,...,k n ) = — ∑∑...∑e(k x +j x ,k 2 +j 2 ,...,k n +j n ) 1 Α =0. 2 =0 „=0 For each of the cell vertices, calculate gradient of the lookup table mapping restricted to that cell and find the gradient of the error mapping e'(/,/ 2 ,- ••,/„) = O 1 ,/ 2 ,...,/„)-Φ'(/ 1 ,/ 2 ,...,/„) At each vertex find the transformed error gradient, as discussed in appendix A.7 and calculate maximal and minimal values of directional derivative within the cell £ ma χ ' I > • • • » i n ) = min(θ, max h, (/,,..., /„ ))+ J∑* = . max(θ, h, (/,,..., /„ )) 2 £m,n (/_» •■■ .Λ) = mSX ( 0 > m , m Λ ,O ' l . • • • »Λ)) ~ NΣ =1 mm ( 0 ' Λ < ' l • • • ■ »/«))' Find bounds for the values of directional derivative within the cell G max = m ax niax (/,,...,/„) G nun = min g mm (j _,..., j n ) Λ=«,l Λ=0,1 /„=0,1 Λ=0,1 Also in block 122, the desired bounds for the error value wi thin the current cell are determined, as derived in appendix A . l Mr(k ,...,k n ) = e(k ,...,k n ) + G mn D nm ( Kf ' + K φ ' )D M ;°Xk x ,...,k n ) = e(k x ,...,k n ) + G jmx D nm +!(*) + K φ ' )D∞ Next in block 124, the lower and upper bounds for the error values over the entire rectangle are determined from the upper and lower bounds of the cells of the rectangular domain according to the following expressions: M ror = k. ,mk 2 ,in ,k„ Γ"(*, ,-A) MζT = max M™ (k x ,k 2 , ..., k n ) k \ ,k 2 , ,k„ Thus, according to block 126, if the upper and lower error bounds can be found by the foregoing described procedure, then /(x) - φ (x) is error bounded for all x e R. If the uncertainty margins 1 G m D M + - ,' + K 9 ' )D. (2) max G m D M - - X (K f ' + K φ ' )D (2) max are too large when compared to maximal and minimal value in a cell, the discretization steps Δ ( may be decreased for some (or all) coordinates, and the procedure repeated (possibly reusing, after necessary re-labeling, some of the previously calculated values) . Organization of software calculations in the above procedure is geared more towards ease of mterpretation than towards software computational efficency. A large portion of the arithmetic software operations in neighboring cells is identical - this ap es particularly to gradient calculations Smart reuse of those values in the software execution from cell to cell may reduce computation time. Verification of A Neural Net - Case Of "Black-Box" Estimator The case presented in the previous section was simple because of two reasons. Firstly, the domain of input signals was rectangular. Secondly, for each particular input value, the desired, or "true" output value was known or readily calculable via a look-up table. These two assumptions do not hold in the case of "black-box" estimator, which will be discussed now. Because signals from redundant sensors of a given process are correlated, the input domain is not rectangular. More importantly, due to measurement noises, the desired, optimal estimate for any particular input is difficult to calculate. One of the advantages of the neural network mapping approach to state estimation is that during the training process the neural net learns to calculate a statistically (almost) optimal estimate of the desired quantity, which obviates necessity to perform any direct optimization. As a consequence, though, it is not known what the true optimal answer should be, and therefore there is no reference value by which to judge the neural net performance. In this section, there is described a method to circumvent these difficulties, and to verify performance of a neural net "black-box" estimator. Let a neural net be trained to provide an estimate of the quantity of interest y , based on a set of m measurements Z , y = f(z) . The training set, containing pairs (z , , ' J. may be generated by a computer simulation model, where values of z represent modeled output signals of sensors, possibly including random measurement noise of a given process. Each particular value of Z may be calculated for some specific values of parameters describing the environment of the process, and the corresponding value of the desired output y may be calculated for the same values of the environmental parameters. This underlying n-dimensional vector of parameters is referred to as the state of the process or system, and denoted as X . The computer simulation model (the data generator) implements two transformations - for any given state, X it calculates the desired or true output of the estimator, y = φ (x) , and the (noisy) estimated output values of sensors Z = ψ(x) + ζ . In the context of an aircraft fuel measurement process or application, like that described in the copending patent application 08/996,858, entitled "Liquid Gauging Using Sensor Fusion and Data Fusion" and assigned to the same assignee as the instant application, the state X of an aircraft fuel tank, by way of example, may consist of two attitude angles, height of the fuel surface over a reference point, fuel temperature, and magnitude of the acceleration vector. In this same example, measurement vector Z may include pressure, temperature, acceleration, and ultrasonic time of flight values. Moreover, the desired output value y can be the fuel quantity or mass within at least one fuel tank of the aircraft. The rational behind introducing the concept of state X is that its components can change independently of each other, and the set of possible state values can be specified as a rectangle again Thus, we have the following situation: the "true", desired value of the estimator is calculated as a known function of state y(true) = φ (x) . The actual output of the neural net estimator y(est.) = /(z + ζ) is calculated as a function of the sensor values z = ψ (x) , which in turn are functions of state contaminated by sensor noise ζ. This mapping concept is illustrated graphically in Figure 4. Referring to Figure 4, the composition of the measurement transformation ψ(x) is defined with the neural net f(X) • i . e . F(x) = . This new mapping is defined on the same rectangular domain R as the known mapping φ(x) ■ Therefore, in absence of measurement noise, verification of the neural net is equivalent to verification of mapping E(x) . If there is measurement noise, it is shown in appendix A.8 how to decompose estimation error / " (ψ(x) + ζ) - φ(x) into the noise-free error F(x) - φ(x) , and a term dependent on noise magnitude In the present embodiment, calculations of the sensor outputs z, and of the desired output y(true) from state x, may involve usage of a fuel tank geometry model implemented in software in the form of an interpolated look-up table mapping. Therefore, for the present embodiment, both transformations φ(x) and ψ(x) within the computer simulation model are coded in the form of look-up tables. That is, their values are calculated as : and where Φ and Ψ denote look up table entries, and δ Jl are- distances from cell walls, as defined infra. While this may not be the most efficient way of implementing these transformations, it allows simplifying our developments and utilizing techniques herein described. In particular, it guarantees that gradients of φ and ψ can be evaluated exactly within each cell via finite differencing. On the other hand, the neural network estimator may be verified with respect to the interpolated approximate mappings, rather than the actual nonlinear transformations. Accuracy of such interpolation is obviously affected by the size of the discretization step used to construct the look-up tables. However, since the look-up table approach is well understood and accepted within the industry, it is not necessary to address those issues herein. An important part of the present method is the calculation of Lipschitz constants K and K for m-valued transformation ψ(x) and its Jacobian. How this is done within each separate cell of discretization domain is shown in appendix A.3. Then, the Lipschitz constants K F and K F for the composite transformation E(x) may be calculated as shown in appendix A.4. After this is done, the verification method is virtually identical with that described above for the look up table replacement case. For each sub-rectangle or cell of the original state domain R, lower and upper bounds for values of F(x) , or for error F(x) — φ(x) are calculated, depending whether we solve the value bounding problem, or approximation error problem (as described hereinabove) . Finally, the minimum and maximum of the derived local bounds are taken over all sub-rectangles, to obtain global bounds valid everywhere within the state domain R. The foregoing described method gives us guaranteed performance bounds for the noiseless case. To incorporate the effects of measurement noise, noise bounds ζ ° and ζ up on the possible values of measurement errors are determined in order to calculate maximal norm of noise term " • Then, the term ± K f C " _,_„ is added to the derived error bounds determined for the noiseless case. Detailed formulae for the above are given in the procedures described hereinbelow. The verification method outlined above allows calculation of guaranteed performance bounds for a neural net estimator under one important qualification. It has to be remembered that those bounds are derived relative to the computer simulation model of the measurement transformation ψ(x) and the output transformation φ(x) ■ If these two transformations describe the measurement system (e.g. an aircraft tank) accurately, then our verification procedure allows us to infer that the neural net output / " (z) will indeed approximate closely the desired output φ(x) ■ I / however, the simulation model, used to generate the training and testing data, is inaccurate, then the neural net will be inaccurate as well. In summary, the approach, in the preferred embodiment, is to show equivalence of a neural net to some other nonlinear function, such as a look-up table, for example. This systematic procedure calculates, in a finite number of steps, the maximal distance between values of the neural net and of the look-up table mapping functions. Thus, if the look-up table mapping is valid, then the neural net mapping is also valid. Then, the task to certify a neural net will be equivalent to certifying the look-up table. A related issue is the range of neural net inputs. The bounds are guaranteed to hold if the input to the neural net estimator lies in the range of ψ(x) + ζ . In other words, the sensor outputs should be accurately modeled by the simulation equations ψ(x) , the measurement noise should not exceed bounds ζ ° and ζ up , and the true state must lie within the rectangle R. Then, the accuracy of the neural net estimator will be true. If we expect that the simulation model is inaccurate, we may increase the noise bounds ζ " and ζ up , so that discrepancy between the actual and calculated sensor signals will always satisfy ζ ( ' 0) < z - ψ(x) ≤ ζ (, "' ) . The above condition may mean that for certification of a neural net estimator, the computer simulation model or data generator ψ(x) and φ(x) should be certified as well, together with the physical sensors, so that closeness of ψ(x) and actual measurement z is assured. Figures 5 A through 5D depict an exemplary software flow chart for use in programming a computer routine that may be executed in a digital computer to verify performance of a previously trained, feedforward (i.e. static) neural network mapping software that approximates a look-up table mapping software implementation defined on a rectangular domain, when the input to the neural net is the same as that of the look-up table, and redundant and noisy measurements fed to the neural net. The procedure described below in connection with the exemplary flowchart of Figures 5A through 5D provides a basis for actually coding the verification procedures in high level programming language. It is shown that by evaluating the neural net finitely many times we can verify with complete certainty its behavior, provided the input is within the specified range. Detailed derivations may be found in the Appendix supra. Procedure 3 for determining the lower and upper bound for values attained by composition of measurement transformation ψ and neural net f on rectangle R , including measurement noise ζ ; that is numbers M lo , M such tthhaatt for any state vector X G R , and for any noise vector ζ < ζ < . By way of example, the procedure is for a single layer neural net mapping / " (z) , specified by weight and bias matrices W , W ,b ,b , and by neuron activation function as explained before. A value of the function is calculated as /(z) = W (o) r(w (/,) z + b ( " ) )+b (o) . Referring to Figures 5A-5D, in block 130, a rectangular state domain R = \X ,X /is determined, and in block 132, a transformation mapping ψ(x) is determined to transform an n- dimensional state vector X into an m-dimensional measurement vector Z , preferably in form of a look-up table mapping. Next, in block 134, upper and lower bounds ζ and ζ for an additive measurement noise component ζ is determined. In block 136, each state axis or coordinate i is discretized into Ni test point coordinates and N. — 1 equal intervals with length Δ such that Λ«p ) do) — X Δ. = ■ N, -1 Continuing, in block 138 is calculated a rate-of-growth bound or Lipschitz constant K , for the neural net mapping, as derived in appendix Al by the equation: or Also, calculated in block 138 is a maximal value for norm of noise vector ζ and the maximal mean distance between a point and all vertices of the corresponding cell , as derived m appendix A.5 Block 140 evaluates the look-up table measurement mapping at all N = N j N 2 ...N n discretization points x(*-A,-A) = , O≤fc, <N, , which results in N measurement vectors also the neural net mapping is further evaluated at all calculated mesurement vectors τ(k ,k 2 ,...,k n ) , 0≤k, <N, which results in N output values ; *,A.-"A) = /( z( *ιA>"-A)) = /(ψ( χ (*ιA>"-A)))- Now, for each cell of the rectangular domain, with the "lower- left" vertex (k x ,k 2 ,...,k n ) , Q≤k, <N t -I , block 142 calculates the mean value of the composite function F(x) = over all vertices of the cell 1 1 1 1 y(k x ,k 2 ,...,k n ) = — ∑∑...∑y(k x + j x ,k 2 +j 2 ,...,k n + Jn ), 1 .,=0. 2 =0 _„=o and, for each measurement transformation ψ , i = l,...,m , calculates Lipschitz constant K , as derived in appendix A.2 by the following method : (a) denote values of the coordinate mapping ψ (l ' at the vertices of the current cell as : y ( ' ) U_,J 2 ,--;J„) = Z,(k χ -rj χ ,k 2 +j 2 ,...,k n +j n ) (b) for each vertex of the cell, calculate gradient vector of ψ t restricted to the curent cell (c) calculate maximal absolute values for all components of Ψ i' ) over all cell vertices ,and then, 7„=0,1 (d) compute a bounding constant for the cell in question In block 144, a Lipschitz constant K ψ is calculated for the m- dimensional mapping ψ restricted to the current cell, as derived in appendix A.3 and a constant K F is calculated for the composite mapping F restricted to the current cell, as derived in appendix A.4 κ F =κ f κ ψ . Also, in block 144, the upper and lower bound for the value of the function / is determined for each cell, as derived in appendix A.6 and A.7 M l0 (k x ,k 2 ,...,k n ) = y(k ,k 2 ,...,k n )-K F D^ -K f ^ M up (k x ,k 2 ,...,k n ) = y(k,k 2 ,...,k„) + K F D nm +K f ζ πax In addition, block 146 determines lower and upper bounds for the values of function f over the entire rectangle R by determining minimum and maximums as follows: « P = . maX . M up ( k X > k 2 , - - - n ) - Thus, it follows in block 148 that if the upper and lower value bounds of the domain R can be found, then the function f is value bounded for all x e R . Note that here the uncertainty margin Kf D παιi +^ < - max cannot be arbitrarily reduced by simply refining discretization of the state space. The assumed maximal size s^ rmκ of the noise vector determines the worst case inaccuracy of measurements and uncertainty of final output . Procedure 4 for determining lower and upper bounds for approximation error between a computer simulation model which may be a known look-up table function (p(x) and the composition of ψ(x) and / " (z) on rectangle R , including measurement noise ζ ; that is, numbers M lo , M such that M lo ≤ f(y(x) + ς) - φ(x) ≤ M up for any state vector X G R , and for any noise vector ζ < ζ ≤ ζ " p . The procedure is once again for a single layer neural net mapping f(z) , specified by weight and bias matrices W , W , b , b , and by neuron activation function ^as explained before. A value of the function is calculated as f(z) = W (0) Γ(\V (Λ) Z +b (A) )+ b (0) . Referring again to Figures 5A-5D, for this procedure blocks of the flowchart 130 through 144 may be repeated and in block 150, the rate-of-growth bound or Lipschitz constants K f and K j - are calculated for the neural net mapping f , as derived in appendix A.l: or Block 152 determines a look-up table mapping φ(x) defined on the rectangle R , with each coordinate discretized with step Δ ( ; interpolation formula is as described in appendix A.2. In block 154, for each of N = N, N 2 . .. N„ discretization points within the rectangle R x(k x , k 2 , ... , k n ) — 0 ≤ k, < N, the following is determined: the value of the look-up table mapping φ v(k x ,k 2 ,...,k π ) = φ(x(k x ,k 2 ,...,k n )) the m-dimensional measurement vector z the value of the neural net function (assuming no measurement noise) y(k x ,k 2 ,...,k n ) = f(z(k x ,k 2 ,...,k n )) the error value e(k x ,k 2 ,...,k n ) = y(k x ,k 2 ,...,k n )-v(k x ,k 2 ,...,k n ) and the gradient vector of the neural mapping f'{z(k x ,k 2 ,...,k n )). In block 156, for each cell, the maximal mean distance and maximal mean square distance is calculated between a point and all vertices of the corresponding cell , as derived in appendix A.5 D (2) = Iy max j i—t)=1 7 Also, in block 156, for each cell of the domain, with the "lower- left" vertex (k x ,k ,...,k n ) , O≤/, <N. -1, the following is performed: Denote: Φ(/„..., ) = v(A : I - l -/„...A+ ) Again Φ and Ψ are used for the look-up table values indexed relative to vertices of the current cell, in order to distinguish them from Φ and Ψ , which denote table entries indexed relative to the whole table, and from φ and ψ, which refer to interpolated functions of the real variable. Block 156 also calculates the mean value of the approximation error over all vertices of the current cell e(k x ,k 2 + /ι + .---A +/„) Now, block 158 calculates, for each of the cell vertices, a gradient vector of mapping φ restricted to that cell -φ(/ 1 ,/ 2 , ...,/„)) -Φ(j x ,j 2 ,..., j„ )) -Φ(/I»Λ»-.-. )) and gradient vector of each measurement transformation ψ ' restricted to the current cell and, at each vertex of that cell forms the Jacobian matrix of ψ and calculates gradient of the error mapping Also, in block 158 is calculated bounding constant _ " for the current cell, as derived in appendix A.2 by calculating at each vertex, the Hessian matrix Φ"(/ j , j 2 ,..., /„) with element l,m defined as : ΦΛ Λ (/I./2»---. ) = ^τ^ 2L (Φ. ' ι. ••■ .!-/»,» •■• »/-) -Φ'/ " ι. •• -. »)) Δ m and finding an upper bound for the Hessian matrix over all vertices Φ ,m max = max |φ' m (/, ,j 2 ,...,j n )| 7, =0,1 7„=0,1 then, calculating the desired Lipschitz constant for function φ restricted to the curent cell K <'P = / Φ" l,m max V / • Also, block 158 calculates for each cell Lipschitz constants K ψ ' and K F ' by the following method: for each measurement transformation ψ , i = l,...,m , calculate Lipschitz constant K as derived in appendix A.2: calculate maximal absolute values for all components of gradient ψ ' over all cell vertices 7„=0,1 then, compute a bounding constant for the transformation ψ Ψ' - V __,=l V max I calculate Lipschitz constant K for the m-dimensional mapping ψ , as derived in appendix A.3 for each measurement transformation ψ , i = \, . .. , m , calculate Lipschitz constant K' as derived in appendix A.2: at each vertex calculate Hessian matrix ψ" w , defined by ■ • ■ ■ > J n )) next, find an upper bound for this Hessian matrix over all vertices 7„=0,1 calculate the desired constant for the transformation ψ (0 then, calculate Lipschitz constant K for the m-dimensional mapping ψ restricted to the current cell, as derived in appendix A.3 calculate constant K F ' for the composite maping E(x) = / " (ψ(x)) restricted to the current cell, as derived in appendix A.4 K F ' = K f K ψ ' + K f ' K ψ . Next, at each vertex of a cell, block 160 finds the transformed error gradient, as discussed in appendix A.7 h(/ι>/ 2 ,- ■•-/,) = e'(J l J 2 , ...,/„) and calculates the maximal and minimal values of a directional derivative into the cell Sma x 0 " . » • ■ ■ , X ) = min(θ, max h, (/,,..., /„ ))+ ^∑" =ι max(θ, h, (/,,..., /„ )) 2 -?mm (/i > • • • > ) = max(θ, min Λ, (/,,..., /„ ))- ^∑" =ι min(θ, h, (/,,..., /„ )) 2 Then, block 162 finds bounds for the directional derivatives within the cell as follows: Gmax = max g, mx (/,,..., /„ ) G mn = min g mn (/,,..., /„ ) . 7ι=0,l 7ι=0,l 7„=0,1 Λ,=0,1 Block 164 determines the desired bounds for error value wi thin each current cell (wi th noiseless measurements) , as derived in appendix A . l M;r(k ,... ) = Hkχ ,...X + Next, block 166 determines a lower error bound for the mapping functions f and φ over the entire rectangle by selecting a minimum value from the lower error bounds determined for the cells over the entire domain and subtracting an error component related to measurement noise in accordance with the following expression: MtT = k min M (k ,k 2 ,...,k n ) - K f ζ M , and, block 168 determines an upper error bound for the mapping functions f and φ over the entire rectangle by selecting a maximum value from the upper error bounds determined for the cells over the entire domain and adding an error component related to measurement noise in accordance with the following expression: — = k max^ M (k x ,k 2 , ... ,k n ) + K f ζ M . Thus, according to block 170, if the upper and lower error bounds of the domain R can be determined, then φ(x) - f(ψ(x) + ζ) is error bounded for all x e R. The procedures outlined for the preferred software embodiments in this application may be quite computationally expensive in a digital computer if dimensionality of input is large. However, it is understood that by intelligent re-use of intermediate results (for example some of the gradient and directional derivative values) for neighboring rectangular cells, and by early stopping of some loops it is possible to make them much more computationally efficient. However, for the sake of simplicity, the more straightforward formulations were presented. In addition, in the presented embodiments it was assumed that standard arithmetic software operations are absolutely precise. In reality, numerical accuracy of all software calculations should also be addressed for certification purposes. However, this is a technical detail largely dependent on how the actual certification process proceeds. Since most software calculations described here consists of simple additions, subtractions and multiplications, and all matrices are of moderate sizes, it is not expected that numerical accuracy of the verification procedure is going to be a major issue. Appendix A: Mathematical Derivations A.1 Growth bounds for a neural net mapping In this section we find bounds on growth of a neural net mapping f and its gradient f . Specifically, we look for Lipschitz constant for f and f , that is for constants K f and KX such that for any two input vectors vε9l",ze?l" the following inequalities will be satisfied: || '(V) Γ - /'(Z) Γ | ≤Λ:; |V - Z|| We assume a neural net with one hidden layer, given by the formula: f(x) = W (0) r(w (A) x +b (Λ) ) + b (o) First, we calculate the maximal slope of the neuron activation function γ =max| ()| This value is easily found analytically. For the two most popular choices of γ - the logistic function and the hyperbolic tangent - we have /^ = / 4 , and ^^_ x =1, respectively. By the definition of _ nιax , the neuron activation function γ satisfies Because of diagonal nature of Y , the following inequality is satisfied Next, we deal with matrix transformations. For any matrix A, and for any two vectors V, Z of appropriate dimensions, it holds that II Av - Azll < II All || v - z|| where the matrix norm is the induced L 2 norm (spectral norm) . When we apply the above inequalities to the definition of the neural net mapping, we obtain the following upper bound |/(v)-/(z)|≤y^|w w || w ||v-z| To obtain bounds for growth of the gradient vector, we follow a similar procedure. The (row) gradient vector of f is f'(x) = W (0) r'(W w x + b (Λ) )W (Λ) Because Tis diagonal, to bound growth of T we only need to find maximal value of the second derivative of the neuron activation function r' = m ∞\r" (χ) \ In the standard cases of logistic function and hyperbolic tangent, this number is readily found as Y^* = As > and Y" mx ~ • respectively. The i-th diagonal element of the Jacobian matrix T satisfies I |r1,1 (V) - Γ* I'J - z',' | \ which leads to the folowing condition for the norm of the Jacobian ||r'(v) - r'(z)|| < ^ x ||v - z|| When we combine the above inequality with formula for f , we obtain |/'(v) r - ≤ γ κ ||w (A f |w«"|| ||v - z|| Now, we are able to calculate the required Lipschitz constants K f and K The above formulae require calculation of norms for output and hidden weight matrices W (0) and W . The output weight matrix is actually a row vector, so its norm can be calculated directly from values of connection weights A more difficult situation arises with hidden weight matrix. A general formula for the spectral norm is A = = /max ,(A T A) where λ t stands for i-th eigenvalue of a matrix. This calculation is usually a part of standard numerical algebra packages, including Matlab. However, it is not clear how utilization of such a routine would influence the validation procedure from the certification point of view. Quite likely, an iterative numerical procedure to calculate the matrix norm would have to be certified itself. If such certification is possible, or not at all required, then the final formulae for the bounding constants would be: If direct matrix norm calculation is not admissible, we may approximate it using an inequality where the quantity W is known as Frobenius matrix norm (which is II \\ F not an induced matrix norm) . This formula is much simpler than the eigenvalue calculation, and can be done using elementary arithmetic operations. A disadvantage is that it may be very conservative, and in the worst case may overestimate the actual norm J . times . With the Frobenius norm approximation, the required Lipschitz constants are : The above formulae may be very conservative, even if matrix norm is calculated exactly. An improvement may be achieved if specific form of the neural net mapping is exploited more efficiently. First, we write the increment in the neural net output as : | (v)- (z)| = Next, we use -^ to bound the increment of each neuron's output. This leads to: k o) _ For the gradient increments, we proceed similarly. We will derive a bound for change in the k-th coordinate of the gradient vector |Λ'(v) -Λ'(z)| = Next, we use y^' to bound the increment in the first derivative of each neuron's output: This gives a bound for the norm of the gradient vector increment: From these derivations, we get the following Lipschitz constants K and K j '- : In computer simulation trials, these expressions usually give better (lower) values for K , and K f ' than the previous expressions. However, all the formulae derived in this section ' are only conservative approximations for the optimal values. For a specific pair of weight matrices W and W the best avenue is to evaluate all possible variants and take the lowest values for K ( and K , . The derived formulae are valid globally - everywhere in the input space. It may be advantageous to calculate local bounds valid only in a small rectangular cell of the discretization grid. The key observation is that if each input coordinate is restricted to a small interval, then majority of neurons do not attain the maximal values of first and second derivative. Given a particular rectangle, it is easy to calculate for the k-th neuron the upper bounds γ k l and γ k m __ x for the absolute values of first and second derivative of that neuron's output. That is, we select values such that for any point x within the given rectangle, first and second derivative of the activation function of the k-th neuron should satisfy The specific mechanics of finding such numbers γ k ' Jmx and γ k " nϊlx depend on the particular form of the sigmoidal activation function γ - the task is rather easy and details are omitted here Once the constants γ k ' nιax and γ k " ^^ are found for each of the p neurons, then the Lipschitz constants K and K f are found as: These constant will always be better (lower) than the global ones, since obviously γ k ' Tmx ≤ Y^ and Y k max ≤ r„ However, they are valid only locally, and have to be recalculated for each cell of the rectangular discretization grid A.2 Growth bounds for a single-valued look-up table mapping We assume a look-up table mapping defined on an n-dimensional rectangle R = \X , X /, with each coordinate discretized into N, — 1 intervals of length Δ, . The table consists of N = NN 2 ...N„ entries Φ(/, ,k 2 ,...,k n ), 0 < k f < N, — 1. Consider an input argument x within a cell \k x ,k 2 ,...,k n ) , that is such that its coordinates X l satisfy x, (/0) + k t Δ, < x, ≤ , ( ' 0) +(k + 1)Δ, The value of the look-up table mapping φ(x) is defined through n- linear interpolation of 2" table entries corresponding to the vertices of the cell δ =χ t -(χ l (,o) +k l A l ) Note that throughout this application we use capital Φ for table entries indexed by integers, and lower-case φ for the interpolated function of a real argument Calculation of a Lipschitz constant for this function is easy, if we use the fact that withm each cell the function is linear along any direchon parallel (or perpendicular) to all axes. Thus, its gradient within the cell is bounded by the gradient values attained at the vertices (more precisely, by the limits attained by the gradient at the vertices, since the interpolation formula need not be differentiable at the boundary of the cell). These in turn, are simply the forward differences. The calculation is as follows. For each table vertex (k ,k 2 ,...,k n ) k t = 0, ... , N ( — 2 we find the gradient vector Φ(k x +\,k 2 ,...,k n )-Φ(k x ,k 2 ,...,k n ) Φ(k x ,k 2 +\,...,k„)-Φ(k x ,k 2 ,...,k n ) Φ'(k x ,k 2 ,...,k„) τ = Φ(k x ,k 2 ,...,k n +l)-Φ(k x ,k 2 ,...,k n ) Δ„ Then, for each coordinate we find the maximal absolute value over all the vertices φ . max = max Φ; (k x , k 2 , ... , k n Y = max | Φ( * 1 , ...A+ι.-A ) -Φ ( *ιA.-A ) | Δ, Now we obtain the Lipschitz constant This is a global constant, bounding growth of the function throughout the entire range of the look-up table. If we are interested in local analysis within each cell separately, we may obtain a collection of better (smaller) bounding constants. Let us fix a cell with the "lower-left" vertex (k χ ,k 2 ,... ,k n ) , 0__A <N. — 1. We will consider gradient of φ restricted to this cell, evaluated at its vertices. Denote the 2" values of function φ at the vertices as Φ(/,, j 2 ,...,/„) , /, = 0, 1. Note that we use Φ for the values indexed relative to the current cell, in order to distinguish them from globally indexed table entries Φ . Let the gradient of φ restricted to the cell, evaluated at a vertex, be = φ'(x(k +j,k 2 +j 2 ,...,k π +/„)) Because of the multi-linear interpolation, φ is linear along lines parallel or perpendicular to all axes. Hence, the components of the gradient vector are obtained as slopes of φ along edges of the cell 1-2/ ( Φ(i- ' ι 2 Λ)-Φ PΛ.-,;,)) l-2/ 2 Φ'0 ' PΛ.-.-, ) Γ = (Φ(/pl-Λ--» )-Φ ' ι»Λ. ••■ »/»)) 1-2/. (Φ(/,/ 2 ,...,l-/„)-Φ(/ 1 ,/ 2 ,...,/„)) Δ„ Extreme values of gradient components are those attained at the cell vertices Φ;max= max |Φ; ' ι» .-» )| 7ι,7 2 , -,7„=0,1 Now a bounding constant may be calculated, which limits growth of function φ locally within the cell in question: Growth of the gradient of the look-up table cannot be analyzed globally, but only within each cell, where the function is differentiable . Let us again fix a cell with the "lower-left" vertex (k ,k 2 ,... ,k n ) , and as above let Φ (j_,j 2 ,---,j n ) denote gradient at 2" vertices . To bound the rate of change of the gradient vector within the cell we notice that again the gradient is linear along any straight line parallel or perpendicular to all axes. Therefore it is enough to calculate the Hessian matrix Φonly at the vertices, using differences of elements of Φ at the adjacent vertices l-2/„ Φ 7.». ' .»Λ»-"» ) = - (Φ (/,,...,ι-/ m ,...,/„) -Φ'(/ 15 ...,/„)) Note that the diagonal entries of each Hessian matrix are all zero, and that they are symmetrical, so it is enough to calculate only upper (or lower) triangular portions . Now we take the maximal absolute value of each entry of Hessian Φover all vertices of the cell, to obtain the bounds on Hessian matrix entries over the whole cell. Φ' l;,m max ; max |φ ,m (/,,/ 2 ,...,/„)| 7ι,7 2 , ,7„=0,1 The above formula may be simplified, if we note that the values of the second order derivative with respect to coordinates 1 and m are identical on each four vertices of each rectangular wall, on -which the remaining coordinates are constant. That is, the value of Φ, m is the same for all four possible combinations of j t and j m . Therefore we may seek maximum only with respect to other indices, fixing j, =j a =0. Φ" mmax =max " m (/π t /--ι> 0 >Jl /++! ' • ■ 'Jm-l ' 0 7, =0,1 T t >J +l '' -. ) /-th index m-th index 7„=0,1 Now we use the Frobenius norm estimate for matrix norm from a previous section, which leads us to the the following Lipschitz constant (valid within the particular cell) The above calculation of Lipschitz constants guarantees that for any two input values v, z, within the same cell of the look-up table, it holds that φ( )-φ(z)\≤K φ (k x ,k 2 ,...,k n )\y-z A.3 Growth bounds for a multiple-valued look-up table mapping Assume that we have an m-valued look-up table mapping ψ , or, equivalently, m single-valued look-up table functions , all with the same discretization of the input space. For each look-up table mapping we may calculate appropriate Lipschitz constants K ■ and K' using the formulae derived in section A2. For each ψ t we have that From the definition of the vector norm, we obtain From this, we obtain the desired bounding constant For the Jacobian matrix of ψ we proceed similarly. For gradient of each coordinate mapping we have For bounding the spectral norm of the Jacobian matrix we use the Frobenius norm approximation This leads us to the following bound on growth of the Jacobian matrix The final value of the bounding constant is ~ Λi yK 2 ' A.4 Growth bounds for a composition of two mappings Let ψ be an m-valued maping def ined by m look-up tables , as discussed in the previous section . Let f be a neural net mapping with m inputs and a single output . We define a composition of the two mappings We desire to find bounding constants K F , and K F , such that for any two input vectors v and z, within the domain of the look-up table ψ , we have |E(v) - E(z)| ≤ ^ F ||v - z|| |E'(v) r - E'(z) r | <^: ||v - z|| As before, the second inequality will be considered valid only withm each elementary cell defined by discretization of the mput space, due to the fact that a look-up table mapping (as defined here) generally is not differentiable at cell boundaries. Using the formulae derived in the preceding sections we first find bounding constants K , , K , K , and K' for the mappings f and ψ . Next, we write ||E(v) - E(z)| = ||/(ψ(z)-/(ψ(z))|| < ^|ψ(v)-ψ(z)| From this we have an expression for constant K F K F = K f K ψ To find the bounding constant K F ' we simply use the chain rule of differentiation. Let us denote the output values of ψ evaluated at points v and z as η and ζ : η = ψ(v), ζ = ψ(z) Now we express the difference between Jacobian matrices F (v) and F'(z) F'(v)-F'(z) = /'(η)ψ'(v)- '(ζ)ψ'(z) = /'(η)Ψ'(v) - /'(Qψ'GO + '(η)ψ'(z) - '(η)ψ'(z) = /'(η)(ψYV - Ψ'(z))+ ( '(η) - /'(Q)ψ'(z) Using definitions of T, , K , , R ' , and K' , and the fact that / " ' ≤ Kr and ψ' <_?_. , we obtain the following sequence of inequalities |F'(v) - F'(z)| < | '(η)||ψW - ψ'(z)|+||/'(η) -/'(ς)|||ψ'(z)| Consequently, the formula for K F is A.5 Distance to vertices of a rectangle We are interested in analyzing mean distance of a point within an n- dimensional rectangular cell of a look-up table. Assume that lengths of cell sides (discretization steps for each dimension) areΔ, . With no loss of genarality, we may shift the coordinate system so that its origin coincides with the "lower- left" vertex of the cell. Thus, any point x within the cell satisfies 0< , <Δ ( i = \,...,n Coordinates of the cell vertices are given by (/ 1 Δ 1 ,. 2 Δ,,...,t π Δ„), i j =0,\ Distance of x from a particular vertex is Mean distance of X from all vertices is then We want to find the maximum of this function over all points X withm the cell. It is easy to show (details are omitted here) that function D is strictly convex within the cell. Convexity also holds if we restrict the function to any m-dimensional subspace, with n-m coordinates fixed at their maximal or minimal values. It follows that any maximum of the function must be at a vertex of the cell. Thus, if we substitute coordinates of 2" ertices as X into formula for D, we obtain 2" candidates for the maximal value of D ^ maχ A^ 2; .- „)=^ ∑: ι=0 ∑: 2=0 -..∑: n=oA /∑; =1 A- 2 Δ 2 Upon closer inspection, we find that this expression has the same value regardless of the particular vertex (k χ ,k 2 ,...,k n ) . Indeed, terms (k —i.) take binary values, and there are only 2" possible arrangements of these n terms in the summation under the square root. For any combination of binary indices (k χ ,k 2 ,...,k n ) , all those possible arrangements appear in the formula. It follows that that the value does not depend on (k,k 2 ,...,k n ) , and we can use any vertex to find the maxum. For simplicity, we take vertex(0,0, ...,0) and calculate max ~„ ---Jι,=0---Jι 2 =0 '" ι„=0 ' --^=l 7 7 This number is such that for any point X within the rectangle it bounds from above the mean distance D — T T -T D(x,i x ,...,i n ) ≤ D n Next we want to bound the mean square distance to the vertices. That is, we look for the maximal possible value of the following expression yD « ( x ) ' = _ ryLn i—i I =ϋ . I— iι„=0 D 2 (x,'i x ','...,'ι n n ) ! = — jn ____-ι,=0...∑ _____ 1 ι„=0 ∑ -___-;"=l (x 7-i 1A1' Convexity of this function is obvious, and applying the same reasoning as before, we can establish that the maximum within the cell is achieved at vertex (0,0,...,0) , and the maximum value is This formula can be further simplified, if we notice that each term Δ appears in the summation exactly 2 times. Therefore, we obtain This number is such that for any point x within the rectangle it bounds from above the mean square distance from the vertices A.6 Bounds for growth within a rectangle - first order approximation In this section we derive a first version of a bound for values of a function within a rectangular cell, given its values at 2 vertices. Consider a cell with "lower-left" vertex (k ,k 2 ,...,k n ) , such that its all vertices are (k x + j x ,k 2 + j 2 ,...,k n + /„), / ( = 0,1. Any point X within this rectangle satisfies M ) + k l A l ≤x l ≤xr+(k,+l)A l For this particular cell, denote coordinates of the vertices and values of the function x(/ 1 ,/ 2 ...../„) and y(j l ,j 2 ,---,j n ) yϋ > Λ> ••■ ./„) = /( χ ϋ 2» ••• >/„)) Let X be an arbitrary point within the rectangular cell. Then, we can write the following 2" inequalities for deviation of f(x) rom the vertex values where K, is a Lipschitz constant, and D(x,j ,...,j n ) is the distance of point X from a vertex (/,, ■■■,J„), as discussed in previous sections. Another form of the above is y(iι,---,i„)-K f D(x,/,,...,/„) ≤f(x)≤y(j,...,j„) + K f D(x,j x ,...,j n ) We add the 2" inequalities to obtain ∑{y(j x ,...,j„)-K f D(x,j x ,...,j n ))<Vf(x)< ∑(y(j,...,j n ) + K f D(x,j x ,...,j n )) 7ι„ ,7„ 7ι, ,7„ We define the mean value of the function over all vertices of this cell Then we calculate the upper bound _9 nιax for mean distance to vertices, as explained in the previous section. This leads to y-K f D ^ ≤f(x)≤y + K f D ^ We conclude that lower and upper bound for values of the function f within this cell are: M lo (k x ,k 2 ,...,k n ) = y-κ f D ιm M up (k x ,k 2 ,...,k n ) = y + K f D nuκ The essence of this bounding method is illustrated in Figure 6, which shows one-dimensional case. Values of function f are shown at points , and Λ-are y χ and y 2 , respectively. Constant K , defines two cones of possible values of f starting at each of the (two) vertices ( χ i yi) and (x 2 Yi) ■ Note that each of the cones taken separately is quite conservative. Averaging n inequalities in the derivation above amounts to taking the intersection of the two admissible cones as shown in Figure 6. The upper and lower bounds M lo and are the lowest and highest point of that intersection. A.7 Bounds for growth within a rectangle - second order approximation The approximation derived in the previous section may be overly conservative. Much tighter bounds may be obtained if we take into account the derivatives of the mapping in question at the vertices. As before, let us choose a particular rectangular cell of the input domain, with the "lower-left" vertex (k x ,k 2 ,...,k n ) , 0≤k l <N l —l . Let x(i 1 ./ 2 , • ••./„) an d y \ ./ 2 '■■■'i n denote the coordinates of the vertices and the corresponding values of the function. In addition we assume that gradient vectors evaluated at vertices are available . Let X be an arbitrary point within the cell. Consider the straight line connecting X to a vertex x(_/- ,_ 2 , ...,_ Λ ) - At that vertex, calculate be the directional derivative along that line towards X g(x, /,,..., /„ ) = f'(x(j x ,...,/„ ))(x - x(/, ,...,/„)) ——— — D(x, J ] , ... , J n ) (Note that in the above formula, as elsewhere in this note, the gradient is treated as row vector) . We use the constant K j to bound growth of this derivative along this line, and obtain the following two inequalities 1 /(x)≤3O ' ι ,."./„) + S(X,/,,■■.,/„ )D(x,/,,.-.,/„) + - K f ' D(x, /,,...,/„ ) We have 2" such pairs of inequalities, one for each vertex. To use them jointly, we find minimal and maximal value of g(x, j , . ■ ■ , J„ ) over all vertices. S m ,„(x)= min g(x,/,,...,/„) 7ι, ,7„=0,1 Next, we use the maximal values of mean distance and mean square distance, v ^- and D^ , derived in a previous section, to obtain where y is the mean value of the function over all vertices, as explained in the previous section. To complete the procedure we bound the directional derivatives by values independent on X .We begin by transforming the gradient at each vertex as if the positive direction was towards the interior of the cell. To do so, for each vertex we calculate a new vector (j χ , ... , j n ) , whose i-th coordinate is defined as l (j i , ... , i n ) = (l - 2j l )f l '(x(f ,... ,j n )) The purpose of multiplication by (1 — 2/) is to retain the sign when /, = 0 , that is when the original positive direction was into the cell, but change the sign when /. = 1 , that is when the positive direction was pointing outside the cell. (Alternatively, we could use multiplication by (— V) J ' . ) We are interested in maximal and minimal value of directional derivative into the cell. Finding those bounds is equivalent to minimizing and maximizing a linear form h(/, ,...,/„ )ξ = ∑" =1 h, (/,,...,/„)ξ, subject to constraints It may be shown (details are omitted here) that maximal and minimal values are given by S max C/ ' i . • • • . i n ) = min(θ, max h, (/,,..., /„ ))+ ||h + (/,,... , /„ )|| S m ,„ (/ . .- > i n ) = max(θ, min h, (/,,..., /„ )) - ||h " (/,,..., /„ )|| where vector h is h with all negative components replaced by zero, and similarly h ~ is h with all positive components replaced by zero. More explicit formula are £ max (/ . .■■■. /„ ) = min(θ, max h, (/,,..., /„ ))+ ^∑" =ι max(θ, h, (/„..., /„ )) 2 ^ mm O ' I > • • • > J n ) = m ax(θ, min h, (/,,..., /„ ))- ^∑"_ t min(θ, h, (/.,..., /„ )) 2 Now we take a minimum and maximum of these numbers over all vertices of the cell G max = max gnm (/,,..., /„ ) G mn = min gmm (/,,..., /„ ) 7ι=0,l 7 1 =0,1 7„=0,1 7„=0,1 These values bound directional derivative from any vertex of the cell towards any point within the cell, therefore g max (X) ≤ G„ ux g mn (X) ≥ G mn Now we are able to rewrite the previous inequalities, so that they are independent from the particular X y + + 1 κ f 'D We conclude that lower and upper bound for values of the function f within this cell are: M h (k lt k 2 ,...,k.) = y + G m D m - K f 'D∞ M v {k lt k 2 ,...,k κ ) = y + G m D m + K f 'D∞ A.8 Error bounds for neural net acting on transformed and noisy inputs In this section we demonstrate how to express error estimates for a case of neural net mappmg defined on non-rectangular (transformed) domain of noisy measurements. We assume that the underlying state domain is still a rectangle R = X ° , X , and we have a single-valued look-up table function φ defined on this rectangle. The state values from the rectangle are transformed via mapping ψ mto m- dimensional measurement space. Mapping ψ is specified by an m-valued look-up table, as discussed in section 4.2. In addition, we have neural net f mapping operating on measurements ψ(x) contaminated by additive noise. As explained hereinabove, we assume that noise vector is bounded, and specific numerical bounds are available. Note that we will not perform a stochastic noise analysis. We analyze the worst case scenario, when the measurement errors have the biggest impact on neural net output. Our goal is to bound possible error between the neural net output and the desired ("true") value, as specified by the look-up table φ . That is, we want to find bounds for the error function We rewrite this expression by adding and subtracting the quantity AvW) e(x) = {f(ψ(x) + ζ) - /(ψ(x)))+ (Λψ«) " ?(*))) To this we apply the triangle inequality to obtain |e(x)| < |/(ψ(x) + ζ) - /(ψ(x))| + |/(ψ(x)) - Now, we can decompose our problem into two parts. The first term may be approximated using the Lipschitz constant for the neural net The second term is error between φ and the composite mapping F(x) = . Bounding constants K F and K F ' for F(x) are derived in appendix A.4, and procedures described in appendices A.6 or A.7 may be used to find bounds for the error function e(x) = E(x) — φ (x) ■ Again, note that this derivation is based on the assumption that noise magnitude |ζ| is bounded. While the present invention has been described hereabove based on one or more embodiments, it is understood that the invention should not be limited to any such embodiments, but rather construed in breadth and broad scope in accordance with the recitation of the appended claims hereto.

Claims: What is Claimed: 1. A method of verifying pretrained, static, feedforward neural network mapping software having a neural net mapping function /(x) that is intended to replace look up table mapping software having a look up table mapping function φ (x) , said method comprising the steps of: establishing a multi-axis rectangular domain including upper and lower limits of each axis to bound all input vectors x of both said look up table mapping function φ (x) and said neural net mapping function /(x) ; determining a set of test points within the rectangular domain based on said upper and lower limits of each axis; determining Lipschitz constant Kf for said neural net mapping function /(x) ; and determining upper and lower value bounds of said neural net mapping function /(x) for said domain based on a function of said set of test points and said Lipschitz constant K f , whereby if said upper and lower value bounds can be determined, then the neural network mapping software is verified. 2. The method of claim 1 including the step of dividing the multi- axis domain into a plurality of cells based on the set of test points . 3. The method of claim 2 wherein the step of determining the upper and lower value bounds includes the steps of: determining upper and lower value bounds for each cell of the plurality based on a function of the test points of the corresponding cell and the Lipschitz constant Kf, selecting an upper value bound from the upper value bounds of the cells as the upper value bound of the neural net mapping function; and selecting a lower value bound from the lower value bounds of the cells as the lower value bound of the neural net mapping function. 4. The method of claim 3 wherein the maximum of the upper value bounds of the cells is selected as the upper value bound of the neural net mapping function; and the minimum of the lower value bounds is selected as the lower value bound of the neural net mapping function. 5. The method of claim 2 wherein the step of determining a set of test points includes the step of discretizing each axis i of the multi-axis domain into N A test point coordinates and Nj . -1 equal intervals of length Δi,- and wherein the step of dividing the domain into a plurality of cells includes forming the cells with the test point coordinates of the axes as its vertices, whereby each cell has 2 n test point vertices, where n is the number of axes in the domain. 6. The method of claim 5 wherein the step of determining upper and lower value bounds of the neural net mapping function f ix) includes the steps of: (a) determining values y j of a neural net mapping / of each of the 2 n vertices j of a cell of the plurality; (b) determining a mean y of said values y j of the cell; (c) determining a mean distance d of any x within the cell from its vertices; (d) determining a maximum D,-^ of the mean distances determined for the cell; and (e) determining an upper value bound of the cell by the expression: y + Kf O^ ; (f) determining a lower value bound of the cell by the expression: y - Ky D- ax ,- (g) repeating steps (a) through (f) to determine upper and lower value bounds for each cell of the plurality; (h) selecting the maximum of the upper value bounds of the cells as the upper value bound of the neural net mapping function for the domain; and (i) selecting the minimum of the lower value bounds of the cells as the lower value bound of the neural net mapping function for the domain. 7. The method of claim 1 including the steps of: determining Lipschitz constant Kf' for the gradient f ix) ' ; and determining upper and lower error bounds for the neural net and look up table functions based on a function of the set of test points and said Lipschitz constant K f ' , whereby if the upper and lower value bounds and said upper and lower error bounds can be determined, then the neural network mapping software is verified. 8. The method of claim 7 including the step of dividing the multi- axis domain into a plurality of cells based on the set of test points . 9. The method of claim 8 wherein the step of determining upper and lower error bounds for said neural net and look up table functions includes the steps of : determining upper and lower error bounds for each cell of the plurality based on a function of the test points of the corresponding cell, the Lipschitz constant Kf' , and a desired constant K φ ' ; selecting an upper error bound from the upper error bounds of the cells as the upper error bound of the neural net and look up table mapping functions; and selecting a lower error bound from the lower error bounds of the cells as the lower error bound of the neural net and look up table mapping functions. 10. The method of claim 9 wherein the maximum of the upper error bounds of the cells is selected as the upper error bound of the neural net and look up table mapping functions; and the minimum of the lower error bounds is selected as the lower error bound of the neural net and look up table mapping functions . 11. The method of claim 8 wherein the step of determining a set of test points includes the step of discretizing each axis i of the multi-axis domain into N x test point coordinates and N L -1 equal intervals of length Δ 1( - and wherein the step of dividing the domain into a plurality of cells includes forming the cells with the test point coordinates of the axes as its vertices, whereby each cell has 2 n test point vertices, where n is the number of axes in the domain; and wherein the step of determining upper and lower error bounds for said neural net and look up table functions includes the steps of : (a) determining values y D of a neural net mapping / of each of the 2 n vertices j of a cell of the plurality; (b) determining values v-, of a look up table mapping φ of each of the 2 n vertices j of the cell of the plurality; (c) determining an error mapping value e 3 between each of said y : and v- values; (d) determining a gradient vector y : ' of the neural net mapping γ 3 ; (e) determining a maximum mean distance D,^ and a maximum mean square distance O^ 2 from mean distances d-, between an input vector x within the cell and the vertices j of the corresponding cell; (f) determining a mean error value e of the error values e-, of the cell; (g) determining a gradient e-,' of said error mapping e-, of the cell; (h) determining a desired constant K, p ' valid within the cell; (i) determining maximal and minimal values of directional derivatives at the vertices j of the cell as a function of e- j '; and determining bounds G max and G π , n of said maximal and minimal values; (k) determining upper and lower error bounds for the cell as a function of e, G røx , G min , K,' , K , D max , and D^ 2 ; 5 (1) repeating steps (a) through (k) for each cell of said plurality; and (m) selecting an upper error bound from the upper error bounds of the cells as the upper error bound of the neural net and look up table mapping functions and selecting a lower error bound from the 10 lower error bounds of the cells as the lower error bound of the neural net and look up table mapping functions . 12. The method of claim 11 wherein the maximum of the upper error bounds of the cells is selected as the upper error bound of the neural net and look up table mapping functions; and the minimum of 15 the lower error bounds is selected as the lower error bound of the neural net and look up table mapping functions . 13. The method of claim 1 wherein the look up table mapping software being replaced includes entries for mapping inputs of fuel plane coefficients x of a fuel tank to fuel quantity of the fuel tank 20 φ (x) ; and wherein the neural network mapping software replacement yields an estimate of said fuel quantity f ix) . 14. The method of claim 13 including the step of operating the neural network mapping software in a digital processor for estimating fuel quantity of at least one fuel tank. 25 15. A method of verifying pretrained, static, feedforward neural network mapping software having a neural network mapping function /(ψ(x) + ζ ), where ψ (x) is a predetermined mapping of n dimensional state vectors x of a process into m dimensional measurement vectors z = ψ (x) , ζ is representative of a noise component of the process, and 30 /(ψ(x) + ζ ) is an estimate of the desired output parameter y(est) of the process , said method comprising the steps of : providing model mapping software including a predetermined mapping function φ (x) for mapping said n dimensional state vectors x directly into a true value y(true) of said desired output parameter; 35 establishing a multi-axis rectangular domain including upper and lower limits of each axis to bound all state vectors x of both said predetermined mapping functions φ(x) and ψ (x) ; determining a set of test points within the rectangular domain based on said upper and lower limits of each axis; determining Lipschitz constant K for neural net mapping function /(ψ (x) ) ; determining an upper bound ζ up and a lower bound ζ lD of the noise component ζ; and 5 determining upper and lower value bounds of said neural net mapping function /(ψ(x) + ζ ) for said domain based on a function of said set of test points, said Lipschitz constant Kf and said upper bound ζ up and lower bound ζ lQ , whereby if said upper and lower value bounds can be determined, then the neural network mapping software is 10 verified. 16. The method of claim 15 wherein the predetermined mapping function φ (x) is provided as a look up table mapping function. 17. The method of claim 15 including the step of dividing the multi-axis domain into a plurality of cells based on the set of test 15 points . 18. The method of claim 17 wherein the step of determining the upper and lower value bounds includes the steps of : determining upper and lower value bounds for each cell of the plurality based on a function of the test points of the corresponding cell and the 20 Lipschitz constant Kf, selecting an upper value bound from the upper value bounds of the cells as the upper value bound of the neural net mapping function; and selecting a lower value bound from the lower value bounds of the cells as the lower value bound of the neural net mapping function. 25 19. The method of claim 18 wherein the maximum of the upper value bounds of the cells is selected as the upper value bound of the neural net mapping function; and the minimum of the lower value bounds is selected as the lower value bound of the neural net mapping function. 30 20. The method of claim 17 wherein the step of determining a set of test points includes the step of discretizing each axis i of the multi-axis domain into N^ test point coordinates and Ni-1 equal intervals of length Δi,- and wherein the step of dividing the domain into a plurality of cells includes forming the cells with the test 35 point coordinates of the axes as its vertices, whereby each cell has 2 n test point vertices, where n is the number of axes in the domain. 21. The method of claim 20 wherein the step of determining upper and lower value bounds of the neural net mapping function /(ψ(x) + ζ ) includes the steps of: (a) determining values y-, of a predetermined mapping /(ψ(x : )) of each x-, of the 2 n vertices j of a cell of the plurality; (b) determining a Lipschitz constant K ψ for the cell based on 5 said values y_ of the cell; (c) determining a mean y of said values y- of the cell; (d) determining a maximum mean distance D-^x for the cell from distances of any x within the cell from its vertices; (e) determining a maximum value ζm a x of the noise component ζ 10 from its upper and lower bounds; (f) determining an upper value bound of the cell by the expression: y + K F D ma χ + f roax , where K F = K f K ψ ; (g) determining a lower value bound of the cell by the 15 expression: y - K F D max - Kf ζm ax , where K F = K f K ψ ; (h) repeating steps (a) through (g) to determine upper and lower value bounds for each cell of the plurality; (i) selecting the maximum of the upper value bounds of the 20 cells as the upper value bound of the neural net mapping function for the domain; and (k) selecting the minimum of the lower value bounds of the cells as the lower value bound of the neural net mapping function for the domain. 25 22. The method of claim 15 including the steps of: determining Lipschitz constant Kf' for the gradient /(ψ(x))'; determining upper and lower error bounds for said neural net function /(ψ(x) + ζ ) and predetermined mapping function φ(x) based on a function of said set of test points, said Lipschitz constant 30 Kf' , and said upper bound ζ up and a lower bound ζ lQ , whereby if the upper and lower value bounds and said upper and lower error bounds can be determined, then the neural network mapping software is verified. 23. The method of claim 22 including the step of dividing the 35 multi-axis domain into a plurality of cells based on the set of test points . 24. The method of claim 23 including decomposing the error between neural net mapping function /(ψ(x) + ζ ) and the predetermined mapping function φ(x) into a noise free error component F (x) - φ (x) and a term representative of noise magnitude. 25. The method of claim 23 wherein the step of determining the upper and lower error bounds includes the steps of: determining upper and lower error bounds for each cell of the plurality based on a function of the test points of the corresponding cell, the Lipschitz constants Kf and K } ' and Lipschitz constants K ψ and K ψ ' ; selecting an upper error bound from the upper error bounds of the cells as the upper error bound of the neural net mapping function and predetermined mapping φ (x) ; and selecting a lower error bound from the lower error bounds of the cells as the lower error bound of the neural net mapping function and predetermined mapping φ (x) . 26. The method of claim 25 wherein the maximum of the upper error bounds of the cells is- selected as the upper error bound of the neural net mapping function and predetermined mapping φ (x) ; and the minimum of the lower error bounds is selected as the lower error bound of the neural net mapping function and predetermined mapping φ(x) • 27. The method of claim 23 wherein the step of determining a set of test points includes the step of discretizing each axis i of the multi-axis domain into N_ test point coordinates and Ni-1 equal intervals of length Δ lf - and wherein the step of dividing the domain into a plurality of cells includes forming the cells with the test point coordinates of the axes as its vertices, whereby each cell has 2 n test point vertices, where n is the number of axes in the domain; and wherein the step of determining upper and lower error bounds for the neural net mapping function and predetermined mapping φ(x) includes the steps of : (a) determining values y-, of a neural net function mapping /(ψ(X j )) of each x-, of the 2 n vertices j of a cell of the plurality; (b) determining values v : of a predetermined mapping φ(x-,) of each x-, of the 2 n vertices j of the cell of the plurality; (c) determining an error mapping value e : between each of said y-, and v-, values; (d) determining a gradient vector y-, ' of the neural net mapping y : ; (e) determining a maximum mean distance Dm a x and a maximum mean square distance D^ x 2 from mean distances d-, between an input vector x within the cell and the vertices j of the corresponding cell; (f) determining a mean error value e of the error values e-, of the cell; (g) determining a gradient β j ' of said error mapping β j of the cell; (h) determining Lipschitz constants K φ ' , K ψ , and K ψ ' valid 5 within the cell; (i) determining maximal and minimal values of directional derivatives at the vertices j of the cell as a function of e-,' ; and determining bounds G max and G m i n of said maximal and minimal values; (k) determining upper and lower error bounds for the cell as a 10 function of e, G^, G min , K f , Kf , K φ ' ' D^, D,^ , K ψ , and K ψ ' ; (1) repeating steps (a) through (k) for each cell of said plurality; (m) selecting an upper error bound from the upper error bounds of the cells and selecting a lower error bound from the lower error 15 bounds of the cells; (n) determining a value ζ max of the noise component ζ from its upper and lower bounds ; and (o) determining the lower error bound of the neural net mapping function and predetermined mapping φ (x) by subtracting a product Kf 20 max from the selected lower error bound and determining the upper error bound of the neural net mapping function and predetermined mapping φ(x) by adding the product Kf ) tax to the selected upper error bound. 27. The method of claim 26 wherein the maximum of the upper error 25 bounds of the cells is selected as the upper error bound of the neural net mapping function and predetermined mapping φ(x); and the minimum of the lower error bounds is selected as the lower error bound of the neural net mapping function and predetermined mapping φ(x) • 30 28. The method of claim 15 wherein the predetermined mapping function ψ (x) is provided as a look up table mapping function coded in software. 29. The method of claim 15 wherein the predetermined mapping function ψ(x) is provided as a computer simulation model of the 35 process coded in software.. 30. The method of claim 15 wherein the state vector x is provided as states of a fuel tank; wherein the measurement vector z is provided as an estimation of measurements of the states of the fuel tank; wherein ζ is provided as a noise component in the measurement of the state of the fuel tank; and including the step of operating the neural network mapping software in a digital processor for estimating fuel quantity of at least one fuel tank.

Inventors: ZAKRZEWKI RADOSLAW ROMUALD, ZAKRZEWKI, RADOSLAW, ROMUALD
Applicants: SIMMONDS PRECISION PRODUCTS, SIMMONDS PRECISION PRODUCTS, INC.
Application year: 2000
Main classification: G06F11
IPC codes: G06F11