scieee AI-readable full text Open interactive document viewer

Metric learning for monotonic classification: turning the space up to the limits ofmonotonicity

Suárez, Juan Luis,González Almagro, Germán,García López, Salvador,Herrera Triguero, Francisco

Abstract

Funding for open access publishing: Universidad de Granada/CBUA.

Full text

https://doi.org/10.1007/s10489-024-05371-8 Metric learning for monotonic classification: turning the space up to the limits of monotonicity Juan Luis Suárez1·Germán González-Almagro1·Salvador García1·Francisco Herrera1 © The Author(s) 2024 Abstract This paper presents, for the first time, a distance metric learning algorithm for monotonic classification. Monotonic datasets arise in many real-world applications, where there exist order relations in the input and output variables, and the outputs corresponding to ordered pairs of inputs are also expected to be ordered. Monotonic classification can be addressed through several distance-based classifiers that are able to respect the monotonicity constraints of the data. The performance of distancebased classifiers can be improved with the use of distance metric learning algorithms, which are able to find the distances that best represent the similarities among each pair of data samples. However, learning a distance for monotonic data has an additional drawback: the learned distance may negatively impact the monotonic constraints of the data. In our work, we propose a new model for learning distances that does not corrupt these constraints. This methodology will also be useful in identifying and discarding non-monotonic pairs of samples that may be present in the data due to noise. The experimental analysis conducted, supported by a Bayesian statistical testing, demonstrates that the distances obtained by the proposed method can enhance the performance of several distance-based classifiers in monotonic problems. Keywords Distance metric learning ·Monotonic classification ·Nearest neighbors ·Triplet loss ·M-Matrix 1 Introduction Monotonic constraints [19] are common in real-world prediction problems where the variables to be predicted are ordinal and their order depends on the input data. For example, when predicting house prices, it is expected that—all other things being equal—a bigger house in the same area will have a higher price. Similarly, in predicting students’ final grades, students with consistently higher grades during a course are also expected to have a higher final grade. These problems are known as monotonic classification problems [6], and are relevant in fields such as credit risk modeling [8] and lecturer evaluation [5]. Monotonic problems are prevalent in many heavily-regulated industries, and incorporating reasonable expectations about consistent application of selection BJuan Luis Suárez [email protected].es 1Department of Computer Science and Artificial Intelligence, Andalusian Research Institute in Data Science and Computational Intelligence, DaSCI, University of Granada, 18071 Granada, Spain constraints into automated decision-making systems [29]is crucial [9,20]. When dealing with these problems, accuracy is not the sole factor to consider. It is equally crucial that the predictions closely follow the monotonic constraints present in the data. Furthermore, the cost of an incorrect prediction should increase as the prediction deviates further away from its actual value. Consequently, there is a need for classifiers that can handle these constraints and factor them in while making predictions. Ordinal regression methods [17] are commonly used in classification problems where the labels possess an inherent ordering. These methods, which continue to be widely popular today [10,39,40], can be particularly useful for monotonic data as the labels in such data also have an inherent ordering. However, ordinal regression methods are not designed to handle monotonic constraints unless they are tailored to that purpose. Despite the significance of monotonicity in several real-world applications, only a few ordinal regression methods specifically address this property. Therefore, further research is necessary to develop more effective and efficient methods for monotonic classification. In recent years, there has been a growing effort to 123 Applied Intelligence (2024) 54:4443–4466 Accepted: 4 March 2024 / Published online: 26 March 2024 develop new methods for monotonic classification by adapting prominent algorithms from nominal classification, such as decision trees [27] or random forest [42], while also striving to enhance the explainability of the models [23]. Similarity-based learning methods have been successful in monotonic classification problems [6]. This type of learning is inspired by the human ability to recognize objects by their resemblance to other previously seen objects. This idea can be extended to fulfill monotonicity constraints by restricting similar objects or instances to those that comply with these constraints. The well-known nearest neighbors rule for classification [11] has been extended following this idea, so that the nearest neighbors are filtered in order to meet the monotonic constraints [13]. Recently, a new proposal restated the previous idea using a fuzzy approach [16] aiming to gain robustness against possible noise in the monotonicity constraints. All of the above algorithms require a distance metric to function, and standard distances such as the Euclidean distance have become the go-to choice. However, using a distance metric that is better suited to the data can improve classifier performance. Distance metric learning [33] accomplishes this task and has been successful in several advanced learning problems, such as multi-output learning [21]or multi-dimensional classification [22], as well as ordinal problems with no monotonic constraints [25,32]. However, its application when monotonicity constraints are present adds a significant hurdle. Distance metrics have the ability to transform the space [14] and, while this can reduce the number of instances that may break the monotonicity of the dataset, it is difficult to ensure that no new false monotonic constraints are introduced in the process—which may worsen the quality of the data. Although preprocessing techniques such as feature selection methods [28,44] are effective in monotonic classification problems, the same cannot be said for preprocessing techniques that have the potential to modify the interdependence among features. Consequently, the application of distance metric learning algorithms becomes challenging, making it hard to enhance distance-based classifiers. Our research presents a novel distance metric learning algorithm for monotonic classification. This algorithm aims to transform the input space in such a way that no new monotonic constraints are introduced, thus resolving the earlier issue. We accomplish this objective through monotonic matrices and M-matrices [4], which possess unique characteristics for defining distances that are highly advantageous for monotonic datasets. As we proceed further into this paper, we will delve deeper into these properties. This paper represents an extension of our previous work on distance metric learning for monotonic classification [34]. While our earlier paper focused on the development of the basic algorithm and its initial evaluation, this paper presents a comprehensive analysis of the method that includes an expanded description of the method, a further analysis of the background and a theoretical justification of our approach. Our work also provides an extensive experimental evaluation of the method. Specifically, we have conducted a Bayesian statistical analysis of the results and performed a hyperparameter analysis to explore the impact of different parameter settings on the performance of the algorithm. We consider the most relevant metrics in monotonic classification to measure classification performance and test constraint fulfillment after applying our proposed transformations. The paper is organized as follows. Section 2describes the current state of distance metric learning and monotonic classification from a similarity-based learning perspective. Section 3outlines our proposal of distance metric learning for monotonic classification. Section 4describes the experiments conducted to evaluate the performance of our algorithm, and the results obtained, including the Bayesian statistical analysis and the hyperparameter discussion. Finally, Section 5ends with the concluding remarks. 2 Background In this section we will discuss the main problems we have tackled in this paper: distance metric learning, monotonic classification and how similarity-based methods are employed to address monotonic classification nowadays. 2.1 Distance metric learning Distance metric learning [33] arose with the purpose of improving similarity-based (or, equivalently, distance-based) learning methods such as the k-nearest neighbors classifier, or k-NN. For this purpose, distance metric learning aims at learning distances that facilitate the detection of hidden properties in the data that a standard distance, such as the Euclidean distance, would fail to discover. Here, we will define distance as any map d:X×X→R, where Xis a non-empty set, satisfying the following conditions: 1. Coincidence: d(x,y)=0⇐⇒ x=y, for every x,y∈X. 2. Symmetry: d(x,y)=d(y,x), for every x,y∈X. 3. Triangle inequality: d(x,z)≤d(x,y)+d(y,z),for every x,y,z∈X. We will also consider as distances the so-called pseudodistances, which are those maps that verify (2) and (3), and where d(x,x)=0 instead of (1). Linear distance metric learning is the most common approach to learning distances between numerical data. It consists in learning Mahalanobis distances, which are param- 123 4444 J. L. Suárez et al. eterized by positive semidefinite matrices. Given a positive semidefinite matrix M∈Md(R)+ 0, and x,y∈Rd,the Mahalanobis distance between xand ydefined by M is given as dM(x,y)=(x−y)TM(x−y). Since every positive semidefinite matrix Mcan be decomposed as M=LTLwith L∈Md(R)it follows that dM(x,y)2=(x−y)TM(x−y)=(x−y)TLTL(x−y) =(L(x−y))T(L(x−y)) =L(x−y)2 2. Therefore, learning a Mahalanobis distance is equivalent to learning a linear map Land then measuring the Euclidean distance after applying that linear map. Thus, the linear distance metric learning approach comes down to learning a positive semidefinite matrix (also called metric matrix) M or a linear map matrix L. Both approaches are equivalent. Learning Musually facilitates convexity during the optimization, while learning Lfacilitates other tasks such as dimensionality reduction [12]. 2.2 Monotonic classification Monotonic classification [6] arises in certain types of problems of ordinal nature with two particularities: firstly, there are order relations in both the input data (samples) and the output data (labels); secondly, for any given pair of instances, their relative order is also expected to be present in the relative order of their class labels. This happens, for example, when the data represent different measures or evaluations on a particular topic and the label represents a global expert assessment. It is to be expected that, if the measures of one instance are better than the measures of another instance, the global assessment obtained should also be better. We now formally define what a monotonic dataset is. Let X={x1,...,xN}⊂Rdbe a numerical dataset. Let y1,...,yN∈{1,...,C}be the corresponding labels. The labels can be ordered using the ordinal relation ≤among the natural numbers, since they take values between 1 and C.For each pair of samples in X, we can also compare their features element-wise. We may not be interested in making all the features comparable, since the monotonic constraints affecting the data may not be present in all the attributes. Thus, let d1,...,dm∈{1,...,d}be the indices of all the features that have monotonicity constraints. These constraints can be direct or inverse. Without loss of generality, we can assume all the constraints are direct, and otherwise we can just flip the sign of the affected attribute. Given two pairs of samples xi,xj∈X, we define an order relation between them as the product order, considering only the features with monotonicity constraints, i. e., xi≤xj⇐⇒ xil ≤xjl,for every l∈{d1,...,dm}. Observe that this order is a partial order, that is, there may be samples xi,xjsuch that xi≤ xjand xi≥ xjsimultaneously. The dataset D={(x1,y1), . . . , (xN,yN)}will be monotonic if, for every xi,xj∈X, then xi≤xj⇐⇒ yi≤yj. In other words, the dataset Dis monotonic if, and only if, for every comparable pair of samples, it is simultaneously true that: (i) all the attributes with monotonic constraints of the first instance are lower or equal than the attributes from the second instance; and (ii) the label of the first instance is lower or equal than the label of the second instance. It is important to remark that, in real scenarios, due to the subjective nature of the labeling process or to measurement errors, some datasets may not be fully monotonic and there may be several pairs of instances for which monotonicity is broken. In any case, the goal of monotonic classification is to provide algorithms that, when predicting new labels, are able to respect the monotonicity constraints of the datasets, and that are also robust against monotonicity clashes that may arise when the dataset is not fully monotonic. 2.3 Monotonic classification and similarity-based learning methods Similarity-based learning can be seen as closely related to ordinal classification problems. Typically, it is to be expected that if two samples are close their labels will also be close, and the farther apart the samples are the more different their labels will be as well. The k-NN classifier can be easily adapted to this setup. A common approach to handle ordinal labels with this classifier is to modify the aggregation vote function for the nearest neighbors, using, for example, the median of the labels instead of the mode. This can also be extended to handle situations where additional information beyond the labeled data is available [35]. In general, similarity-based algorithms are beneficial in other problems related to ordinal data, including ranking [30]. When our data also have monotonic constraints, additional caution is necessary, since we want the values predicted by the classifier to satisfy these constraints as far as possible. An immediate extension of the nearest neighbors classifier to monotonic classification problems is the monotonic knearest neighbors classifier (Mon-k-NN), which takes into account only the nearest neighbors whose labels lie on an interval that does not violate the monotonicity constraints [13]. Given a sample x0∈Rdwe can consider the interval 123 Metric learning for monotonic classification: turning the space up to the limits of monotonicity 4445 [ymin,ymax], where ymin =max{y∈{1,...,C}: (x,y)∈Dand x≤x0} ymax =min{y∈{1,...,C}: (x,y)∈Dand x0≤x} Two variants of Mon-k-NN can be considered. The inrange (IR) variant considers the k-nearest neighbors to x0 with labels in the interval [ymin,ymax], while the out-range (OR) variant considers the k-nearest neighbors in Dand then only those neighbors with labels in [ymin,ymax]are factored in for the vote (if no neighbors have labels in this range, then a random label in the interval will be chosen). Observe that this algorithm will not work properly if the dataset is not fully monotonic. In such a case, ymin may be greater than ymax. Therefore, it is necessary to apply a relabeling process that makes the dataset fully monotonic while disturbing it as little as possible. A relabeling method that is applied on the complement of the maximum independent set of the monotonicity violation graph is proposed in [13]. A more recent proposal [16] relies on the fuzzy k-NN [18] in an effort to gain robustness against monotonicity constraints. The monotonic fuzzy k-nearest neighbors classifier (Mon-F-k-NN) first uses the in-range monotonic k-nearest neighbors to compute class membership probabilities for each sample in the training set. For each xi∈Xand c∈{1,...,C}, the probability u(xi,c)that the class of xi will be cis defined as u(xi,c)=RCr +(nnc/k)(1−RCr), if yi=c (nnc/k)(1−RCr), where nncis the number of nearest neighbors of the class c and RCr is a real class relevance estimation, between 0 and 1 (typically established as 0.5). From these memberships, each sample is reassigned to a class whose probability is a median value within the list of membership probabilities for the sample. This class reassignment enhances the monotonicity of the dataset. Finally, at the prediction stage, given the sample x, its kmonotonic nearest neighbors xi1,...,xikare found and used to compute the membership probabilities of xas u(x,l)= k  j=1 u(xij,l)pORj x−xijm−1 k  j=1 pORj x−xijm−1 . Again, both in-range and out-range variants are available at the prediction stage. The out-range variant considers all the neighbors, even if their labels are not in [ymin,ymax].Ifthis is the case, then pORjis set to a previously fixed out-range penalty that decides how much weight these neighbors will have in the computation of the membership. In any other case, pORj=1. The parameter mdetermines the influence of the distances of the neighbors. Lastly, the final class of xis taken again using the class associated with the median membership probability in u(x,·). 2.4 Monotonic classification and distance metric learning Learning a Mahalanobis distance for a monotonic classification problem has several difficulties to overcome. If we try to learn the distance using a metric matrix, the distance is modified while the dataset is not, thus its monotonicity remains unchanged. This is not entirely positive, since the potential of distance metric learning gets squandered and, therefore, also the possibility of reducing the non-monotonicity of the dataset if it exists. However, if we learn the distance using a linear transformation, there is no guarantee that new false monotonic constraints are added. This may happen if we pick a distance defined by a generic L∈Md(R). Consider, for example, the extreme case of a matrix Ldefining a 90-degree rotation in R2. If such a matrix transforms the dataset, all the monotonic constraints of the original dataset are lost and, furthermore, all those pairs of instances that were not comparable become false monotonic constraints with this rotation. These drawbacks have so far prevented the development of distance metric learning algorithms for monotonic classification. To the best of our knowledge, there are currently no proposals in this area. 3 Algorithm description In this section we will describe our distance metric learning proposal for monotonic classification. First, we will introduce the concepts needed to apply the algorithm. Then, we will describe the algorithm and, finally, we will show its optimization procedure. We named this approach Large Margin Monotonic Metric Learning (LM3L). 3.1 Preliminary definitions We will focus on the case where all the features in the dataset are subject to direct monotonicity constraints, so that the order relationship in the dataset coincides with the product order in Rd. It’s important to note that if there are inverse monotonicity constraints present, we can simply invert the sign of the corresponding features and apply the algorithm to the resultant dataset. Additionally, we will discuss the situation involving non-monotonic features at the end of the section. As mentioned above, one of the problems of learning a distance by means of a linear transformation is that this trans- 123 4446 J. L. Suárez et al. formation disturbs the monotonic constraints and, therefore, some new constraints that are not necessarily true could be added. However, this can be avoided by restricting ourselves to the appropriate subset of matrices, such as the one defined below. Definition 1 A linear transformation or square matrix L∈ Md(R)is said to be monotone [4] if for any real vector x∈Rd, we have that Lx ≥0⇒ x≥0, where 0 ∈Rdis the vector with zeros in all its entries and ≥ is the product order in Rd. Observe that, if Lis monotone, if we have two samples xi,xj∈Xso that Lxi≥Lxj, then L(xi−xj)≥0 and therefore xi≥xj. This means that any pair of samples that meets a monotonicity constraint after applying Lwas already meeting the constraint before applying the transformation. So, when Lis monotone, no new monotonic constraints can be added after the dataset is transformed. However, this property is not reciprocal: if xi≥xj, it does not necessarily follow that Lxi≥Lxj. Consequently, some monotonic constraints may be lost in this transformation. This will allow the algorithms that use this type of matrices to select the constraints that may be more relevant in the dataset without ever adding new incorrect monotonicity constraints after applying the transformation. Monotone matrices are tough to use in optimization settings, since they cannot be adequately parameterized for this purpose. When Lis invertible and monotonic, Lis the inverse of a positive matrix (that is, a matrix with all its entries greater than or equal to zero). This may facilitate its parameterization, but the computation of the inverse matrix would make the optimization procedure very expensive. However, there is a subset of monotone matrices with much more suitable properties for use in differential optimization. We describe them below. Definition 2 A linear transformation or square matrix L∈ Md(R)is an M-Matrix [4] if it can be expressed as L=sI− B, where Iis the identity matrix of dimension d,B∈Md(R) is a positive matrix, and s∈Rverifies that s≥ρ(B), where ρ(B)is the spectral radius of the matrix B. M-matrices are monotone [4] and, since they depend on the real value sand the positive matrix B, they can be easily and efficiently used to optimize a differentiable objective function. 3.2 Objective function and optimization After establishing the linear applications that enable us to regulate the monotonicity of the dataset, the next step is to define the function to be optimized. Since the linear application already controls the monotonicity implicitly, the focus of the objective function will be on assessing a goodness-of- classification metric. This metric should consider the ordinal nature of the dataset, in that the prediction penalty should increase as the actual label moves farther away from the predicted label. Drawing inspiration from the large margin proposals for distance metric learning in other classification tasks [25,43], we present a triplet-based objective function. For each anchor sample xiin the dataset, we consider a positive sample xj and a negative sample xlsuch that yi≤yj<ylor yi≥ yj>yl. The aim is to minimize the distance from xito xjwhile simultaneously maximizing the distance from xi to xl. The objective function and the associated constrained optimization problem are defined as follows: min L∈Md(R)f(L)= xi∈X xj,xl∈U(xi) yi≤yj<yl or yi≥yj>yl L(xi−xj)2−L(xi−xl)2+λ+ s. t. :L=sI −B Bij ≥0,(i,j=1,...,d) s≥ρ(B). (1) In the aforementioned optimization problem, the notation [z]+=max{z,0}is used, where λdenotes a margin constant. The aim is to ensure that the distance from the negative sample to the anchor sample is not smaller than the distance from the positive sample to the anchor sample plus the margin constant. Moreover, for each xi∈X,U(xi)represents a neighborhood that includes the Knearest neighbors to xifor the Euclidean distance. This neighborhood is computed prior to the optimization process and serves to filter the instances that are initially farther away, giving a local character to the method and reducing the computational cost. This draws inspiration from the metric learning method for ordinal regression proposed in [25]. The parameter Krepresents a hyperparameter that can be adjusted to enhance algorithm performance. It is suggested to set Kto a sufficiently large value to ensure representative neighborhoods. This is further discussed in Section 4.5. The choice of the Euclidean distance stems from its suitability as an a priori distance measure before the algorithm learns from the data [24,36, 41,43]. However, alternative precomputed distance measures can also be considered. The constraints specified in the optimization problem of (1) guarantee that no additional monotonic constraints are introduced when the dataset is transformed. On the other hand, the objective function aims to bring data from nearby classes closer while pushing data from distant classes farther apart. By minimizing (1), the transformed dataset that we 123 Metric learning for monotonic classification: turning the space up to the limits of monotonicity 4447 obtain has optimal ordinality and monotonicity properties, which can then be learned by a similarity-based classifier. To optimize (1), we propose a stochastic projected gradient descent method. Since Lis fully parameterized by sand B, the optimization problem can be rewritten as min s∈R,B∈Md(R) s≥ρ(B) Bij≥0∀i,j f(L)= xi∈X xj,xl∈U(xi) yi≤yj<yl or yi≥yj>yl (sI −B)(xi−xj)2 −(sI −B)(xi−xl)2+λ+. (2) At each gradient step we can update the pair (s,B)using the partial derivatives. We know that [26] ∂f ∂s(s,B)= xi∈X xj,xl∈AL(xi) dT ij[2sI −(B+BT)]dij−dT il [2sI−(B+BT)]dil, (3) ∂f ∂B(s,B)= xi∈X xj,xl∈AL(xi) 2(B−sI)(Oij −Oil), (4) where dij =xi−xj,Oij =dijdT ij, and AL(xi)is the set of active (positive, negative) 2-tuples associated with the anchor sample xiand L=sI −B, that is: AL(xi)={(xj,xl):xj,xl∈U(xi), [(yi≤yj<yl)or (yi≥yj>yl)]and L(xi−xj)2−L(xi−xl)2+λ>0}. From this, in the stochastic gradient descent process, we choose at each step a random sample xi∈Xand update sand Bwith the following rules: snew=sold −η xj,xl∈A(xi) dT ij[2sI −(B+BT)]dij−dT il [2sI−(B+BT)]dil, (5) Bnew=Bold −η xj,xl∈A(xi) 2(B−sI)(Oij −Oil), (6) where ηis a pre-established learning rate. Since the above update rules do not ensure that sand Bmeet the constraints to which they are subject, it is necessary to project them into the constrained set. Therefore, after applying the update rules, we convert the negative entries of Bto zero and, if sis smaller than ρ(B), we make it equal to ρ(B): π(B)=(˜ Bij), where ˜ Bij =max{Bij,0},for each i,j=1,...,d. (7) π(s)=max{s,ρ(B)}.(8) This concludes the optimization process of LM3L.In short, at each epoch the samples xi∈Xare chosen randomly. With each of the samples, sand Bare updated using the rules from (5) and (6) and then projected into valid values with (7) and (8). The process is repeated until a maximum of epochs is reached or the algorithm converges. With the final values of sand B, the obtained distance is retrieved by means of the linear transformation L=sI −B. 3.3 Benefits of the method Our distance metric learning algorithm for monotonic classification offers several advantages from a theoretical perspective. Firstly, it can find new transformed variables in the latent space that may better capture the monotonicity of the dataset. By learning a distance metric that is specifically tailored to the problem of monotonic classification, without introducing any new fake monotonic constraints, the algorithm can identify new features that are better suited for capturing the underlying monotonic structure of the data. This can lead to better classification performance and a deeper understanding of the relationships between the variables. Secondly, since no new monotonic constraints can be added but some of them may be removed, our algorithm can help us to filter the dataset and to discover different ways of interaction in the latent space. By removing constraints that are not relevant, the algorithm can provide insight into the structure of the data and help us to discover new relationships among the variables. This can be particularly useful in cases where the data is high-dimensional or complex, and where traditional methods may struggle to identify meaningful patterns [38]. Finally, the new variables in the latent space can contribute further information on how the variables are related and their impact on the monotonicity of the dataset, which can assist in making interpretable and explainable decisions about the data. By providing a more complete picture of the underlying structure of the data, the algorithm can help us to identify important features and relationships that may not be immediately apparent from the raw data. This can be particularly useful in cases where the data is being used to make critical decisions, such as in finance or healthcare, where interpretability and transparency are essential. In summary, our distance metric learning algorithm offers several major benefits from a theoretical perspective, including the ability to identify new transformed variables in the latent space, the ability to filter and discover new ways of interaction in the data, and the ability to facilitate interpretable and explainable decisions about the data. These benefits make it a powerful tool for researchers and practitioners working in a variety of fields and applications where monotonicity is a key consideration. 123 4448 J. L. Suárez et al. 3.4 LM3Land non-monotonic features In the previous sections we have assumed that all the features in the dataset are subject to monotonic constraints. However, this assumption may not hold in real-world scenarios. In the context of distance-based classification, both the majority and median-vote k-NN classifiers do not consider the monotonic constraints in any sense. On the other hand, the monotonic and monotonic-fuzzy variants assume the monotonicity across all the features [13,16]. Since our algorithm is designed to learn a distance that respects the dataset’s monotonic constraints, it is essential to address how to handle non-monotonic features and how the later classification stage will be affected by them. LM3Lcan be adapted or combined with other algorithms in order to handle non-monotonic features. One approach is to apply LM3Llocally to the monotonic attributes and then employ another distance metric learning algorithm for standard classification [14,43] locally to the non-monotonic features. Concatenating the obtained maps, represented as a matrix containing the two locally learned distance matrices as blocks, will yield a global distance metric for use in the classification stage. This method treats the two types of features separately, thus not capturing interactions between monotonic and non-monotonic features. An alternative approach that does capture the interactions between monotonic and non-monotonic features is to introduce an unconstrained matrix L0to the optimization problem of (1) for the non-monotonic attributes. This introduces the constraint L=sI −B+L0, where L0only contains non-zero rows in the positions corresponding to the non-monotonic features. Consequently, the monotonic constraints remain effective for monotonic features, while L0 removes limitations on exploring the search space for nonmonotonic features. In applying subsequent distance-based classification methods, since monotonic nearest neighbors approaches assume all features are monotonic, it’s advisable to rely on standard majority-vote or median-vote classifiers. These classifiers do not assume monotonicity in the data, as those assumptions are already considered during the distance learning stage. 4 Experiments In this section we describe the experiments we have developed with our algorithm and the results we have obtained. 4.1 Experimental framework We have assessed the distance metric learned by LM3L through various distance-based classifiers. All of them are variations of the nearest neighbors classifier, which include: the original k-NN (majority-vote), the median-vote k-NN, the monotonic k-NN (both the in-range and out-range versions), and the monotonic fuzzy k-NN (both the in-range and outrange versions). The standard k-NN is commonly applied in non-ordinal classification problems, while the median-vote k-NN is the natural adaptation for k-NN in ordinal regression, without taking into consideration any monotonic constraints. The remaining k-NN versions refer to the monotonic nearest neighbors approaches discussed in Section 2.3. The goal of these experiments is to evaluate whether the distance metric learned by LM3Lcan improve the performance of k-NN in two ways: (1) classification accuracy when dealing with new data and (2) adherence to the monotonic constraints of the dataset. To achieve this goal, we will compare various versions of k-NN using both the Euclidean distance and the distance learned by LM3L. The experiments were conducted using a fixed number of neighbors k=9 for all the k-NN classifiers. The distances computed using each classifier were evaluated through a stratified 5-fold cross validation, which preserves the original class proportions in each fold. Ten different numerical datasets with monotonic constraints from various sources were used in the experiments [1,17,37]. To prepare the data for the experiments, any features with inverse monotonic constraints were sign-switched, and a min-max normalization to the interval [0,1]was applied. It is worth noting that some datasets were not completely monotonic, and contained pairs of samples that violated the monotonicity constraints. The datasets selected for the experiments, along with their dimensions and monotonicity properties, are presented in Table 1. 4.2 Metrics and results To evaluate the classification performance of the distances with each classifier, we have used two metrics: the mean absolute error (MAE) [17], which penalizes the classification error according to the distances between the labels, and the concordance index (C-INDEX) [15], which measures the ratio between the number of ordered pairs in both true labels and predictions and the number of all comparable pairs. For the execution of these experiments, the parameters suggested for LM3Lare as follows: a fixed neighborhood size of 50 for the anchor samples, a maximum of 300 optimization epochs, a neighborhood margin λof 0.1, and an adaptive learning rate η. The adaptive learning rate starts at 10−6and, at each epoch, it is either increased by 1 % if the objective function improves, or halved if it does not, following the adaptive approach in [43]. These parameters were chosen based on the guidelines of the algorithms that inspired this method, as well as a preliminary hyperparameter analysis presented in Section 4.5. The code of LM3Lused for these experiments is available in pyDML [31], which is 123 Metric learning for monotonic classification: turning the space up to the limits of monotonicity 4449 Table 1 Datasets used in the experiments Dataset # Samples # Features # Classes Attribute directions Non-Monotonic pairs / Comparable pairs (%) autoMPG8 392 7 5 (-,-,-,-,+,+,+) 0.044 / 36.14 car 1728 6 4 All direct (+) 0.246 / 39.67 ERA 1000 4 9 All direct (+) 3.349 / 16.77 ESL 482 4 7 All direct (+) 0.585 / 59.81 LEV 1000 4 5 All direct (+) 1.330 / 24.08 machineCPU 209 6 5 (-,+,+,+,+,+) 1.196 / 46.24 pima 768 8 2 All direct (+) 0.151 / 6.576 SWD 1000 10 4 All direct (+) 0.949 / 12.62 balance 625 4 3 (-,-,+,+) 0.000 / 25.64 boston-housing 506 13 5 (-,+,-,+,-,+,-,+,-,-,-,+,-) 0.299 / 14.60 a Python library containing various distance metric learning algorithms. Table 2shows the results of the classification performance. This table also includes, for each combination of distance and classifier, its average ranking over all the combinations of distance and classifiers (AVG RANK [ALL]) and its average ranking within the distances that use the same classifier (AVG RANK [IN]). The combination of distance and classifier with the highest value or C-INDEX and MAE for each dataset is highlighted in bold. To evaluate the fulfillment of the monotonic constraints we rely on the non monotonicity index (NMI). This metric is a normalized measure of how many samples do not fulfill a monotonic constraint. This can be used to evaluate both the monotonicity of the transformed training dataset after applying LM3Land the monotonicity of the predicted samples with respect the training dataset. For a training set Xand a labeled point (x,y)∈Rd×{1,...,C}we define NClashX(x)=|{xi∈X:(xi<xand yi>y)or (xi>xand yi<y)}|. Then, the NMI of the labeled dataset Xwith respect to the labeled dataset Yis defined as NMI(X,Y)=1 |X||Y|−|X∩Y| x∈Y NClashX(x). We can use the NMI in different ways. If we want to measure the monotonicity of the original training set X, we can use NMI(X,X). If we want to measure the monotonicity of the training set after being transformed by a linear map L∈ Md(R), we can use NMI(LX,LX). Finally, if we want to measure the monotonicity of a set of test samples and their predictions, Xt, with respect to the training set, we can use NMI(LX,Xt). Table 3shows the results regarding the fulfillment of the monotonic constraints. In this table, the metric NMI-TRAIN represents the NMI for the training sets, for the Euclidean distance (that is, with no transformations applied) and for the transformed dataset using the distance learned by LM3L. The NMI-TEST metric represents each of the NMIs of the training sets for each distance, with respect to the sets of predicted values by each of the classifiers for the test set. We also show the total of comparable pairs in the training set (CP-TRAIN), and between the training and test sets (CP-TEST), for each of the distances. The lowest values of NMI and CP for each dataset are highlighted in bold. Finally, we also include in Table 5the time required for LM3Lto learn the distance within each dataset. It is important to note that these times are independent of the classifier employed, as the distance is learned independently of the classification stage. In addition, there is no comparison with the Euclidean distance, opposed as it was done in Table 2. One might assume that the Euclidean distance requires zero time, but in reality, no distance learning process occurs in that scenario. The provided timings illustrate that the algorithm scales effectively in response to the growing number of samples in the datasets. This can be primarily attributed to the local nature provided by the neighborhood filter during triplet generation. 4.3 Analysis of results Based on the results presented in Tables 2and 3, we can make the following observations. Firstly, we can conclude that the performance of the Med-k-NN classifier improves significantly when combined with LM3Lin terms of both MAE and C-INDEX. In fact, the combination of LM3Land Med-k-NN is the most successful one in the experiments. In contrast, the combination of LM3Lwith monotonic classifiers yielded less competitive results compared to non-monotonic classifiers, often performing worse than the Euclidean distance in 123 4450 J. L. Suárez et al. Table 2 MAE and C-INDEX of the distance and classifiers on each dataset Dataset k-NN Med-k-NN Mon-k-NN (IR) Mon-k-NN (OR) Mon-F-k-NN (IR) Mon-F-k-NN (OR) Euclidean LM3LEuclidean LM3LEuclidean LM3LEuclidean LM3LEuclidean LM3LEuclidean LM3L C-INDEX autoMPG8 0.918457 0.920312 0.920898 0.925040 0.920753 0.925040 0.919799 0.925040 0.919230 0.911326 0.918868 0.912257 car 0.963044 0.972001 0.962430 0.974398 0.971015 0.974398 0.970817 0.974398 0.964425 0.736149 0.942335 0.718687 ERA 0.692304 0.683062 0.696339 0.692771 0.675817 0.662343 0.675817 0.662343 0.702484 0.698284 0.700877 0.701683 ESL 0.911469 0.914401 0.917153 0.918642 0.912686 0.901638 0.911558 0.902055 0.917847 0.915939 0.918671 0.916644 LEV 0.803299 0.816627 0.804052 0.819050 0.768287 0.736397 0.768287 0.736397 0.818089 0.815131 0.822355 0.821664 machineCPU 0.857039 0.854280 0.860909 0.867868 0.880012 0.877510 0.873755 0.874879 0.863247 0.869615 0.855029 0.870145 pima 0.705144 0.712881 0.705144 0.712881 0.706292 0.706473 0.709292 0.706473 0.719280 0.667439 0.685984 0.665552 SWD 0.742335 0.743421 0.749917 0.752555 0.685411 0.674434 0.689080 0.674434 0.759628 0.757493 0.761008 0.754048 balance 0.903139 0.898828 0.933961 0.940843 0.946904 0.948984 0.946882 0.948657 0.948366 0.951353 0.944890 0.944437 boston-housing 0.780491 0.848367 0.795450 0.853051 0.803741 0.853051 0.799271 0.853051 0.819694 0.810555 0.773578 0.810751 AVG SCORE 0.827672 0.836418 0.834625 0.845710 0.827092 0.826027 0.826456 0.825773 0.843229 0.813328 0.832360 0.811587 AVG RANK [ALL] 8.863636 6.409091 6.954545 3.772727 6.818182 6.454545 7.363636 6.636364 4.090909 7.090909 6.363636 7.181818 AVG RANK [IN] 1.666667 1.333333 1.833333 1.166667 1.416667 1.583333 1.416667 1.583333 1.250000 1.750000 1.333333 1.666667 MAE autoMPG8 0.342740 0.322085 0.332608 0.306889 0.334720 0.306889 0.337281 0.306889 0.329528 0.359831 0.331758 0.360091 car 0.052658 0.050339 0.054392 0.049193 0.030085 0.049193 0.031826 0.049193 0.056113 0.256990 0.090264 0.270272 ERA 1.411089 1.465980 1.300229 1.310030 1.527210 1.556053 1.527210 1.556053 1.291049 1.300199 1.293127 1.292118 ESL 0.331710 0.327648 0.321226 0.317207 0.352483 0.396309 0.356799 0.396309 0.342489 0.346530 0.335982 0.338046 LEV 0.438115 0.415123 0.421073 0.405062 0.496170 0.544144 0.496170 0.544144 0.398021 0.407012 0.384050 0.389021 machineCPU 0.613086 0.612891 0.574255 0.560191 0.489040 0.513241 0.508696 0.527438 0.549397 0.527777 0.572187 0.543366 pima 0.247441 0.247432 0.247441 0.247432 0.244826 0.251328 0.240905 0.251328 0.244835 0.259138 0.247449 0.260453 SWD 0.479069 0.482130 0.448037 0.450157 0.503911 0.536098 0.499966 0.536098 0.442002 0.447038 0.440997 0.450057 balance 0.148918 0.158031 0.147267 0.134311 0.083351 0.087984 0.083351 0.091236 0.092991 0.092927 0.129795 0.129666 boston-housing 0.588659 0.422635 0.549184 0.406773 0.499192 0.406773 0.517014 0.406773 0.672612 0.473747 0.570193 0.477609 AVG SCORE 0.465349 0.450429 0.439571 0.418725 0.456099 0.464801 0.459922 0.466546 0.441904 0.447119 0.439580 0.451070 AVG RANK [ALL] 8.590909 6.590909 6.409091 4.318182 6.000000 7.227273 6.454545 7.590909 5.363636 6.636364 5.818182 7.000000 AVG RANK [IN] 1.750000 1.250000 1.833333 1.166667 1.166667 1.833333 1.166667 1.833333 1.250000 1.750000 1.333333 1.666667 123 Metric learning for monotonic classification: turning the space up to the limits of monotonicity 4451 Fig. 7 Effect of Kon C-Index and MAE in autoMPG8 Fig. 8 Effect of Kon C-Index and MAE in boston-housing Fig. 9 Effect of the number of iterations on C-Index and MAE in autoMPG8 123 4458 J. L. Suárez et al. Fig. 10 Effect of number of iterations on C-Index and MAE in boston-housing Fig. 11 Posterior distributions using C-Index for the Bayesian comparison between the best model and the rest of the classifiers and distances 123 Metric learning for monotonic classification: turning the space up to the limits of monotonicity 4459 In the figures we can observe that a good performance of the algorithm is usually achieved when the neighborhood size is 50 or higher. The optimal value may vary but, in general, a higher quality is obtained when the neighborhood size is in this range. Influence of the number of iterations Lastly, we study how the number of iterations of the gradient optimization affects the convergence of the algorithm. Figures 9and 10 show the effect of the number of iterations on the C-Index and MAE, in a range from 10 to 500 with a step of 10. From the graphics we can conclude that the algorithm seems to converge with a number of iterations around 300, and there does not seem to be overfitting, as a higher number of iterations does not imply a worsening in the values of the metrics in this case. 5 Conclusion In this paper, we have presented a new distance metric learning algorithm developed specifically for monotonic classification that, for the first time, exploits the potential of linear transformations to reduce the non-monotonicity of the dataset, thanks to the use of M-matrices. In addition, the distances learned allow us to improve the classification performance of the classifiers analyzed. Fig. 12 Posterior distributions using MAE for the Bayesian comparison between the best model and the rest of the classifiers and distances 123 4460 J. L. Suárez et al. The results, supported by a Bayesian analysis, have shown that LM3Lcombined with the median vote nearest neighbors classifier can outperform even the monotonic distance-based classifiers. In addition, the transformation of the space performed by LM3Lallows the number of non-monotonic pairs in the dataset to be reduced without introducing any false new monotonic constraints. LM3Lis thus presented as an alternative to consider in monotonic classification problems based on distances or similarities. A Bayesian test simplex plots and posterior distributions This Appendix shows the pairwise Bayesian diagrams for the two comparisons described in Section 4.4.Thesimplex plots are ternary plots displaying a sample of the posterior distribution. There are three regions that correspond to either algorithm having a performance advantage and to the rope (practical equivalence); each region is centered at one different vertex of the simplex, so that a greater tendency of the points towards a region represents a greater probability for that option. The posterior distributions are also shown as barplots where the bars represent the probabilities of each of the algorithms being better than the other, or the probability that they are practically equivalent. These plots are shown for the two metrics considered in the experiments: MAE and C-Index. A.1 Comparison of the best model obtained with the rest of the algorithms This section shows the results of the Bayesian tests that compare Med-k-NN with each of the other algorithms. The results are displayed in Figs. 11,12,13, and 14. The simplex diagrams and posterior distribution barplots are shown for both MAE and C-Index metrics. Fig. 13 Simplex plots using C-Index for the Bayesian comparison between the best model and the rest of the classifiers and distances 123 Metric learning for monotonic classification: turning the space up to the limits of monotonicity 4461 Fig. 14 Simplex plots using MAE for the Bayesian comparison between the best model and the rest of the classifiers and distances 123 4462 J. L. Suárez et al. Fig. 15 Simplex plots and posterior distributions using C-Index for the Bayesian comparison between LM3Land the Euclidean distance for each classifier 123 Metric learning for monotonic classification: turning the space up to the limits of monotonicity 4463 Fig. 16 Simplex plots and posterior distributions using MAE for the Bayesian comparison between LM3Land the Euclidean distance for each classifier A.2 Comparison of distances within the same algorithm This section shows the results of the Bayesian tests that compare both Euclidean distance and the distance learned by LM3Lfor each of the classifiers used in the experiments. The results are shown in Figs. 15-16. The simplex diagrams and posterior distribution barplots are shown for both MAE and C-Index metrics. Author Contributions Juan Luis Suárez: Conceptualization, Methodology, Software, Investigation, Writing - review & editing, Validation. Germán González-Almagro: Conceptualization, Methodology, Writing - review & editing. Salvador García: Conceptualization, Methodology, Writing - review & editing, Investigation, Funding acquisition, Supervision. Francisco Herrera: Funding acquisition, Project administration, Supervision. Funding Funding for open access publishing: Universidad de Granada/CBUA. Funding for open access charge: Universidad de Granada / CBUA. Our work has been supported by the research projects PID2020- 119478GB-I00 and A-TIC-434-UGR20, and by a research scholarship (FPU18/05989), given to the author Juan Luis Suárez by the Spanish Ministry of Science, Innovation and Universities. Data availability and access The datasets used in this work are publicly available in the KEEL [37] repository (https://sci2s.ugr.es/ keel/datasets.php) and in the ORCA [17] repository (https://github. com/ayrna/orca), as a download link (http://www.uco.es/grupos/ayrna/ ucobigfiles/datasets-orreview.zip). Any of the specific folds used in the experimentation can be requested to the corresponding author on request. Declarations Competing interest The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper. Compliance with ethical standards The study was conducted in compliance with ethical standards, including obtaining informed consent from all participants and ensuring the confidentiality and anonymity of their data. 123 4464 J. L. Suárez et al. Ethical and informed consent for data used The data used in this study were publicly available datasets. No ethical approval was required for the use of these datasets. We adhered to best practices for data management, including ensuring the quality and reliability of the data and properly citing the source of the data. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecomm ons.org/licenses/by/4.0/. References 1. Ben-David A (1992) Automatic generation of symbolic multiattribute ordinal knowledge-based dsss: methodology and applications. Decis Sci 23(6):1357–1372 2. Benavoli A, Corani G, Demšar J, Zaffalon M (2017) Time for a change: a tutorial for comparing multiple classifiers through bayesian analysis. J Mach Learn Res 18(1):2653–2688 3. Benavoli A, Corani G, Mangili F, Zaffalon M, Ruggeri F (2014) A bayesian wilcoxon signed-rank test based on the dirichlet process. In: International conference on machine learning, pp 1026–1034 4. Berman A, Plemmons RJ (1994) Nonnegative matrices in the mathematical sciences. SIAM 5. Cano JR, Aljohani NR, Abbasi RA, Alowidbi JS, Garcia S (2017) Prototype selection to improve monotonic nearest neighbor. Eng Appl Artif Intell 60:128–135 6. Cano JR, Gutiérrez PA, Krawczyk B, Wo´zniak M, García S (2019) Monotonic classification: an overview on algorithms, performance measures and data sets. Neurocomputing 341:168–182 7. Carrasco J, García S, Rueda M, Das S, Herrera F (2020) Recent trends in the use of statistical tests for comparing swarm and evolutionary computing algorithms: practical guidelines and a critical review. Swarm Evol Comput 54:100665 8. Chen CC, Li ST (2014) Credit rating with a monotonicityconstrained support vector machine model. Expert Syst Appl 41(16):7235–7247 9. Chen D, Ye W (2022) Monotonic neural additive models: pursuing regulated machine learning models for credit scoring. In: Proceedings of the third ACM international conference on AI in finance, pp 70–78 10. Chen H, Jia Y, Ge J, Gu B (2022) Incremental learning algorithm for large-scale semi-supervised ordinal regression. Neural Netw 149:124–136 11. Cover TM, Hart PE et al (1967) Nearest neighbor pattern classification. IEEE Trans Inf Theory 13(1):21–27 12. Cunningham JP, Ghahramani Z (2015) Linear dimensionality reduction: survey, insights, and generalizations. J Mach Learn Res 16(1):2859–2900 13. Duivesteijn W, Feelders A (2008) Nearest neighbour classification with monotonicity constraints. In: Joint European conference on machine learning and knowledge discovery in databases. Springer, pp 301–316 14. Goldberger J, Hinton GE, Roweis ST, Salakhutdinov RR (2005) Neighbourhood components analysis. In: Advances in neural information processing systems, pp 513–520 15. Gönen M, Heller G (2005) Concordance probability and discriminatory power in proportional hazards regression. Biometrika 92(4):965–970 16. González S, García S, Li ST, John R, Herrera F (2021) Fuzzy knearest neighbors with monotonicity constraints: moving towards the robustness of monotonic noise. Neurocomputing 439:106–121 17. Gutiérrez PA, Perez-Ortiz M, Sanchez-Monedero J, Fernandez- Navarro F, Hervas-Martinez C (2015) Ordinal regression methods: survey and experimental study. IEEE Trans Knowl Data Eng 28(1):127–146 18. Keller JM, Gray MR, Givens JA (1985) A fuzzy k-nearest neighbor algorithm. IEEE Trans Syst Man Cybern (4):580–585 19. Kotłowski W, Słowi´nski R (2008) Statistical approach to ordinal classification with monotonicity constraints. In: Preference learning ECML/PKDD 2008 workshop 20. Leslie D (2019) Understanding artificial intelligence ethics and safety. arXiv preprint arXiv:1906.05684 21. Liu W, Xu D, Tsang IW, Zhang W (2018) Metric learning for multioutput tasks. IEEE Trans Pattern Anal Mach Intell 41(2):408–422 22. Ma Z, Chen S (2018) Multi-dimensional classification via a metric approach. Neurocomputing 275:1121–1131 23. Marques-Silva J, Gerspacher T, Cooper MC, Ignatiev A, Narodytska N (2021) Explanations for monotonic classifiers. In: International conference on machine learning. PMLR, pp 7469– 7479 24. Nguyen B, Morell C, De Baets B (2017) Supervised distance metric learning through maximization of the jeffrey divergence. Pattern Recogn 64:215–225 25. Nguyen B, Morell C, De Baets B (2018) Distance metric learning for ordinal classification based on triplet constraints. Knowl-Based Syst 142:17–28 26. Petersen KB, Pedersen MS et al (2008) The matrix cookbook. Technical University of Denmark 7(15):510 27. Qian Y, Xu H, Liang J, Liu B, Wang J (2015) Fusing monotonic decision trees. IEEE Trans Knowl Data Eng 27(10):2717–2728 28. Sang B, Chen H, Yang L, Wan J, Li T, Xu W (2022) Feature selection considering multiple correlations based on soft fuzzy dominance rough sets for monotonic classification. IEEE Trans Fuzzy Syst 30(12):5181–5195 29. Schoeffer J, Kuehl N, Machowski Y (2022) “there is not enough information”: on the effects of explanations on perceptions of informational fairness and trustworthiness in automated decisionmaking. In: 2022 ACM Conference on fairness, accountability, and transparency, pp 1616–1628 30. Schoeffer J, Kuehl N, Valera I (2021) A ranking approach to fair classification. In: ACM SIGCAS conference on computing and sustainable societies, pp 115–125 31. Suárez JL, García S, Herrera F (2020) pydml: a python library for distance metric learning. J Mach Learn Res 21(96):1–7 32. Suárez JL, García S, Herrera F (2021) Ordinal regression with explainable distance metric learning based on ordered sequences. Mach Learn 110(10):2729–2762 33. Suárez JL, García S, Herrera F (2021) A tutorial on distance metric learning: mathematical foundations, algorithms, experimental analysis, prospects and challenges. Neurocomputing 425:300–322 34. Suárez JL, González-Almagro G, García S, Herrera F (2022) A preliminary approach for using metric learning in monotonic classification. In: Advances and trends in artificial intelligence. Theory and practices in artificial intelligence: 35th International conference on industrial, engineering and other applications of applied intelligent systems, IEA/AIE 2022, Kitakyushu, Japan, July 19–22, 2022, Proceedings. Springer, pp 773–784 123 Metric learning for monotonic classification: turning the space up to the limits of monotonicity 4465 35. Tang M, Pérez-Fernández R, De Baets B (2020) Fusing absolute and relative information for augmenting the method of nearest neighbors for ordinal classification. Inf Fusion 56:128–140 36. Torresani L, Lee Kc (2007) Large margin component analysis. Adv Neural Inf Process Syst 19:1385 37. Triguero I, González S, Moyano JM, García López S, Alcalá Fernández J, Luengo Martín J, Fernández Hilario A, Díaz J, Sánchez L, Herrera F et al (2017) Keel 3.0: an open source software for multi-stage analysis in data mining. In: International journal of computational intelligence systems. Atlantis Press, pp 1238–1249 38. Truong T, Duong H, Le B, Fournier-Viger P, Yun U (2022) Frequent high minimum average utility sequence mining with constraints in dynamic databases using efficient pruning strategies. Appl Intell 52(6):6106–6128 39. Vargas VM, Gutiérrez PA, Barbero-Gómez J, Hervás-Martínez C (2023) Soft labelling based on triangular distributions for ordinal classification. Inf Fusion 40. Vargas VM, Gutiérrez PA, Hervás-Martínez C (2022) Unimodal regularisation based on beta distribution for deep ordinal regression. Pattern Recogn 122:108310 41. Wang F, Zhang C (2007) Feature extraction by maximizing the average neighborhood margin. In: 2007 IEEE conference on computer vision and pattern recognition. IEEE, pp 1–8 42. Wang J, Qian Y, Li F, Liang J, Ding W (2019) Fusing fuzzy monotonic decision trees. IEEE Trans Fuzzy Syst 28(5):887–900 43. Weinberger KQ, Saul LK (2009) Distance metric learning for large margin nearest neighbor classification. Journal of Machine Learning Research 10(Feb):207–244 44. Zhang X, Jiang Z, Xu W (2022) Feature selection using a weighted method in interval-valued decision information systems. Appl Intell, pp 1–20 Publisher’s Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Juan Luis Suárez received the B.Sc. degrees in Mathematics and Computer Science, and the M.Sc. and Ph.D. degrees in Computer Science from the University of Granada, Granada, Spain, in 2018, 2019 and 2024, respectively. He is currently a post-doctoral researcher in the Department of Computer Science and Artificial Intelligence at the University of Granada, and member of the Andalusian Research Institute in Data Science and Computational Intelligence (DaSCI). His research interests include data mining, data preprocessing, no standard classification, distance metric learning and AI safety. Germán González-Almagro received the Ph.D. and the M.Sc. degrees in data science from the University of Granada in 2019 and 2023, respectively. He is currently a research assistant at the Department of Computer Science and Artificial Intelligence and member of the Andalusian Data Science and Computational Intelligence Institute. His research revolves around data mining, data preprocessing, non-standard problems and semi-supervised learning. Salvador García received the B.Sc. and Ph.D. degrees in Computer Science from the University of Granada, Granada, Spain, in 2004 and 2008, respectively. He is currently a Full Professor in the Department of Computer Science and Artificial Intelligence, University of Granada, Granada, Spain. Dr. García has published more than 125 papers in international journals (more than 90 in Q1), h-index 64. As edited activities, he is an Editor in Chief of “Information Fusion” (Elsevier), and an associate editor of “Swarm and Evolutionary Computation” (Elsevier), “AI Communications” (IOS Press) and “Machine Learning” (Springer) journals. He is a co-author of the books entitled “Data Preprocessing in Data Mining”, “Learning from Imbalanced Data Sets” and “Big Data Preprocessing: Enabling Smart Data” published by Springer. His research interests include data science, data preprocessing, Big Data, evolutionary learning, deep learning and data-centric AI. He belonged to the list of the Highly Cited Researchers in the area of Computer Sciences (2014-2020): http://highlycited.com/ (Clarivate Analytics). Francisco Herrera (Senior Membrer, IEEE) received the M.Sc. Degree in mathematics in 1988, and the Ph.D. degree in mathematics in 1991, both from the University of Granada, Spain. He is a Professor in the Department of Computer Science and Artificial Intelligence at the University of Granada and Director of the Andalusian Research Institute of Data Science and Computational Intelligence (DaSCI). He’s an Academician in the Royal Academy of Engineering (Spain). He has been the Supervisor over 60 Ph.D. students. He has published more than 600 journal papers, receiving more than 147 000 citations (Scholar Google, H-index 182). He has been nominated as a Highly Cited Researcher (in the fields of computer science and engineering, respectively, 2014 to present, Clarivate Analytics). He acts as Editorial Member of a dozen of journals. His current research interests include among others, computational intelligence, information fusion and decision making, trustworthy artificial intelligence and data science (including data preprocessing, prediction and big data). 123 4466 J. L. Suárez et al.