betaFeedback

WorksComputer Science

Boosting the Learning for Ranking Patterns

Abstract

Pattern mining is a valuable tool for exploratory data analysis, but identifying relevant patterns for a specific user is challenging. Various interestingness mea- sures have been developed to evaluate patterns, but they may not efficiently estimate user-specific functions. Learning user-specific functions by ranking patterns has been proposed, but this requires significant time and training samples. In this paper, we present a solution that formulates the problem of learning pattern ranking functions as a multicriteria decision making problem. Our approach uses Analytic Hierarchy Process (AHP) to elicit weights for different interestingness measures based on user preference. We also propose an active learning mode with a sensitivity-based heuristic to minimize user ranking queries while still providing high-quality results. Experiments show that our approach significantly reduces running time and returns precise pattern ranking while being robust to user error, compared to state-of-the-art approaches.

Introduction

Data mining is a field that focuses on discovering relevant information from data and transforming it into useful knowledge. One of its significant subfields, pattern mining, involves searching and enumerating significant patterns in data. In recent years, there has been a notable shift in the pattern mining community from efficiency-based approaches to methods that can extract more meaningful patterns. Unfortunately, obtaining relevant results with traditional pattern mining methods can be challenging and time-consuming. There are two main issues: first, a vast number of patterns are discovered, many of which are redundant. Second, the preferences and domain experts’ background knowledge is not considered. The significance of incorporating user preferences and knowledge was initially highlighted by Silberschatz and Tuzhilin [34]. The fundamental concept is to represent the user’s preferences using objective interestingness measures. However, as noted in Bie [6], using objective quality measures has limited practical utility since interestingness is subject to the particular user and task at hand. The interestingness of a pattern is determined solely based on the data.

In recent years, there has been a growing emphasis on user-centered, interactive, and anytime pattern mining Dzyuba and van Leeuwen [13]; Boley et al. [8]; Dzyuba and van Leeuwen [15]. This paradigm highlights the need to quickly present users with patterns that are likely to be interesting to them, and to obtain feedback that will influence subsequent iterations of the interactive mining process. An important aspect of this framework is the ability to learn user-specific functions for ranking patterns from feedback. Although the idea of learning user-specific ranking functions was first investigated in Xin et al. (2006), it has been extended in recent years by Boley et al. [8] and Dzyuba et al. [13, 15] in the context of interactive pattern mining. Additionally, Xuguang Bao et al. [3] and Liang Chang et al. [12] have adapted interactive data mining for extracting interesting spatial co-location patterns. These approaches leverage standard machine learning techniques to learn weighted vectors based on selected pattern features, such as items, transactions, and length.

In Dzyuba and van Leeuwen [13], a linear ranking function is learned using support vector machines (RankingSVM). In Boley et al. [8]; Dzyuba and van Leeuwen [15], the authors propose using Stochastic Coordinate Descent (SCD) Shalev-Shwartz and Tewari [33] to learn a logistic function. While these methods enable the exploitation of user feedback to learn ranking functions, they also increase the computational cost of the learning task, particularly when the number of pattern-measure pairs used for ranking increases. Nonetheless, a crucial aspect of this framework is the ability to quickly present a set of patterns to the user and focus on what may be of interest using interestingness measures.

In this paper, we address the challenge of learning pattern ranking functions as a multicriteria decision making problem. To this end, we propose to use a weighted linear function to aggregate all the individual measures into a global ranking function. Linear functions have been widely adopted in learning to rank models because they are simple, interpretable, and efficient, yet can still effectively capture the underlying relationships between input features and relevance labels Burges et al [11]; Qin et al [26].

We propose a learning algorithm that is both fast and scalable, which enables us to maintain the expected weights of measures. Our approach leverages the Analytical Hierarchy Process (AHP) Saaty [30] and a set of user-ranked patterns to learn the weighting vector of measures. Specifically, we seek to maximize the correlation between the unknown user’s ranking function and the learned AHP-based ranking function. We previously introduced this approach in our work Belmecheri et al [4], where we presented the initial results of the passive version of the algorithm.

This study presents a new learning algorithm that can operate in both active and passive modes, specifically designed for pattern ranking. To improve performance in active mode, a sensitivity-based heuristic is proposed for selecting patterns. The algorithm is explained in detail using a running example. The approach was validated on large datasets using three different user simulations in both passive and active modes. The results indicate that the proposed approach is robust and can account for user mistakes and changes in ranking criteria in interactive learning scenarios.

We conducted experiments to evaluate the effectiveness of our approach using association rule mining as a case study Agrawal et al [1]. Our research questions were as follows: (1) Can user-specific preferences over all patterns be inferred from a sample of ranked patterns, and if so, what is the required input data size and learning time? (2) How does our new learning method based on AHP compare to the currently used method for learning user-specific ranking functions? (3) Is the sensitivity heuristic an appropriate choice for query selection in active learning mode? (4) How does the robustness of our approach compare to others in the face of user errors? Our experiments on various datasets demonstrated that our approach significantly reduces running time while accurately ranking patterns compared to state-of-the-art methods.

The paper is organized as follows: In § 2, we review the related work in pattern mining and ranking functions. In § 3, we provide some necessary preliminaries for our approach. § 4 formulates the problem we tackle and describes our proposed method. A running example is presented in § 5 to illustrate our approach. In § 6, we report and discuss the empirical results of our experiments. Finally, we conclude the paper in § 7.

Related work

Iterative/user-centric pattern mining has gained significant attention in recent years, where the user is involved in the mining process to improve the mining results by providing feedback. This approach is particularly useful in domains like medical diagnosis or fraud detection, where the user’s domain knowledge is essential. To make this process more efficient and effective, researchers have been exploring methods to learn ranking functions that can quickly present patterns to the user based on their interests. This problem, known as object ranking, has been studied extensively in machine learning and data mining communities. One common approach to object ranking is to learn a ranking function based on pairwise comparisons. However, these methods can be time-consuming and expensive since they require a large number of pairwise comparisons to learn a reliable ranking function. To address this challenge, researchers have explored alternative methods such as multicriteria decision making. In our approach, we use the Analytical Hierarchy Process (AHP) to learn the measures’ weighting vector, which maximizes the correlation between the user’s ranking function and the learned AHP-based ranking function. In Xin et al (2006), the authors proposed a user-centric approach to mining interesting patterns based on the user’s feedback. They developed a log-linear model for itemsets that considers the user’s prior knowledge about the items and their relationships. The model was trained using RankingSVM formulations to learn a ranking function that assigns a score to each itemset. The authors also proposed a belief model that exploits belief probabilities assigned to transactions for more complex patterns. The authors demonstrated that their approach outperformed existing methods in terms of accuracy and efficiency for complex patterns where traditional methods may fail to capture the user’s preferences.

Dzyuba et al. Dzyuba and van Leeuwen [14] extended the approach proposed by Xin et al.Xin et al (2006) and used RankingSVM for active preference learning to rank patterns. However, these methods suffer from computational inefficiencies, which limit their scalability on large datasets. In contrast, the AHP-based approach proposed in our work has a linear time complexity and can efficiently rank a large number of patterns.

In Bhuiyan and Al Hasan [5], the authors proposed a user-centric generic framework (PRIIME) for learning ranking functions. In order to achieve this, regression techniques based on neural networks were adopted. . They assigned a score to each pattern based on user feedback and trained a regression model on labeled patterns and their corresponding scores. The model predicts the score of new patterns based on their features and the user feedback. The proposed method outperformed existing methods in terms of accuracy and efficiency and can effectively mine interesting patterns and provide valuable insights to the user.

In Bao et al [3], an efficient interactive approach is proposed for users to discover their preferred co-location patterns. The approach consists of a flexible interactive framework, an ontology-based similarity measure between co-location patterns, a pattern filtering model to express user preferences, and a pruning scheme to reduce the number of outputs.

In Chang et al [12], the authors propose IDMBS (Interactive Data Mining based on Support Vector Machine), an interactive mining system that uses SVM to discover user-preferred co-location patterns. The system includes a filtering algorithm to select patterns, which are then annotated by the user, and an SVM model to train on these patterns and discover additional user-preferred co-location patterns.

Our proposed approach tackles the problem of learning a user-specific function for ranking patterns as a multicriteria decision making problem using AHP. Moreover, our method remains fast when the number of patterns used for ranking increases.

Most of the related work uses SVM-based algorithms to learn a user-specific function. According to Bottou and Lin [9], the worst-case time complexity of the SVM algorithm varies between k2k^{2} and k3k^{3} on the number of samples kk; whereas our approach is linear on kk (see § 4.4).

Background

In this section, we provide the necessary background information about pattern mining, interestingness measures commonly used to evaluate pattern quality, and multi-criteria decision making using the AHP method.

Pattern mining and interestingness measures

