The aim of this Research Communication was to apply the data mining technique to classify which environmental factors have the potential to motivate dairy cows to access natural shade. We defined two different areas at the silvopastoral system: shaded and sunny. Environmental factors and the frequency that dairy cows used each area were measured during four days, for 8 h each day. The shaded areas were the most used by dairy cows and presented the lowest mean values of all environmental factors. Solar radiation was the environmental factor with most potential to classify the dairy cow's decision to access shaded areas. Data mining is a machine learning technique with great potential to characterize the influence of the thermal environment in the cows' decision at the pasture.