The C4.5 method has weaknesses including problems when the dataset has large dimensions and attributes in the dataset are not all relevant attributes to the classification. These irrelevant attributes affect the accuracy of the C4.5 method. Therefore, optimization is needed to overcome these weaknesses. This study uses particle swarm optimization (PSO) to optimize the C4.5 method used for attriā¦