Data of all types can be represented as a triplet (O,A,L)(\mathcal{O}, \mathcal{A}, \mathcal{L}), where O\mathcal{O} is a set of objects, A\mathcal{A} is a set of attributes, and L\mathcal{L} is the relational language used to express objects with respect to a set of attributes. This framework is inspired by the concepts of inductive databases Raedt [27]; Imielinski and Mannila [21]. The language L\mathcal{L} can be used to define various types of datasets. For instance, when L\mathcal{L} is a binary relation between attributes and objects (i.e., L⊆O×A\mathcal{L} \subseteq\mathcal{O} \times\mathcal{A}), we get the classical itemset mining framework. When L\mathcal{L} expresses each object as a sequence of attributes, we get a sequential dataset. Finally, when L\mathcal{L} expresses each object as a graph where nodes and edges are labeled, we get a dataset of graphs.

The goal of data mining is to uncover meaningful patterns or regularities between objects within large datasets. To evaluate the quality of these patterns and determine the most relevant ones, interestingness measures are employed.

The field of data mining is actively researching how to measure the interestingness of discovered patterns with respect to user-specific preferences. Nine concepts have been introduced to assess the interestingness of patterns: Conciseness, Generality, Reliability, Peculiarity, Diversity, Novelty, Surprisingness, Utility, and Applicability Geng and Hamilton [19]. Some of these concepts are correlated, such as Surprisingness and Applicability, while others are conflicting, like Generality and Peculiarity, and some are independent, like Novelty and Utility. Depending on the user’s preferences, they may value certain concepts over others. To satisfy these preferences, a wide range of measures and aggregation techniques have been proposed Geng and Hamilton [20]; Kuznetsov and Makhalova [23].

Analytical Hierarchy Process (AHP)

AHP is a popular multicriteria decision-making method created by Saaty [30]. It involves breaking down the decision problem into a hierarchical structure and deriving criteria weights from the decision maker using pairwise comparisons, rather than relying solely on numerical values. After constructing a decision problem hierarchy using the AHP method, the importance weights of criteria can be determined through the following three main steps:

Analytical Hierarchy Process (AHP)

  1. To estimate the relative importance of mm criteria at a given level, the user is asked to make pairwise comparisons between them. These comparisons are used to construct a pairwise comparison matrix A\mathbf{A} of size m×mm \times m, where aija_{ij} represents the importance of criterion ii relative to criterion jj. If aij>1a_{ij} > 1, it means that criterion ii is considered more important than criterion jj. To ensure consistency, the matrix is filled such that aij=1/ajia_{ij} = 1/a_{ji} and aii=1a_{ii} = 1. AHP uses a scale of 1 to 9 to quantify the preference degree, where 1 indicates indifference and 9 indicates absolute preference.

  1. After constructing the pairwise comparison matrix at a given level, various mathematical techniques proposed in the literature can be used to compute the weight vector w=(w1,…,wm)T\mathbf{w} = (w_1, \ldots, w_m)^T. These techniques include the eigenvector method (EVM) Saaty and Vargas [32]; Takeda et al. [35] and distance-based minimization methods, such as the Least Squares Method, Logarithmic Least Squares Method, Weighted Least Squares Method, Logarithmic Least Absolute Values Method, and Singular Value Decomposition Gass and Rapcsák [18]; Blankmeyer [7]; Brunelli [10]. The EVM method is the most commonly used and computes the weight vector w\mathbf{w} by solving the following characteristic equation:

