Next Article in Journal
Improved YOLOv8n Method for the High-Precision Detection of Cotton Diseases and Pests
Previous Article in Journal
Individual and Synergistic Contributions of GIS, Remote Sensing, and AI in Advancing Climate-Resilient Agriculture
Previous Article in Special Issue
Ecophysiological Management Using Light Interception Technology with the AccuPar Equipment: Quality Versus Quantity of Forage
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Digital Environmental Management of Heat Stress Effects on Milk Yield and Composition in a Portuguese Dairy Farm

by
Daniela Pinto
1,2,*,
Rute Santos
1,3,
Carolina Maia
4,
Ester Bartolomé
5,
João Niza-Ribeiro
6,7,8,
Maria Cara d’ Anjo
9,
Mariana Batista
2 and
Luís Alcino Conceição
1,3,10,*
1
Polytechnic Institute of Portalegre, 7300-110 Portalegre, Portugal
2
I-MVET Research in Veterinary Medicine, Faculty of Veterinary Medicine, Lusófona University-Lisbon University Centre, 1749-024 Lisbon, Portugal
3
VALORIZA–Research Center for Endogenous Resource Valorization, Edifício BioBIP Campus Politécnico 10, 7300-555 Portalegre, Portugal
4
Diessen Serviços Veterinários, Travessa dos Portugais, n 6, 7000-640 Évora, Portugal
5
Departamento de Agronomía, Escuela Técnica Superior de Ingeniería Agromómica, Universidad de Sevilla, 41013 Seville, Spain
6
Vet-OncoNet, Population Studies Department, ICBAS–Instituto de Ciências Biomédicas Abel Salazar, University of Porto, Rua de Jorge Viterbo Ferreira 228, 4050-313 Porto, Portugal
7
Epidemiology Unit (EPIUnit), Institute of Public Health of the University of Porto (ISPUP), Rua das Taipas 135, 4050-600 Porto, Portugal
8
Laboratory for Integrative and Translational Research in Population Health (ITR), Rua das Taipas 135, 4050-600 Porto, Portugal
9
DGAV-Direção-Geral de Alimentação e Veterinária, Campo Grande 50, 1700-093 Lisboa, Portugal
10
InovTechAgro—National Skills Center for Technological Innovation in the Agroforestry Sector, 7300-110 Portalegre, Portugal
*
Authors to whom correspondence should be addressed.
AgriEngineering 2025, 7(7), 231; https://doi.org/10.3390/agriengineering7070231
Submission received: 19 May 2025 / Revised: 19 June 2025 / Accepted: 7 July 2025 / Published: 10 July 2025

Abstract

Heat stress has been identified as one of the main challenges for dairy production systems, particularly in the context of global warming. This one-year study aimed to evaluate the impact of heat stress on milk yield and composition in a dairy farm located in the Elvas region of Portugal. A pack of electronic sensors was installed in the lactating animal facilities, allowing continuous recording of environmental data (temperature, humidity, ammonia and carbon dioxide). Based on these data, the Temperature-Humidity Index (THI) was automatically calculated on a daily basis, with the values subsequently aggregated into 7-day moving averages and integrated with milk production records, somatic cell count, and milk fat and protein content. The results indicate a significant influence of THI on both milk yield and composition, particularly on protein and fat content. The relationships between the variables were found to be non-linear, which contrasts with some results described in the literature. These discrepancies may be related to genetic differences between animals, variations in diets, production levels, management conditions, or the statistical models used in previous studies. Dry matter intake proved to be an important predictive variable. These findings reinforce the importance of ensuring animal welfare through continuous environmental monitoring and the implementation of effective heat stress mitigation strategies in the dairy sector.

1. Introduction

In recent years, the Internet of Things (IoT) has become an increasingly prominent tool for data collection and device interconnectivity, driving innovation across various industries—including agriculture and livestock farming [1].
In precision livestock farming, particularly in dairy operations, IoT technology has proven to be fundamental, enabling more efficient monitoring systems, supporting informed decision-making, and optimizing farm [2]. The adoption of devices such as sensors allows for the collection and access to real-time data on various parameters—from environmental conditions to animal health, welfare, reproduction, and productivity—promoting improvements in animal health and welfare, productivity gains, and a reduction in environmental [3,4].
These data play a vital role in optimizing farm management, enabling farmers to make informed, data-driven decisions. This approach enhances animal health and welfare, improves both reproductive and productive performance, and supports the overall sustainability of the system [4,5]. In this context, and particularly within dairy farming operations, it is essential to monitor the housing environment using sensors. The internal conditions of livestock facilities are influenced by their structural characteristics, which in turn affect variables such as temperature, humidity, and solar radiation. These factors have a direct impact on gas concentrations and the Temperature-Humidity Index (THI) [6]. THI is an indicator that combines ambient temperature and relative humidity to provide a comprehensive measure of environmental heat load. It is widely used to assess heat stress in both humans and animals [7,8].
In the livestock sector, and especially in dairy production, the THI has emerged as a critical parameter. According to Neves et al. [9], dairy cattle are particularly susceptible to heat stress due to the elevated metabolic rate required for milk production. Consequently, several researchers argue that heat stress in cattle is highly detrimental, underscoring the importance of environmental monitoring and the implementation of microclimate control strategies [10]. The impact of heat stress, as measured by the Temperature-Humidity Index (THI), has been extensively studied, particularly regarding its adverse effects on production [8,10,11], reproduction [7,8], and animal health [2,8]. Gernand et al. [12] investigated the influence of heat stress on a variety of variables, linking THI to milk yield and quality, fertility, and overall animal health. Their findings revealed that beyond declines in production and fertility, cows exposed to thermal stress also showed increased susceptibility to certain health conditions, including mastitis, retained placenta, and postpartum disorders. Similarly, a study conducted by Liu et al. [13] on dairy cattle concluded that increases in ambient temperature and humidity negatively affect both body temperature regulation and feed intake. In addition to heat stress, exposure to elevated levels of ammonia has also been linked to the development of health issues, primarily respiratory conditions, as air pollution compromises the animals’ respiratory systems. Previous research has shown associations between housing climate parameters—such as temperature and ammonia concentration—and increased mortality rates and the frequency of medical treatments [2,6]. As a result, the combination of impaired animal health and welfare, along with elevated THI and resulting heat stress, has also been associated with a rise in antibiotic usage [2,14]. The use of IoT technologies such as environmental monitoring sensors can therefore enable farm owners to anticipate and prevent issues related to heat stress, thereby lowering the incidence of associated health problems. These solutions help safeguard animal welfare and productivity, which in turn contributes to a reduction in the reliance on antibiotics [14].
In this study, the aim was to demonstrate the benefit of implementing IoT sensors in the daily routine of a dairy farm, highlighting their contribution to a more efficient environmental management of the facilities, based on real-time data.
Despite the extensive literature on the impacts of heat stress on dairy farming, most studies focus on short periods or extreme weather events such as heat waves. In contrast, this work covers a complete annual cycle, making it possible to assess the seasonal and cumulative effects of thermal variations over time. This continuous temporal approach, applied to a region with a continental Mediterranean climate such as the Alentejo, represents a relevant contribution to a more realistic understanding of the challenges faced by dairy farms in environments with high climatic variability. In addition to the above, the integration of IoT sensors with the use of 7-day moving averages of the Temperature and Humidity Index (THI) is still little explored, as is the use of non-linear analyses of production variables, representing a relevant methodological gap.
The originality of this study, therefore, lies in the application of a combined and continuous approach to evaluate the effects of thermal variations on the productive performance of animals over the course of a year. The main indicators analyzed were total milk production, energy-corrected milk (ECM), somatic cell count (SCC), fat and protein content, and urea concentrations.
Thus, the specific objectives of this study were: (i) to continuously monitor the climatic conditions of the environment using IoT sensors; (ii) to assess seasonal fluctuations in THI and their relationship with variables associated with milk production and quality; and (iii) to characterize the impact of heat stress on the productive performance of dairy cows in a region with a hot, dry climate.

