scieee AI-readable full text Open interactive document viewer

A New Decision Making Method for Selection of Optimal Data Using the Von Neumann-Morgenstern Theorem

García Cabello, Julia

Abstract

The quality of the input data is amongst the decisive factors affecting the speed and effectiveness of recurrent neural network (RNN) learning. We present here a novel methodology to select optimal training data (those with the highest learning capacity) by approaching the problem from a decision making point of view. The key idea, which underpins the design of the mathematical structure that supports the selection, is to define first a binary relation that gives preference to inputs with higher estimator abilities. The Von Newman Morgenstern theorem (VNM), a cornerstone of decision theory, is then applied to determine the level of efficiency of the training dataset based on the probability of success derived from a purpose-designed framework based on Markov networks. To the best of the author’s knowledge, this is the first time that this result has been applied to data selection tasks. Hence, it is shown that Markov Networks, mainly known as generative models, can successfully participate in discriminative tasks when used in conjunction with the VNM theorem. The simplicity of our design allows the selection to be carried out alongside the training. Hence, since learning progresses with only the optimal inputs, the data noise gradually disappears: the result is an improvement in the performance while minimising the likelihood of overfitting.

Full text

INFORMATICA, 2023, Vol. 34, No. 4, 771–794 771 ©2023 Vilnius University DOI: https://doi.org/10.15388/23-INFOR530 A New Decision Making Method for Selection of Optimal Data Using the Von Neumann-Morgenstern Theorem Julia GARCÍA CABELLO∗ Department of Applied Mathematics Andalusian Research Institute in Data Science and Computational Intelligence University of Granada, Spain e-mail: [email protected] Received: April 2023; accepted: September 2023 Abstract. The quality of the input data is amongst the decisive factors affecting the speed and effectiveness of recurrent neural network (RNN) learning. We present here a novel methodology to select optimal training data (those with the highest learning capacity) by approaching the problem from a decision making point of view. The key idea, which underpins the design of the mathematical structure that supports the selection, is to define first a binary relation that gives preference to inputs with higher estimator abilities. The Von Newman Morgenstern theorem (VNM), a cornerstone of decision theory, is then applied to determine the level of efficiency of the training dataset based on the probability of success derived from a purpose-designed framework based on Markov networks. To the best of the author’s knowledge, this is the first time that this result has been applied to data selection tasks. Hence, it is shown that Markov Networks, mainly known as generative models, can successfully participate in discriminative tasks when used in conjunction with the VNM theorem. The simplicity of our design allows the selection to be carried out alongside the training. Hence, since learning progresses with only the optimal inputs, the data noise gradually disappears: the result is an improvement in the performance while minimising the likelihood of overfitting. Key words: data selection, prior probability, Markov networks, Von Neumann-Morgenstern Expected Utility theorem. 1. Introduction The superiority of artificial neural networks (ANNs) in various tasks (classification, pattern identification, prediction, etc.) has led researchers to focus much of their efforts on the study of the functioning of their components from a theoretical perspective, see Higham and Higham (2019), Smale et al. (2010). It is well known that ANNs have a high capacity for learning, the effectiveness of which depends on many factors. Amongst them, the problem complexity influences to a high degree the ANN performance, which depends ∗Correspondence to: Department of Applied Mathematics (University of Granada) Faculty of Economic and Business Sciences, Campus Cartuja s/n, 18071 Granada, Spain. 772 J. GarcÍa Cabello not only on the ANN architecture, but also on the accurate and sufficient training data and the efficiency that datasets show throughout the process. Training in recurrent neural networks (RNNs) – ANNs that stand out for their high capacity for learning and recognition of temporal patterns – depends to a large extent on size, type and structure of the selected training sets (Chen, 2006; Zhang and Suganthan, 2016; Zapf and Wallek, 2021): this is such a central point that decisively influences both the speed and the ability to learn. During the training phase, where the unknown parameters are to be determined, the quality and learning capacity of the selected training datasets are of key importance (Mirjalili et al.,2012). The main objective of this paper is to provide a robust methodology to select optimal training datasets (those with the highest learning capacity) that can be used in any context to maximise the performance of the trained models. This methodology has been designed to run in parallel with RNN learning so that, while the RNN learning evolves progressively only with the optimal training inputs, the data noise gradually disappears. This has a positive impact on the quality of the RNN results while minimising the likelihood of occurrence of overfitting.1The key idea in the design of the mathematical structure that supports this selection is to define a binary relation that gives preference to those datasets with higher estimator abilities by using Utility theory. A second contribution of our work is to have designed our methodology based on tools that have not been used previously for this. This novelty lies in showing Markov Networks (MNs), widely known as generative models (Gordon and Hernandez-Lobato, 2020), as models with a real discriminative capacity when used in conjunction with the Von Newman Morgenstern theorem (VNM theorem), a cornerstone of Game Theory with an extensive background also in Decision Theory (Machina, 1982; Delbaen et al.,2011). In order to faithfully model the RNN reality, we have used the dynamic version of the MNs (TD-MRFs). It is worth noting the versatility of our proposal, which can be also applied to other data-driven methodologies provided that they are regulated by dynamical systems. Markov Random Fields (MRFs) are also known as Markov Networks (MNs) in those contexts that require highlighting the undirected graph condition (Dynkin, 1984). MRF- type graphical models have experienced a resurgence in recent years. In its origins, they exclusively performed functions related to image processing such as restoration or reconstructing. Later works such as García Cabello (2021)orWanget al. (2022) have acknowledged their high predictive capability due to the equivalence between MRFs and Gibbs distributions, which provides an explicit expression of the prior likelihood after appropriate choice of the energy functions. MRF solutions are widely regarded as generative models as opposed to discriminative approaches, more related to tasks which involve classification. Regarding the literature review, the selection of optimal training sets has not been studied in a general framework so far. To this author’s knowledge, this is the first analysis that aims to provide guidance for a general context. Published papers have studied this issue 1Overfitting in data-driven learning models (which extract a predictive model from a data set) is the flaw of failing to generalise the features/patterns present in the training dataset. It occurs in models which extract features from datasets having too much noise. A New Decision Making Method for Selection of Optimal Data Using the VNM Theorem 773 either only in contexts of ANN classification tasks or in very precise scenarios (electrical, financial or chemical engineering) taking advantage of their specific techniques. Within the first category, the genetic algorithm (GA) is widely used as a tool to create high-quality training sets as a the first step in designing robust ANN classifiers, see Reeves and Taylor (1998), Reeves and Bush (2001) or more recently, the paper (Nalepa et al.,2018). Disadvantages of using GA, apart from slowness, include that it is computationally expensive and too sensitive to the initial conditions. In our proposal, however, the calculation of the probabilities associated with the utility (i.e. efficiency as estimators) of the inputs is very simple and therefore does not add computational cost. Within the second category, in the paper (Zapf and Wallek, 2021), the authors made a comparison between existing methods in the area of chemical process modelling in order to split a training set from a given data set. In Wong et al. (2016), the authors proposed a data selection for statistical machine translations, based on recursive neural networks which can learn representations of bilingual sentences. The paper (Fernandez Anitzine et al.,2012) analyses through a very context-specific instrument (ray-tracing) the ANN optimal selection of training set in the context of predicting the received power/path loss in both outdoor and indoor links. In Kim (2006), authors propose a GA approach for ANN instance selection for financial data mining. As for the use of MNs/MRFs (prior probability) for problems which involve probability a posteriori, in the literature the terms “MNs/MRFs” and “discriminative” appear together only and exclusively to refer to discriminative random fields (DRFs) or equivalently conditional random fields (CRFs), both type of random fields which provide by definition a posterior probability. The rest of the paper is structured as follows: preliminaries of Section 2include basic knowledge on preference relations and VNM theorem, MNs and RNN functioning. Section 3structures the steps to be followed to reach a solution to the proposed problem. The design of an abstract TD-MRF-based framework is performed in Section 4which will subsequently allow the computation of prior probabilities associated with the VNM theorem. A TD-MRF structure for the input sets is also provided here. In Section 5,the expected utility theorem is applied after proving that the conditions for doing so are met. Section 6highlights (and proves) the main results of our work. In Section 7,anexample of the method application is developed. Section 8finally concludes the paper. 2. Preliminaries 2.1. The Von Neumann-Morgenstern Theorem When facing a situation of uncertainty (known as lottery), there is a set Xwhich contains all possible outcomes (results) after the process has been completed. Each of these has associated a probability pof occurrence. The tools for managing the idea of “preferring” one outcome over another and the “benefit associated with a preference” are related to the definition of preference relation (see Jiang and Liao, 2022) and utility functions respectively. 774 J. GarcÍa Cabello Mathematically, a preference relation is a binary relation in a set Xof possible outcomes, such which is rational, i.e. that it satisfies the following properties: •completeness: for all xi,x j∈X, either xixjor xjxior xi∼xj(indifference) and •transitivity: for all xi,x j,x l∈Xif xixjand xjxl, thus xixl. The instrument that allows to quantify the benefit of each possible scenario is the utility function u: they assign a numerical label to each outcome so that outcomes can be compared to make a decision. The Von Neumann-Morgenstern expected utility theorem (VNM theorem), (Yang and Qiu, 2005; Pollak, 1967) is a simple and very efficient result in Decision Theory which allows to compare numerically (through a utility function) the possible outcomes resulting from a process under uncertainty (Van Den Brink and Rusinowska, 2022). Under some axioms the ordinal preference relation is representable by a cardinal (expected) utility function, known as VNM utility function. Moreover, the VNM theorem shows that the expected utility of a lottery can be computed as a linear combination of the corresponding utilities by using the probabilities as linear coeficients: Theorem 2.1 (VNM Expected Utility). Let Xbe a set of outcomes and a preference relation on Xthat satisfies the hypothesis of •Continuity. The following formulations of continuity are equivalent: –if each element xnof a sequence of outcomes is xnx, thus limn→∞ xnx, –∀x1,x 2,x 3∈Xwith x1x2x3=⇒ ∃ p∈[0,1]x2∼[p:x1;1−p:x3], –∀x1,x 2,x 3∈Xwith x1x2x3=⇒ ∃ p∈[0,1]such that x2∼px1+(1−p)x3; •Independence (convex combination):xixj⇔αxi+(1−α)xlαxj+(1−α)xl, ∀α∈(0,1]and ∀xl∈X. Thus, there exists a continuous (utility)function u:X→[0,1]with the following properties: 1. x1x2iff u(x1)⩾u(x2); 2. u([p1:x1;p2:x2;...;pm:xm])=m j=1pju(xj). Many authors have shown, however, that in practice the axiom of independence is not fulfilled (the top paper (Machina, 1982) talks about a “systematic violation in practice” of the axiom of independence, with the famous “Allais Paradox” as example). In the paper (Machina, 1982), it is also shown that there are weaker conditions that lead to the same results as those stated in the VNM theorem. There, continuity is replaced by the weak convergence topology, which is the weakest topology for which the expected utility functional is continuous (see also Delbaen et al.,2011). On the other hand, the axiom of independence is replaced by the Fréchet differentiable condition on the functional form which defines the preferences (Machina, 1982). A New Decision Making Method for Selection of Optimal Data Using the VNM Theorem 775 2.2. Basic Knowledge of Markov Networks MRFs Let X={Xsi|si∈S,i ∈N}be a set of random variables which take Xsifor any site2 si∈S.Xis known as a stochastic process or a graphical model GM with underlying set of sites S.BothXand Sare used interchangeably to represent a GM. Graphical Models are commonly used to visually describe the probabilistic relationships amongst stochastic variables. Basic knowledge on GMs comprises the concepts of neighbourhood of a site and clique: sites siand sjare adjacent,si∼sj, if there is at least one edge that links them. GMs are called connected if for any two sites there is a path –a sequence of edges–, which connect them. Neighbourhood of a site si, denoted by N(si),is the set of sites which are adjacent to si:N(si)={sj∈S|sj∼si}. Cliques are maximally connected subgraphs of the underlying graph Sin the usual topological sense: they are connected and no more sites can be added and still be connected. Markov random fields (MRF’s) are GMs whose underlying graph is undirected. Dynamic graphical models (DGMs) are the time-varying version of GMs. The set of dynamic stochastic variables will be denoted by Xt={Xt si|si∈S,i ∈N}: these are node-dynamic graphs (the ones considered here) although edge-dynamic graphs could be also taken into account or even the possibility of both Sand Evarying over time. TD- MRFs are defined from a generalization of the usual markovian property. It states that the global probability of occurrence may be deduced from a local probability, when “local” refers to the neighbouring system: Xtis said to be a TD-MRF if PXt si=xsiXt S−{si}=x=PXt si=xsiXt N(si)=x, where P[Xt]=P[{Xt si|si∈S,i ∈N}] = {P[Xt si=xsi]|si∈S,i ∈N}denote the joint distribution of Xt. The Hammersley-Clifford theorem, under the “positivity condition”, sets the equivalence between MRF and Gibbs distribution, i.e. a joint distribution function which may be expressed in terms of functions ψof Xt={Xt si|si∈S,i ∈N},whichtakes values only on the cliques C, written as ψC(Xt).Theenergy functions ψC(Xt)determine in a clear-cut manner the joint distribution: PXt=1 Zexp− cliques C ψCXt=exp− cliques C ψCXt−ln Z, such that all ψCdepend on the clique Cbut have a common domain. When former expression is transformed into PXt=1 Z cliques C exp−ψCXt,(1) 2We are using the term “site” instead of node for its additional connotation of location, which allows us to simulate that each of the nodes is a different geographical place that could generate its own estimate of the variable as explained below, in Proposition 4.7. 776 J. GarcÍa Cabello energy functions ψC(Xt)are called clique potentials when viewed as factors (exp[−ψC(Xt)]). The function Zis known as “the partition function” which acts as a normalizing constant to ensure that the distribution sums up to 1. We shall refer to (1)as a Gibbs distribution. 2.3. Functioning of Recurrent Neural Networks RNNs Neural networks (NNs) have a general functional definition as composition of parametric functions which disaggregates the linear component of the non-linear activation function (see García Cabello, 2023). Recurrent Neural networks, RNNs (Chou et al.,2022; Zhang et al.,2014), are a particular case of NNs which operate on time sequences and exhibit a special ability for learning lengthy-time period dependencies. Their functioning lies in an intermediary layer h=(h0,...,h T)of hidden states htin such a way that the data cycle through a loop to this layer. The output is reached by recursive applying the following functions: h1=σWxhx1+Whhh0+bh . . .. . . ht=σWxhxt+Whhht−1+bh zt=˜σWhzht+bz (2) for weighted matrices, Wxh,Whh,Whz, and bias vectors, bh,b z, and where ztis the final output and σ, ˜σare point-wise nonlinearities (activation functions which are applied component-wise). In RNNs, activation ˜σis the sigmoid, monotonically increasing with range (0,1). For any RNN input xt, its corresponding output is z[xt]∈(0,1), denoted as ztfor simplicity. The loss function loss is chosen depending on the RNN task: usually it is Mean Square Error MSE =1 nn i=1(zi−yi)2, often used as SE =1 2nn i=1(zi−yi)2for cancelling the constant when computing the gradient, where ziand yirepresent the RNN output and the target value respectively. RNN functioning is shown in Fig. 1. Fig. 1. RNN learning process. A New Decision Making Method for Selection of Optimal Data Using the VNM Theorem 777 3. Problem Formulation In this section we will develop the theoretical framework that will capacitate Markov Network-methodology to perform discriminative tasks based on prior probability and the VNM Theorem 2.1. Specifically, our aim is to design a mathematical model which enables MNs to identify the optimal RNN training sets, i.e. those that produce better estimates in forecasting taks. For a better understanding, we will make reference to a real example of a RNN forecasting process: Objective To discriminate/select which RNN training sets will produce better estimates. Example of RNN learning process Let us suppose that we have to forecast the electrity price 1 month ahead (t=+1) and as training data we have the data of the previous 10 months (t=−9,...,−2,−1,0). Recall that, in the networks as a whole, Recurrent Neural Networks, RNNs, stand out for their predictive abilities based on their potential in processing temporal data. Thus, we are facing some time-dependent learning process by using RNNs where the superscript t denotes time in all cases (no distinction will be made between matrices and their transpose in order to avoid confusion between ttranspose and ttime). As is well known, in RNN prediction tasks, training sets are fed with temporal sequences composed with pairs of previous data of the form (input, labels) with the objective of predicting the future, referred to as future target value, y. Thus, Xtis the time-varying variable which needs to be estimated, Ztis the set of RNN outputs and Ytthe set of labels (i.e. past target values for training). In terms of the illustrative example: to predict the electrity price one month ahead (target value y,t=+1), the training sets are made up of temporal sequences (xt i,yt i)whose first component contains different factors that influence electricity prices (fuel prices, transmission and distribution costs, weather conditions, etc.) and whose second component is the electrity price, both xt i,yt iin site iand prior to present time (t=−9,...,−2,−1,0). Let In be the (time-dependent) input RNN dataset formed by nvectors: In =xt i=x1,t i,x2,t i,...,xd,t i,i=1,...,n , each of them contains dfeatures: xj,t i∈R,i=1,...,n;j=1,...,d: RNN input RNN output Labels Training set Tr xt izt iyt i{(xt i,yt i);i=1,...,D} Zt[In]will stand for the set of outputs which is generated after the completed RNN process corresponding the the set of inputs In. The objective is to select from the ninputs in In,D<nvectors that will make up the training set: the selection criterion is to choose those which produce the best estimates in 778 J. GarcÍa Cabello the RNN learning process. The choice will be conducted by only using prior probability –instead of posterior– and the VNM Theorem 2.1. We will list the steps to be taken: •Main lottery (in In). The key idea is to adapt the scenario of the RNN learning process (inputs, outputs, labels, target value) to the situation described in the VNM- Theorem 2.1, and to rely on the TD-MRF methodology for computing the probabilities. To do so, we consider the process of selecting D<nvectors as a lottery whose outcomes are the Dvectors we have chosen for the training set (main lottery). Each of these Dvectors has its own likelihood of being chosen. •Consider the RNN process as composed by several uncertain processes, RNNi, one for each of the input vectors xt ithat make up the set In,i=1,...,n(Fig. 1). After the RNN learning is completed, a set of noutputs Zt[In]is generated. Note that, since RNN is deterministic (the same set of inputs will produce the same set of outputs), input xt ihas a uniquely associated output zt i. •Secondary lottery (for each zt i∈Zt[In]). A second lottery arises for each output zt i∈ Zt[In]when the selection criterion is applied: how good the estimate zt iis. If Mdenotes the threshold below which the loss function is considered acceptable, the secondary lottery is whether the loss function loss(zt i)<Mor not. To ensure that our selection rule is applied, we define a preference relation on In = {xt i,i=1,...,n}. Due to the unique existing direction from input xt ito RNN output zt i, the preference relation can be considered defined on both the set of inputs In and the set of outputs Zt[In]. Moreover, for the evident bidirection between outcome zt i and associated loss loss(zt i), the distinction that many authors make between defining a preference relation on the set of outcomes Xor defining it on the set of lotteries over X, named X, does not apply in our case: Definition 3.1. For zt i,z t j∈Zt[In],zt i≺zt j⇔loss(zt j)<loss(zt i),i.e.zt jis preferred to zt iif zt jis a better estimate (smaller associated loss). Indifference comes with the equality: for zt i,z t j∈Zt[In]zt i∼zt j⇔loss(zt i)=loss(zt j). In later sections we will show that this preference relation verifies the properties necessary for the application of the VNM theorem. •We thus apply Theorem 2.1 for the main lottery: the expected utility of training set Tr is given by u[Tr]=uxt 1,...,xt D= D  i=1 poXt=xt i·uxt i.(3) •In order to compute the (prior) probabilities po[Xt=xt i], we shall equip the initial RNN data set with an undirected graph structure –with appropriate node and edge definitions– which will later be shown to be an MRF by application of central Theorem 4.4. This will be the development of Section 4. •In order to compute the utility u(xt i), we shall apply again Theorem 2.1 for the secondary lottery. This will be performed in Sections 5and 6. A New Decision Making Method for Selection of Optimal Data Using the VNM Theorem 779 4. The Abstract TD-MRF-Based Framework Here, we first design an abstract graph-based framework that shall provide a model for a dynamic context of ksites and rfilters for data discrimination (corresponding to rcliques) for which it will be shown that it is an TD-MRF under certain mild conditions. Such TDMRF will be the core in the computation of prior probabilities po[Xt=xt i]of the VMN Theorem 2.1. Let Sbe a set of ksites si,S={si|i=1,2,...,k}such that the variable may take different values depending on the site, Xt si. For each site si, the variable Xt sican be disaggregated into a set of dcharacteristics which fully describes Xt siin the instant of time t:Xt si=(X1,t si,X 2,t si,...,X d,t si), with lower case xt si=(x1,t si,x2,t si,...,xd,t si)for the feature vector (i.e. a numerical vector corresponding to a realisation of the variable). We shall use indistinctly xt si=(x1,t si,x2,t si,...,xd,t si)or xt i=(x1,t i,x2,t i,...,xd,t i)either for upper and lower case. In a compact form, xj,t i∈R,i =1,...,k;j=1,...,d. Remember that two random variables are equivalent if they have identical distribution. Then, we will define the edges by equivalently defining the neighbourhood Nof a site: N(Xt si)={Xt sj|Xt sj,X t siare equivalent}={Xt sj|P[Xt sj⩽x]=P[Xt si⩽x]∀x}. Definition 4.1 (TD-DGM). A DGM (St,Nt)is defined as follows: sites are the elements of the set Stthrough the identification st i∼Xt si. Edges are defined through the neighbourhood Nof a site st ias N(Xt si)={Xt sj|P[Xt sj⩽x]=P[Xt si⩽x]∀x}. Remark 4.2 (Clean data). It is worth highlighting that Definition 4.1 (that makes equal all random variables with identical probability distribution) avoids duplicates. This is particularly important when applied to the graphical model resulting from an RNN input dataset (clean data). Recall that marginal distribution is also known as prior probability in contrast with the posterior distribution (the conditional one). From the former definition, sites in the same neighbourhood have the same prior probability. Moreover, Proposition 4.3.Sites which belong to the same neighbourhood have identical probability a posteriori. Proof. Let si,sjbe two sites which belong to the same neighbourhood. From the Bayes’s theorem, one has PXt si|Xt sj= P[Xt sj|Xt si]·  P[Xt si]   P[Xt sj]=PXt sj|Xt si. The following theorem proves then that the DGM defined in Definition 4.1 is a TDMRF by equivalently showing that the Markov condition: Theorem 4.4 (The TD-MRF model). DGMs as in Definition 4.1 are TD-MRFs. 786 J. GarcÍa Cabello Then, by application of VNM-Theorem 2.1 on each secondary lottery, one has that uxt i=uzt i = 2  i=1 p[outcomei]·u(outcomei)=p[outcome 1]·1=p[outcome 1], ∀i=1,...,D. The formula comes then by substituting: Eff[In]= D  i=1 poXt=xt i·uxt i= = D  i=1 poXt=xt i·p[outcome 1]= =p[outcome 1]· D  i=1 poXt=xt i= =p· D  i=1 poXt=xt i. 7. A Case Application This section is aimed at developing an example of the method application. In order to make a choice between two real data sets, their level of efficiency will be computed. As stated in Definition 6.1, the level of efficiency of an input set Eff[In]measures the learning capacity of its inputs on the basis of the preference relation of Definition 3.1 that prioritises those inputs whose outputs have a lower associated loss (better estimates). To compute Eff[In] we shall apply the formula proved in Theorem 6.3 which follows from Theorem 6.2,in which the existence of an utility function uwhich quantifies the preference relation was proved. This is Eff[In]= D  i=1 poXt=xt i·uxt i=p· D  i=1 poXt=xt i, where pis the probability that |zt i−y|<M,∀zt ifor a given threshold Mbelow which the loss function is considered acceptable. The data sets we shall use here contain prices (e/1 kg) over time for the most common olive oil varieties. These data are available on the websites of the Government of Spain: https://www.mapa.gob.es/es/agricultura/temas/producciones-agricolas/aceite-oliva-y- aceituna-mesa/Evolucion_precios_AO_vegetales.aspx, A New Decision Making Method for Selection of Optimal Data Using the VNM Theorem 787 where prices are published on a weekly basis. Specifically, we will consider data sets corresponding to weeks 28/2023 and 39/2022 (the reasons for this choice will be explained later). We shall thus apply the above formula taking into account the following considerations. On one hand, note that the choice of the threshold Mwill depend on the context. In the olive oil market scenario, assuming a deviation from the olive oil price of 10% is acceptable. Hence, M=0.5. On the other hand, the value of the parameter pwill depend on several market features which vary over time depending on physical (rainfall, pollen levels...) and socio-economic (Government regulations) circumstances. When real prices are subject to unusual fluctuations (due to changes in the aforementioned circumstances), such prices used in training tasks will deviate more from the real ones. In consequence, the probability p, such that |zt i−y|<M,∀zt i, will decrease. Either way, it should be noticed that pis known as soon as the value of Mis fixed, but it is not the same for all input sets. From the above formula, since Mis known (and therefore so is p), we must focus on computing po[Xt=xt i]for each input xt i. To that end, we will follow Fig. 2of the TD-MRF operational process given in Section 4.1. Since each input xt imaybedisaggregated into dfeatures xk,t i(k=1,...,d), xt i=(x1,t i,x2,t i,...,xd,t i),thesame is true for the corresponding probability po[Xt=xt i]=po[xt i],whichispo[xt i]= (po[x1,t i],po[x2,t i],...,po[xd,t i]). We assume that the energy functions ψcorresponding to the rcliques are of Gaussian type, i.e. ψCj=([.]−μj)2 σ2 j ,j=1,...,r, since Gaussian distributions are suitable in the olive oil scenario. Actually, given that Gaussian distributions portray those data sets whose majority of elements revolves around the centre, energy functions of Gaussian type are particularly suited for goods whose price takes values in an interval of small length and do not suffer very sharp price variations. In order to achieve our goal, each input xt imust be first processed in each clique Cj,j = 1,...,r, through the corresponding clique potential, whose result is PCjXt=xt i=1 Ze −(xt i−μj)2 σ2 j⇒PCjXt=xt i=e −(xt i−μj)2 σ2 j,when Z=1. Once the processing in the cliques has been completed, the required probability is obtained as poxt i=PXt=xt i=1 Z r  j PCjXt=xt i⇒PXt=xt i= r  j e −(xt i−μj)2 σ2 j, when Z=1. The computation of “the partition function” Zentails certain difficulties in practice. For this reason, we shall adopt the view commonly taken in the literature that Z=1. From the TD-MRF structure proved in Theorem 4.4, cliques gather those random variables with identical prior and posterior distribution (see Remark 4.6). This theoretical description fits with the specialist major retailers in the olive oil context. In this 788 J. GarcÍa Cabello Table 1 In1: Processing in the clique C1. xt i(xt i−3.988)(x t i−3.988)2(xt i−3.988)2 0.172 −(xt i−3.988)2 0.172 e−(xt i−3.988)2 0.172 3.16 −0.828 0.685584 3.985953488 −3.985953488 0.018574725 5.92 1.932 3.732624 2.86683871 −2.86683871 0.056878452 6.26 2.272 5.161984 3.96465745 −3.96465745 0.018974535 6.52 2.532 6.411024 4.923981567 −4.923981567 0.007270127 7.1 3.112 9.684544 7.438205837 −7.438205837 0.00058834 Table 2 In1: Processing in the clique C2. xt i(xt i−3.884)(x t i−3.884)2(xt i−3.884)2 0.156 −(xt i−3.884)2 0.156 e−(xt i−3.884)2 0.156 3.16 −0.724 0.524176 3.360102564 −3.360102564 0.034731697 5.92 2.036 4.145296 26.57241026 −26.57241026 2.88236E−12 6.26 2.376 5.645376 36.18830769 −36.18830769 1.9214E−16 6.52 2.636 6.948496 44.54164103 −44.54164103 4.52701E−20 7.1 3.216 10.342656 66.29907692 −66.29907692 1.60945E−29 practical case, the level of efficiency shall be computed through PCj[Xt=xt i]of cliques Cj,j =1,...,7supported by the information given in Table 8below (source: https://www.olimerca.com/precios/tipoInforme/3). As discussed before, there are multiple factors (physical and socio-economic) that influence the price. Such factors are the features xk,t i(k=1,...,d) of each input xt i=(x1,t i,x2,t i,...,xd,t i). For simplicity, we focus on just one of them in order to choose the two input sets In1,In2: the hydrographic index, which shows the average rainfall over a certain period of time. In this line, In1is an input set of prices (e/1 kg) under severe drought conditions (and therefore, with unusual fluctuations in price as product shortages raise the prices3) while In2is an input set of prices which correspond to a usual period of rainfall: In1={3.16,5.92,6.26,6.52,7.10},p=0.23,week 28/2023, In2={2.71,3.78,3.80,3.86,3.96},p=0.57,week 39/2022. With this choice of In1and In2, it is to be expected that the inputs in In1will produce worse estimators (higher associated loss) since such inputs reflect prices with unusual fluctuations (therefore with higher deviation from the mean). Hence, it is is to be expected that Eff[In2]>Eff[In1]. The computation of level of efficiency In1is supported by the information provided in Tables 1–7. From the information provided by the above tables, finally the required probability is computed (see Table 9). 3In dry seasons, water shortages lead to a drop in the olive production and, therefore, in the olive oil production. Hence, under severe drought conditions, olive oil prices skyrocket. A New Decision Making Method for Selection of Optimal Data Using the VNM Theorem 789 Table 3 In1: Processing in the clique C3. xt i(xt i−3.851)(x t i−3.851)2(xt i−3.851)2 0.143 −(xt i−3.851)2 0.143 e−(xt i−3.851)2 0.143 3.16 −0.691 0.477481 3.339027972 −3.339027972 0.03547142 5.92 2.069 4.280761 29.93539161 −29.93539161 9.98216E−14 6.26 2.409 5.803281 40.58238462 −40.58238462 2.37298E−18 6.52 2.669 7.123561 49.81511189 −49.81511189 2.32045E−22 7.1 3.249 10.556001 73.81818881 −73.81818881 8.73309E−33 Table 4 In1: Processing in the clique C4. xt i(xt i−3.858)(x t i−3.858)2(xt i−3.858)2 0.108 −(xt i−3.858)2 0.108 e−(xt i−3.858)2 0.108 3.16 −0.698 0.487204 4.511148148 −4.511148148 0.01098584 5.92 2.062 4.251844 39.36892593 −39.36892593 7.98533E−18 6.26 2.402 5.769604 53.42225926 −53.42225926 6.29517E−24 6.52 2.662 7.086244 65.61337037 −65.61337037 3.19503E−29 7.1 3.242 10.510564 97.32003704 −97.32003704 5.42556E−43 Table 5 In1: Processing in the clique C5. xt i(xt i−4.343)(x t i−4.343)2(xt i−4.343)2 0.472 −(xt i−4.343)2 0.472 e−(xt i−4.343)2 0.472 3.16 −1.183 1.399489 2.965019068 −2.965019068 0.051559486 5.92 1.577 2.486929 5.268917373 −5.268917373 0.005149182 6.26 1.917 3.674889 7.78578178 −7.78578178 0.000415602 6.52 2.177 4.739329 10.04095127 −10.04095127 4.35783E−05 7.1 2.757 7.601049 16.10391737 −16.10391737 1.01428E−07 Table 6 In1: Processing in the clique C6. xt i(xt i−3.878)(x t i−3.878)2(xt i−3.878)2 0.134 −(xt i−3.878)2 0.134 e−(xt i−3.878)2 0.134 3.16 −0.718 0.515524 3.84719403 −3.84719403 0.021339531 5.92 2.042 4.169764 31.11764179 −31.11764179 3.06041E−14 6.26 2.382 5.673924 42.34271642 −42.34271642 4.08124E−19 6.52 2.642 6.980164 52.09077612 −52.09077612 2.38376E−23 7.1 3.222 10.381284 77.47226866 −77.47226866 2.26059E−34 Table 7 In1: Processing in the clique C7. xt i(xt i−3.916)(x t i−3.916)2(xt i−3.916)2 0.117 −(xt i−3.916)2 0.117 e−(xt i−3.916)2 0.117 3.16 −0.756 0.571536 4.884923077 −4.884923077 0.007559705 5.92 2.004 4.016016 34.32492308 −34.32492308 1.23844E−15 6.26 2.344 5.494336 46.96013675 −46.96013675 4.03155E−21 6.52 2.604 6.780816 57.95569231 −57.95569231 6.76336E−26 7.1 3.184 10.137856 86.64834188 −86.64834188 2.33939E−38 790 J. GarcÍa Cabello Table 8 Mean and variance of cliques C1−C7. Mean, Variance C1Ahorramas C2Alcampo C3Carrefour C4Dia C5Hipercor C6Lidl C7Mercadona μi3.988 3.884 3.851 3.858 4.343 3.878 3.916 σ2 i0.172 0.156 0.143 0.108 0.472 0.134 0.117 Table 9 Aggregated probability for In1. po[Xt=3.16]po[Xt=5.92]po[Xt=6.26]po[Xt=6.52]po[Xt=7.10] PC1[Xt=−] 0.018574725 0.056878452 0.018974535 0.007270127 0.00058834 PC2[Xt=−] 0.034731697 2.88236E−12 1.9214E−16 4.52701E−20 1.60945E−29 PC3[Xt=−] 0.03547142 9.98216E−14 2.37298E−18 2.32045E−22 8.73309E−33 PC4[Xt=−] 0.01098584 7.98533E−18 6.29517E−24 3.19503E−29 5.42556E−43 PC5[Xt=−] 0.051559486 0.005149182 0.000415602 4.35783E−05 1.01428E−07 PC6[Xt=−] 0.021339531 3.06041E−14 4.08124E−19 2.38376E−23 2.26059E−34 PC7[Xt=−] 0.007559705 1.23844E−15 4.03155E−21 6.76336E−26 2.33939E−38 7 iPCi[Xt=−] 2.09102E−12 2.55039E−74 3.7242E−101 1.7143E−124 2.4066E−185 Table 10 In2: Processing in the clique C1. xt i(xt i−3.988)(x t i−3.988)2(xt i−3.988)2 0.172 −(xt i−3.988)2 0.172 e−(xt i−3.988)2 0.172 2.71 −1.278 1.633284 9.495837209 −9.495837209 7.51641E−05 3.78 −0.208 0.043264 0.251534884 −0.251534884 0.777606331 3.8 −0.188 0.035344 0.205488372 −0.205488372 0.814249563 3.86 −0.128 0.016384 0.095255814 −0.095255814 0.909140334 3.96 −0.028 0.000784 0.00455814 −0.00455814 0.995452233 Table 11 In2: Processing in the clique C2. xt i(xt i−3.884)(x t i−3.884)2(xt i−3.884)2 0.156 −(xt i−3.884)2 0.156 e−(xt i−3.884)2 0.156 2.71 −1.174 1.378276 8.835102564 −8.835102564 0.000145534 3.78 −0.104 0.010816 0.069333333 −0.069333333 0.933015623 3.8 −0.084 0.007056 0.045230769 −0.045230769 0.955776892 3.86 −0.024 0.000576 0.003692308 −0.003692308 0.9963145 3.96 0.076 0.005776 0.037025641 −0.037025641 0.963651426 Eff[In1]=p·(po[Xt=3.16]+po[Xt=5.92]+po[Xt=6.26]+po[Xt= 6.52]+po[Xt=7.10])=0.23 ·(2.09102E−12 +2.55039E−74 +3.7242E−101 + 1.7143E−124 +2.4066E−185)=0.23 ·2.09102E−12 =4.80935E–13 Similarly, the computation of In2is supported by the information provided in Tables 10–16. Finally, the required probability is computed (see Table 17). Eff[In2]=p·(po[Xt=2.71]+po[Xt=3.78]+po[Xt=3.80]+po[Xt=3.86]+ po[Xt=3.96])=0.57(3.24825E−30 +0.268808808 +0.337851876 +0.53631732 + 0.549630567 +1.692608571)=0.964786886 . A New Decision Making Method for Selection of Optimal Data Using the VNM Theorem 791 Table 12 In2: Processing in the clique C3. xt i(xt i−3.851)(x t i−3.851)2(xt i−3.851)2 0.143 −(xt i−3.851)2 0.143 e−(xt i−3.851)2 0.143 2.71 −1.141 1.301881 9.104062937 −9.104062937 0.000111213 3.78 −0.071 0.005041 0.035251748 −0.035251748 0.965362357 3.8 −0.051 0.002601 0.018188811 −0.018188811 0.981975607 3.86 0.009 8.1E−05 0.000566434 −0.000566434 0.999433727 3.96 0.109 0.011881 0.083083916 −0.083083916 0.920273918 Table 13 In2: Processing in the clique C4. xt i(xt i−3.858)(x t i−3.858)2(xt i−3.858)2 0.108 −(xt i−3.858)2 0.108 e−(xt i−3.858)2 0.108 2.71 −1.148 1.317904 12.20281481 −12.20281481 5.01632E−06 3.78 −0.078 0.006084 0.056333333 −0.056333333 0.945224009 3.8 −0.058 0.003364 0.031148148 −0.031148148 0.969331958 3.86 0.002 4E−06 3.7037E−05 −3.7037E−05 0.999962964 3.96 0.102 0.010404 0.096333333 −0.096333333 0.908161245 Table 14 In2: Processing in the clique C5. xt i(xt i−4.343)(x t i−4.343)2(xt i−4.343)2 0.472 −(xt i−4.343)2 0.472 e−(xt i−4.343)2 0.472 2.71 −1.633 2.666689 5.649764831 −5.649764831 0.003518344 3.78 −0.563 0.316969 0.671544492 −0.671544492 0.510918858 3.8 −0.543 0.294849 0.624680085 −0.624680085 0.535432694 3.86 −0.483 0.233289 0.494256356 −0.494256356 0.61002438 3.96 −0.383 0.146689 0.31078178 −0.31078178 0.732873786 Table 15 In2: Processing in the clique C6. xt i(xt i−3.878)(x t i−3.878)2(xt i−3.878)2 0.134 −(xt i−3.878)2 0.134 e−(xt i−3.878)2 0.134 2.71 −1.168 1.364224 10.18077612 −10.18077612 3.78918E−05 3.78 −0.098 0.009604 0.071671642 −0.071671642 0.930836493 3.8 −0.078 0.006084 0.045402985 −0.045402985 0.955612307 3.86 −0.018 0.000324 0.00241791 −0.00241791 0.99758501 3.96 0.082 0.006724 0.050179104 −0.050179104 0.95105907 Table 16 In2: Processing in the clique C7. xt i(xt i−3.916)(x t i−3.916)2(xt i−3.916)2 0.117 −(xt i−3.916)2 0.117 e−(xt i−3.916)2 0.117 2.71 −1.206 1.454436 12.43107692 −12.43107692 3.99256E−06 3.78 −0.136 0.018496 0.15808547 −0.15808547 0.853776806 3.8 −0.116 0.013456 0.115008547 −0.115008547 0.891358525 3.86 −0.056 0.003136 0.026803419 −0.026803419 0.973552605 3.96 0.044 0.001936 0.016547009 −0.016547009 0.983589141 792 J. GarcÍa Cabello Table 17 Aggregated probability for In2. po[Xt=2.71]po[Xt=3.78]po[Xt=3.80]po[Xt=3.86]po[Xt=3.96] PC1[Xt=−] 7.51641E−05 0.777606331 0.814249563 0.909140334 0.995452233 PC2[Xt=−] 0.000145534 0.933015623 0.955776892 0.9963145 0.963651426 PC3[Xt=−] 0.000111213 0.965362357 0.981975607 0.999433727 0.920273918 PC4[Xt=−] 5.01632E−06 0.945224009 0.969331958 0.999962964 0.908161245 PC5[Xt=−] 0.003518344 0.510918858 0.535432694 0.61002438 0.732873786 PC6[Xt=−] 3.78918E−05 0.930836493 0.955612307 0.99758501 0.95105907 PC7[Xt=−] 3.99256E−06 0.853776806 0.891358525 0.973552605 0.983589141 7 iPCi[Xt=−] 3.24825E−30 0.268808808 0.337851876 0.53631732 0.549630567 Hence, as expected (since the inputs of In1reflect prices with unusual fluctuations and therefore with higher deviation from the mean) Eff[In2]>Eff[In1]. 8. Conclusions This paper deals with the selection of optimal training sets (those that have a higher capacity as estimators) in Recurrent Neural Networks under prediction tasks (or pattern recognition with time series as inputs), although this may also apply to other data-driven models regulated by dynamic systems. Our objective is to fill the existing gap of clear guidelines to follow for selecting optimal training sets in a general context. We design here a novel methodology to select optimal training data sets that can be used in any context. The key idea, which underpins the design of the mathematical structure that supports the selection, is a binary relation that gives preference to inputs with higher estimator abilities. A second novelty of our approach is to use dynamic tools that have not been used previously for this purposes: dynamic Markov Networks, which are widely regarded as generative models, successfully compute the prior probabilities involved in the formula for calculating the degree of efficiency of the training set (Theorem 6.3), derived from application of the Von Neumann-Morgenstern Theorem 2.1.Itis precisely the VMN theorem the instrument that confers discriminative capacity to the MNs: in this work we show that the preference relation that we define between inputs of a training set (inputs with higher learning capacities are preferred in the sense that the error function takes lower values) fulfils the necessary hypotheses to derive the existence of a simple formula for the calculation of the utility (efficiency) of a training set. The simplicity of this calculation allows it to be carried out in parallel with the learning process without adding computational cost. Thus the optimal sets are selected as the learning process evolves, therefore the data noise gradually disappears which decreases the likelihood of overfitting occurring. Declarations of interest: none. A New Decision Making Method for Selection of Optimal Data Using the VNM Theorem 793 Funding Financial support from the Spanish Ministry of Universities. “Disruptive group decision making systems in fuzzy context: Applications in smart energy and people analytics” (PID2019-103880RB-I00). Main Investigator: Enrique Herrera Viedma, and Junta de Andalucía. “Excellence Groups” (P12.SEJ.2463) and Junta de Andalucía (TIC186) are gratefully acknowledged. Research partially supported by the “Maria de Maeztu” Excellence Unit IMAG, reference CEX2020-001105-M, funded by MCIN/AEI/10.13039/ 501100011033/. References Chen, A.N. (2006). Robust optimization for performance tuning of modern database systems. European Journal of Operational Research, 171, 412–429. https://doi.org/10.1016/j.ejor.2011.03.043. Chou, P., Chuang, H.H., Chou, Y., Liang, T. (2022). Predictive analytics for customer repurchase: Interdisciplinary integration of buy till you die modeling and machine learning. European Journal of Operational Research, 296, 635–651. https://doi.org/10.1016/j.ejor.2021.04.021. Delbaen, F., Drapeau, S., Kupper, M. (2011). A von neumann morgenstern representation result without weak continuity assumption. Journal of Mathematical Economics, 47, 401–408. https://doi.org/10.1016/j.jmateco. 2011.04.002. Dynkin, E. (1984). Gaussian and nongaussian random fields associated with markov processes. Journal of Functional Analysis, 55, 344–376. https://doi.org/10.1016/0022-1236(84)90004-1. Fernandez Anitzine, I., Romo Argota, J.A., Fontan, F.P. (2012). Influence of training set selection in artificial neural network based propagation path loss predictions. International Journal of Antennas and Propagation, 2012.https://doi.org/10.1155/2012/351487. García Cabello, J. (2021). A novel intelligent system for securing cash levels using markov random fields. International Journal of Intelligent Systems, 36, 4468–4490. https://doi.org/10.1002/int.22467. García Cabello, J. (2023). Improved deep neural network performance under dynamic programming mode. Preprint. https://doi.org/10.2139/ssrn.4410415. Gordon, J., Hernandez-Lobato, J.M. (2020). Combining deep generative and discriminative models for bayesian semi-supervised learning. Pattern Recognition, 100, 107156. https://doi.org/10.1016/j.patcog.2019.107156. Higham, C.F., Higham, D.J. (2019). Deep learning: an introduction for applied mathematicians. Siam Review, 61, 860–891. https://doi.org/10.1137/18M1165748. Jiang, L., Liao, H. (2022). Bounded rational reciprocal preference relation for decision making. Informatica, 33, 731–748. https://doi.org/10.15388/23-INFOR511. Kim, K. (2006). Artificial neural networks with evolutionary instance selection for financial forecasting. Expert Systems with Applications, 30, 519–526. https://doi.org/10.1016/j.eswa.2005.10.007. Machina, M.J. (1982). Expected utility analysis without the independence axiom. Econometrica: Journal of the Econometric Society, 50(2), 277–323. https://doi.org/10.2307/1912631. Mirjalili, S., Hashim, S.Z.M., Sardroudi, H.M. (2012). Training feedforward neural networks using hybrid particle swarm optimization and gravitational search algorithm. Applied Mathematics and Computation, 218, 11125–11137. https://doi.org/10.1016/j.amc.2012.04.069. Nalepa, J., Myller, M., Piechaczek, S., Hrynczenko, K., Kawulok, M. (2018). Genetic selection of training sets for (not only) artificial neural networks. In: Kozielski, S., Mrozek, D., Kasprowski, P., Małysiak-Mrozek, B.,Kostrzewa,D.(Eds.),Beyond Databases, Architectures and Structures. Facing the Challenges of Data Proliferation and Growing Variety, BDAS 2018, Communications in Computer and Information Science, Vol. 928. Springer, Cham. https://doi.org/10.1007/978-3-319-99987-6_15. Pollak, R.A. (1967). Additive von neumann-morgenstern utility functions. Econometrica, Journal of the Econometric Society, 353–4, 485–494. https://doi.org/10.2307/1905650. Reeves, C.R., Bush, D.R. (2001). Using genetic algorithms for training data selection in RBF networks. In: Liu, H.,Motoda,H.(Eds.),Instance Selection and Construction for Data Mining, The Springer International Se- 794 J. GarcÍa Cabello ries in Engineering and Computer Science, 608. Springer, Boston, MA, pp. 339–356. https://doi.org/10.1007/ 978-1-4757-3359-4_19. Reeves, C.R., Taylor, S.J. (1998). Selection of training data for neural networks by a genetic algorithm. In: Parallel Problem Solving from Nature-PPSN V: 5th International Conference Amsterdam, The Netherlands September 27–30, 1998 Proceedings 5. Springer, pp. 633–642. https://doi.org/10.1007/BFb0056905. Smale, S., Rosasco, L., Bouvrie, J., Caponnetto, A., Poggio, T. (2010). Mathematics of the neural response. Foundations of Computational Mathematics, 10, 67–91. https://doi.org/10.1007/s10208-009-9049-1. Van Den Brink, R., Rusinowska, A. (2022). The degree measure as utility function over positions in graphs and digraphs. European Journal of Operational Research, 299, 1033–1044. https://doi.org/10.1016/ j.ejor.2021.10.017. Wang, L., Zhou, Y., Li, R., Ding, L. (2022). A fusion of a deep neural network and a hidden markov model to recognize the multiclass abnormal behavior of elderly people. Knowledge-Based Systems, 252, 109351. https:// doi.org/10.1016/j.knosys.2022.109351. Wong, D.F., Lu, Y., Chao, L.S. (2016). Bilingual recursive neural network based data selection for statistical machine translation. Knowledge-Based Systems, 108, 15–24. https://doi.org/10.1016/j.knosys.2016.05.003. Yang, J., Qiu, W. (2005). A measure of risk and a decision-making model based on expected utility and entropy. European Journal of Operational Research, 164, 792–799. https://doi.org/10.1016/j.ejor.2004.01.031. Zapf, F., Wallek, T. (2021). Comparison of data selection methods for modeling chemical processes with artificial neural networks. Applied Soft Computing, 113, 107938. https://doi.org/10.1016/j.asoc.2021.107938. Zhang, H., Wang, Z., Liu, D. (2014). A comprehensive review of stability analysis of continuous-time recurrent neural networks. IEEE Transactions on Neural Networks and Learning Systems, 25, 1229–1262. https:// doi.org/10.1109/TNNLS.2014.2317880. Zhang, L., Suganthan, P.N. (2016). A survey of randomized algorithms for training neural networks. Information Sciences, 364, 146–155. https://doi.org/10.1016/j.ins.2016.01.039. J. García Cabello was born in Andalusia (Spain). She received the PhD degree in pure and applied mathematics from the University of Granada where she has been teaching since 1990. Prior to getting to know at the world of applied mathematics, she developed a successful career in pure algebra (known as JG Cabello). Today, she is a fully tenured professor and a full researcher at the Applied Mathematics Department of the University of Granada (Spain), where she teaches undergraduate, MBA and Executive MBA courses and conducts seminars on a wide range of mathematical business-related topics. She is a full researcher at the Andalusian Research Institute in Data Science and Computational Intelligence. Her current research interests include the application of applied mathematics to the resolution of real problems, decision making, theoretical computer science and operational research. To this regard, her mathematical baggage (from pure algebra to applied mathematics) makes Dr. García Cabello’s research characterized by using a wide range of mathematical tools, from stochastic processes to dynamic systems. Dr. Julia García Cabello is also a regular reviewer of journals Applied Mathematics and Intelligent and Information Systems.