- Introduced by
- Dzyuba, V. & van Leeuwen, M.; Boley, M. et al.
- Year
- 2010s
- Type
- Interactive pattern mining
- Family
- Machine learning
What does it do?
Active learning association rules applies the query-and-label loop of active learning to association rule mining, so that a domain expert judges candidate rules and the system adjusts which candidates it shows next.
Candidate rules are still produced by a base miner or a sampling procedure; the method changes which of them reach the user and in what order. The aim is a short list ranked by subjective interest, rather than a long list ranked only by support and confidence thresholds.
The intuition behind the method
A batch run at fixed minimum support and confidence can return a very large set of rules, many of them redundant or already known to the analyst. In the interactive variant, the system shows the user one candidate at a time, chosen as the most informative for its current model, records whether the rule is interesting, and updates its estimate of the user's preferences before choosing the next candidate. Because the preference model is revised after every answer, later queries can concentrate on the kinds of rules the expert has marked as useful. The candidate pool itself may still come from ordinary enumeration or sampling, so the method reduces the reading burden on the analyst rather than the cost of generating rules.
History
This page draws on two cited lines of related work. Boley and colleagues (2013) published on direct local pattern sampling, a way to generate candidate patterns without full enumeration. Dzyuba and van Leeuwen (2017) published on interactive discovery of association rules using subjective interestingness. These are related work on interactive rule discovery and pattern sampling. They are not presented here as the confirmed origin of the active learning loop described on this page, which is a general class of methods rather than one fixed algorithm.
When to use it
Choose this method when the transaction database is large enough that a threshold-based rule list is too long to review, and when a domain expert can answer questions during the session. It suits settings where subjective relevance matters alongside statistical strength, such as clinical informatics, retail basket analysis, or hypothesis generation in science. Do not use it when no expert is available to label candidates, when the complete rule set is needed for automated downstream processing, or when the database is small enough that full enumeration can be read directly. Batch rule mining is the better choice when results must be reproducible across runs without human input.
Limitations and considerations
- Needs an interactive expert for the whole session, which rules out fully automated pipelines.
- The result reflects the labels given; inconsistent or poorly informed labelling produces a preference model that does not match the analyst's real interests.
- The preference model is uninformative at the start, so the first queries may be poorly targeted.
- The candidate pool is still produced by enumeration or sampling, so the method does not by itself remove the cost of generating rules in very large databases.
- Evaluation is subjective, and there is no single ground truth against which the ranked list can be benchmarked.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Reduces the number of rules an analyst must read, because the user sees a sequence of selected candidates rather than the full output.
- Learns a preference model specific to the analyst, instead of applying one fixed interestingness measure to every user.
- Can use any base rule generator, such as Apriori, FP-growth or sampling, to build the candidate pool.
- The user does not need to fix final support and confidence thresholds for ranking, because feedback guides which rules are shown; a loose candidate-generation threshold must still be set, and it limits which rules can ever appear.
Applications
- Retail basket analysis: surfacing cross-selling opportunities that a category manager finds actionable.
- Scientific hypothesis generation: identifying co-occurrence patterns in datasets that match expert intuition.
- Hypothetical use cases, not evaluated by the sources cited on this page: clinical informatics (drug-adverse event co-occurrences judged by a pharmacologist) and fraud analysis (transaction patterns judged by an analyst). Validate carefully before using in high-stakes settings.
How it works
How it works
A pool of candidate association rules is produced first, either by enumeration with a base miner such as Apriori or FP-growth at a loose threshold, or by sampling. A loose support threshold must still be chosen here, and it limits which rules can ever be shown to the user. In large transaction databases the pool can be very big.
The system chooses one candidate to present, guided by an acquisition function such as uncertainty sampling, expected model change, or a subjective interestingness score. The user labels the rule as interesting or uninteresting. Since each query costs expert time, the choice of query is the main way the method controls the cost of a session.
After each label, the model of user preferences is updated. Such a model is typically Bayesian or linear and uses rule features such as support, confidence, lift and item identity. The exact acquisition function, model form and update rule vary between implementations; this page describes a general class of methods, not a single specified algorithm.
The remaining candidates are re-scored with the updated model. Rules with high predicted interest are presented next, and near-duplicate rules are pruned so that the user is not asked to judge essentially the same pattern repeatedly.
The loop stops when the user is satisfied, when the query budget is used up, or when further queries are expected to add little. The output is a short list of rules ranked by predicted user interest.
Common pitfalls
- Showing near-duplicate rules in successive queries wastes expert attention and can produce inconsistent labels; redundancy pruning or diversity constraints help.
- Starting from an empty preference model leaves cold start unaddressed. One option is to ask about a fixed, diverse sample of candidates (spread across support levels and items) before the acquisition function takes over; this is a heuristic, not a validated default.
- Reporting the final ranked list without support, confidence and lift for each rule hides whether the rules are supported by the data at all.
- Treating subjective interestingness as equivalent to statistical significance; a rule the expert likes may be weakly supported, and a strongly supported rule may be judged uninteresting.
- Not checking label consistency. Re-ask a small subset of rules during or after the session, and have a second analyst review the final list where possible.
Frequently asked questions
How many queries does the user need to answer?
There is no fixed number. The required number depends on how varied the candidate rules are and how consistent the expert's judgements are. A query budget is typically set in advance, and the session can also stop once further queries add little.
Does this replace standard association rule mining?
No. It is a complement: standard mining (Apriori, FP-growth) is typically used to generate candidates, and the active learning loop then filters and ranks them according to expert preferences.
What if different experts disagree on interesting rules?
The method as described learns one preference model per session. With several experts, separate sessions can be run and their top-ranked rules compared or merged, or labels can be aggregated.
How is interestingness different from confidence or lift?
Confidence and lift are objective statistical measures computable from the data. Subjective interestingness is user-dependent: a rule can have high lift but be obvious to an expert and thus uninteresting, or have modest lift but be novel and actionable.
Can I use this without a labelling expert in real time?
Possibly, as an extension: labels from a prior session could be used to fit a preference model that is then applied in batch. This is not described in the cited sources, and the adaptive benefit of real-time feedback would be lost.
Related methods
Sources
Dzyuba, V., & van Leeuwen, M. (2017). Interactive Discovery of Interesting Association Rules by Subjective Interestingness. In Proceedings of the European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases (ECML PKDD). Springer.
Open publication referenceBoley, M., Lucchese, C., Paurat, D., & Gartner, T. (2013). Direct Local Pattern Sampling by Efficient Two-Step Random Procedures. In Proceedings of the 19th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (pp. 582–590). ACM.
Open publication reference