2. Materials and Methods

2.1. Farm Description

The trial was conducted on a dairy farm located in the municipality of Elvas, in the Alentejo region of Portugal (geographic coordinates 38°52′29” N, 7°03′02” W). Data collection took place between 8 April 2024 and 19 March 2025. During this period, environmental parameters within the animal housing facilities were monitored through the implementation of an IoT cloud-based solution designed to offer features like critical alarms for predefined events, customizable dashboards, detailed activity reports, and the ability to create multiple automation rules for various scenarios. These data were subsequently cross-referenced with zootechnical records, namely milk production and quality.
Throughout this study, the farm maintained an average of 594.0 ± 15.7 lactating Holstein–Friesian cows, with an average milk yield of 40.0 ± 1.2 liters per cow per day. Milking was performed three times a day, using a rotary milking system of the carousel type. Regarding housing, lactating cows were distributed across four compartments equipped with sand-bedded cubicles. These compartments followed a free-stall dairy barn design with mechanical ventilation (Figure 1). This type of pavilion provides covered housing for dairy cows, allowing free movement within designated stalls. The structure includes side ventilation fans for climate control and a central feed alley to optimize feeding efficiency and animal comfort. Ventilation was based on a tunnel-type dynamic system, comprising eight fans strategically distributed along each one. The cooling system consisted of water sprinklers located in the feeding areas of the animals. Both systems were integrated into an IoT-based platform and operated automatically according to the Temperature-Humidity Index (THI) values recorded inside the facilities, with the aim of maintaining a stable thermal environment for the animals regardless of external climatic conditions. Table 1 presents the predefined system thresholds that triggered the sequential activation of the ventilation and cooling devices. These thresholds were defined by the farm’s veterinarian according to practical experience and animal welfare criteria.

2.2. Herd and Production Data

Daily milk production and quality data were provided by the farmer, based on records issued by the Interprofessional Milk and Dairy Association (ALIP). The parameters collected for the trial included average daily milk yield, energy-corrected milk (ECM), somatic cell count (SCC), urea concentration, milk fat content (%F), and milk protein content (%P).
The reliability of the data is reinforced by the farm’s participation in official monthly contrast tests, carried out by certified entities and approved by the Directorate-General for Livestock (Ordinance No. 1066/91), allowing for a systematic assessment of the quantity and quality of milk produced by each individual cow.
Finally, the farm also provided data on feed intake, namely the amount of dry matter and fresh matter consumed per cow per day.

2.3. Meteorological Survey

According to the Köppen–Geiger classification, the climate is categorized as Csa, characterized by hot, dry summers and cool, wet winters [15]
As stated by the World Meteorological Organization (WMO), climatic normal represents the average values of various climate-defining elements, based on a 30-year period considered sufficient and representative. Beginning with the first year of each decade, the most recent reference period is 1971–2000, known as the Climatological Normal (CN), and serves as the basis for meteorological statistics. In Portugal, the Portuguese Institute for Sea and Atmosphere (PISA) provides CN data, including for the Elvas station, covering monthly and annual values of key climatic parameters, primarily mean air temperature (Tm; °C) and precipitation (P) (see Table 2) [16].
Daily meteorological data for mean air temperature (Tm) and precipitation (P) were recorded by the local meteorological station of the National Institute for Agricultural and Veterinary Research in Elvas, which forms part of the national PISA meteorological station network. The temperature-sensitive element used is a platinum resistance thermometer (PT100), calibrated by PISA and known for its high stability in resistance values across the full range of air temperatures found at the Earth’s surface. Variations in resistance are measured by an electronic circuit that produces a voltage output, which is then converted into degrees Celsius (°C) [16]. The sensor used for precipitation detection across the national network is the DRD11 from Vaisala (Vantaa, Finland) [16,17]. Figure 2 presents the ombrothermic diagram comparing the monthly average temperature (Tm) and precipitation (P) data recorded during this study (April 2024 to March 2025) with the Climatological Normal (CN, 1971–2000).

2.4. Animal House Environmental Monitoring Data

For environmental monitoring, a pack of sensors was installed in the animal housing facilities by Farm Control (https://farmcontrol.com/en/iot-cloud-platform/, accessed on 24 March 2025). The system included temperature and humidity (DOL114), carbon dioxide (CO2) (DOL119) and ammonia (NH3) (DOL53) sensors, which recorded data on air temperature (°C), relative humidity (%), carbon dioxide (CO2, ppm) and ammonia (NH3, ppm) every 5 min-daily averages were then calculated by the system platform. The sensors were strategically installed at the center of the lactating cow pens to ensure that the environmental data collected were representative of the actual conditions experienced by the animals. Thus, the air temperature, humidity, CO2, and ammonia sensors were mounted at the average height of the animals’ breathing zone, around 1.5 m for adult cattle, following the manufacturer’s recommendations. Installation was carried out with due care to avoid sources of bias, with the devices placed away from direct sunlight, heat sources, and ventilation outlets.
The system operates with a standard 220 V electrical connection, and the reading intervals were calibrated to every 5 min, allowing for timely monitoring and effective management of animal welfare via the FarmControl platform. The sensors were installed and configured in accordance with the parameterizations and guidelines recommended by the manufacturer, ensuring the reliability and quality of the data collected.
These devices allowed the continuous collection and processing of data, which were transmitted in real time to a cloud-based platform via a Siemens gateway equipped with GSM cards. The data collected were automatically converted into user-friendly graphs, with options for export and download for further analysis. As such, daily environmental data were exported to allow cross-referencing with all the information provided by the farmer. Figure 3 shows the equipment installed in the animal housing, used for measuring temperature, humidity, carbon dioxide (CO2), and ammonia (NH3).
In addition to the data collected by the sensors, the Farm Control system also automatically calculates the Temperature-Humidity Index (THI) recorded inside the facilities, using the following Formula (1) [18]:
THI = (0.8 × Temperature) + [Humidity/100 × (Temperature − 14.4)] + 46.4].
Based on the THI values recorded throughout our study year, a graph was produced (Figure 4), illustrating the variability and range of thermal index values observed during this period.