{A⋅w=λmax⁡⋅wwT1=1(1)\begin{cases} \mathbf{A} \cdot\mathbf{w} = \lambda_{\max} \cdot\mathbf{w} \\ \mathbf{w}^{T}\mathbf{1} = 1 \tag*{(1)} \end{cases}

where A\mathbf{A} is the pairwise comparison matrix, λmax⁡\lambda_{\max} is the highest eigenvalue of A\mathbf{A}, and 1=(1,…,1)T\mathbf{1} = (1, \ldots, 1)^T. The constraint ∑i=1mwi=1\sum_{i=1}^{m} w_i = 1 is added to help the solving process and avoid infinitely many solutions. Note that, if A\mathbf{A} is positive then the highest eigenvalue is real (i.e. λmax⁡∈R\lambda_{\max} \in\mathbb{R}) Brunelli [10]. Interestingly, Saaty [29] mentioned that the perfect1 normalized eigenvector w\mathbf{w} satisfies the following relation:

aij=wiwj, ∀i,j=1…m.(2)a_{ij} = \frac{w_i}{w_j}, \ \forall i,j = 1 \ldots m. \tag*{(2)}

In this case, λmax⁡=m\lambda_{\max} = m only when the comparison matrix is perfectly consistent; otherwise, λmax⁡\lambda_{\max} is greater than mm. This equation explains why some researchers prefer distance-based methods, which aim to minimize the distance between (aij)m×m(a_{ij})_{m \times m} and (wi/wj)m×m(w_i/w_j)_{m \times m} directly. However, this leads to a non-linear and difficult-to-solve problem. Therefore, in this paper, we use the EVM method instead of distance-based methods.

  1. Since AHP does not guarantee the transitivity of the user’s preferences, the pairwise comparison may result in inconsistencies. To detect these inconsistencies, a consistency check is used by calculating the consistency ratio (CR), defined as CR=CI/RICR = CI/RI, where RIRI is a constant obtained from the Random Consistency Index table of AHP. The consistency index of the EVM method is computed as follows:

CI=λmax⁡−nn−1(3)CI = \frac{\lambda_{\max} - n}{n - 1} \tag*{(3)}

The reliability of the computed weighting vector ww (solution of Equation (1)) is assessed by checking whether the CR value is less than 0.1.

It is common for hierarchies to contain multiple levels of criteria, especially when there are more than nine criteria. To handle this, it is beneficial to establish a hierarchy based on existing dependencies between the criteria. This can help optimize the decision-making process and reduce the number of required pairwise comparisons. For further information on this topic, we recommend referring to Brunelli [10]. However, in this paper, we will not delve into this aspect. In Example 1, we illustrate the AHP process.

Example 1 Consider a decision problem involving three criteria, where we aim to determine their relative importance in achieving an overall goal. To do so, we construct a pairwise comparison matrix A=(aij)3×3A=(a_{ij})_{3\times3}, where each element aija_{ij} represents the relative importance of criterion ii compared to criterion jj. The matrix is given as follows:

A=(M1M2M3M111/21/4M2211/2M3421)A = \begin{pmatrix} & M_1 & M_2 & M_3 \\ M_1 & 1 & 1/2 & 1/4 \\ M_2 & 2 & 1 & 1/2 \\ M_3 & 4 & 2 & 1 \end{pmatrix}

To determine the weights of the criteria, we can employ the EVM method, which involves solving the equation Aw=λmax⁡wA w = \lambda_{\max} w. The resulting weight vector is given by w=(w1,w2,w3)=(1/7,2/7,4/7)w=(w_1,w_2,w_3)=(1/7,2/7,4/7), where each component represents the weight of the corresponding criterion.

AHP-based learning approach for ranking patterns

We aim to develop a ranking function that combines a set of interestingness measures while also taking into account user-specific preferences.

Problem statement: learning pattern rankings

In this section, we demonstrate that learning a ranking function that incorporates a set of interestingness measures to approximate user-specific preferences can be formulated as a multicriteria decision-making problem. In this context, the criteria correspond to the interestingness measures. The objective of this task is to learn a ranking function for patterns based on a sample of ordered patterns. To accomplish this, we adopt the approach of ordered feedback, where users are asked to provide a total order over a small set of patterns based on their subjective interestingness. This approach is inspired by previous research Dzyuba et al [16].

Let ▹\triangleright be a binary preference relation between patterns. A ranking function based on ▹\triangleright, denoted by r▹(⋅)r_{\triangleright}(\cdot), takes as input a subset of patterns P⊆L\mathcal{P}\subseteq\mathcal{L} and returns as output a permutation S=⟨Pr1,Pr2,…,Prn⟩S=\langle P_{r_1},P_{r_2},\ldots,P_{r_n}\rangle of P\mathcal{P}, such that ∣P∣=∣S∣|\mathcal{P}|=|S| and ∀i,j∈[1,n],i<j,Pri▹Prj\forall i,j\in[1,n], i<j, P_{r_i}\triangleright P_{r_j}.

We aim to learn the user ranking function denoted by r▹ur_{\triangleright_u}, which is based on the user preference relation ▹u\triangleright_u. To achieve this, we use a set of interestingness measures M={M1,…,Mm}\mathcal{M}=\{M_1,\ldots,M_m\} and their corresponding ranking functions r▹M1,…,r▹Mmr_{\triangleright_{M_1}},\ldots,r_{\triangleright_{M_m}}.

The rank of pattern Pj∈PP_j \in\mathcal{P} w.r.t. the interestingness measure MiM_i is denoted by rank⁡Mi(Pj)\operatorname{rank}_{M_i}(P_j). Here, (Pk▹MiPl)(P_k \triangleright_{M_i} P_l) means that Mi(Pk)≥Mi(Pl)M_i(P_k) \ge M_i(P_l).

To frame the ranking problem as a learning problem, we need to find the weights wiw_i of a linear aggregation function over the measures from a set of ranked patterns that maximizes the correlation with the user ranking function r▹ur_{\triangleright_u}. Specifically, we aim to find the coefficients of the following function by solving a multi-criteria optimization problem:

fw(P)=∑i=1..mwi⋅Mi(P)(4)f_w(P) = \sum_{i=1..m} w_i \cdot M_i(P) \tag*{(4)}

Our approach leverages user feedback to perform pairwise comparisons between measures and estimate their relative importance based on individual measure scores. The pairwise comparison results are then aggregated into a matrix, which is used by the Analytic Hierarchy Process (AHP) to compute the weights wiw_i for each measure.

Comparing a single measure to a user ranking.

Let S=⟨P1,…,Pn⟩S = \langle P_1, \ldots, P_n \rangle be a user ranking of patterns. Let M={M1,…,Mm}\mathcal{M} = \{M_1, \ldots, M_m\} be a set of interestingness measures for patterns. To evaluate how well a particular measure performs in terms of overall ranking accuracy compared to a user ranking, we use Kendall’s W concordance coefficient Kendall and Smith [22]. For a measure MiM_i and a user ranking SS, we define Ki(S)∈[0,1]K_i(S) \in[0,1] as the Kendall’s W coefficient between the ranking obtained using MiM_i and the user ranking SS, where a value of 1 indicates perfect concordance and a value of 0 indicates no concordance.

Ki(S)=12α∣S∣3−∣S∣,α=∑ℓ=1∣S∣(Rℓ−Rˉ)2,(5)K_i(S) = \frac{12\alpha}{\lvert S\rvert^3-\lvert S\rvert}, \qquad\alpha= \sum_{\ell=1}^{\lvert S\rvert}(R_\ell-\bar{R})^2, \tag*{(5)}

where Rℓ=rank⁡Mi(Pℓ)+rank⁡u(Pℓ)R_\ell= \operatorname{rank}_{M_i}(P_\ell) + \operatorname{rank}_u(P_\ell) with Pℓ∈SP_\ell\in S, and Rˉ=1∣S∣∑ℓ=1∣S∣Rℓ\bar{R} = \frac{1}{\lvert S\rvert}\sum_{\ell=1}^{\lvert S\rvert}R_\ell.

Comparing two measures according to a user ranking.

Let MiM_i and MjM_j be two measures to be compared based on a given user ranking SS. We can compute the gap Δi,j(S)=Ki(S)−Kj(S)\Delta_{i,j}(S) = K_i(S) - K_j(S) to determine how much MiM_i is closer to the user ranking SS than MjM_j. If Δi,j(S)≥0\Delta_{i,j}(S) \ge0, then MiM_i is closer, otherwise, the converse is true. When considering a set of user rankings S={S1,…,Sn}S = \{S_1, \ldots, S_n\}, comparing two measures MiM_i and MjM_j on SS involves estimating the measure closest to SS by averaging the gaps over all the user rankings in SS: Δi,j=1n∑Sk∈SΔi,j(Sk)\Delta_{i,j} = \frac{1}{n}\sum_{S_k \in S}\Delta_{i,j}(S_k).

Learning weights process

The function 1 implements the learning process that computes a weight vector ww (a weight for each measure) by exploiting the pairwise comparisons of measures. It takes as inputs a vector of pairwise comparisons Δ\Delta and its corresponding index ll, a user ranking SS, and a set of measures M\mathcal{M}. The learning step is performed at line 2 where for each pair of measures, we first compute the Kendall W coefficient for each measure ii with respect to the user ranking SS (Ki(S)K_i(S)). Then, we compute the gap between the pairs.

The function 1 implements the learning process that computes a weight vector ww (a weight for each measure) by exploiting the pairwise comparisons of measures. It takes as inputs a vector of pairs comparisons Δ\Delta and the corresponding index ll, a user ranking SS, and a set of measures M\mathcal{M}. The function incrementally updates Δ\Delta by taking into account the previous ll user rankings at line 3. At line 5, the AHP matrix is constructed by scaling the Δi,j\Delta_{i,j} comparisons to the AHP values between 1/91/9 and 99. Once constructed, the criteria weight vector ww is returned in line 12 by solving the minimization problem described in line 11, using the eigenvector method (EVM) Brunelli [10].

Algorithm 1 learnWeights(⟨Δ,l⟩,S,M\langle\Delta,l\rangle,S,\mathcal{M})

In : Set of measures M={M1,…,Mm}\mathcal{M}=\{M_1,\ldots,M_m\}; user ranking S=⟨P1,…,Pn⟩S=\langle P_1,\ldots,P_n\rangle;

Out : Weight vector ww;

  1. A[i,j]←1, ∀i,j∈{1,…,m}A[i,j]\leftarrow1,\ \forall i,j\in\{1,\ldots,m\};

  2. foreach Mi,Mj∈M:i<jM_i,M_j\in\mathcal{M}:i<j do

  3. Δi,j←(Ki(S)−Kj(S))\Delta_{i,j}\leftarrow(K_i(S)-K_j(S));

  4. end

  5. foreach Δi,j∈Δ\Delta_{i,j}\in\Delta do

  6. if Δi,j<0\Delta_{i,j}<0 then

  7. scale Δi,j\Delta_{i,j} to (−9…−1)(-9\ldots-1); A[j,i]←∣Δi,j∣A[j,i]\leftarrow|\Delta_{i,j}|; A[i,j]←1/∣Δi,j∣A[i,j]\leftarrow1/|\Delta_{i,j}|;

  8. else

  9. scale Δi,j\Delta_{i,j} to (1…9)(1\ldots9); A[i,j]←Δi,jA[i,j]\leftarrow\Delta_{i,j}; A[j,i]←1/Δi,jA[j,i]\leftarrow1/\Delta_{i,j};

  10. end

  11. w←solve⁡(A⋅w=λmax⁡⋅wsubject to ∑j=1mwj=1,wj>0, ∀j=1…m.)w\leftarrow\operatorname{solve}\left(\begin{aligned} A\cdot w&=\lambda_{\max}\cdot w\\ \text{subject to }&\sum_{j=1}^{m}w_j=1,\quad w_j>0,\ \forall j=1\ldots m.\end{aligned}\right)

  12. return ww;

After learning the weight vector ww, we use it to compute the score of a given pattern PiP_i by applying a weighted aggregation function:

gw(Pi)=∑Mi∈Mwi scale⁡(Mi(P))(6)g_w(P_i)=\sum_{M_i\in\mathcal{M}}w_i\,\operatorname{scale}(M_i(P)) \tag*{(6)}

The scale⁡\operatorname{scale} function is used to normalize the interestingness values of the different measures to a [0,1][0,1] scale so that they can be combined using the weighted aggregation function.

AHPRank algorithm

We propose Algorithm 2 to implement the AHPRank function (Algorithm 1) for learning a weight vector in a passive/active mode. The algorithm takes as input a set of measures M\mathcal{M}, a set of user-ranked patterns S\mathcal{S}, and a triplet of parameters ⟨P,θ,T⟩\langle P, \theta, T\rangle. Here, PP is a collection of patterns, θ\theta is a sample parameter used in the query generator for active learning, and TT is the maximum number of iterations used as a stopping criterion in the algorithm.

AHPRank initializes the vector of pairs comparisons to zero in line 1. If AHPRank is called with a non-empty S\mathcal{S}, it runs in passive mode by calling learnWeights function on the given user-ranked patterns S\mathcal{S} (lines 3-6). This produces a weight vector ww. Otherwise, it runs in active mode by submitting TT queries to the user (lines 7-15). In the active mode, the user is asked to rank a subset of patterns proposed by a query generator. Our query generator is based on a heuristic that exploits the quality of the weights learned from the previous iterations. The active learning mode follows the following iterative steps:

  1. As a first step, a subset of patterns is sampled from the global set of patterns PP using a random sampling approach. At line 10, the function SamplePatterns is called, which returns a sample P′P' of θ\theta patterns.

  2. Use the SensitivityBasedHeuristic function to select a pair of patterns. This heuristic is designed to select a high-quality pair of patterns to accelerate the convergence of the learning process (see function 3 in § 4.3.1 for details).

  3. Interacting with the user to obtain feedback through a ranking query (line 12).

  4. AHP-based learning of the user ranking function is performed by calling the learnWeights function on the user-provided ranking query (line 13).

The proposed method is designed to handle large sets of patterns, which can be computationally expensive to process. To address this issue, we introduce two steps in the active learning mode. First, we randomly sample a subset of patterns from the global set PP, which reduces the complexity of the second step as well as introduces a diversity factor. Second, we use a sensitivity-based heuristic to select pairs of patterns that are of high quality and diverse.

It is important to determine when to stop the learning process. Our method allows for a custom stopping criterion, but we also consider the case where a fixed number of iterations TT is used. This simulates the scenario where the user can stop at any time based on their satisfaction with the learned ranking function.

A Pattern Selection Heuristic for AHPRank

Active learning is a challenging task since each learning step needs to enhance the learned function. The selection of appropriate patterns for the user to rank is the key to improving the learning process incrementally. However, generating the ideal set of patterns is a computationally demanding task and is known to be NP-hard Ailon [2]. To address this issue, we propose a heuristic (Function 3) based on sensitivity analysis for AHP models ERKUT and TARIMCILAR [17]. Our heuristic aims to select a pair of patterns that are close in terms of their overall score predicted by the learned function relative to the sum of the measure gaps:

σ(Pi,Pj)=∣gw(Pi)−gw(Pj)∣∑ℓ=1m(Mℓ(Pi)−Mℓ(Pj))∣∣; i,j∈1…k.(7)\sigma(P_i,P_j)=\left|\frac{g_w(P_i)-g_w(P_j)}{\left|\sum_{\ell=1}^{m}(M_\ell(P_i)-M_\ell(P_j))\right|}\right|;\ i,j\in1\ldots k. \tag*{(7)}

Algorithm 2 AHPRank(M,S,⟨P,θ,T⟩\mathcal{M}, \mathcal{S}, \langle\mathcal{P}, \theta, T\rangle)

In : Set of measures M={M1,…,Mm}\mathcal{M} = \{M_1, \ldots, M_m\}; Passive mode (S≠∅\mathcal{S} \ne\emptyset): Set of user-ranked patterns S={S1,…,Sn}\mathcal{S} = \{S_1, \ldots, S_n\}; Active mode (S=∅\mathcal{S} = \emptyset): Collection of patterns P\mathcal{P}; Sample size θ\theta; Number of iterations TT;

Output: wtw^t : weighting vector at the last iteration tt;

  1. foreach Δi,j∈Δ\Delta_{i,j} \in\Delta do Δi,j←0\Delta_{i,j} \leftarrow0;

  2. if S≠∅\mathcal{S} \ne\emptyset then

  3. &nbsp;&nbsp;&nbsp;&nbsp;foreach Sk∈SS_k \in\mathcal{S} do

  4. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;wt←LearnWeights⁡(⟨Δ,k⟩,Sk,M)w^t \leftarrow\operatorname{LearnWeights}(\langle\Delta,k\rangle,S_k,\mathcal{M}); // Learn weights

  5. &nbsp;&nbsp;&nbsp;&nbsp;end

  6. end

  7. else

  8. &nbsp;&nbsp;&nbsp;&nbsp;w0←1w^0 \leftarrow1; // Weight vector

  9. &nbsp;&nbsp;&nbsp;&nbsp;for t=1,2,…,Tt = 1, 2, \ldots, T do

  10. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;P′←SamplePatterns⁡(P,θ)\mathcal{P}' \leftarrow\operatorname{SamplePatterns}(\mathcal{P},\theta); // Step 1

  11. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Qt←SensitivityBasedHeuristic⁡(P′,wt−1,M)Q_t \leftarrow\operatorname{SensitivityBasedHeuristic}(\mathcal{P}',w^{t-1},\mathcal{M}); // Step 2

  12. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;St∗←AskRanking⁡(Qt)S_t^* \leftarrow\operatorname{AskRanking}(Q_t); // Step 3

  13. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;wt←LearnWeights⁡(⟨Δ,t⟩,St∗,M)w^t \leftarrow\operatorname{LearnWeights}(\langle\Delta,t\rangle,S_t^*,\mathcal{M}); // Step4

  14. &nbsp;&nbsp;&nbsp;&nbsp;end

  15. end

  16. return wtw^t

A successful aggregation should have the property that if two patterns are close in overall predicted score, they should also be close in their measure values. Thus, the algorithm will be enforced into learning the correct preferences of the patterns when having the lowest σ\sigma value since the selected pair is surely close in terms of gwg_w values and very distant on the values of the measures. Example 2 illustrates the selection process of the function 3.

Example 2 Suppose we have two patterns P1P_1 and P2P_2 with four interestingness measures M=M1,M2,M3,M4\mathcal{M} = M_1, M_2, M_3, M_4. Let P1=⟨0.1,0.2,0.3,0.7⟩P_1 = \langle0.1, 0.2, 0.3, 0.7\rangle, P2=⟨0.7,0.3,0.2,0.1⟩P_2 = \langle0.7, 0.3, 0.2, 0.1\rangle, and let the current learned weight vector be w=⟨0.25,0.25,0.25,0.25⟩w = \langle0.25, 0.25, 0.25, 0.25\rangle. At this stage, gw(P1)=0.26g_w(P_1) = 0.26 and gw(P2)=0.26g_w(P_2) = 0.26. Although P1P_1 and P2P_2 have the same overall score, their measure values differ. This pair of patterns is an interesting candidate with σ(P1,P2)=0\sigma(P_1, P_2) = 0, where getting the user’s preference between them can improve the learning process and bring it closer to the user’s ranking.

Complexity Analysis

Proposition 1 (Time complexity) Algorithm 2 has a time complexity of O(nk)O(nk) in passive learning and O(n)O(n) in active learning when the number of interestingness measures is bounded.

Function 3 SensitivityBasedHeuristic($\mathcal{P}$, $w$, $\mathcal{M}$)

In : Collection of patterns $\mathcal{P}$; Weight vector $w$; Set of measures $\mathcal{M}$;
Output: $Pair$ : Selected pair of pattern

1 $\mathcal{P}' \leftarrow \operatorname{Sort}(\mathcal{P}, w)$;                 // sort $\mathcal{P}$ according to $g_w$
2 $Pair \leftarrow \varnothing$;
3 $\sigma_{\min} \leftarrow +\infty$;
4 for $i \in 1..|\mathcal{P}'|$ : $P_i, P_{i+1} \in \mathcal{P}'$ do
5     $score \leftarrow \sigma(P_i, P_{i+1})$;
      if $score < \sigma_{\min}$ then
6         $\sigma_{\min} \leftarrow score$;
          $Pair \leftarrow \{P_i, P_{i+1}\}$;
7     end
8 end
9 return $Pair$;

Proof. Let S={S1,…,Sn}\mathcal{S} = \{S_1, \ldots, S_n\} be a set of nn user rankings, where kk is the size of the largest ranking StS_t and mm is a bounded number of measures in M\mathcal{M}. Once the pairwise comparison matrix A\mathbf{A} is built, the preference vector of weights ww can be computed using various mathematical techniques, including the eigenvector-based method (EVM) Brunelli [10]. The worst-case time complexity of the EVM approach is O(m3)O(m^3) Pan and Chen [25], which is of constant time complexity O(1)O(1) since mm is constant. The time complexity of computing the matrix at line 3 of the learnWeights function is O(mnk)O(m n k) since Kendall’s WW is in O(k)O(k) (see Definition (5)). The complexity of lines 2, 5, and 11 in learnWeights are respectively O(nm2+mnk)O(n m^2 + m n k), O(m2)O(m^2), and O(m3)O(m^3). Notice that in AHP, it is demonstrated in Saaty and Ozdemir [31] that the number of criteria is recommended to be no more than seven ±2\pm2. Thus, assuming mm is a small and fixed number of measures, we can set m≤9m \le9 and obtain an asymptotic quadratic complexity of O(nk)O(n k) when AHP is in passive mode. In other words, the approach takes O(k)O(k) for each ranking in the given S\mathcal{S}. When AHP is in active mode, where queries are pairs of patterns (k=2k = 2), the time complexity is linear on the number of queries submitted to the user, i.e., O(n)O(n). □

It is important to emphasize that in practice, the set S\mathcal{S} is typically reduced to a single large ranking in passive learning mode (n=1n = 1 and a large kk), and to a set of nn queries consisting of pairs of patterns in active learning mode (large nn and k=2k = 2). As a result, AHPRank can run in linear time, with a complexity that is linear in kk for passive mode and linear in nn for active mode. This low complexity makes AHPRank a fast approach for learning a user ranking function, as supported by the experimental evaluation in § 6.

Running Example

To demonstrate our approach, we utilize an initial set of patterns P={P1,…,P10}\mathcal{P} = \{P_1, \ldots, P_{10}\}, along with a user ranking r▹ur_{\triangleright_u}, and five interestingness measures M={M1,…,M5}\mathcal{M} = \{M_1, \ldots, M_5\}. The user ranking for P\mathcal{P}, rankings given by MiM_i on P\mathcal{P}, and the

AHPRank results are presented in the columns of Table 1. It is important to note that none of the measures perfectly match the user ranking (column user).

userSSM1M_1 – rankM2M_2 – rankM3M_3 – rankM4M_4 – rankM5M_5 – rankgwg_w – rank
1P7P_70.95 10.48 80.79 20.30 90.80 10.72 1
2P3P_30.75 30.72 10.78 30.70 20.61 20.68 2
3P6P_60.80 20.49 70.50 90.65 40.60 30.61 3
4P1P_10.47 90.47 90.76 50.56 60.59 40.54 4
5P8P_80.56 60.65 40.63 80.69 30.40 50.53 5
6P10P_{10}0.57 50.50 60.80 10.4 80.02 100.34 8
7P5P_50.62 40.62 50.66 60.57 50.27 70.48 7
8P2P_20.48 80.66 30.65 70.1 100.05 90.33 9
9P4P_40.50 70.68 20.77 40.50 70.35 60.50 6
10P9P_90.02 100.1 100.05 100.8 10.25 80.18 10

Table 1. Running example with 10 patterns and 5 measures.

The data presented in Table 1 is utilized by our algorithm to construct the AHP Matrix and learn a weight vector ww over the set of interestingness measures M={M1,…,M5}\mathcal{M} = \{M_1, \ldots, M_5\}. For simplicity, we refer to the AHP algorithm in the passive mode with S={Sa=⟨P3,P1,P5,P2,P4⟩}S = \{S_a = \langle P_3, P_1, P_5, P_2, P_4\rangle\}. In this case, the user’s ranking order is P3▹uP1▹uP5▹uP2▹uP4P_3 \triangleright_u P_1 \triangleright_u P_5 \triangleright_u P_2 \triangleright_u P_4. AHP learns the weights by invoking learnWeights on SaS_a and computing the correlation between the user rankings of SaS_a and the rankings of the measures MiM_i. The matrix in (8) shows the Δ\Delta values for each measure pair. It is worth noting that no two measures perfectly match the user ranking (column user) for the pattern set PP.

To compute Δ1,2(Sa)\Delta_{1,2}(S_a), we need to calculate Kendall’s W K1(Sa)K_1(S_a) (resp., K2(Sa)K_2(S_a)) between the ranking of M1M_1 (resp., M2M_2) and the user ranking SaS_a. The value of Δ1,2(Sa)\Delta_{1,2}(S_a) is given by (K1(Sa)−K2(Sa))(K_1(S_a) - K_2(S_a)), which in this case is (0.25−0.25)=0(0.25 - 0.25) = 0. After scaling the values of Δ\Delta to (−9..−1)(-9.. -1) for negatives and (1..9)(1..9) for positives, we can observe from Equation (8) that measure M5M_5 is better than M4M_4 with a degree of 6. The same degree of preference is observed between M5M_5 and M3M_3, while M3M_3 and M4M_4 are indifferent.

Δ=((M1)(M2)(M3)(M4)(M5)(M1)00.420.42−0.43(M2)0.200.28−0.25(M3)−0.08−0.55(M4)−0.60(M5))⟶Scaling((M1)(M2)(M3)(M4)(M5)(M1)144−4(M2)23−3(M3)1−6(M4)−6(M5))(8)\Delta= \begin{pmatrix} & (M_1) & (M_2) & (M_3) & (M_4) & (M_5) \\ (M_1) & 0 & 0.42 & 0.42 & -0.43 \\ (M_2) & 0.20 & 0.28 & -0.25 \\ (M_3) & -0.08 & -0.55 \\ (M_4) & -0.60 \\ (M_5) \end{pmatrix} \quad \overset{\text{Scaling}}{\longrightarrow} \begin{pmatrix} & (M_1) & (M_2) & (M_3) & (M_4) & (M_5) \\ (M_1) & 1 & 4 & 4 & -4 \\ (M_2) & 2 & 3 & -3 \\ (M_3) & 1 & -6 \\ (M_4) & -6 \\ (M_5) \end{pmatrix} \tag*{(8)}

Afterward, the learnWeights function in AHPRank computes the AHP matrix AA using the scaled Δ\Delta matrix (i.e., the average correlation gap) as input:

A=((M1)(M2)(M3)(M4)(M5)(M1)11441/4(M2)11231/3(M3)1/41/2111/6(M4)1/41/3111/6(M5)43661)(9)A = \begin{pmatrix} & (M_1) & (M_2) & (M_3) & (M_4) & (M_5) \\ (M_1) & 1 & 1 & 4 & 4 & 1/4 \\ (M_2) & 1 & 1 & 2 & 3 & 1/3 \\ (M_3) & 1/4 & 1/2 & 1 & 1 & 1/6 \\ (M_4) & 1/4 & 1/3 & 1 & 1 & 1/6 \\ (M_5) & 4 & 3 & 6 & 6 & 1 \end{pmatrix} \tag*{(9)}

At the end, AHPRank computes the weighting vector ww by solving a minimization problem. The learned weight vector w=(wM1,wM2,wM3,wM4,wM5)w = (w_{M_1}, w_{M_2}, w_{M_3}, w_{M_4}, w_{M_5}) is (0.24,0.24,0.065,0.065,0.39)(0.24, 0.24, 0.065, 0.065, 0.39), reflecting the importance of each measure for achieving the goal of the user ranking function gwg_w.

Using the AHP interestingness measure gwg_w from equation (6), we can rank all patterns in P\mathcal{P} provided in Table 1. AHPRank achieves an overall ranking accuracy of 91% in this example, correctly ranking the first 5 patterns, the seventh, and the tenth ones.

Experiments

In this section, we empirically evaluate the effectiveness of our proposed pattern ranking framework AHPRank. We first introduce our case study on association rules mining and the different oracles we used to simulate user-specific rankings. Next, we present the research questions we aimed to answer, the experimental protocol we followed, and the results we obtained.

Mining associations rules (ARs)

Our approach, AHPRank, is experimentally evaluated on association rule mining, which is one of the most important and well-studied tasks in data mining. Association rules are implications of the form X→YX \to Y, where XX and YY are itemsets such that X∩Y=∅X \cap Y = \varnothing and Y≠∅Y \ne\varnothing. Here, XX represents the body of the rule and YY represents its head. The frequency of an itemset XX in a dataset, denoted by freq(X)freq(X), is the number of transactions of the dataset containing XX. The frequency of a rule X→YX \to Y is the frequency of the itemset X∪YX \cup Y, that is, freq(X→Y)=freq(X∪Y)freq(X \to Y) = freq(X \cup Y).

Various interestingness measures for association rules have been proposed, including support, confidence, interest factor, correlation, and entropy. Tan et al. Tan et al (2004) conducted a study on the usefulness of existing measures in different application types and identified seven independent groups of consistent measures having similar properties, as shown in Table 2.

GroupsMeasures
1Yules Q, Yules Y, Odds Ratio
2Cosine, Jaccard
3Laplace, Support
4ϕ\phi coefficient, CollectiveStrength, piatetskyShapiro’s
5Goodman Kruskal’s, Gini Index
6Interest factor, added value, Klosgen K
7certainty factor, Mutual Information, Cohen’s κ\kappa

Table 2. Independent Subjective Measure Groups

To evaluate our approach, we selected one measure from each of the seven groups of consistent measures identified by Tan et al. Tan et al (2004). This gave us a set of seven measures that are independent and have similar properties. These measures are highlighted in bold in Table 2.

User feedback emulators

Since it can be challenging to evaluate an interactive approach with limited user feedback, we simulate user feedback by using three different objective target ranking functions:

  • RAND-EMU: The user-specific ranking is equivalent to a random weighted aggregation function. For each measure MiM_i, we generate a random weight wi∈[0,1]w_i \in[0,1] such that ∑i=1mwi=1\sum_{i=1}^{m} w_i = 1.

  • LEX-EMU: The user-specific ranking follows a lexicographic order on the measures. We define a lexicographic order lexlex on M\mathcal{M} as lex(M)=⟨l1,…,lm⟩lex(\mathcal{M}) = \langle l_1, \ldots, l_m \rangle such that ⋃i=1mli=M\bigcup_{i=1}^{m} l_i = \mathcal{M}. Given two patterns (P1,P2)(P_1, P_2), P1P_1 is preferred to P2P_2 if (li(P1)>li(P2))(l_i(P_1) > l_i(P_2)) or (li(P1)=li(P2)∧li+1(P1)>li+1(P2))(l_i(P_1) = l_i(P_2) \land l_{i+1}(P_1) > l_{i+1}(P_2)) for i=1i = 1 to m−1m-1.

  • CHI-EMU: χ2\chi^2 is a statistical measure that is a good candidate to emulate user feedback Ringuest (1986). While χ2\chi^2 can be a complex function to approximate with non-trivial correlations, it is also a quality measure suggested in Dzyuba and van Leeuwen [15]. We use χ2\chi^2 as the target user-specific ranking function over ARs. For an association rule X→YX \to Y, the χ2\chi^2 value is defined as:

χ2(X→Y)=(freq(X→Y)−freq(X)freq(Y)N)2freq(X)freq(Y)N,(10)\chi^2(X \to Y) = \frac{\left(freq(X \to Y) - \frac{freq(X)freq(Y)}{N}\right)^2}{\frac{freq(X)freq(Y)}{N}}, \tag*{(10)}

where NN is the number of transactions in the dataset.

Research questions

Our evaluation seeks to address the following research questions:

  • RQ1: Can we determine a user’s preferences for a set of patterns based on a sample of ranked patterns? If so, how much data is needed and how long does the learning process take?

  • RQ2: How does our proposed AHP-based learning method compare to the SVM-based baseline for automatically learning user-specific ranking functions?

  • RQ3: How effective is AHPRank in an active learning context? Is the sensitivity heuristic a good choice for query selection?

  • RQ4: How effective is AHPRank in an interactive data mining context?

Experimental protocol

Implementation settings

We implemented our AHPRank approach in Java with two modes: the passive mode, denoted as AHPRank.0, and the active mode, denoted as AHPRank.1. The code is publicly available on GitHub at github.com/lirmm/AHPRank. We compared our approach to the state-of-the-art SVM-based approach RankingSVM Dzyuba and van Leeuwen [15]. We use RankingSVM.0 to denote the passive version and RankingSVM.1 to denote the active version, following Dzyuba and van Leeuwen (2013a) All experiments were conducted on an Intel Core i7 2.4 GHz with 16 GB of RAM, with a maximum duration of one hour.

Metrics

We use three metrics to evaluate the performance of our approach:

  1. The Spearman’s rank correlation coefficient ρ\rho measures the accuracy of the learned ranking compared to the target ranking over nn patterns. It is computed as follows:

ρ=1−6∑i=1n(rankL(Pi)−rankT(Pi))2n(n2−1)(11)\rho= 1 - \frac{6\sum_{i=1}^{n}(rank_L(P_i)-rank_T(P_i))^2}{n(n^2-1)} \tag*{(11)}
  1. The recall metric R@k evaluates the ability of our approach to identify the top kk most interesting patterns. It is computed as follows:

R@k=∣{rankL(Pi)≤k:i∈1..n∧rankT(Pi)≤k}∣k(12)\mathrm{R}@k = \frac{|\{rank_L(P_i) \leq k : i \in1..n \land rank_T(P_i) \leq k\}|}{k} \tag*{(12)}
  1. CPU time in seconds is measured for both the passive and active modes. The waiting time between two queries is also recorded for the active mode.

Benchmark Datasets

We selected several datasets of realistic sizes from the FIMI repository.2 These datasets have different characteristics that represent various application domains. Table 3 reports the number of transactions (∣T∣|T|), the number of items (∣I∣|I|), the application domain, and the number of valid rules (#Rules) corresponding to the initial rules mined using a standard association rules algorithm without any knowledge about the user, for each dataset. The datasets are presented in ascending order of #Rules.

Dataset∣T∣|T|∣I∣|I|Density(%)Type of Data#Rules
Hepatitis1376850.00Disease0.5 M
Connect67,55712933.33Game steps1 M
Mushroom8,12411918.75Species of mushrooms1.5 M
T40100,0001,0004.20Synthetic dataset2 M
Retail88,16216,4700.06Retail market basket data2,5 M

Table 3. Dataset Characteristics.

Passive learning results

In this section, we address the first two research questions (RQ1 and RQ2). To that end, we perform a 5-fold cross-validation on each dataset, where we randomly select 20% of the rules as training data and use the remaining 80% for testing. This type of cross-validation allows us to evaluate the effectiveness of the approaches in learning from relatively small training sets. We report the results averaged over the 5 folds.

A) Analyzing the different user feedback emulators. Table 4 presents the results of the correlation analysis between the user-specific ranking functions (RAND-EMU, LEX-EMU, and CHI-EMU) and the seven interestingness measures, as well as the Virtual Best Measure (VBM), which returns the best rank correlation ρ\rho provided by one of the seven measures. The analysis was performed on all datasets, and the results are reported in terms of Spearman’s rank correlation coefficient ρ\rho.

Datasets(1)(2)(3)(4)(5)(6)(7)VBM
RAND-EMU
Hepatitis0.780.920.290.970.790.850.450.97
Connect0.680.620.950.700.600.450.570.95
Mushroom0.840.970.280.830.550.730.360.97
T400.710.9900.760.990.9900.99
Retail00.980.430.710.840.980.510.98
LEX-EMU
Hepatitis0.790.6400.680.920.6300.92
Connect0.210.470.760.2600.230.500.76
Mushroom0.210.820.380.770.780.3700.82
T400.760.9800.770.990.9700.99
Retail0.100.780.540.490.840.800.580.84
CHI-EMU
Hepatitis0.200.920.360.960.730.850.430.96
Connect0.090.1500.020.290.0100.29
Mushroom0.510.6400.460.280.8800.88
T400.710.980.170.640.980.990.290.99
Retail00.940.530.600.830.570.610.94

Table 4. Correlation results with user ranking for using the emulators. (1): YulesY (2): Cosine (3): Laplace (4): Leverage (5): Lambda (6): InterestFactor (7): Certainty

The results show that the correlation between a given measure and a user-specific ranking function can vary significantly depending on the dataset. For instance, the Lambda measure is highly correlated with CHI-EMU on T40 dataset (ρ=98%\rho= 98\%), but it is weakly correlated on Connect dataset (ρ=29%\rho= 29\%). Similarly, the correlation between RAND-EMU or LEX-EMU and the measures also varies significantly across datasets. However, the VBM approach, which selects the best measure for each dataset, achieves a high level of accuracy (with a mean of 91%). These results suggest that a weighted aggregation of the selected measures could lead to a good trade-off between accuracy and robustness.

B) Comparing AHPRank.0 with RankingSVM.0. Table 5 presents the results of the kk-folds cross-validation for RankingSVM.0 and AHPRank.0, where we report the averaged rank correlation ρ\rho, recall values (R@10% and R@1%), and CPU time in seconds averaged over the folds. Since RankingSVM.0 can handle a training set of up to 100K100K rules within an hour, we compared it with our approach only on the Hepatitis dataset. We observed that RankingSVM.0 outperformed AHPRank.0 in terms of ranking accuracy for all user feedback emulators, although AHPRank.0 remained competitive with acceptable accuracy. The same trend was observed in terms of recall at the 10% and 1% top of the ranking (R@10% and R@1%). We noted

RAND-EMU
RankingSVM.0AHPRank.0
ρ\rhoR@10%R@1%t(s)ρ\rhoR@10%R@1%t(s)
Hepatitis0.940.740.778510.930.790.719
Connect---TO0.950.720.6326
Mushroom---TO0.890.690.6632
T40---TO0.990.930.5863
Retail---TO0.930.950.9666
mean----0.940.820.7139
LEX-EMU
RankingSVM.0AHPRank.0
ρ\rhoR@10%R@1%t(s)ρ\rhoR@10%R@1%t(s)
Hepatitis0.990.990.999020.920.860.8113
Connect---TO0.600.460.5021
Mushroom---TO0.860.560.6532
T40---TO0.990.930.4671
Retail---TO0.780.680.6568
mean----0.830.700.6141
CHI-EMU
RankingSVM.0AHPRank.0
ρ\rhoR@10%R@1%t(s)ρ\rhoR@10%R@1%t(s)
Hepatitis0.990.970.929790.940.900.7710
Connect---TO0.150.280.6717
Mushroom---TO0.980.910.9328
T40---TO0.990.990.9684
Retail---TO0.910.960.9550
mean----0.790.810.8638

Table 5. 5-fold cross-validation results (passive learning).

Passive learning results

that AHPRank.0 achieved a high correlation with the user ranking functions on most datasets. However, on Connect, we observed a weak correlation with CHI-EMU, while a high correlation was observed with RAND-EMU and LEX-EMU. This can be attributed to the fact that RAND-EMU and LEX-EMU are linear functions expressed with the given 7 interestingness measures, which explains their high accuracy, while CHI-EMU is a complex function that requires more extensive statistics to learn. Notably, the high accuracy of RankingSVM.0 came at the expense of longer running times. For instance, it took more than 15 minutes for RankingSVM.0 to learn from a training set of 100K rules, and exceeding 100K rules, RankingSVM.0 required more than one hour, while AHPRank.0 was able to handle 7.5M rules in less than 4 minutes.

In what follows, the observations and the conclusions drawn from CHI-EMU remain true for RAND-EMU and LEX-EMU. For the sake of simplicity, we only report the results on the complex function CHI-EMU.

C) Impact of varying the size of the training data on the learning. It is crucial to emphasize that our proposed AHPRank approach aims to achieve a fast learning process while providing high accuracy in ranking patterns. To further support our observation on the scalability of AHPRank.0 compared to RankingSVM.0, we present in Figure 1 and Figure 2 a performance comparison by varying the size of the training data when learning the CHI-EMU function, as similar results were obtained for RAND-EMU and LEX-EMU functions. For each dataset, we randomly select nbnb rules, and we compare the two approaches for nb∈{10,100,1K,10K,100K}nb \in\{10, 100, 1K, 10K, 100K\}. The results are averaged over ten runs.

