- Introduced by
- Liu, B.; Hsu, W.; Ma, Y. (and subsequent researchers)
- Year
- 2003–2010s
- Type
- Pattern mining with partial supervision
- Family
- Machine learning
What does it do?
Semi-supervised association rule mining applies classical association rule learning to transactional or tabular data in which only part of the records carry class labels or domain constraints.
Itemset frequencies are counted over the full dataset, while labels or constraints restrict which rules are kept, so the output is oriented toward a target outcome. The method appears in the literature under several names, and published formulations differ in detail.
The intuition behind the method
Standard association rule mining reports every rule whose support and confidence exceed the thresholds, whether or not it relates to any outcome of interest. In the semi-supervised variant, a small set of labeled records or user-specified constraints is used to keep only rules that point toward a target class or respect a stated restriction. Support is still computed from the fraction of transactions containing each itemset, so the unlabeled records continue to supply the counts. The labels act as a filter and a priority signal on the rule set rather than as a separate predictive model.
History
Association rule mining and the Apriori algorithm are the classical foundations on which this method builds; consult the original publications for their attribution. Semi-supervised variants are described under several names (see aliases), and no single origin is attributed to them.
When to use it
Choose semi-supervised association rule mining when the data are transactional or tabular with discrete items, when only some records have class labels or domain annotations, and when the goal is rules that bear on a specific outcome rather than all frequent co-occurrences. Market-basket data with some known purchase outcomes, clinical records where only some cases have confirmed diagnoses, and text collections with few labeled documents fit this pattern. Avoid the method when the labeled portion is so small that constraints would rest on a handful of cases, when fully labeled data are available and a supervised rule learner would serve, or when the goal is a predictive model rather than a set of rules.
Limitations and considerations
- Constraints are derived from the labeled seeds, so a biased labeled subset biases which consequents are allowed and therefore which rules survive.
- Support, confidence and constraint settings interact, so the combined threshold space is large and cannot be tuned well without labeled validation records.
- Candidate enumeration grows with the number of items; high-dimensional item spaces require aggressive pruning, which can remove rules that a lower threshold would have kept.
- In the self-training loop, errors in early pseudo-labels feed into later rule generation, so a noisy first round can shift the rule set over iterations.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Unlabeled transactions still contribute to the support counts, so itemsets that are rare among the labeled records can be assessed against the full dataset.
- Label-derived consequent constraints remove rules that do not point toward the target class, so they can reduce the size of the output rule set compared with unconstrained mining. The size of the reduction depends on the data and the implementation, so rule counts should be compared against unconstrained mining.
- The output remains a set of IF-THEN rules over items, so each rule can be read and checked directly against the transactions.
- The pseudo-labelling loop can extend label coverage across rounds without additional manual annotation, provided the acceptance criterion is well chosen.
Applications
- Medical record mining where only a subset of patient records carry confirmed diagnoses.
- Market-basket analysis guided by a known subset of purchase outcomes.
- Educational data mining of learning-behaviour patterns linked to a small set of labeled performance outcomes.
- Text categorization with scarce labeled documents.
- Intrusion detection where only some network events are confirmed attacks.
How it works
How it works
The transactions are divided into a labeled portion, whose records carry class labels or constraint annotations, and an unlabeled portion. Support is counted over the full dataset D, so both portions contribute to the frequency estimates. The labeled records are used afterwards to decide which itemsets are kept as targets for rule generation.
Candidate itemsets are enumerated with a classical algorithm such as Apriori or FP-Growth. Support is the fraction of transactions that contain the itemset, as given in the formula, and itemsets below the minimum support threshold are discarded.
Formula
\text{support}(X) = \frac{|\{t \in D : X \subseteq t\}|}{|D|} \geq \text{min\_sup}Constraints derived from the labels or specified by the user are applied to the surviving candidates before rules are formed. The two constraint types covered here are a restriction of the rule consequent to a target class and the exclusion of certain item combinations. For a consequent restriction, a rule X implies Y is kept only when Y is one of the target classes. For an exclusion, rules containing a forbidden item combination are removed. The exact constraint syntax depends on the implementation and should be checked against the software used.
Rules of the form X implies Y are generated from the remaining frequent itemsets and kept if they meet the minimum confidence threshold. Confidence is the support of X union Y divided by the support of X, as given in the formula, which is the conditional frequency of Y among transactions containing X. Rules whose consequent matches a labeled class or constraint are prioritised in the output.
Formula
\text{confidence}(X \Rightarrow Y) = \frac{\text{support}(X \cup Y)}{\text{support}(X)} \geq \text{min\_conf}Discovered rules can be used to assign pseudo-labels to previously unlabeled transactions, and the enlarged labeled set is used in a further mining round. The loop stops when no new high-confidence rules are found or when a preset iteration limit is reached. The acceptance criterion for pseudo-labels is set by the user and should be stated explicitly. One possible choice is to accept a pseudo-label only when its rule meets a stricter confidence threshold and the resulting rules still hold on a held-out labeled subset.
Common pitfalls
- Setting minimum support very low without constraints, which fills the output with frequent but uninformative rules.
- Ignoring class imbalance in the labeled seeds, so that consequent constraints favour the majority class in the discovered rules.
- Ranking rules by confidence alone, which can hide rules with high lift or conviction that are more informative about association strength.
- Accepting mined rules without evaluating them on held-out data not used during mining.
- Reading a rule X implies Y as a causal statement when the method measures co-occurrence only.
Frequently asked questions
How is this different from standard association rule mining?
Standard association rule mining is fully unsupervised: it finds all co-occurrence patterns above a support and confidence threshold with no concept of a target class. Semi-supervised association rules use partial label information or domain constraints to filter and prioritise rules that relate to a specific outcome, which usually gives a smaller and more targeted result set.
How much labeled data is needed?
A small labeled set can still provide useful constraints, but the quality and class coverage of the seeds matter more than their number. Check that each class of interest is represented. With very few examples per class, the constraints can be biased, so results should be validated on a held-out labeled subset.
What thresholds should I set for support and confidence?
No universal values exist: appropriate thresholds depend on dataset size, domain, and how many rules can realistically be reviewed. Start with moderate settings, examine the resulting rule counts, and adjust. Label constraints can reduce the number of output rules, but lowering the support threshold should be done cautiously: compare rule counts and lift at each setting before accepting a lower value.
Can this method handle continuous or numeric features?
Association rule mining operates natively on discrete items, so continuous features must be discretised into bins before mining. The binning strategy affects which itemsets become frequent, so it is worth comparing equal-width, equal-frequency and domain-driven binning and checking how sensitive the results are to that choice.
How do I evaluate the quality of discovered rules?
Beyond support and confidence, assess rules with lift (values above 1 indicate co-occurrence more frequent than expected under independence), conviction and leverage. If the rules are used for prediction, measure accuracy, F1 or AUC on a held-out labeled set. Interestingness measures alone do not establish practical utility.
Related methods
Sources
Liu, B., Hsu, W., & Ma, Y. (2003). Integrating Classification and Association Rule Mining. In Proceedings of the 4th IEEE International Conference on Data Mining (ICDM), pp. 339–346.
Open publication referenceAssociation rule learning. Wikipedia.
Open publication reference