2.5. Statistical Analysis

Statistical treatment of data was performed using SPSS version 27.0 (IBM SPSS Statistics, Armonk, NY, USA) [19]. Multivariable linear regression was used to calculate regression coefficients for continuous variables, considering daily milk yield per cow, fat and protein content, and somatic cell count as dependent variables. The first exploratory models included the environmental data retrieved from sensors (Temperature Humidity Index, ammonia and carbon dioxide levels), as well as daily dry matter intake (DMI), as independent variables, but as NH3 and CO2 levels showed non-significant effects, did not improve the models fit and exhibited variance inflation factors (VIF) above 3, suggesting moderate multicollinearity with other predictors, they were removed from subsequent models, to avoid compromising model stability and interpretability.
As initial linear regression models using raw daily THI values exhibited low explanatory power and considering that a delayed impact of THI on milk production has been previously reported [20,21], 2-day, 3-day, and 7-day THI moving averages were tested. Additionally, considering previous evidence [22] of a non-linear relationship between THI and milk production variables, quadratic terms for THI were included and kept in the models when model performance was significantly improved, namely by higher R-squared values and lower standard errors, and the effect of the quadratic term was significant. THI and THI-squared values were centered to reduce autocorrelation. From the several tested models, the best-performing models were obtained with those that included DMI, 7-day THI, and 7-day THI squared as independent variables.
When b2 ≠ 0 for the quadratic term, the inflection point was estimated using the formula −b1/(2b2), where b1 is the unstandardized coefficient of the linear term and b2 is the unstandardized coefficient of the quadratic term. This value represents the 7-day THI at which the effect on the outcome variable begins to reverse.
Daily dry matter intake (DMI) per animal was also included as an independent variable, as a significant, although weak, adjusted regression coefficient (R-squared = 0.214, p < 0.001) resulted from a model that included DMI as the dependent variable and 7-day THI and the quadratic term as independent variables. This relationship was also widely documented in previous studies [23,24,25].
In the multivariable models, variables were screened for independence of observations (Durbin–Watson statistic), linear relationships (observation of partial regression plots), homoscedasticity, multicollinearity, and approximate normality of residual distribution, using the multiple regression procedures in SPSS version 27.0.

3. Results

Table 3 presents the descriptive statistics for dependent and independent variables during the one-year period of this trial. Values are presented for all variables (even those not included in the regression analysis).
Table 4 presents the multiple linear regression results for daily milk yield as the dependent variable. Linear regression slopes (Beta values) show a positive association between milk yield and DMI and linear THI, and a negative association with the quadratic term. The estimation of the inflection point indicated an increase in milk yield up to a 7-day THI value of 68.9, followed by a decline beyond this point.
Figure 5 presents regression scatter plots and fit lines for milk yield according to the model’s predictors, visually evidencing the non-linear relationship between 7-day THI and milk yield, and the fact that both lower and higher 7-day THI values are associated with lower milk yield values. The positive association between milk yield and DMI is also visually noticeable.
The results for multiple regression analysis for fat and protein content in milk are presented in Table 5 and Table 6, respectively.
The estimation of the inflection point for milk fat concentration indicated a decrease up to a 7-day THI value of 70.3, followed by an increase beyond this value. Regarding milk protein concentration, although the coefficient of the quadratic term was b2 = 0.000 (rounded), it was retained in the model due to its statistical significance and because its inclusion improved the adjusted R2 and reduced the standard error of the estimate.
Figure 6 and Figure 7 present regression scatter plots and fit lines for fat and protein contents, respectively, according to the model’s predictors. The non-linear relationships between 7-day THI and fat and protein contents are visually subtle. There is a negative association between linear THI and both fat and protein content. Dry matter intake shows a positive relationship with fat content and a slightly negative one with protein content.
Figure 8 presents the average monthly values of milk yield (left) and fat and protein content (right) throughout the year.
Daily milk yield was higher in Spring months, with intermediate 7-day THI values and higher DM intakes. Fat content was higher in the Winter months (November to February). Protein content had its highest value in October and its lowest value in July. Both graphs show a coinciding peak in the 7-day THI value and the lowest DM intake in August.
Several regression models, computed to associate the variation in THI (daily, 2-day, 3-day and 7-day, with and without inclusion of the quadratic term) and somatic cell count (SCC), resulted in very low, though significant, adjusted regression coefficients (ranging between 0.034 and 0.041, p values between 0.001 and 0.008). Figure 9 presents a frequency histogram of daily bulk SCC values in this trial (valid N = 324). The vast majority (81.2%) of recorded values were under 200 cells/µL.

4. Discussion

