In drying systems, the examination of the drying rate values of the food product in advance gives important information about the raw material to be dried. In this study, thin-layer drying behavior of apple slices in a convective solar dryer was investigated. The experiments were carried out at a drying air temperature of 46–63 °C and a drying air speed of 0.7–1.8 m/s. In order to determine the drying kinetics, the mass change of apple slices was recorded under all drying air conditions. The effects of drying air temperature and speed, drying speed of apple slices, dimensionless moisture content, were investigated. In a solar drying system, thermal efficiency, solar radiation and air velocity values were measured. The drying kinetics of 15-mm thick apple slices were examined for three days in the solar drying system. Using the decision tree algorithm, which is a machine learning algorithm, a predictive model was created for moisture rate in drying experiments and four linear equations were obtained. According to obtained equations, the collector in the drying system depends on the inlet–outlet temperature values, the drying room inlet–outlet temperature values, the drying room humidity values and air velocity values. Moisture rate data were applied to twelve different models and their performance was determined by root mean square error (RMSE) analysis. The mathematical model with the least error rate was (RMSE: 0.09) Midilli model. A comparison was made between these drying models in the literature and the model generated by the decision tree algorithm. According to the results of RMSE error analysis, it was shown that the model created with the decision tree algorithm predicted the moisture rate values with less error values RMSE: 0.03) than the Midilli model.