Simple SummaryThe use of the compost barn system has increased in dairy farms as it provides greater well-being to animals, favoring productivity. Thus, studies related to the thermal environment and behavior are paramount to assessing animal welfare and optimizing management. The objective of this work was to characterize the thermal environment inside a compost barn and to evaluate the standing and lying behavior of cows through images covering the four seasons. Dry bulb temperature, dew point temperature, and relative humidity data were collected every 10 minutes during the analyzed days, calculating the temperature and humidity index (THI). Filming was performed inside the barn, which was analyzed visually and in an automated way to assess the behavior of these animals. For the automated analysis, an algorithm was developed using Artificial Intelligence tools, YOLOv3. It was observed that in the experimental period the highest mean values of THI were observed during the afternoon and autumn. The animals’ preference to lie down on the bed for most of the day was verified. Regarding the developed algorithm, it was observed that it could detect cow behavior (lying down or standing), concluding that artificial intelligence was successfully applied and can be recommended for such use.The compost barn system has become popular in recent years for providing greater animal well-being and quality of life, favoring productivity and longevity. With the increase in the use of compost barn in dairy farms, studies related to the thermal environment and behavior are of paramount importance to assess the well-being of animals and improve management, if necessary. This work aimed to characterize the thermal environment inside a compost barn during the four seasons of a year and to evaluate the standing and lying behavior of the cows through images. The experiment was carried out during March (summer), June (autumn), August (winter), and November (spring). Dry bulb temperature (tdb, °C), dew point temperature (tdp, °C), and relative humidity (RH,%) data were collected every 10 minutes during all analyzed days, and the temperature and humidity index (THI) was subsequently calculated. In order to analyze the behavior of the cows, filming of the barn interior was carried out during the evaluated days. Subsequently, these films were analyzed visually, and in an automated way to evaluate the behavior of these animals. For the automated analysis, an algorithm was developed using artificial intelligence tools, YOLOv3, so that the evaluation process could be automated and fast. It was observed that during the experimental period, the highest mean values of THI were observed during the afternoon and the autumn. The animals’ preference to lie down on the bed for most of the day was verified. It was observed that the algorithm was able to detect cow behavior (lying down or standing). It can be concluded that the behavior of the cows was defined, and the artificial intelligence was successfully applied and can be recommended for such use.