The ombrothermic diagram for the 2024–2025 study period revealed consistently higher temperatures and reduced precipitation compared to the 1971–2000 climatological normal, reflecting the typical Mediterranean climate and posing challenges to dairy production due to increased thermal stress on animals. Climate change has intensified these effects, with rising global temperatures and more frequent extreme events like heatwaves, which negatively impact milk yield, reduce fat and protein content, and increase somatic cell count, ultimately affecting animal health and productivity [26,27]. Despite the adverse external environmental conditions, a notable and original finding of this study was the thermal stability maintained within the monitored facilities. This was achieved through the implementation of automated ventilation and sprinkler systems, which were activated based on internal THI values and maintained a favorable microclimate throughout the year (Figure 4). These systems, shown to be effective in reducing heat stress, promote air circulation and evaporative cooling, helping to regulate cow body temperature and stabilize milk production [28,29].
Recently, Jannat and colleagues [30] have published the results of air quality monitoring at a commercial dairy farm located in northern Colorado, between April and December 2023. These authors presented THI, CO2, and NH3 values measured at a tunnel-ventilated barn with an automated air quality sensor platform. THI values (55.30 ± 0.48) were considerably lower than in our study and less variable (63.79 ± 8.03), which may reflect surrounding environmental conditions and/or efficiency of the ventilation system. Nevertheless, CO2 and NH3 levels (642.70 ± 170.97 ppm and 6.66 ± 3.56 ppm, respectively) were consistently higher than those found in our trial (545.38 ± 52.93 ppm CO2 and 0.31 ± 0.27 ppm NH3). These results are probably associated with the number of animals present (6000 cows vs. approximately 600 cows in our trial) and different management practices, but can probably help to explain the negligible effects of CO2 and NH3 on our dependent variables, which led to their exclusion from the regression models.
In this trial, although no sharp variations in THI levels were recorded throughout the year, the results revealed a significant relationship between the 7-day moving average THI and daily milk production, as well as certain milk quality parameters. A 7-day moving average was used, as previous studies have shown that the effects of heat stress are not immediate but cumulative, requiring a dynamic assessment of thermal exposure. Li et al. [31] demonstrated that production impacts may show a delay of 1 to 3 days, with effects persisting for up to a week. Likewise, Maggiolino et al. [20] observed that the duration of heatwaves directly influences the magnitude of productive losses in dairy cows. A study conducted in dairy farms in Galicia (Spain) [32] reported the estimated weighted value of the maximum THI derived from segmented regression up to 12 days prior to the test day, with peak R2 values at the 7th day prior to testing for milk yield, fat, and protein percentage. Despite the apparently efficient indoor environmental control, our results seem to concur with this cumulative effect of THI over a 7-day period on milk yield, fat, and protein content.
Based on the formula described earlier to determine the THI, several studies, including those by Habeeb et al. [33] and Ji et al. [34], classify THI values as follows: values up to 74 are considered normal, 75–78 indicate an alert state, 79–83 represent danger, and values equal to or above 84 denote thermal emergency. Data obtained in this study showed that THI only occasionally exceeded the 74 threshold throughout the year, providing evidence for the effectiveness of the mitigation strategies implemented.
Nevertheless, even with average values generally below the classical threshold, multiple linear regression analysis revealed a non-linear relationship between the 7-day moving average THI and daily milk yield, with an estimated inflection point at THI = 68.9 (Table 4), lower than commonly reported. Below this threshold, production tended to increase, followed by a progressive decline beyond that point. These results suggest that moderate levels of temperature and humidity may initially benefit productivity but become detrimental once the ideal range is surpassed. This pattern is consistent with the findings of M’Hamdi et al. [35], where the highest milk yields in Holstein cows were observed for THI values between 68 and 72, with significant reductions above and below this range. These data reinforce, as observed in this trial, that milk production is sensitive to deviations from the optimal thermal range—not only to excessive heat—indicating a clearly non-linear response to the thermal environment.
Furthermore, the model identified dry matter intake (DMI) as the most influential predictor of milk yield, with the highest standardized coefficient (β = 0.668; p < 0.001). This finding strengthens the hypothesis of an indirect mechanism, whereby heat stress reduces feed intake, which in turn compromises the energy supply required for milk synthesis. This relationship is supported by the literature and is considered one of the principal physiological mechanisms through which heat adversely affects productivity. Li et al. [31] reported an approximate 19.5% reduction in DMI under high THI conditions, accompanied by a 33.7% decrease in milk production. Similarly, Rieger et al. [24] identified a significant negative correlation between indoor THI and DMI, as well as a positive correlation between DMI and milk yield, highlighting the importance of this parameter. It should be noted that in this trial, although peak THI coincided with the lowest average DM intake in August, this was not the month with the lowest average milk yield (November). Although data concerning parity and phase of lactation of lactating cows in each month were not available, we can speculate that these factors can ultimately justify milk yield variation not explainable by our predictors.
Regarding milk quality, several studies have reported a continuous reduction in fat and protein content with increasing THI. In the study by Besteiro et al. [32], a linear decrease in both fat and protein content was observed during the hottest months, coinciding with higher THI periods. As previously stated, these authors also reported a cumulative effect of THI on fat and protein content. Other authors [27,33] also report that heat stress compromises the synthesis of milk components—namely, fat and protein—due to metabolic and endocrine changes. Similar findings were reported by M’Hamdi et al. [35] who demonstrated a continuous linear decline in both fat and protein in Holstein milk with increasing THI, with statistically significant reductions above the thermal comfort threshold (THI > 72).
The effects of heat stress on milk fat and protein content remain inconclusive, with studies reporting contradictory results—ranging from reductions to increases or no change. Some researchers suggest that rising THI may lead to higher fat percentages not due to increased secretion, but as a concentration effect caused by reduced milk volume under heat stress [36,37,38,39].
In the present study, a non-linear relationship was observed between THI and fat content, with an estimated inflection point at THI = 70.3. From this threshold onwards, a percentage increase in fat content was recorded, following a period of progressive decline. This pattern, although less frequently reported, may be explained by the same concentration effect described by Habimana et al. [38] and Corazzin et al. [39], although this contrasts with studies reporting only linear declines. These discrepancies may be related to differences in animal genotype, diet type, production levels, or management practices—factors highlighted as determinants of milk production and composition responses to heat stress [38]. Moreover, it is essential to consider the modelling approach used to represent heat stress. While some studies use simple THI values [27,38], the present study employed a 7-day moving average with a quadratic term, enabling the detection of a non-linear quadratic relationship with an inflection point. This approach is more sensitive to cumulative and delayed effects, as demonstrated by Mbuthia et al. [40], who observed different milk fat patterns depending on the model applied.
Regarding protein content, this study’s results revealed a negative and non-linear relationship between the 7-day moving average THI and milk protein content. The inclusion of a quadratic term in the regression model allowed for the detection of a slight curve in this response, although without a clear inflection point. This suggests that rising THI progressively compromises protein content, with a slower rate of decline at higher thermal levels. This methodological approach contrasts with previous studies that predominantly used linear models [20,38]. Nevertheless, trials such as that by Maggiolino et al. [20] describe similar behaviors, reporting a significant and progressive reduction in protein with an increasing duration of heatwaves. Likewise, Habimana et al. [38] and M’Hamdi et al. [35] described a significant linear decrease in protein content when THI exceeded 72, as previously reported in review articles [13].
In line with this, other authors [31] observed a decrease in protein during summer (high THI period), associated with metabolic changes and increased oxidative stress. Our findings agree with an association of lower protein content in hotter months (April to August). These findings show that milk protein content is sensitive to heat stress and is likely influenced by a combination of factors, including reduced DMI, limited amino acid availability, and metabolic prioritization for thermoregulation. Nevertheless, in our trial, we found no association between reduced protein content and reduced DMI. The use of a quadratic model and a 7-day moving average proved particularly suitable for capturing the complexity of these responses, offering greater sensitivity than linear or point-based THI models.
Somatic cell count (SCC) is widely used as an indicator of udder health and milk quality and is highly sensitive to factors such as intramammary infections. Heat stress has been associated with a higher risk of subclinical mastitis, partly due to compromised immune function in cattle. Tao et al. [11] observed a higher incidence of mastitis—and consequently, increased SCC—during the summer months. Similarly, Wankar et al. [27] noted that mastitis incidence tends to rise in hot and humid environments, favoring pathogen proliferation. Similar findings were reported by Herbut et al. [21] and Li et al. [25], reinforcing the association between elevated THI values and SCC increases.
However, in this study, multiple regression models were calculated to associate THI variation with SCC, yielding relatively low adjusted R2 values, ranging from 0.034 to 0.041, although statistically significant (p between 0.001 and 0.008). These results indicate that although a clear association exists between THI and SCC, the thermal index explains only a small proportion of the observed variability. This may be due to the absence of very intense or prolonged thermal stress during this study, as well as the influence of variables not included in this analysis, such as stage of lactation and parity.
The present study was limited by the absence of individual animal data recorded daily. The lack of daily individual information prevented control for key factors such as lactation stage, parity, and health history, all of which are well known to influence milk production and quality. Furthermore, the restricted seasonal variation in THI limited the ability to assess the effects of extreme heat stress. Becker et al. [36] point out that infection status is the primary factor contributing to SCC increases, although variables such as age (number of lactations) and lactation stage also play important roles. SCC tends to rise as cows age or progress through lactation. Consequently, several studies have included these effects in their statistical models [12,35,36].
Furthermore, it is plausible that good management practices implemented on the farm—such as appropriate milking routines, proper bedding maintenance, early detection of clinical mastitis, discarding of infected milk, and effective health control—helped stabilize SCC values even during periods of higher thermal load. This can be inferred from the moderately low (under 20%) number of daily bulk SCC of 200,000 cells/mL or higher, regardless of parity, lactation stage, or yield, is generally considered for intervention level [41].
Although this study focused mainly on environmental monitoring at the facility level, integration with individual sensor technologies represents a promising avenue for future work. Lamanna et al. [42] and Cavallini et al. [43] analyzed the application of smart collars and electronic earring devices, respectively, and observed that these systems allow for continuous, real-time monitoring of each animal’s behavior, health, and activity on an individual basis. These technologies have proved to be particularly advantageous, as they can record key animal health parameters such as rumination time, locomotion, lying time, and feeding behavior, providing relevant data on the response to heat stress, metabolic changes, and reproductive events. In this sense, integrating these data streams with environmental metrics such as THI could enable the development of more precise, individual-centered mitigation strategies, reinforcing the potential of digital environmental management applied to dairy production.
In contrast to many previous studies that focused exclusively on the influence of external climatic conditions, the present work provides new evidence of the effectiveness of internal microclimate control systems in maintaining thermal comfort and production stability in Mediterranean dairy environments. This represents a relevant contribution for farms operating under similar climatic conditions. While the findings are particularly applicable to Mediterranean settings, they may also offer valuable insights for other regions facing rising temperatures as a result of climate change. However, local adaptation is required, given the variability in local production practices, management systems, genetic backgrounds, and housing conditions across different production contexts.