Figure 1. Learning accuracy comparison between RankingSVM.0 and AHPRank.0 learning CHI-EMU on different training data size.

Figure 2. CPU time comparison between RankingSVM.0 and AHPRank.0 learning using CHI-EMU emulator on different training data sizes averaged overall datasets.

Regarding the Spearman correlation ρ\rho, Figure 1 shows that the two approaches have a discrepancy of only 5% when the training data does not exceed 1K1K. However, the gap becomes significantly more substantial (exceeding 10%) and in favor of AHPRank.0 when the training data contains 10K10K and 100K100K rules.

In terms of recall at 10% and 1%, RankingSVM.0 outperforms AHPRank.0 with a gap of 23% and 15% at R@10%R@10\% and R@1%R@1\%, respectively, when the training data contains only 10 rules. However, as the size of the training data increases, the gap between the two approaches becomes narrower, with a difference of less than 5% for R@10%R@10\%, and remaining relatively constant for R@1%R@1\%.

In terms of CPU time, Figure 2 demonstrates that RankingSVM.0 can process training data of up to 100 rules in less than a second, whereas it takes more than one minute for 1K rules, 13 minutes for 10K rules, and over 26 minutes for 100K rules. In contrast, AHPRank.0 is capable of handling training data ranging from 100 to 100K rules in a time span ranging from 0.03 to 24.86 seconds, while still maintaining a ranking accuracy comparable to that of RankingSVM.

