| A random forest optimization method is proposed. The random forest optimization method includes generating a setting value group according to a Simplification Swarm Optimization (SSO) rule, and transforming the setting value group into a plurality of decision tree codes and a plurality of weight values corresponding to the decision tree codes of the random forest model. The decision tree codes correspond to a plurality of binary decision tree models. An accuracy and a decision tree number corresponding to the setting value group is calculated. The accuracy is a predicting accuracy of the random forest model, and the decision tree number is a number of the binary decision tree models. A best accuracy and a lowest decision tree number in a database are updated according to the accuracy and the decision tree number of the setting value group. The aforementioned steps are executed repeatedly until a number of the setting value group equal to a predetermine number. Thus, the random forest optimization method of the present disclosure can reduce a decision tree number of the random forest model and reduce the computing time effectively. |