5. Conclusions

This study integrated environmental data, obtained from sensors installed in dairy cattle facilities, with productive and milk quality indicators, with the aim of understanding the impact of heat stress in the context of a dairy farming operation. The results show that the temperature-humidity index (THI) has a significant impact on both milk production and composition, directly affecting fat and protein content. An inflection point was observed at THI = 68.9 for milk yield, with production decreasing beyond this value, while milk fat content increased slightly above THI = 70.3, possibly due to a concentration effect.
Despite the clear association between THI and the parameters evaluated in this trial, the observed relationships were non-linear. Some inconsistencies in relation to the existing literature highlight the need for a deeper understanding of the physiological interactions involved. Dry matter intake stands out as a central predictive variable, emphasizing the importance of considering nutritional factors when assessing productive performance under conditions of heat stress.
The results emphasize the importance of continuous environmental monitoring and the implementation of effective heat stress mitigation strategies in dairy production systems. Management decisions, such as improving ventilation and cooling systems or monitoring dry matter intake, can be guided by THI-based models.
However, this study was limited by the lack of individual animal data and the fact that it was conducted on a single farm in the Mediterranean region, so caution is recommended when extrapolating these results to different production systems or climates.
Future research should explore predictive models based on non-linear approaches, such as quadratic regressions, capable of capturing complex relationships between environmental and physiological variables. The use of indices such as the moving average THI, which is more sensitive to the cumulative effects of heat stress, has proved particularly suitable and should be considered in future studies. In addition, it would be valuable to examine these parameters across different climatic regions, as well as to conduct similar studies adapted to other breeds, both dairy and beef cattle, in order to assess the generalizability of the results and performance under varying production conditions.
Additionally, individual monitoring technologies, such as smart collars and electronic ear tags, have shown particular promise in providing real-time data on animal behavior, health, and activity. Integrating these technologies with environmental data can make digital management systems more precise and personalized, contributing to the resilience of farms in the face of climate change.

Author Contributions

Conceptualization, D.P. and L.A.C.; methodology, D.P. and L.A.C.; software, R.S.; validation, L.A.C., R.S. and J.N.-R.; formal analysis, R.S.; investigation, D.P., L.A.C., J.N.-R. and R.S.; resources, J.N.-R. and L.A.C.; data curation, R.S.; writing—original draft preparation, D.P.; writing—reviewing and editing, L.A.C. and R.S.; visualization, L.A.C., R.S., C.M., E.B., J.N.-R., M.C.d.A. and M.B.; supervision, L.A.C., R.S., C.M., E.B., J.N.-R., M.C.d.A. and M.B.; project administration, L.A.C. and J.N.-R.; funding acquisition, L.A.C. and J.N.-R. All authors have read and agreed to the published version of the manuscript.

Funding

This study was funded by national funds through the Fundação para a Ciência e a Tecnologia, I.P. (Portuguese Foundation for Science and Technology) via the project UIDB/05064/2020 (VALORIZA—Research Centre for Endogenous Resource Valorization); by the HubRAM/PRR-C05-i03-l-000199 Project; and by the Project USAM SuLei–Uma Saúde para a Utilização Segura de Antimicrobianos na Produção de Suínos e Leite de Bovino (LA 2.4) PRR-C05-i03-I-000173-LA2.4.

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors on request.

Acknowledgments

The authors would like to thank the Herdade das Caldeirinhas farm for providing all the necessary data for the execution of this study and for allowing the installation of sensor systems under the scope of the USAM SuLei Project–One Health for the Safe Use of Antimicrobials in Pig and Dairy Cattle Production (LA 2.4) PRR-C05-i03-I-000173-LA2.4. During the preparation of this work, the authors used ChatGPT version 4, an AI-assisted tool, in order to clarify ideas, draft highlights, and summaries. After using this tool, the authors reviewed and edited the content as needed and take full responsibility for the content of the publication.

Conflicts of Interest

The authors declare no conflicts of interest. The funders had no role in the design of this study; in the collection, analyses, or interpretation of data; in the writing of this manuscript; or in the decision to publish the results.

Abbreviations

THITemperature-Humidity Index
IoTInternet of Things
ECMEnergy-corrected milk
SCCSomatic cell count
% FMilk fat content
% PMilk protein content
WMOWorld Meteorological Organization
CNClimatological Normal
PISAPortuguese Institute for Sea and Atmosphere
TmAir temperature
PPrecipitation
CO2Carbon dioxide
NH3Ammonia
DMIDry matter intake

