Research Article

Automatic Rule Generation for Decision-Making in Context-Aware Systems Using Machine Learning

Algorithm 1

Hybrid with decision tree and random tree.
(1)Input: DS a preprocessed candidate dataset
(2)Output: Decision trees
(3)Begin
(4)Apply J48 decision tree to learn on the DS and get the decision tree-based training model
(5)Apply random tree to learn on the DS and get the random tree-based training model
(6)Extract decision trees from both training models
(7)End