Active learning results

In this section, we aim to address research questions RQ2 and RQ3, which involve comparing the active learning versions of RankingSVM and AHPRank. To achieve this, we employ a straightforward process that involves asking the user ranking queries on pairs of patterns (e.g., do you prefer PiP_i to PjP_j?).

A) Evaluating the effectiveness of our sensitivity-based heuristic. In this section, we aim to evaluate the effectiveness of our Sensitivity-Based Generator (SBG) (see § 4) in improving the active learning process of AHPRank.1. To do so, we compare SBG to a Random Generator (RG), where RG selects a pair of patterns randomly from #Rules and submits them to both RankingSVM.1 and AHPRank.1. We conduct our experiments with human-in-the-loop, setting the number of queries (i.e., iterations of Algorithm 2) to a maximum of 20 queries. We repeat the experiment 10 times and take the average result to account for the sampling step of our SBG and the randomness of the RG approach. After a few tests, we set the sample size X\mathcal{X} picked at line 10 of Algorithm 2 to θ=103\theta= 10^3, providing a good trade-off between time selection and the accuracy of the selected pair.

Figure 3 presents a scatter plot of 20 iterations comparing the performance of RankingSVM.1 and AHPRank.1 with both RG and SBG. We report the Spearman correlation ρ\rho, recall at 10%, and recall at 1% for each iteration. The results show that the use of SBG outperforms RG, regardless of the learning algorithm, as can be observed from the scatter plot.