References

  1. Jabade, V.; Mhetre, M.B.; Mali, P.P.; Mor, A.G. IOT Based Smart Poultry Farm and Fish Farming System. In Proceedings of the 2024 1st International Conference on Innovative Sustainable Technologies for Energy, Mechatronics and Smart Systems; ISTEMS 2024, Dehradun, India, 26–27 April 2024; Institute of Electrical and Electronics Engineers Inc: Dehradun, India, 2024. [Google Scholar]
  2. Moser, J.; Kohler, S.; Hentgen, J.; Meylan, M.; Schüpbach-Regula, G. Assessment of Ammonia Concentrations and Climatic Conditions in Calf Housing Using Stationary and Mobile Sensors. Animals 2024, 14, 2001. [Google Scholar] [CrossRef] [PubMed]
  3. Tangorra, F.M.; Buoio, E.; Calcante, A.; Bassi, A.; Costa, A. Internet of Things (IoT): Sensors Application in Dairy Cattle Farming. Animals 2024, 14, 3071. [Google Scholar] [CrossRef] [PubMed]
  4. Silva, F.G.; Conceição, C.; Pereira, A.M.F.; Cerqueira, J.L.; Silva, S.R. Literature Review on Technological Applications to Monitor and Evaluate Calves’ Health and Welfare. Animals 2023, 13, 1148. [Google Scholar] [CrossRef] [PubMed]
  5. Cabrera, V.E.; Fadul-Pacheco, L. Future of Dairy Farming from the Dairy Brain Perspective: Data Integration, Analytics, and Applications. Int. Dairy J. 2021, 121, 105069. [Google Scholar] [CrossRef]
  6. Lovarelli, D.; Bacenetti, J.; Guarino, M. A Review on Dairy Cattle Farming: Is Precision Livestock Farming the Compromise for an Environmental, Economic and Social Sustainable Production? J. Clean. Prod. 2020, 262, 121409. [Google Scholar] [CrossRef]
  7. Rolando, P.L.; Sandoval-Monzón, R.S.; Montenegro, M.P.; Ruiz-García, L.F. Temperature–Humidity Index and Reproductive Performance of Dairy Cattle Farms in Lima, Peru. Open Vet. J. 2022, 12, 399–406. [Google Scholar] [CrossRef]
  8. Giannone, C.; Bovo, M.; Ceccarelli, M.; Torreggiani, D.; Tassinari, P. Review of the Heat Stress-Induced Responses in Dairy Cattle. Animals 2023, 13, 3451. [Google Scholar] [CrossRef]
  9. Neves, S.F.; Silva, M.C.F.; Miranda, J.M.; Stilwell, G.; Cortez, P.P. Predictive Models of Dairy Cow Thermal State: A Review from a Technological Perspective. Vet. Sci. 2022, 9, 416. [Google Scholar] [CrossRef]
  10. Lovarelli, D.; Minozzi, G.; Arazi, A.; Guarino, M.; Tiezzi, F. Effect of Extended Heat Stress in Dairy Cows on Productive and Behavioral Traits. Animal 2024, 18, 101089. [Google Scholar] [CrossRef]
  11. Tao, S.; Orellana Rivas, R.M.; Marins, T.N.; Chen, Y.C.; Gao, J.; Bernard, J.K. Impact of Heat Stress on Lactational Performance of Dairy Cows. Theriogenology 2020, 150, 437–444. [Google Scholar] [CrossRef]
  12. Gernand, E.; König, S.; Kipp, C. Influence of On-Farm Measurements for Heat Stress Indicators on Dairy Cow Productivity, Female Fertility, and Health. J. Dairy Sci. 2019, 102, 6660–6671. [Google Scholar] [CrossRef] [PubMed]
  13. Liu, J.; Li, L.; Chen, X.; Lu, Y.; Wang, D. Effects of Heat Stress on Body Temperature, Milk Production, and Reproduction in Dairy Cows: A Novel Idea for Monitoring and Evaluation of Heat Stress—A Review. Asian-Australas. J. Anim. Sci. 2019, 32, 1332–1339. [Google Scholar] [CrossRef]
  14. Neculai-Valeanu, A.S.; Ariton, A.M.; Radu, C.; Porosnicu, I.; Sanduleanu, C.; Amariții, G. From Herd Health to Public Health: Digital Tools for Combating Antibiotic Resistance in Dairy Farms. Antibiotics 2024, 13, 634. [Google Scholar] [CrossRef] [PubMed]
  15. Köppen, W. Versuch Einer Klassifikation Der Klimate, Vorzugsweise Nach Ihren Beziehungen Zur Pflanzenwelt. Geogr. Z. 1900, 6, 657–679. [Google Scholar]
  16. IPMA Área Educativa. Available online: https://www.ipma.pt/pt/educativa/observar.tempo/index.jsp?page=ema.index.xm (accessed on 14 April 2025).
  17. DRD11A VAISALA Rain Detector. Available online: https://www.vaisala.com/en/products/weather-environmental-sensors/rain-detector-drd11a (accessed on 14 April 2025).
  18. Johnson, H.D.; Ragsdale, A.C.; Berry, I.L.; Shanklin, M.D. Temperature-Humidity Effects Including Influence of Acclimation in Feed and Water Consumption of Holstein Cattle; Research Bulletin; Missouri Agricultural Experiment Station: Columbia, MO, USA, 1967; Volume 846, pp. 1–27. [Google Scholar]
  19. IBM SPSS, version 27.0. IBM Corp: Armonk, NY, USA, 2020.
  20. Maggiolino, A.; Landi, V.; Bartolomeo, N.; Bernabucci, U.; Santus, E.; Bragaglio, A.; De Palo, P. Effect of Heat Waves on Some Italian Brown Swiss Dairy Cows’ Production Patterns. Front. Anim. Sci. 2021, 2, 800680. [Google Scholar] [CrossRef]
  21. Herbut, P.; Angrecka, S.; Godyń, D. Effect of the Duration of High Air Temperature on Cow’s Milking Performance in Moderate Climate Conditions. Ann. Anim. Sci. 2018, 18, 195–207. [Google Scholar] [CrossRef]
  22. Ekine-Dzivenu, C.C.; Mrode, R.; Oyieng, E.; Komwihangilo, D.; Lyatuu, E.; Msuta, G.; Ojango, J.M.K.; Okeyo, A.M. Evaluating the Impact of Heat Stress as Measured by Temperature-Humidity Index (THI) on Test-Day Milk Yield of Small Holder Dairy Cattle in a Sub-Sahara African Climate. Livest. Sci. 2020, 242, 104314. [Google Scholar] [CrossRef]
  23. Gorniak, T.; Meyer, U.; Südekum, K.H.; Dänicke, S. Impact of Mild Heat Stress on Dry Matter Intake, Milk Yield and Milk Composition in Mid-Lactation Holstein Dairy Cows in a Temperate Climate. Arch. Anim. Nutr. 2014, 68, 358–369. [Google Scholar] [CrossRef]
  24. Rieger, H.; Kölln, M.; Sürie, C.; Mohwinkel, H.; Visscher, C. Consequences of High Ambient Temperatures for Lactating Dairy Cows-An Issue under Practical Conditions in Northern Germany? Tierarztl. Prax. Ausg. G Grosstiere-Nutztiere 2020, 48, 15–23. [Google Scholar] [CrossRef]
  25. Li, H.; Zhang, Y.; Li, R.; Wu, Y.; Zhang, D.; Xu, H.; Zhang, Y.; Qi, Z. Effect of Seasonal Thermal Stress on Oxidative Status, Immune Response and Stress Hormones of Lactating Dairy Cows. Anim. Nutr. 2021, 7, 216–223. [Google Scholar] [CrossRef]
  26. Leandro, M.A.; Stock, J.; Bennewitz, J.; Chagunda, M.G.G. Is Heat Stress a Growing Problem for Dairy Cattle Husbandry in the Temperate Regions? A Case Study of Baden-Württemberg in Germany. J. Anim. Sci. 2024, 102, skae287. [Google Scholar] [CrossRef] [PubMed]
  27. Wankar, A.K.; Rindhe, S.N.; Doijad, N.S. Heat Stress in Dairy Animals and Current Milk Production Trends, Economics, and Future Perspectives: The Global Scenario. Trop. Anim. Health Prod. 2021, 53, 70. [Google Scholar] [CrossRef]
  28. Toledo, I.M.; Dahl, G.E.; De Vries, A. Dairy Cattle Management and Housing for Warm Environments. Livest. Sci. 2022, 255, 104802. [Google Scholar] [CrossRef]
  29. Oliveira, C.P.; de Sousa, F.C.; da Silva, A.L.; Schultz, É.B.; Valderrama Londoño, R.I.; de Souza, P.A.R. Heat Stress in Dairy Cows: Impacts, Identification, and Mitigation Strategies—A Review. Animals 2025, 15, 249. [Google Scholar] [CrossRef] [PubMed]
  30. Jannat, A.; Johnson, A.; Manriquez, D. Air Quality Monitoring in Dairy Farms: Description of Air Quality Dynamics in a Tunnel-Ventilated Housing Barn and Milking Parlor of a Commercial Dairy Farm. J. Dairy Sci. 2025, in press. [Google Scholar] [CrossRef]
  31. Li, G.; Chen, J.; Peng, D.; Gu, X. Short Communication: The Lag Response of Daily Milk Yield to Heat Stress in Dairy Cows. J. Dairy Sci. 2021, 104, 981–988. [Google Scholar] [CrossRef]
  32. Besteiro, R.; Fouz, R.; Diéguez, F.J. Influence of Heat Stress on Milk Production, Milk Quality, and Somatic Cell Count in Galicia (NW Spain). Animals 2025, 15, 945. [Google Scholar] [CrossRef]
  33. Habeeb, A.A.; Gad, A.E.; Atta, M.A. Temperature-Humidity Indices as Indicators to Heat Stress of Climatic Conditions with Relation to Production and Reproduction of Farm Animals. Int. J. Biotechnol. Recent. Adv. 2018, 1, 35–50. [Google Scholar] [CrossRef]
  34. Ji, B.; Banhazi, T.; Perano, K.; Ghahramani, A.; Bowtell, L.; Wang, C.; Li, B. A Review of Measuring, Assessing and Mitigating Heat Stress in Dairy Cattle. Biosyst. Eng. 2020, 199, 4–26. [Google Scholar] [CrossRef]
  35. M’Hamdi, N.; Darej, C.; Attia, K.; El Akram Znaidi, I.; Khattab, R.; Djelailia, H.; Bouraoui, R.; Taboubi, R.; Marzouki, L.; Ayadi, M. Modelling THI Effects on Milk Production and Lactation Curve Parameters of Holstein Dairy Cows. J. Therm. Biol. 2021, 99, 102917. [Google Scholar] [CrossRef]
  36. Becker, C.A.; Collier, R.J.; Stone, A.E. Invited Review: Physiological and Behavioral Effects of Heat Stress in Dairy Cows. J. Dairy Sci. 2020, 103, 6751–6770. [Google Scholar] [CrossRef] [PubMed]
  37. Rodriguez-Venegas, R.; Meza-Herrera, C.A.; Robles-Trillo, P.A.; Angel-Garcia, O.; Legarreta-Gonzalez, M.A.; Sánchez-Vocanegra, H.F.; Rodriguez-Martinez, R. Effect of THI on Milk Production, Percentage of Milking Cows, and Time Lying in Holstein Cows in Northern-Arid Mexico. Animals 2023, 13, 1715. [Google Scholar] [CrossRef] [PubMed]
  38. Habimana, V.; Nguluma, A.S.; Nziku, Z.C.; Ekine-Dzivenu, C.C.; Morota, G.; Mrode, R.; Chenyambuga, S.W. Heat Stress Effects on Physiological and Milk Yield Traits of Lactating Holstein Friesian Crossbreds Reared in Tanga Region, Tanzania. Animals 2024, 14, 1914. [Google Scholar] [CrossRef] [PubMed]
  39. Corazzin, M.; Saccà, E.; Lippe, G.; Romanzin, A.; Foletto, V.; Da Borso, F.; Piasentier, E. Effect of Heat Stress on Dairy Cow Performance and on Expression of Protein Metabolism Genes in Mammary Cells. Animals 2020, 10, 2124. [Google Scholar] [CrossRef]
  40. Mbuthia, J.M.; Eggert, A.; Reinsch, N. Cooling Temperature Humidity Index-Days as a Heat Load Indicator for Milk Production Traits. Front. Anim. Sci. 2022, 3, 946592. [Google Scholar] [CrossRef]
  41. Bradley, A.; Green, M. Use and Interpretation of Somatic Cell Count Data in Dairy Cows. In Pract. 2005, 27, 310–315. [Google Scholar] [CrossRef]
  42. Lamanna, M.; Bovo, M.; Cavallini, D. Wearable Collar Technologies for Dairy Cows: A Systematized Review of the Current Applications and Future Innovations in Precision Livestock Farming. Animals 2025, 15, 458. [Google Scholar] [CrossRef]
  43. Cavallini, D.; Giammarco, M.; Buonaiuto, G.; Vignola, G.; De Matos Vettori, J.; Lamanna, M.; Prasinou, P.; Colleluori, R.; Formigoni, A.; Fusaro, I. Two Years of Precision Livestock Management: Harnessing Ear Tag Device Behavioral Data for Pregnancy Detection in Free-Range Dairy Cattle on Silage/Hay-Mix Ration. Front. Anim. Sci. 2025, 6, 1547395. [Google Scholar] [CrossRef]
