## 3 Results
Based on the data obtained, we formed Table 1 with three groups of animals, combined according to their values of average single milk yields, average udder surface skin temperatures and the veterinarian's opinion on the severity of mastitis. During the research we made thermograms of the udder of healthy animals and animals that were diagnosed with mastitis of various stages (subclinical, clinical). We formed three reference images allowing for quick comparison of the temperature values to aid in making a fairly accurate assumption about the state of health of the animal. Since physical impact is not a frequent occurrence in the cowhold, and temperature stress is determined and recorded immediately, their impact can be considered as not affecting the result. Several points on the udder thermogram were studied, after which the estimated area was determined. The maximum temperature of determined area is taken as the maximum temperature of the entire udder surface and can be considered an indicator of the presence of inflammation. Figure 6 shows the generated reference image of a healthy udder, which we can use as a guide to determine the condition of the animal. \begin{table}
\begin{tabular}{c c c c} \hline \hline
**Type of Measurement** & **“Healthy” Group** & \begin{tabular}{c} **“Subclinical** \\ **Mastitis” Group** \\ \end{tabular} & \begin{tabular}{c} **“Clinical Mastitis”** \\ **Group** \\ \end{tabular} \\ \hline \begin{tabular}{c} Udder surface skin \\ temperature \\ (average), \({}^{\circ}\)C \\ \end{tabular} & 34.2 & 36.9 & 38.6 \\ \hline \begin{tabular}{c} Milk yield (average), kg \\ \end{tabular} & 10.5 & 7.5 & 3 \\ \hline \begin{tabular}{c} Loss of average one-time \\ milk yield, \% \\ \end{tabular} & 0\% & 29\% & 63\% \\ \hline \
\begin{tabular}{c} Variability of temperature \\ (sd), \({}^{\circ}\)C \\ \end{tabular} & 0.185 & 0.2 & 0.13 \\ \hline
\begin{tabular}{c} Variability of milk yield \\ (sd), kg \\ \end{tabular} & 0.11 & 0.11 & 0.09 \\ \hline \hline \end{tabular}
\end{table} 
Table 1: Formed groups. To form a reference image of the udder of an animal with a diagnosis of \"subclinical mastitis\", close to average values of the \"subclinical mastitis\" parameters from Table 1 were chosen. The generated image is shown in Figure 7a, and by comparing it with the healthy image it is possible to determine with a high degree of probability the inflammation of the udder. An animal with one of the most severe cases of mastitis was selected for imaging the udder of an animal diagnosed with clinical mastitis, which led to a strong decrease in milk yield and a large number of somatic cells. If an animal is found with an udder condition as in the reference image in Figure 7b, it is recommended to immediately call a veterinarian and send the animal to a separate room for treatment. After processing the results, we created an algorithm that allows a quick and contactless determination for the condition of the cow's udder. The algorithm presented in Figure 8 will make it possible to conduct an initial analysis of the state of the animal without special veterinary knowledge. To obtain the result, it is enough to have an infrared thermograph, as well as knowledge about the basic condition of the barn; namely, whether the internal temperature in it has been exceeded and whether there has been a physical impact on the cow's udder. Figure 6: Reference image of healthy udder (34.7 \({}^{\circ}\)C), where I, II—udder quarters. Figure 7: Reference image of an infected udder, where (**a**) is subclinical (37.6 \({}^{\circ}\)C) and (**b**) clinical (38.4 \({}^{\circ}\)C) mastitis, where I, II—udder quarters.