Figure 3. Qualitative comparison of Random vs. Sensitivity-Based Query Generator using the Spearman correlation ρ\rho and the recall at 10% and 1% of each iteration.

To support our observation on the effectiveness of SBG, we conducted a statistical test using the Wilcoxon Signed-Rank Test. We used a one-tailed alternative hypothesis with the null hypothesis that RG is more efficient than SBG: H0H_0: The accuracy using RG ≥\geq The accuracy using SBG. The alternative hypothesis H1H_1 states that SBG outperforms RG. With this statistical test, we concluded that the use of SBG is more efficient than RG (H1H_1 accepted).

Table 6 reports the p-value, z-score, and confidence interval (CI) of each test. Except for the case of (RankingSVM.1, R@10%), we had strong evidence to reject the null hypothesis based on the p-value column. The CI column clearly shows that the use of SBG is better than RG. Consequently, we will use the SBG heuristic in RankingSVM.1 and AHPRank.1 in the following.

ApproachesMetricspp-valuezz-scoreCI
RankingSVM.1ρ\rho.00226−2.837399%
RankingSVM.1R@10%.12302−1.157370%
RankingSVM.1R@1%.06301−1.530690%
AHPRank.1ρ\rho.00034−3.397399.9%
AHPRank.1R@10%.00205−2.874699%
AHPRank.1R@1%.00139−2.986699%