Figure 1. Interior view of the free-stall barn with mechanical ventilation at the farm.
Figure 1. Interior view of the free-stall barn with mechanical ventilation at the farm.
Agriengineering 07 00231 g001
Figure 2. The ombrotemperature diagram that allows comparison between the average temperature (Tm) and precipitation (P) data from the Climatological Normal (CN) and those from the year of our study.
Figure 2. The ombrotemperature diagram that allows comparison between the average temperature (Tm) and precipitation (P) data from the Climatological Normal (CN) and those from the year of our study.
Agriengineering 07 00231 g002
Figure 3. Environmental monitoring sensors are installed in the animal housing for measuring temperature, humidity, carbon dioxide (CO2), and ammonia (NH3).
Figure 3. Environmental monitoring sensors are installed in the animal housing for measuring temperature, humidity, carbon dioxide (CO2), and ammonia (NH3).
Agriengineering 07 00231 g003
Figure 4. Variation of the Temperature-Humidity Index (THI) recorded inside the dairy facilities over the course of our study year (monthly means and standard deviations).
Figure 4. Variation of the Temperature-Humidity Index (THI) recorded inside the dairy facilities over the course of our study year (monthly means and standard deviations).
Agriengineering 07 00231 g004
Figure 5. Variation of the daily milk yield (l/cow) with 7-day THI (left) and DM intake (kg/day) (right). Linear and quadratic fit lines are presented for 7-day THI, and a linear fit line for DM intake.
Figure 5. Variation of the daily milk yield (l/cow) with 7-day THI (left) and DM intake (kg/day) (right). Linear and quadratic fit lines are presented for 7-day THI, and a linear fit line for DM intake.
Agriengineering 07 00231 g005
Figure 6. Variation of the fat content (%) with 7-day THI (left) and DM intake (kg/day) (right). Linear and quadratic fit lines are presented for 7-day THI, and a linear fit line for DM intake.
Figure 6. Variation of the fat content (%) with 7-day THI (left) and DM intake (kg/day) (right). Linear and quadratic fit lines are presented for 7-day THI, and a linear fit line for DM intake.
Agriengineering 07 00231 g006
Figure 7. Variation of the protein content (%) with 7-day THI (left) and DM intake (kg/day) (right). Linear and quadratic fit lines are presented for 7-day THI, and a linear fit line for DM intake.
Figure 7. Variation of the protein content (%) with 7-day THI (left) and DM intake (kg/day) (right). Linear and quadratic fit lines are presented for 7-day THI, and a linear fit line for DM intake.
Agriengineering 07 00231 g007
Figure 8. Variation of average daily milk yield (l/cow) (left) and fat and protein content (%) (right), as well as 7-day THI and DMI (kg/day).
Figure 8. Variation of average daily milk yield (l/cow) (left) and fat and protein content (%) (right), as well as 7-day THI and DMI (kg/day).
Agriengineering 07 00231 g008
Figure 9. Frequency histogram of somatic cell count (SCC) values recorded during the trial.
Figure 9. Frequency histogram of somatic cell count (SCC) values recorded during the trial.
Agriengineering 07 00231 g009
Table 1. THI-Based Activation Thresholds for Ventilation and Cooling Systems in Dairy Cow Housing.
Table 1. THI-Based Activation Thresholds for Ventilation and Cooling Systems in Dairy Cow Housing.
THIActivated ActionLocationNotes
68.5Fans activatedLying areas and holding pen
70.0Fans activatedFeed alley
71.5Sprinklers activatedFeeding areasIntermittent cooling cycle (1 min ON/4 min OFF)
Table 2. CN (1971–2000) including Tm and p values of Elvas [15].
Table 2. CN (1971–2000) including Tm and p values of Elvas [15].
MonthTm (°C)p (mm)
April14.1051.20
May17.3044.00
June21.7023.60
July25.104.80
August24.802.60
September22.2025.60
October17.4058.60
November12.5075.10
December9.7092.60
January8.6063.10
February10.2054.60
March12.3039.60
Table 3. Descriptive statistics for dependent and independent variables: mean, standard deviation (S.D.), minimum (Min.), and maximum (Max.) values.
Table 3. Descriptive statistics for dependent and independent variables: mean, standard deviation (S.D.), minimum (Min.), and maximum (Max.) values.
Mean (S.D.)Min.Max.
Dependent variables
Daily milk yield (l)40.19 (1.22)37.5643.05
Fat (%)3.89 (0.22)3.394.38
Protein (%)3.30 (0.07)3.153.44
SCC (cells/µL)176.70 (27.01)111.00260.00
Independent variables
7-day THI63.79 (8.03)47.6874.98
CO2 (ppm)545.38 (52.93)447.11834.99
NH3 (ppm)0.31 (0.27)0.001.47
DMI (kg)24.85 (1.00)22.2126.39
Table 4. Multiple linear regression analysis for daily milk yield (adjusted R-squared = 0.467, standard error of estimate = 0.806, p < 0.001).
Table 4. Multiple linear regression analysis for daily milk yield (adjusted R-squared = 0.467, standard error of estimate = 0.806, p < 0.001).
Beta (S.E)Std. Betatp-Value
(Constant)21.579 (1.454) 14.8400.000
DM intake0.768 (0.058)0.66813.2770.000
7-day THI0.041 (0.008)0.2985.1370.000
7.day THI2−0.004 (0.001)−0.241−4.5910.000
Table 5. Multiple linear regression analysis for fat content (%) in milk (adjusted R-squared = 0.558, standard error of estimate = 0.142, p < 0.001).
Table 5. Multiple linear regression analysis for fat content (%) in milk (adjusted R-squared = 0.558, standard error of estimate = 0.142, p < 0.001).
Beta (S.E)Std. Betatp-Value
(Constant)2.319 (0.264) 8.7930.000
DM intake0.059 (0.010)0.2695.6650.000
7-day THI−0.013 (0.001)−0.493−9.0120.000
7.day THI20.001 (0.000)−0.1873.7800.000
Table 6. Multiple linear regression analysis for protein content (%) in milk (adjusted R-squared = 0.601, standard error of estimate = 0.043, p < 0.001).
Table 6. Multiple linear regression analysis for protein content (%) in milk (adjusted R-squared = 0.601, standard error of estimate = 0.043, p < 0.001).
Beta (S.E)Std. Betatp-Value
(Constant)4.265 (0.080) 53.5790.000
DM intake−0.038 (0.003)−0.541−12.1420.000
7-day THI−0.008 (0.000)−0.940−18.4220.000
7.day THI20.000 (0.000)−0.211−4.5720.000
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Pinto, D.; Santos, R.; Maia, C.; Bartolomé, E.; Niza-Ribeiro, J.; Anjo, M.C.d.; Batista, M.; Conceição, L.A. Digital Environmental Management of Heat Stress Effects on Milk Yield and Composition in a Portuguese Dairy Farm. AgriEngineering 2025, 7, 231. https://doi.org/10.3390/agriengineering7070231

AMA Style

Pinto D, Santos R, Maia C, Bartolomé E, Niza-Ribeiro J, Anjo MCd, Batista M, Conceição LA. Digital Environmental Management of Heat Stress Effects on Milk Yield and Composition in a Portuguese Dairy Farm. AgriEngineering. 2025; 7(7):231. https://doi.org/10.3390/agriengineering7070231

Chicago/Turabian Style

Pinto, Daniela, Rute Santos, Carolina Maia, Ester Bartolomé, João Niza-Ribeiro, Maria Cara d’ Anjo, Mariana Batista, and Luís Alcino Conceição. 2025. "Digital Environmental Management of Heat Stress Effects on Milk Yield and Composition in a Portuguese Dairy Farm" AgriEngineering 7, no. 7: 231. https://doi.org/10.3390/agriengineering7070231

APA Style

Pinto, D., Santos, R., Maia, C., Bartolomé, E., Niza-Ribeiro, J., Anjo, M. C. d., Batista, M., & Conceição, L. A. (2025). Digital Environmental Management of Heat Stress Effects on Milk Yield and Composition in a Portuguese Dairy Farm. AgriEngineering, 7(7), 231. https://doi.org/10.3390/agriengineering7070231

Article Metrics

Back to TopTop