## 4 Discussion  
The existing algorithms for detecting deviations in indicators of the physiological state of cattle do not consider the location of the animals under study (cows are in the pasture or in the barn). That is why we conducted a comparative analysis of the motor activity index of both sick and healthy dairy cows. The cows of the second group presented deviations in frequency and amplitude of their legs' oscillatory (pendulum) movements when walking (the sinusoid was ahead of the normal sinusoid or lagged behind it). Meanwhile, all parameters were within the normal range for the cows of the first group. The animals' activity index for the first group was on average not less than 10 units, while for the second group, it was below 5 units. The lowest duration of the motor activity was observed in sick animals of the second group: their rest time was 801 min/day, which was longer on average by 47 min (by 6%) than that of healthy cows. The differences between the groups are statistically significant (\(p<0.05\)). [PERSON] et al. (2020) came to the conclusion that the consideration of the locations was necessary to identify deviations from the physiological state in in milk cows. It is important because, for example, heat stress significantly affects the body temperature and the locomotive activity of animals; therefore, not always deviations from the norm would be associated with diseases [28]. [PERSON] et al. (2021) revealed that under heat stress, cows noticeably decreased their locomotive activity and body temperature; besides, there was a violation of the animals' daily routine [29]. [PERSON] et al. (2019) came to the conclusion that the rumen temperature varies greatly depending on the animals' location. For example, when being in a pasture, due to the predominance of succulent feed in the diet, the rumen pH was below normal, while its temperature was higher than the norm [30]. The indoor microclimate has a connection with animals' measured values. For example, a temperature above +20 \({}^{\circ}\)C causes heat stress: energy consumption increases for the maintenance of body optimal temperature, as a result of which the costs of other processes decrease, and immune activity decreases [31]. In high humidity, it is more difficult for an animal's body to cope with infectious diseases; animals' metabolism slows down, their blood flow becomes disordered, and the level of hemoglobin in their blood decreases [32]. For this reason, when creating algorithms, it is necessary to take into account the animals' location. As for the identification of correlations between the physiological state's parameters of cattle, we confirmed successfully the results obtained in the previous studies. Additionally, we obtained the following data: the average value of the linear correlation coefficients for rumen temperature and locomotive activity was 0.199 (=0.088), and that between level of locomotive activity and rumen pH was \(-0.222\) (=0.117). Between pH level and level of locomotive activity of the animals, the linear correlation coefficient reached \(-0.519\), which suggests the presence of a stable connection between these parameters. The correlation between rumen temperature and locomotive activity level reached \(-0.424\), and that between rumen temperature and rumen pH level was \(-0.470\), which also suggests a stable connection. The analysis of the cross-correlation function showed a noticeable connection between level of locomotive activity and air temperature (0.622); moderate correlations were observed between rumen temperature and locomotive activity (0.33), between rumen pH and air temperature (\(-0.36\)), and between level of locomotive activity and relative humidity (\(-0.347\)). Similar results regarding the high correlation between the studied cattle's physiological parameters were obtained by [PERSON] et al. (2008) and by [PERSON] et al. (2016). The research results by [PERSON] et al.