Abstract Large data processing has become a central focus of modern computational research. Efficiently extracting actionable information from massive datasets is a critical challenge in the field of data mining. This paper introduces a parallelized decision tree algorithm based on the principles of Granular Computing (GrC). By redefining decision tree concepts through granular structures, we present an improved and parallelized version of the ID3 algorithm. The proposed method was evaluated on standard datasets and deployed on a Hadoop platform. Results indicate that the algorithm significantly improves classification accuracy and demonstrates efficient processing capabilities for massive datasets through near-linear scalability.
Introduction
The ID3 (Iterative Dichotomiser 3) algorithm is a foundational tool in machine learning for constructing decision trees. However, it faces two primary challenges when applied to big data: attribute bias and computational scalability. ID3 naturally favors attributes with a high number of distinct values, which often leads to overfitting or poor generalization. Furthermore, the computational overhead of calculating Shannon entropy across millions of records creates a significant bottleneck for single-machine systems. This research addresses these issues by integrating Granular Computing to simplify entropy calculations and utilizing the MapReduce framework for distributed processing.
Methodology
1. Granular Entropy Calculation
Traditional ID3 relies on Shannon entropy, which can be computationally expensive and biased toward multi-valued attributes. This paper proposes a granular approach to information entropy. In this framework, the information system is viewed as a collection of "data granules"—subsets of objects that share identical attribute values.
- Elementary Granules: These are the basic units of information derived from individual attributes.
- Granular Operations: The algorithm employs specific intersection operations to combine granules, allowing for a more efficient derivation of Information Gain.
- Improved Formula: By basing calculations on the cardinality (size) of these granules rather than raw data distributions, the algorithm reduces the mathematical complexity and mitigates the inherent bias toward attributes with many values.
2. Parallelization via MapReduce
To handle massive datasets, the granular ID3 algorithm is implemented on the Hadoop platform using the MapReduce programming model. The process is divided into distinct phases:
- Map Phase: The system "granulates" the input data. Raw data slices are processed to emit key-value pairs where the key represents an attribute-value pair and the value is the associated object ID.
- Reduce Phase: Reducers merge these pairs to construct the complete elementary granule space for the dataset.
- Parallel Entropy Calculation: Once the granules are formed, the information gain for each attribute is calculated in parallel across the cluster nodes. This allows the system to determine the optimal splitting point for the decision tree without the need for a single node to process the entire dataset.
Experimental Evaluation
The proposed algorithm was tested using three benchmark datasets from the UCI Machine Learning Repository: Mushroom (8,124 instances), Nursery (12,960 instances), and Promoters (106 instances). To evaluate scalability, the Nursery dataset was amplified to sizes of 100M, 300M, 500M, and 1000M records through duplication.
Results and Discussion
Accuracy Improvements
The granular approach demonstrated superior classification performance compared to traditional ID3. On the Nursery dataset, accuracy improved significantly from 78.9% to 94.1%. Similarly, on the high-dimensional Promoters dataset, the proposed algorithm achieved 79% accuracy, outperforming the traditional version's 76.4%.
Scalability and Efficiency
The parallel implementation on Hadoop showed strong performance gains as the cluster size increased. For the largest test case (1000M records), the processing time was reduced by approximately 50% when moving from a single-node setup to a three-node cluster.
As shown in the figure above, the processing time increases with dataset size, but the gap between the single-computer and multi-computer configurations widens significantly at higher volumes. This suggests that the overhead of the Hadoop framework is well-compensated by the distributed processing power once the data reaches a critical threshold of complexity.
Conclusion
By combining Granular Computing with the MapReduce framework, this research provides a robust solution for large-scale decision tree induction. The granular approach successfully addresses the attribute bias of the ID3 algorithm while improving classification accuracy. Furthermore, the parallel implementation on Hadoop ensures that the algorithm can scale effectively to meet the demands of modern big data environments. Future work will focus on comparing this granular method with other distributed frameworks and optimizing memory usage for high-cardinality datasets.
Summary updated