Table 6. Wilcoxon Signed-Rank Test (RG vs. SBG).

B) Comparing AHPRank.1 with RankingSVM.1. Table 7 presents a comparison between RankingSVM.1 and AHPRank.1 on five datasets, reporting the Spearman correlation ρ\rho, recall at 10% and 1% stopping criterion TT at 10, 50, and 100 queries, and the average latency time Time between two queries for RankingSVM.1 (never exceeding the latency bound of 0.1 seconds). The findings hold for the RAND-EMU, LEX-EMU, and CHI-EMU functions.

(a)(b)(c)(d)(e)
10 Queries
(1)ρ\rho0.730.040.690.990.97
R@10%0.610.280.380.920.91
R@1%0.440.490.360.450.67
Time00000
(2)ρ\rho0.780.100.930.990.99
R@10%0.660.360.800.970.91
R@1%0.510.500.710.810.93
50 Queries
(1)ρ\rho0.940.200.710.990.98
R@10%0.770.100.390.920.91
R@1%0.5700.360.450.67
Time00023
(2)ρ\rho0.950.100.930.990.99
R@10%0.830.400.720.940.91
R@1%0.660.450.510.640.93
100 Queries
(1)ρ\rho0.940.290.720.990.98
R@10%0.750.200.410.920.91
R@1%0.5300.360.450.67
Time023310
(2)ρ\rho0.980.100.810.990.99
R@10%0.890.350.490.950.91
R@1%0.780.420.370.740.93
(1): RankingSVM.1(2): AHPRank.1
(a): Hepatitis(b): Connect(c): Mushroom(d): T40(e):Retail

Table 7. Qualitative evaluation of RankingSVM.1 vs AHPRank.1.

The main observation from Table 7 is that AHPRank.1 outperforms RankingSVM.1. Looking at the Hepatitis dataset, for example, AHPRank.1 achieves an accuracy of 78% with only 10 queries, while RankingSVM.1 achieves 73%. At 50 queries, AHPRank.1 achieves an accuracy of 95%, compared to 94% for RankingSVM.1. At 100 queries, AHPRank.1 reaches 98% accuracy, while RankingSVM.1 remains stable at 94%. In terms of recall, AHPRank.1 discovers the most relevant patterns in the first 50K and 5K patterns (out of 500K) with accuracies of 78% and 66% over 10 queries, respectively, compared to 61% and 44% for RankingSVM.1.

For the Retail dataset, AHPRank.1 achieves high accuracy over 10 queries, which remains stable over the following 90 queries. RankingSVM.1 results are less impressive on Retail and particularly on the recall metric. However, the main difference is in the waiting time Time, where RankingSVM.1 can keep the user waiting for more than 10 seconds between two queries. The same observation can be made on the other datasets, where RankingSVM.1 can be hampered by overall waiting time, even with queries of size 2. In contrast, AHPRank.1 shows an instantaneous behavior, taking less than 0.1 seconds between two queries. This represents a limitation in the use of RankingSVM.1, especially when the learning is integrated into an interactive data mining process, where a reasonable latency time for a human user is around a few seconds Lallemand and Gronier [24].

Interactive learning results

In this section, we address the last research question RQ4, and conduct two experiments to evaluate the robustness and performance of our approach in the presence of human errors.

Our first experiment aims to evaluate the robustness of our approach in the face of human errors. To simulate situations where the user feedback may be incorrect, we randomly select a set of queries and swap the user preference with a probability Err. Specifically, a user who prefers pattern PiP_i over PjP_j will mistakenly prefer PjP_j over PiP_i with a probability Err.

Figure 4 compares the performance of RankingSVM.1 and AHPRank.1 under different levels of human error, ranging from 0% to 40%, and reports results averaged over 10 runs on the whole set of datasets using CHI-EMU and submitting 20 queries to the user. Our results show that AHPRank.1 is quite stable and robust even with high levels of human error, up to 40% (8 mistakes out of 20). The overall correlation between the learned function and the user one (ρ\rho) remains stable at 77% without errors and drops only to 70% under Err = 40%. However, RankingSVM.1 is stable only up to Err = 20%, and then its accuracy drops significantly, with ρ\rho decreasing from 71% to 54%. In terms of recall, the decline is less than 2% at R@10% and 8% at R@1% under AHPRank.1, while RankingSVM.1 experiences a decline exceeding 10% at both R@10% and R@1%. In terms of CPU time, we observe waiting times ranging from 6 to 12 seconds under RankingSVM.1, whereas our approach never exceeds 0.02 seconds between two queries.

Figure 4. Learning under mistakes (20 queries).

These results suggest that our approach is robust and can handle user errors, while RankingSVM.1 is less robust and can suffer from significant drops in accuracy when faced with human errors. Additionally, our approach provides faster query processing times, which is critical in interactive data mining scenarios where human users expect near-instantaneous feedback.

Our second experiment aims to evaluate the robustness of our approach when faced with an undecided user who begins with a set of preferences AA but ends up with preferences BB. Here, the initial user preferences AA are biased towards the presented patterns until the user is more comfortable with preferences BB.

To simulate such situations where the user’s target function changes during the learning process, we conduct an experiment where we start with LEX-EMU as the target function to learn, and after xx queries, we switch to RAND-EMU. This learning process takes (20−x)(20 - x) more queries, and we refer to it as the LEX2RAND target. We choose to switch from LEX-EMU to RAND-EMU because the two functions are linear. We compare RankingSVM.1 and AHPRank.1 on LEX2RAND(xx) target for a total of 20 queries, where x∈0,5,10x \in0, 5, 10. Note that with x=0x = 0, LEX2RAND(0) is equivalent to RAND-EMU.

