1. Introduction
Nowadays, the rapidly evolving information technology forces commercial and scientific organizations to acquire and keep huge volume of data. The analysis of this data in order to extract interesting knowledge has been an attractive research topic yet a difficult task.
Discovery of Association Rules is one of the most common Data Mining techniques (see [
1,
2,
3] for a survey). The field was initiated by Agrawal et al. [
4], who introduced the problem of discovering correlations between itemsets in large transactional databases. Their work inspired a broad range of extensions and refinements (e.g., [
5,
6,
7,
8,
9,
10,
11,
12]). This work informed later studies for the Apriori algorithm [
13], which introduced the downward closure property to effectively prune the search space. Subsequent research focused on addressing the performance bottlenecks inherent in Apriori-like approaches, particularly the costly generation of candidate sets. Innovations such as the DHP (Direct Hashing and Pruning) algorithm by Park et al. [
14] utilized hash-based techniques to filter ineffective candidates, while the Dynamic Itemset Counting (DIC) algorithm [
15] sought to reduce database scans by counting itemsets dynamically. The maintenance of discovered rules also received attention, with algorithms like FUP (Fast Update) [
7] enabling efficient updates as new transactions arrived. Efficiency was improved with the FP-growth algorithm [
16], which circumvented candidate generation entirely through the use of a compressed FP-tree structure and a divide-and-conquer strategy.
The principles of association mining were naturally extended to sequential data by Agrawal and Srikant [
17], and later generalized by the GSP algorithm [
8] to accommodate time constraints and taxonomies. Efficiency remained a primary driver, leading Pei et al. [
18] to develop PrefixSpan, a pattern-growth approach that projects databases based on frequent prefixes to avoid candidate generation. In the realm of event sequences, Mannila et al. [
9] established frameworks for discovering “episodes”, partially ordered sets of events occurring in close temporal proximity.
The introduction of the temporal dimension necessitates careful handling of item validity. Ale and Rossi [
19] proposed temporal association rules that respect the “lifespan” of items, calculating support only within relevant time intervals. This concept was further sophisticated by Chen et al. [
20], who integrated fuzzy set theory to mine fuzzy temporal association rules. A comprehensive categorization of these methods, distinguishing how time is integrated as either an implied or integral component, has been provided by Segura-Delgado et al. [
21].
Parallel to the development of sequential and temporal extensions, another major evolution in pattern mining has been the shift toward class-based discrimination. Contrast data mining is a focused data mining research area for discovering interesting contrast patterns that state the significant differences between datasets [
22]. For example, discriminative itemsets [
23] identify the frequent itemsets in one dataset with much higher frequencies than the same itemsets in other datasets. Discriminative pattern analysis has been applied across various domains. Lee et al. [
24] demonstrated its value in classifying trajectories on road networks, highlighting the importance of ordering information. In the domain of recommender systems, Panteli and Boutsinas [
25] applied these techniques to the “cold-start” problem, clustering users and extracting discriminative patterns to predict preferences for new users effectively.
While discriminative itemsets mining successfully captures differences across datasets, classical frequency measures often overlook the local concentration of items within transactions. To address this limitation, Association Rules in Succession (ARIS) incorporate transaction proximity into the definition of support [
26]. In both the following datasets, as shown in
Table 1, AB is a frequent itemset given a minimum support threshold of 0.60. However, in the second dataset, the occurrences of AB are more concentrated within neighboring transactions. Motivated by this observation, in this work we extend Association Rules in Succession (ARIS) from traditional frequent-pattern mining to the discovery of discriminative itemsets across multiple ordered transactional datasets.
The proposed work builds upon two well-established research directions: Association Rules in Succession (ARIS), which introduces succession-based support for mining ordered transactional datasets, and discriminative itemset mining, which identifies patterns that distinguish one dataset from others. The main contributions of this work are summarized as follows:
We propose a new discriminative itemset mining algorithm by incorporating succession-based support from the ARIS framework.
We introduce a succession-based discriminative itemset mining algorithm that exploits not only the frequency of itemsets but also the locality of their occurrences within each dataset.
We experimentally evaluate the proposed algorithms on synthetic and real-world datasets, demonstrating their applicability and computational performance.
4. Proposed Algorithm
In this section, we present the proposed algorithm for discriminative pattern mining. The approach builds directly on the Association Rules in Succession (ARIS) framework introduced in [
26], which defines support, frequent itemsets and association rules under a proximity constraint over an ordered transactional database. Here we extend that framework to multi-dataset discriminative pattern mining. The approach consists of three steps: data preparation with class markers that encode dataset membership into the transactions, ARIS-Apriori mining in succession on the merged dataset, and discriminative pattern validation using a frequency ratio criterion.
The proposed approach discovers discriminative itemsets through a single-pass strategy on merged data using the ARIS-Apriori algorithm. Rather than mining each dataset independently and comparing results post-hoc, we embed dataset membership directly into the transaction data using class markers. This allows a single execution of ARIS-Apriori to simultaneously discover frequent itemsets in succession and their class associations.
This framework intentionally reuses several components from existing work. Specifically, the definition of succession-based support, the proximity constraint, the frequent-itemset mining procedure, and the ARIS-Apriori algorithm are inherited directly from the original ARIS framework. Likewise, the concept of discriminative itemset mining based on comparing pattern frequencies across multiple datasets has been extensively studied in the literature. The novelty of the present work lies in the integration of these two research directions into a unified framework. In particular, we propose a new discriminative itemset mining algorithm over multiple ordered transactional datasets using succession-based support, introduce succession-based discriminative itemset mining, propose a unified single-pass mining strategy based on merged datasets and class markers, and validate discriminative patterns according to both succession-aware support and frequency-ratio criteria.
4.1. Step 1: Data Preparation with Class Markers
Algorithm 1 presents the preprocessing stage. Each dataset is augmented with a unique class marker appended to every transaction, encoding dataset membership as an item. Each dataset is sorted independently by its transaction contents, and the sorted datasets are concatenated without global reordering. This preserves dataset boundaries in the merged data: items from the same dataset remain in close proximity, which is significant when ARIS distance constraints are applied.
The class markers serve a dual purpose. First, they enable the mining algorithm to discover associations between items and specific datasets within a single run. Second, since each marker appears exclusively in the transactions of dataset , any frequent itemset containing is by construction a pattern associated with that dataset.
For succession-based discriminative mining, the original transaction order is preserved. Lexicographical transaction sorting is applied to impose transactions of the same class to be in succession, thus ARIS could be applied.
| Algorithm 1 data_preparation(); Data Preparation with Class Markers |
| Require: Datasets |
| Ensure: Merged dataset M, dataset sizes |
- 1:
|
- 2:
for all do
|
- 3:
“Z”
| ▹ Unique class marker |
- 4:
for all transaction do
|
- 5:
| ▹ Append marker and sort items |
- 6:
end for
|
- 7:
| ▹ Sort transactions within dataset |
- 8:
|
- 9:
| ▹ Concatenate (no global sort) |
- 10:
end for
|
- 11:
return M,
|
4.2. Step 2: ARIS-Apriori on Merged Data
The merged dataset
M is mined using the ARIS-Apriori algorithm, which extends the traditional Apriori candidate generation and pruning by using Algorithm 2 for counting support in succession. The support threshold
is interpreted as a percentage of each class’s own size:
The merged dataset is used only to perform a unified ARIS-Apriori mining process with class markers, while the final support and discrimination criteria are evaluated separately for each dataset.
The distance parameter is set to
, which ensures that the successive groupcount mechanism covers the full extent of each dataset’s block within the concatenated structure.
| Algorithm 2 count_support_in_succession(); Support Counting in Succession |
- 1:
for all transaction do
|
- 2:
| ▹ Candidates contained in |
- 3:
for all candidate do
|
- 4:
|
- 5:
if then
|
- 6:
|
- 7:
|
- 8:
else
|
- 9:
if then
|
- 10:
|
- 11:
end if
|
- 12:
|
- 13:
end if
|
- 14:
end for
|
- 15:
end for
|
The ARIS-Apriori algorithm follows the standard Apriori iterative framework, generating candidate itemsets of increasing size from frequent itemsets of the previous level but replaces the simple frequency counting with count_support_in_succession(). For each candidate, the algorithm scans the merged data sequentially, tracking the gap p between consecutive occurrences. The Heaviside step function determines whether occurrences are within the distance threshold. Groups of at least proximate occurrences contribute to the support count; isolated occurrences that fail to form a sufficient group are discarded.
A key property is that when
, the distance constraint is satisfied for all inter-occurrence gaps within the merged data, and
count_support_in_succession() produces support counts identical to standard frequency counting. We verify this equivalence experimentally in
Section 5. When
, ARIS adds temporal proximity constraints that favor items appearing in dense clusters of consecutive transactions.
4.3. Step 3: Discriminative Validation
Algorithm 3 identifies discriminative patterns from the frequent itemsets discovered by ARIS-Apriori. First, only itemsets containing exactly one class marker are retained, these represent patterns associated with a specific dataset. Multi-marker itemsets and marker-free itemsets are discarded. The retained itemsets are grouped by their item pattern (the non-marker portion), and the support of each pattern across class markers is compared.
A pattern P is declared discriminative for dataset if two conditions hold. Let be the count of transactions in that contain P, and let be the corresponding per-class frequency:
- (a)
The support of P in meets that class’s own threshold:
- (b)
The frequency in is at least twice the maximum frequency in any other dataset: , or P appears in no other dataset (unique pattern)
| Algorithm 3 discr_pattern_validation(); Discriminative Pattern Validation |
| Require: Frequent itemsets with support counts, per-class thresholds , dataset sizes |
| Ensure: Discriminative patterns with class assignments
|
- 1:
| ▹Phase 1: Filter class-associated itemsets |
- 2:
|
- 3:
|
- 4:
| ▹Phase 2: Group by item pattern |
- 5:
| ▹ Map: pattern → {: support} |
- 6:
for all do
|
- 7:
| ▹ Item pattern (remove marker) |
- 8:
the class marker in f
|
- 9:
|
- 10:
end for
|
- 11:
|
- 12:
| ▹Phase 3: Apply frequency-normalized discriminative criterion |
- 13:
|
- 14:
for all pattern P, supports in do
|
- 15:
for all with support do
|
- 16:
if then
|
- 17:
| ▹ Target-class frequency |
- 18:
| ▹ Max frequency in other classes |
- 19:
if or then
|
- 20:
| ▹ Discriminative pattern for |
- 21:
end if
|
- 22:
end if
|
- 23:
end for
|
- 24:
end for
|
- 25:
return
|
The use of frequencies rather than raw counts prevents large classes from dominating the comparison, which is the correction needed for any imbalanced dataset. On balanced data the two formulations are mathematically equivalent. The discrimination ratio threshold controls the minimum frequency difference required for an itemset to be considered discriminative. In the experiments, a default value of
= 2 was adopted, requiring that an itemset be at least twice as frequent in the target dataset as in any other dataset. The influence of this parameter is further investigated in the sensitivity analysis presented in
Section 5.8.
Existing discriminative itemset mining algorithms such as DDPMine and DISSparse primarily focus on reducing the search space through specialized pruning strategies or heuristic search techniques. In contrast, the proposed framework does not introduce a new pruning mechanism. Instead, it extends the ARIS framework to discriminative itemset mining by combining succession-based support with a unified merged-dataset mining strategy. Consequently, the contribution of this work lies in extending the mining framework rather than proposing an alternative candidate-generation or pruning algorithm.
4.4. Computational Complexity Analysis
Let denote the total number of transactions in the merged dataset, where k is the number of datasets and is the number of transactions in dataset . Let m denote the number of distinct items, ℓ the average transaction length, the number of candidate itemsets of size r, and F the total number of frequent itemsets generated by ARIS-Apriori.
The proposed framework consists of three stages: data preparation, ARIS-Apriori mining, and discriminative validation.
Each transaction is augmented with a class marker and its original transaction position. The items of each transaction are sorted to obtain a canonical representation. Since each transaction contains on average
ℓ items, this step requires
time. If the transactions of each dataset are additionally sorted lexicographically before merging, the sorting cost is
Thus, the total preprocessing cost is
The ARIS-Apriori stage follows the classical Apriori level-wise candidate-generation procedure. At level
r, the algorithm generates
candidate itemsets and scans the merged dataset to count their support in succession. For each transaction, candidate containment is checked and the succession variables of each candidate are updated. Therefore, the counting cost at level
r can be expressed as
assuming candidate lookup and containment checking are implemented in the standard Apriori manner. Across all levels, the total ARIS-Apriori mining cost is
As with classical Apriori, the number of generated candidates may be exponential in the number of distinct items m in the worst case, since up to non-empty itemsets may become candidates. Therefore, the worst-case complexity of the mining stage is exponential in m. In practice, however, the minimum support threshold and the Apriori downward-closure property substantially reduce the candidate search space.
The succession mechanism does not change this asymptotic complexity. Compared with conventional Apriori support counting, ARIS-Apriori maintains additional state variables for each candidate, such as the last occurrence position, the current group count, and the accumulated succession support. These updates require constant time per candidate occurrence. Therefore, succession-based counting changes the constant factor but not the asymptotic order of the Apriori counting phase.
Let
F denote the number of frequent itemsets returned by ARIS-Apriori. The discriminative validation stage groups itemsets according to their non-marker items and evaluates their frequencies across the
k datasets. Since each frequent itemset is processed once and compared across all datasets, this stage requires
time.
The total time complexity of the proposed framework is therefore
Since candidate generation and support counting dominate the computation, the overall complexity is governed by the ARIS-Apriori mining stage. The discriminative extension adds only a linear validation overhead with respect to the number of frequent itemsets and datasets.
The total space complexity is
where
accounts for storing the merged transactional dataset,
accounts for candidate itemsets, and
accounts for storing class-specific support information for the frequent itemsets.
5. Experimental Results
We tested the ARIS-Apriori pipeline on six experimental configurations: a synthetic dataset with planted ground truth run at two scales, the UCI Mushroom dataset, the UCI Online Retail dataset, a Greek SME innovation survey, and a sample from the Criteo display advertising dataset. The configurations differ in size (818 to 75,000 transactions), class count (two to four), class balance, transaction density, and item-vocabulary cardinality.
5.1. Experimental Setup
The proposed framework requires three user-defined parameters: the minimum support threshold, the succession distance
d, and the discrimination ratio threshold
. The influence of
d and
is investigated through a dedicated sensitivity analysis presented in
Section 5.8. The minimum support threshold plays the same role as in classical Apriori-based mining by controlling the size of the candidate search space. Because the experimental datasets differ substantially in both size and density, the support threshold was selected individually for each dataset to produce a meaningful number of frequent itemsets. The selected values were determined through preliminary exploratory runs and subsequently remained fixed throughout all experiments.
Every experiment follows the three-step pipeline from
Section 4: prepare and merge the class-tagged data (Algorithm
data_preparation()), run ARIS-Apriori on the merged dataset (Algorithm
count_support_in_succession()), and apply the
frequency ratio criterion to identify discriminative patterns (Algorithm
discr_pattern_validation()). We used Python 3.9 on a single-core Apple M-series machine throughout. The distance parameter is set equal to the full merged dataset size in the main experiments, which makes support counting equivalent to plain frequency counting and lets us study the discriminative criterion in isolation;
Section 5.8 then activates the succession constraint on the Online Retail dataset, whose transactions follow invoice-date order.
Two methodological choices apply uniformly across every dataset:
Per-class support threshold. The Apriori absolute support for class is , computed against that class’s own size. A threshold of on a class of 105 transactions means at least 32; on a class of 7481 transactions it means at least 2244. The merged mining phase is used only to identify candidate itemsets.
Frequency-normalized criterion. A pattern P is discriminative for class z when its per-class support frequency satisfies or when for every .
In the synthetic experiments, all classes contain the same number of transactions. Therefore, using relative frequencies or absolute support counts leads to exactly the same discrimination ratios. We nevertheless report support as a percentage to maintain consistency with the real-world experiments.
The
Table 2 gives an overview of the six experimental configurations. We present the synthetic validation first to establish algorithmic correctness against ground truth, then four real-world experiments ordered by the difficulty of the discrimination problem (Mushroom: balanced and well-separated; Online Retail: multi-class with sparse, high-cardinality items; Greek SME Survey: imbalanced with substantive minority-class signal; Criteo: imbalanced, with minority-class signal that is real but support-sensitive). A cross-dataset synthesis closes the section.
5.2. Validation with Synthetic Data
To evaluate the correctness of the algorithm, synthetic datasets with planted discriminative patterns and known ground truth were generated. This setup enables the exact computation of precision, recall, and F1-score, which is not possible with real-world datasets where the complete set of discriminative patterns is unknown.
Each synthetic dataset has three equal-size classes. Every transaction draws 16 items uniformly at random from a pool of 1000 background items (per-item frequency ≈1.6%), and selected transactions receive additional planted items. We defined four categories of planted patterns:
Unique patterns (U1–U6): Items that appear exclusively in the target class at 30–40% rates. Sizes range from 2 to 4 items. All six should be detected.
Ratio-based patterns (R1–R4): Items present in all classes but at 2.3×–3.5× higher rate in the target. All four should be detected.
Borderline pattern (B1): A 1.67× ratio, below the threshold. This should not be detected.
Negative controls (N1–N3): Near-equal rates across all classes (within 4 percentage points). These should not be detected.
We ran two configurations: T10 (10,000 transactions per class, 30,000 total) and T25 (25,000 per class, 75,000 total), both seeded at 42 for reproducibility. Validation results are shown in
Table 3.
Scoring the discovered patterns requires a precise definition because the ten planted discriminative families generate considerably more than ten valid discriminative itemsets. By the downward-closure property, every subset of a planted discriminative itemset is itself discriminative for the same class. For example, if the planted itemset is discriminative for , then both and are also discriminative. Likewise, a planted four-item itemset contributes all of its discriminative subsets. Consequently, the ground-truth discriminative set is not limited to the ten planted families but consists of the complete downward closure of these families, yielding a total of 54 discriminative itemsets. This explains the value of 54 reported throughout the experimental evaluation.
A discovered itemset is counted as a true positive (TP) if it corresponds to a planted discriminative family, either directly or through one of its subsets or supersets, and satisfies the discrimination criterion based on per-class support counts. A discovered itemset that is unrelated to any planted family is counted as a false positive (FP), while a planted family is counted as a false negative (FN) if none of the discovered itemsets represents it. Consequently, precision is evaluated at the itemset level, whereas recall is evaluated at the planted-family level, and the reported F1-score combines these two measures.
The results show that recall remained 100% across all evaluated support thresholds, with all 10 planted discriminative patterns detected in both T10 and T25 datasets. The algorithm therefore recovered the complete set of known discriminative patterns in the synthetic data.
False positives occur primarily at lower support thresholds and gradually disappear as the minimum support increases. A detailed inspection revealed that these patterns are not incorrect discoveries but valid discriminative itemsets according to the proposed criterion. Most correspond to supersets or combinations of the planted discriminative itemsets that independently satisfy both the minimum support and the discrimination ratio requirements. These patterns do not arise from inaccurate support estimation or from pruning effects during the mining phase. Consequently, the F1-score reaches 1.000 for all support thresholds of 15% and above. The remaining false positives observed at the 5% and 10% support thresholds are mainly redundant supersets of the planted patterns. Applying a minimal-generator filter would reduce the discovered set from 1191 itemsets at 5% support (or 54 itemsets at 15%) to the same 25 minimal patterns corresponding exactly to the planted discriminative itemsets.
The three negative controls and the borderline pattern (1.67×) were flagged at no threshold, in either configuration. The criterion, applied to per-class frequencies, cleanly separates the planted signal from the near-equal and just-below-threshold decoys.
Execution times for the two dataset scales are reported below in
Table 4.
For support thresholds of 15% and higher, both T10 and T25 produced the same number of discriminative itemsets (54), indicating consistent results across datasets of different sizes.
Comparison with Pysubgroup on the Synthetic Data
For a same-hardware reference point we ran a synthetic configuration we refer to as
T5 (3 classes × 5000 transactions = 15,000 total, same item vocabulary as the larger synthetic experiments) through both ARIS-Apriori and
pysubgroup [
33]. Each support level requires three Apriori passes from
pysubgroup (one per class for
class=Z1,
Z2,
Z3), and the same 2× frequency-ratio filter is applied after mining. Counts of discriminative itemsets match ARIS-Apriori exactly at every support tested. Time comparison is shown in
Table 5.
ARIS-Apriori was consistently faster than
pysubgroup on the evaluated datasets. At moderate support (14%, 12%) the gap is about
–
; from 10% downward the two converge to a roughly
ratio as both algorithms start to do significant candidate enumeration. The shape of the two curves reflects a structural difference.
pysubgroup’s runtime is dominated by fixed per-class overheads that do not depend on the number of patterns actually found: building 1034
Selector wrapper objects, evaluating each Selector as a boolean mask over the
pandas DataFrame, and running the quality-function machinery for every candidate, repeated three times (once per class target). On T5 this fixed cost is about 32–34 s and stays essentially flat between 14% and 10% support. ARIS-Apriori has a much lower fixed cost but its runtime is proportional to the candidate space it must enumerate, which grows sharply as support drops. The two curves in
Figure 1 approach each other at the lower end of the range.
This comparison evaluates whether an existing peer-reviewed implementation and ARIS-Apriori produce the same discriminative patterns under identical conditions and whether their runtimes remain within the same order of magnitude. Across the evaluated support thresholds, ARIS-Apriori maintained a consistent runtime advantage. The comparison is revisited on the Mushroom dataset in the following subsection.
5.3. UCI Mushroom Dataset
The UCI Mushroom dataset [
34] is a classical benchmark with 8124 specimens, each described by 22 categorical attributes (cap shape, odor, gill color, stalk surface, and so on) and labeled as edible or poisonous. We treat edibility as the class variable, giving two nearly balanced classes: Edible (
, 4208 transactions) and Poisonous (
, 3916). Every transaction has exactly 22 items, one value per attribute, so density is uniform and poses no challenge.
The support threshold is applied per class, following Definition 1: an itemset must reach
occurrences in its own class. We sweep this threshold from 58% to 78% of each class’s own size, at four-point intervals. At 58% support 706 discriminative itemsets survive; at 78% only 54 remain; below 58% the count climbs into the thousands. The absolute thresholds for each class and the ARIS mining times are listed in
Table 6.
Three trends stand out. First, the number of discriminative itemsets falls quickly as the threshold rises, from 706 at 58% to 54 at 78%, while execution time drops by a smaller factor, so much of the work goes into evaluating candidates that never clear the discriminative criterion.
Second, the split between classes moves with the threshold. As shown in
Figure 2 at 58% the edible class dominates (610 vs. 96); by 74% the two are close (44 vs. 32); and at 78% the poisonous class edges ahead (32 vs. 22). Many edible-associated patterns carry moderate support, while a few poisonous-associated features,
bruises = no above all, stay frequent across the whole band.
Third, the region around 70% per-class support, as shown in
Table 7, gives a reasonably balanced set at moderate cost: 124 discriminative itemsets, comparable representation from both classes, and a mining time under ten seconds.
These line up with the mycological literature. Absence of odor, broad gills, smooth stalk surfaces, and pendant rings are textbook markers for edible specimens; lack of bruising and populations recorded as “several” lean poisonous. odor = none is widely regarded as the single strongest predictor for this dataset, and the algorithm recovers it covering 81% of the edible class at a ratio. gill-spacing = close, despite its high coverage among poisonous specimens (97.1%), is not discriminative: it also appears in 71.5% of edible specimens, a ratio of only 1.36×, well short of the threshold, so it does not appear among the reported markers.
A practitioner caveat worth flagging: two attributes are nearly constant in this dataset (veil-type = partial appears in 100% of all 8124 transactions, veil-color = white in nearly all). They show up as “padding” inside compound discriminative itemsets, for example, the four patterns {gill-size = broad}, {veil-type = partial, gill-size = broad}, {veil-color = white, gill-size = broad}, and {veil-type = partial, veil-color = white, gill-size = broad} have nearly identical supports and encode the same single underlying signal. A simple post-processor that collapses patterns sharing both their support and a near-constant item resolves this if compactness matters.
Comparison with Pysubgroup on the Mushroom Data
We now repeat the
pysubgroup comparison on Mushroom, following the same protocol used for the synthetic T5 dataset. Because Mushroom is a two-class problem (Edible vs. Poisonous),
pysubgroup is executed twice, once with each class serving as the binary target, using
MinSupportConstraint set to the corresponding class-specific minimum support threshold. Its built-in support constraint limits the total subgroup size across both classes rather than the support within the target class. Therefore, we apply the target-class support threshold of Definition 1 as an explicit post-filter. The discriminative criterion is then evaluated using support values recomputed directly from the original transactions of each class, rather than those returned by
pysubgroup. This reproduces exactly the discriminative evaluation performed by ARIS-Apriori. Both pipelines are executed on the same hardware and the same merged transactions; therefore, the reported execution times in
Table 8 reflect differences in the algorithms and their implementations rather than language-level overhead.
The discriminative column reports a single value per row because both algorithms recover essentially the same set of patterns on Mushroom, with only a small boundary-case difference at 62% support, the same effect noted for the synthetic comparison. As a result, the more interesting comparison remains execution time rather than pattern recall.
As shown in
Figure 3, ARIS-Apriori is faster than
pysubgroup at every support level we tested, with the gap ranging from
at 78% to
at 58%. The same structural and implementation factors discussed for T5 apply here: the per-class Apriori multiplier (now
instead of
because Mushroom has only two classes), the
pandas DataFrame indexing overhead, the quality-function machinery, and the Selector wrapper costs. With a smaller item vocabulary (117 unique items vs. 1034 on T5) the fixed-overhead component is also smaller, so the flat-runtime regime that produced a crossover on T5 does not appear within the Mushroom range tested. At lower support,
pysubgroup hits a memory wall well before ARIS-Apriori does, consistent with its heavier per-candidate state (boolean masks, quality scores, Selector objects); we leave a full characterization of that regime to future work.
5.4. Online Retail Dataset
The UCI Online Retail dataset records customer invoices from a UK-based retailer between December 2010 and December 2011. We retained the 20,728 invoices dated in 2011 and grouped them by calendar quarter, yielding four classes: Q1 (3777 transactions), Q2 (4625), Q3 (4845), and Q4 (7481). The objective is to identify discriminative itemsets whose occurrence is associated with a specific quarter.
Compared with the previous datasets, the Online Retail dataset contains a substantially larger item vocabulary (∼3900 distinct StockCodes) and exhibits high sparsity, with most products appearing in fewer than 1% of transactions. We apply the per-class support threshold of Definition 1. Mining below 2% per class combinatorially explodes the candidate space on this sparse, high-vocabulary catalog, so we vary the threshold from 2% to 5% of each quarter’s own size.
In
Table 9 Q4 dominates at every threshold, from 55% of patterns at 2% support to 74% at 5%. This is a real seasonal effect: the holiday quarter introduces a wide catalog of items (Christmas decorations, hot-water bottles, hand warmers) whose annual sales are concentrated in October through December. The algorithm keeps finding patterns well past 4% support: genuinely popular, quarter-specific products keep clearing the bar even as the threshold rises. The practical sweet spot remains around 2–2.5% support, where every quarter is represented and mining completes in about a minute or less. A graphical comparison of discriminative itemsets by quarter at each support threshold is displayed in
Figure 4.
The decoded product names exhibit distinct patterns across quarters. Many of the strongest Q4 itemsets are associated with holiday-themed and gift-related products, whereas Q3 contains several shopping-bag-related itemsets. Q2 is characterized by itemsets containing outdoor and household products, while Q1 groups around Easter and kitchenware. These observations are specific to the Online Retail dataset and are intended as descriptive interpretations of the discovered itemsets.
Table 10 lists the five strongest discriminative itemsets per quarter at 2.5% support, together with their exact cross-class frequency and ratio.
Several of the size-2 itemsets pair products from the same line: {SET OF 3 CAKE TINS, SET OF 6 SPICE TINS} in Q1, {JUMBO BAG VINTAGE DOILY, JUMBO BAG RED RETROSPOT} and {LUNCH BAG RED RETROSPOT, LUNCH BAG VINTAGE DOILY} in Q3. These indicate recurring co-purchase behavior within specific quarters and may be useful for downstream retail analyses, including product grouping, assortment planning, and promotion design.
Every pattern in
Table 10 is ratio-based rather than exclusive, and this is the norm on this dataset. Of the 153 discriminative itemsets at 2.5% support, only 11 are truly exclusive (zero occurrences in every other quarter), all of them in Q4: niche items such as
TRADITIONAL PICK UP STICKS GAME and
WALL ART STOP FOR TEA that happen not to appear at all outside the holiday quarter. True exclusivity becomes rarer as the threshold rises, from 15 of 283 patterns at 2% down to zero of 23 at 5%: the itemsets that survive a higher threshold are, almost by construction, popular enough to have some presence everywhere. The retail dataset’s discriminative signal is overwhelmingly about seasonal concentration, not hard exclusivity: the Christmas paper chain kit sells in every quarter but still moves at
the rate of its next-best quarter in Q4, which is exactly the pattern the
ratio criterion was designed to catch.
5.5. Greek SME Innovation Survey
We applied ARIS-Apriori to a survey of 818 Greek SMEs covering roughly 85 questions on company profile, partnerships, innovation activities, certifications, promotion strategies, and perceived barriers. The class variable is the number of employees, grouped into three categories: (solo owner, 287 responses), (1–9 employees, 426), and (10 or more, 105). The main methodological issue for this dataset is class imbalance: is four times smaller than .
Each response becomes a transaction of ColumnName = Value items, such as Certificates = Yes or EstYear = Pre2010. We adopted a positive-only encoding, dropping all = No items. Including them would double the vocabulary and push the average transaction length from ∼23 to ∼57 items; we tried this, and Apriori candidate generation became intractable below 50% support without producing additional interpretable discriminative patterns.
This dataset is where the class-size imbalance is most severe in our experiments:
has only 105 responses, a quarter of
’s 426. We apply the support threshold of Definition 1 and compare per-class
frequencies ; We vary the threshold from 20% to 40% of each class’s own size: high enough to keep mining fast and every reported itemset well supported. The counts of discriminative itemsets under this methodology are shown in
Table 11.
As it is diplayed in
Figure 5, across the entire support range, no discriminative itemsets are identified for either
(solo owners) or
(micro enterprises). Although candidate itemsets satisfy the corresponding support thresholds, none achieves the required 2× frequency ratio relative to the remaining classes. In contrast, class
(10 or more employees) exhibits a substantial number of discriminative itemsets, with 33 discovered at 30% support. The characteristics of the discriminative itemsets for each class are discussed below.
5.5.1. (Solo Owners, 287 Transactions)
has no discriminative itemset at 20% support or above: no candidate recovers a margin against both other classes at this evidence level. The strongest candidate anywhere in the dataset is Sector = Energy, at a ratio on 22 of 287 solo-owner transactions (7.7% relative support), well below the 20% threshold used here. The pattern {EstYear = 2020s, Region = WestGreece}, occurring in 44.6% of transactions, is not discriminative: its frequency is 27.9%, only a ratio, short of the threshold. We find no robust discriminative signal for at the support levels considered here.
5.5.2. (Micro Enterprises, 426 Transactions)
No discriminative itemsets are identified for at support thresholds of 20% or higher. Even its strongest single-attribute candidate, RevenueFromInnovation = Over60pct, reaches a discrimination ratio of only 1.9×, remaining below the required 2× threshold. Similarly, although Region = WestGreece is frequent within (69.5%), it is even more frequent in both (76.7%) and (76.2%), and therefore provides no discriminative value. These results indicate that the response profile of substantially overlaps with those of the other two classes. As the largest and most representative group in the survey, exhibits no individual attribute or attribute combination that satisfies the proposed discrimination criterion.
5.5.3. (10 or More Employees, 105 Transactions)
Class
is the only class for which discriminative itemsets are discovered within the examined support range. At the 30% support threshold, the proposed method identifies 33 discriminative itemsets. These patterns are organized around three dominant characteristics of larger enterprises: formal certification (
Certificates = Yes, particularly ISO 9001 certification), long-term operation (
EstYear = Pre2010), and active business development through participation in trade exhibitions and investment in R&D. In addition to identifying individually discriminative attributes, the proposed method also reveals interactions between attributes that are not discriminative in isolation. For example,
Region = WestGreece does not satisfy the discrimination criterion on its own, yet its combination with
EstYear = Pre2010 achieves a discrimination ratio of 2.4×, demonstrating that the discriminative power arises from the joint occurrence of the two attributes rather than from either attribute individually. The strongest discriminative itemsets are presented in
Table 12.
The discriminative patterns identified for consistently characterize larger and more established enterprises. They combine attributes related to formal certification (particularly ISO 9001), longer operational history (EstYear = Pre2010), and stronger innovation and market-development activities, including investment in R&D and participation in trade exhibitions. Together, these patterns suggest that firms with 10 or more employees are distinguished by a combination of organizational maturity and innovation-oriented practices rather than by any single characteristic. All reported discrimination ratios are computed relative to non-zero frequencies in the comparison classes, indicating that these patterns are significantly more frequent in rather than being exclusive to it.
5.6. Criteo Display Advertising Dataset
As a final stress test we applied ARIS-Apriori to a sample from the Criteo Display Advertising Challenge dataset, a large-scale click-through rate (CTR) prediction benchmark containing 45.8 million ad impressions. Each record has 13 integer count features (I1–I13) and 26 categorical features (C1–C26), all anonymized via 32-bit hashing. The class variable is whether the ad was clicked (Label = 1) or not (Label = 0).
We sampled 20,000 rows stratified by label from the first 100,000 records, yielding 4532 clicked and 15,468 not-clicked impressions, a 3.4:1 class imbalance typical of CTR data. To keep the item vocabulary manageable, we retained only the 10 categorical features with low cardinality (3–46 unique values each: C5, C6, C8, C9, C14, C17, C20, C22, C23, C25), capping C5 and C8 at their 20 most frequent values. This produced transactions averaging 8.2 items from a vocabulary of 157 unique items. Integer features were excluded to avoid arbitrary binning choices on anonymized counts. We apply the per-class support threshold of Definition 1. We vary the support from 1% to 10% of each class’s own size (
Table 13).
Clicked-class discriminants are plentiful at low-to-moderate support: 239 at 1%, falling to 4 at 5%, and disappearing only once the threshold climbs past by 8%, where not-clicked signal thins out as well. The clicked class carries substantial discriminative structure once support is measured against its own size, despite having less than a third as many rows as not-clicked.
At 3% support, the two classes are comparably represented: 14 clicked discriminants and 46 not-clicked. Both sets are dominated by compound itemsets rather than single feature values. The 14 clicked patterns comprise one singleton, five pairs, five triples, two size-4 conjunctions, and one of size 5; the strongest is C14 = 64c94865 alone, at 5.7% own-class frequency against a 2.6% maximum elsewhere (), and the same value anchors nine of the thirteen compounds. The 46 not-clicked patterns include five singletons, with the rest compounds up to size 4; C9 = 7cc72ec2 and C5 = 25c83c98 each anchor 16 of them. Since the Criteo features are anonymized, these hashed values cannot be interpreted directly, but their repeated appearance shows that both classes carry real, if hashed, discriminative structure.
Feature-column participation differs by class: clicked discriminants at 3% draw from C14, C9, C17, C23, C5, C8, and C20, while not-clicked discriminants draw from C17, C9, C5, C8, C6, C23, C14, and C20. Neither class produces a single discriminative pattern from C22 or C25 at any threshold we tested: these two features’ value distributions are too even across classes for any single value to clear the ratio, itself a structurally informative result.
From a computational standpoint, mining time falls off sharply as the threshold rises, from 44.8 seconds at 1% to 1.4 seconds at 10%, reflecting the much larger frequent-itemset universe at the lower end of the sweep. Even the slowest level completes in under a minute on 20,000 transactions with 157 items.
5.7. Cross-Dataset Comparison
Table 14 pulls together the main findings from all six experimental configurations.
Taken together, the experimental results lead to the following conclusions:
Correctness on ground-truth data. In the synthetic experiments, the algorithm recovered all ten planted families, achieving 100% recall across every support threshold and a perfect F1 of 1.000 for all thresholds at or above 15% on both scales. Equally important, exact recounting left no censoring artifacts, so above that threshold the discovered set equals the planted closure exactly. The same accuracy held when the dataset grew by a factor of 2.5 (T25), while execution time scaled approximately linearly with the data.
Domain validity. The discriminative itemsets discovered by the method align well with meaningful domain knowledge. In the Mushroom dataset, the identified patterns correspond to well-known mycological characteristics, including odor = none, gill-size = broad, and bruises = no. Similarly, in the Retail dataset, the decoded product names reflect clear seasonal purchasing trends, with Christmas decorations and hot-water bottles dominating Q4, lunch and shopping bags appearing in Q3, picnic and garden items in Q2, and Easter and kitchenware products in Q1. These results suggest that the method is able to capture relevant and interpretable signals across different domains without requiring domain-specific tuning.
Per-class support make minority-class detection possible. The frequency-normalized criterion identifies minority-class discriminative itemsets in the Survey dataset (, a class four times smaller than ) and in Criteo (the clicked class, outnumbered 3.4:1). In Criteo the clicked side yields 239 discriminants at 1% support and 14 at 3%, comparable in number to the not-clicked side despite having less than a third of its rows.
Ratio-based discriminative itemsets are the norm, not the exception. The large majority of Retail’s discriminative itemsets are ratio-based rather than exclusive: at 2.5% support, only 11 of 153 patterns are genuinely absent from every other quarter, and that count falls to zero by 5%. Products such as the Christmas paper chain kit sell in every quarter but spike sharply in their dominant one. These are precisely the patterns a pure exclusivity test would miss, and the finding validates retaining the ratio criterion alongside the unique-pattern check.
Threshold sensitivity is real and dataset-specific. The best support level varies widely: 15% on synthetic, 70% per class on Mushroom, 2–2.5% per class on Retail, 30% per class on Survey, 3% per class on Criteo, and depends on transaction density, item count, vocabulary size, and how strongly the classes separate. There is no single universal value, and we recommend that practitioners sweep a band rather than fix a threshold up front.
All four real-world experiments (
Section 5.3,
Section 5.4,
Section 5.5 and
Section 5.6) use the per-class threshold of Definition 1. In all experiments reported above, the succession distance parameter was set to
, causing the succession support to coincide with conventional support counting. This configuration was intentionally adopted to enable a direct comparison with existing discriminative itemset mining algorithms, which are based on conventional support, and to isolate the contribution of the proposed discriminative mining framework from the additional effect introduced by the succession parameter. While this setting enables a fair baseline comparison, it does not demonstrate the impact of succession-based support itself. Therefore, an additional set of experiments evaluating different values of d is presented in the following subsection.
5.8. Parameter Sensitivity Analysis
Beyond the support threshold, the method has two parameters: the distance
d, which decides which occurrences count as support, and the ratio threshold
, which decides how large a frequency differential must be before a pattern is called discriminative. We vary both parameters jointly on two datasets. The synthetic T10 configuration, at its 15% operating point, gives every cell a ground-truth interpretation. Online Retail, at its 2.5% operating point, is the dataset whose transaction order carries real meaning: invoices are stored in date order at roughly 55 invoices per trading day, so
spans about one day.
Figure 6 and
Figure 7 report the discriminative-itemset count at every combination of
and
.
Figure 6 illustrates the sensitivity of the proposed method to the discrimination ratio threshold
and the succession distance
d, using the synthetic dataset for which the ground truth is known. For all values of
d, every threshold between
and
recovers exactly the 54 itemsets belonging to the planted downward closure. This interval lies between the strongest non-planted pattern (
) and the weakest planted pattern (
), demonstrating that the commonly adopted value
is robust rather than the result of parameter fine-tuning.
Reducing the threshold to admits the strongest non-planted pattern together with its two discriminative subsets, increasing the total number of discovered itemsets from 54 to 57. Conversely, increasing beyond 2.25 progressively removes the weaker planted families, reducing the number of discovered itemsets from 54 to 44, then to 41, and finally to 38. The remaining 38 itemsets correspond to the downward closure of the six uniquely discriminative planted families, which remain discriminative for any higher threshold.
The influence of the succession distance is considerably smaller. For , the number of discovered itemsets remains unchanged for every value of , as expected, since the synthetic transactions have no meaningful ordering and the planted itemsets occur densely within their target classes (30–40%), making succession breaks unlikely. The only noticeable deviation occurs at , where several itemsets reappear (51 instead of 44 at ). This behavior is caused by the succession constraint reducing the measured support of scattered occurrences in the comparison classes, thereby increasing the observed discrimination ratios. This result confirms that succession-based support is beneficial only when the transaction order carries meaningful information, whereas applying a small succession distance to unordered data may artificially inflate discrimination.
Figure 7 demonstrates that both the discrimination ratio threshold
and the succession distance
d influence the discovered patterns. As
increases, the number of discriminative itemsets decreases steadily for every value of
d, from 252 itemsets at
to 29 at
under conventional frequency counting (
). This gradual decline indicates that larger values of
simply retain the most strongly quarter-specific products, without exhibiting any critical threshold around the default value
.
The succession distance has a different effect. For moderate values (–100), the proposed succession-based support consistently discovers more discriminative itemsets than conventional frequency counting, and the advantage becomes more pronounced as increases. For example, at , using yields 64 discriminative itemsets compared with only 50 when .
The composition of the discovered patterns also changes. At and , 24 of the 153 frequency-based discriminative itemsets disappear because their occurrences are too sparsely distributed to satisfy the succession criterion. At the same time, 28 new itemsets emerge. These patterns are not sufficiently discriminative under conventional support but become discriminative when succession-based support is used because their occurrences are concentrated into temporal bursts within the target quarter while remaining scattered across the comparison quarters. A representative example is WOODEN ROUNDERS GARDEN SET. Under conventional support it reaches a frequency of 2.98% in Q2 compared with a maximum of 1.72% in the remaining quarters, corresponding to a discrimination ratio of only . Under succession-based support with , however, the ratio increases to , allowing the itemset to satisfy the discrimination criterion. Since the discrimination ratio itself is independent of the support threshold, such patterns cannot be recovered by adjusting the minimum support alone; they become visible only when the temporal locality of transactions is taken into account.
Overall, the two parameters play complementary roles. Increasing increases the required discriminative strength, whereas decreasing d increases the required temporal concentration of itemset occurrences. The strictest configuration (, ) therefore identifies only 20 itemsets that are both highly concentrated in time and strongly associated with a particular quarter. These results demonstrate that the succession distance is meaningful only for datasets whose transaction order carries information. For datasets such as Mushroom and the Greek SME Survey, where transaction order is arbitrary, setting remains the appropriate choice, as also confirmed by the synthetic experiments.
6. Conclusions
We have presented a procedure for discriminative pattern mining that extends the Association Rules in Succession (ARIS) framework [
26] to multi-dataset cases. The proposed approach consists of three steps. First, dataset membership is encoded through class markers within a single merged transactional database. Next, ARIS-Apriori is executed with a support threshold calculated with respect to each class’s own size. Finally, a frequency-normalized
ratio criterion, evaluated by exact cross-class counting, is applied to identify itemsets whose frequency dominates the maximum frequency in any other class.
Across six experimental configurations (two synthetic scales with planted ground truth, the UCI Mushroom and Online Retail benchmarks, a Greek SME innovation survey, and a Criteo CTR sample), the method recovers the intended structure. On the synthetic data it achieves 100% recall at every threshold and a perfect F1 of 1.000 for every support at or above 15%, confirming algorithmic correctness against ground truth. On Mushroom it surfaces well-known mycological markers (odor = none, gill-size = broad, bruises = no) at 70% per-class support. The results across the four real-world datasets highlight both the strengths and the reach of the approach. In Online Retail, the method captures clear seasonal trends across all four quarters; most of its discriminative itemsets are ratio-based rather than exclusive, demonstrating the value of the ratio criterion beyond pure exclusivity checks. Activating the succession constraint on this dataset, whose invoices follow time order, surfaces 28 further seasonal discriminants at that frequency counting alone does not find. In the Greek SME survey, only the minority class () carries a robust discriminative signal; the solo-owner and micro-enterprise classes have none. In Criteo, the clicked class carries substantial discriminative signal despite being outnumbered 3.4:1 by not-clicked impressions, once support is measured against its own size.
We benchmarked ARIS-Apriori against
pysubgroup [
33], a peer-reviewed Python library for subgroup discovery, on the same hardware and same merged datasets. On synthetic T5 (15K transactions, three classes) ARIS-Apriori is
–
faster than
pysubgroup at moderate support and the gap narrows to about
as both algorithms enter the candidate-enumeration regime. On Mushroom ARIS-Apriori is faster at every support level tested, by up to
at the low end of the band, and sustains lower support levels before memory becomes a constraint. The two libraries produce essentially identical sets of discriminative itemsets where both complete, so the runtime comparison reflects implementation and architecture choices rather than algorithmic differences. Overall, the results show that a specialized algorithm for discriminative itemset mining can produce the same answers as a general-purpose library while maintaining a consistent speed advantage at the support levels typically used by researchers.
The comparison with pysubgroup was performed under , where succession-based support is equivalent to conventional support. This setting was intentionally adopted to validate the proposed discriminative itemset mining framework against an existing implementation under identical support semantics. Under these conditions, both methods discover the same class of patterns, namely conventional discriminative itemsets. When smaller values of d are employed, the proposed succession-based discriminative itemset mining framework incorporates the locality of itemset occurrences in the original transaction order and discovers succession-based discriminative itemsets. Since existing discriminative mining algorithms are based exclusively on conventional support and do not consider transaction proximity, the patterns discovered under belong to a different pattern class and therefore cannot be directly compared with their outputs. Consequently, the purpose of the additional sensitivity analysis is not to demonstrate equivalence with existing methods, but rather to illustrate the effect of the succession parameter and to highlight the additional information provided by succession-based discriminative itemset mining.
Several directions remain open. First, although the proposed framework now demonstrates the effect of succession-based support through a sensitivity analysis over different values of the succession distance parameter, a more extensive evaluation on large-scale temporal and sequential transactional datasets (e.g., event logs, clickstreams, server traces, or behavioral sessions) would provide further insight into the practical benefits of succession-based discriminative itemset mining. Second, the discriminative criterion is currently based on a user-defined ratio threshold. While the sensitivity analysis illustrates the influence of this parameter, adaptive or statistically calibrated discrimination thresholds could further improve robustness across datasets with different class distributions. Third, the current framework focuses on the complete discovery of succession-based discriminative itemsets and does not incorporate redundancy reduction or statistical significance testing. Integrating closed or maximal discriminative pattern mining together with multiple-testing correction techniques (e.g., FWER or FDR control) would constitute a valuable extension of the framework. Finally, scaling ARIS-Apriori to very large transactional datasets through distributed implementations based on Spark or MapReduce would broaden the applicability of the proposed method beyond the moderate-scale datasets considered in this work.