Ground-state spin, as a fundamental parameter of nucleus, has consistently been a hot topic in research on nuclear data and structure. In this paper, we extensively investigate the odd-mass nuclei (odd-
Anuclei) on the nuclide chart by using decision trees, including odd-proton nuclei (odd-
Znuclei) and odd-neutron nuclei (odd-
Nnuclei), and train ground-state spin prediction models of odd-
Znuclei and odd-
Nnuclei. In the case of randomly dividing the training set and validation set in a ratio of 75% to 25%, the accuracy rate of the training set and validation set for odd-
Znuclei reach 98.9% and 79.3%, respectively. The accuracy rate of the training set and validation set for the odd-
Nnuclei reach 98.6% and 71.6%, respectively. At the same time, by 1000 random selections of training set and validation set, after being validated repetitively, the standard error of the accuracy rate obtained can be less than 5%, further verifying the reliability and generalization performance of the decision tree. On the other hand, the accuracy rate of decision tree is much higher than those of theoretical models commonly used in nuclear structure research, such as Skyrme-Hartree-Fock-Bogoliubov, covariant density functional theory, and finite range droplet model. Next, by taking all spin-determined odd-
Znuclei and odd-
Nnuclei as a learning set, the ground-state spin values for 254 spin undetermined but recommended odd-
Znuclei and 268 spin undetermined but recommended odd-
Nnuclei are predicted, with the predicted set coincidence rates reaching 68.5% and 69.0%, respectively. Finally, four odd-mass number chains, i.e.
Z= 59,
Z=77,
N= 41, and
N= 59, are selected to compare the learning (prediction) results of the decision tree with the experimental (recommended) values of the corresponding nuclei, and to discuss the differences and similarities in the results given by the three theoretical models, thereby further demonstrating the research and application value of the decision tree in the ground-state spin of nuclei.