Figure 5 shows the averaged results of 10 runs on all datasets over 20 queries. The main observation that we can draw is that AHPRank.1 is stable even when faced with a changing linear function to learn, even if the user’s preferences change halfway through the learning process (i.e., after 10 queries). However, changing the target function during the learning process can significantly impact the accuracy of RankingSVM.1 (a decline of 44% in terms of ρ\rho). Regarding CPU time, our approach is 50 times faster than RankingSVM.1.

Figure 5. Learning under swaps (20 queries)

To summarize, our research demonstrates that AHPRank provides a favorable balance between ranking accuracy and running time. With a time complexity linear to the size of the training data, it achieves a high ranking accuracy and takes only a few seconds to run, making it a practical solution for industrial use.

Conclusion

In this paper, we presented a novel framework for learning pattern ranking functions using the AHP multicriteria decision making method. Our proposed AHPRank algorithm can be applied in both passive and active learning modes, allowing the user to rank subsets of patterns according to their preferences. The learned weights are used to aggregate all the measures into a single ranking function using a weighted linear formulation, which was shown experimentally and statistically to be as close as possible to the user’s ranking. We applied our framework to the case study of Association Rules Mining and compared the results with state-of-the-art learning approaches. Our experiments showed that the AHPRank algorithm can efficiently learn the ranking function and outperform existing methods in terms of both ranking accuracy and running time. Overall, our proposed framework offers a practical and efficient approach for learning pattern ranking functions, with potential applications in a wide range of domains.

Acknowledgements

Funded by the European Union through the AI4CCAM project (Trustworthy AI for Connected, Cooperative Automated Mobility) under grant agreement No 10107691. Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or CINEA. Neither the European Union nor the granting authority can be held responsible for them.

References

  1. [1]Agrawal R, Imieliński T, Swami A (1993) Mining association rules between sets of items in large databases. SIGMOD Rec 22(2):207–216. https://doi.org/10.1145/170036.170072, URL https://doi.org/10.1145/170036.170072
  2. [2]Ailon N (2012) An active learning algorithm for ranking from pairwise preferences with an almost optimal query complexity. J Mach Learn Res 13:137–164. URL http://dl.acm.org/citation.cfm?id=2188390
  3. [3]Bao X, Gu T, Chang L, et al (2021) Knowledge-based interactive postmining of user-preferred co-location patterns using ontologies. IEEE Transactions on Cybernetics 52(9):9467–9480DOI
  4. [4]Belmecheri N, Aribi N, Lazaar N, et al (2022) Une méthode d’apprentissage par optimisation multicritère pour le rangement de motifs en fouille de données. Revue des Nouvelles Technologies de l’Information Extraction et Gestion des Connaissances, RNTI-E-38:289–296
  5. [5]Bhuiyan MA, Al Hasan M (2016) Priime: A generic framework for interactive personalized interesting pattern discovery. In: 2016 IEEE International Conference on Big Data (Big Data), IEEE, pp 606–615arxiv.org/abs/1607.05749
  6. [6]Bie TD (2011) An information theoretic framework for data mining. In: KDD. ACM, pp 564–572DOI
  7. [7]Blankmeyer E (1987) Approaches to consistency adjustment. Journal of Optimization Theory and Applications 54:479–488DOI
  8. [8]Boley M, Mampaey M, Kang B, et al (2013) One click mining: interactive local pattern discovery through implicit preference and performance learning. In: IDEA@KDD. ACM, pp 27–35
  9. [9]Bottou L, Lin CJ (2007) Support vector machine solvers. Large scale kernel machines 3(1):301–320DOI
  10. [10]Brunelli M (2014) Introduction to the analytic hierarchy process. SpringerDOI
  11. [11]Burges C, Shaked T, Renshaw E, et al (2005) Learning to rank using gradient descent. In: Proceedings of the 22nd international conference on Machine learning, pp 89–96DOI
  12. [12]Chang L, Zhang Y, Bao X, et al (2022) Idmbs: An interactive system to find interesting co-location patterns using svm. In: Database Systems for Advanced Applications: 27th International Conference, DASFAA 2022, Virtual Event, April 11–14, 2022, Proceedings, Part III, Springer, pp 518–521DOI
  13. [13]Dzyuba V, van Leeuwen M (2013a) Interactive discovery of interesting subgroup sets. In: International Symposium on Intelligent Data Analysis, Springer, pp 150–161DOI
  14. [14]Dzyuba V, van Leeuwen M (2013b) Interactive discovery of interesting subgroup sets. In: IDA, Lecture Notes in Computer Science, vol 8207. Springer, pp 150–161DOI
  15. [15]Dzyuba V, van Leeuwen M (2017) Learning what matters - sampling interesting patterns. In: PAKDD (1), pp 534–546DOI
  16. [16]Dzyuba V, van Leeuwen M, Nijssen S, et al (2014) Interactive learning of pattern rankings. Int J Artif Intell Tools 23(6). https://doi.org/10.1142/S0218213014600264, URL https://doi.org/10.1142/S0218213014600264
  17. [17]ERKUT E, TARIMCILAR M (1991) On Sensitivity Analysis in the Analytic Hierarchy Process. IMA Journal of Management Mathematics 3(1):61–83. https://doi.org/10.1093/imaman/3.1.61, URL https://doi.org/10.1093/imaman/3.1.61, https://arxiv.org/abs/https://academic.oup.com/imaman/article-pdf/3/1/61/6764589/3-1-61.pdf
  18. [18]Gass S, Rapcsák T (2004) Singular value decomposition in ahp. European Journal of Operational Research 154(3):573–584. https://doi.org/10.1016/S0377-2217(02)00755-5, URL https://www.sciencedirect.com/science/article/pii/S0377221702007555
  19. [19]Geng L, Hamilton HJ (2006a) Interestingness measures for data mining: A survey. ACM Comput Surv 38(3):9
  20. [20]Geng L, Hamilton HJ (2006b) Interestingness measures for data mining: A survey. ACM Computing Surveys (CSUR) 38(3):9–es
  21. [21]Imielinski T, Mannila H (1996) A database perspective on knowledge discovery. Commun ACM 39(11):58–64DOI
  22. [22]Kendall MG, Smith BB (1939) The problem of m rankings. Ann Math Statist 10(3):275–287. https://doi.org/10.1214/aoms/1177732186, URL https://doi.org/10.1214/aoms/1177732186
  23. [23]Kuznetsov SO, Makhalova T (2018) On interestingness measures of formal concepts. Information Sciences 442:202–219arxiv.org/abs/1611.02646
  24. [24]Lallemand C, Gronier G (2012) Enhancing user experience during waiting time in hci: Contributions of cognitive psychology. In: Proceedings of the Designing Interactive Systems Conference. ACM, New York, NY, USA, DIS ’12, pp 751–760, https://doi.org/10.1145/2317956.2318069, URL http://doi.acm.org/10.1145/2317956.2318069
  25. [25]Pan VY, Chen ZQ (1999) The complexity of the matrix eigenproblem. In: Vitter JS, Larmore LL, Leighton FT (eds) Proceedings of the Thirty-First Annual ACM Symposium on Theory of Computing, May 1-4, 1999, Atlanta, Georgia, USA. ACM, pp 507–516, https://doi.org/10.1145/301250.301389, URL https://doi.org/10.1145/301250.301389
  26. [26]Qin T, Liu TY, Li H (2010) A general approximation framework for direct optimization of information retrieval measures. Information retrieval 13:375–397DOI
  27. [27]Raedt LD (2002) A perspective on inductive databases. SIGKDD Explor 4(2):69–77DOI
  28. [29]Saaty TL (1977) A scaling method for priorities in hierarchical structures. Journal of Mathematical Psychology 15(3):234–281. https://doi.org/10.1016/0022-2496(77)90033-5, URL https://www.sciencedirect.com/science/article/pii/0022249677900335
  29. [30]Saaty TL (1988) What is the analytic hierarchy process? In: Mathematical models for decision support. Springer, p 109–121DOI
  30. [31]Saaty TL, Ozdemir MS (2003) Why the magic number seven plus or minus two. Mathematical and computer modelling 38(3-4):233–244DOI
  31. [32]Saaty TL, Vargas LG (1984) Comparison of eigenvalue, logarithmic least squares and least squares methods in estimating ratios. Mathematical Modelling 5(5):309–324. https://doi.org/10.1016/0270-0255(84)90008-3, URL https://www.sciencedirect.com/science/article/pii/0270025584900083
  32. [33]Shalev-Shwartz S, Tewari A (2011) Stochastic methods for l₁-regularized loss minimization. J Mach Learn Res 12:1865–1892
  33. [34]Silberschatz A, Tuzhilin A (1995) On subjective measures of interestingness in knowledge discovery. In: KDD. AAAI Press, pp 275–281
  34. [35]Takeda E, Cogger K, Yu P (1987) Estimating criterion weights using eigenvectors: A comparative study. European Journal of Operational Research 29(3):360–369.

Paper details

vlnc:W_g8h2r9ws
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents