Next Article in Journal
Variability in Estimating Crop Model Genotypic Parameters: The Impact of Different Sampling Methods and Sizes
Previous Article in Journal
The Development of a Draft Force Prediction Model for Agricultural Tractors Based on the Discrete Element Method in Loam and Clay Loam
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Milk Yield Prediction and Economic Analysis of Optimized Rearing Environment in a Cold Region Using Neural Network Model

1
College of Water Resources and Civil Engineering, China Agricultural University, Beijing 100080, China
2
Infrastructure Construction Department, China Agricultural University, Beijing 100081, China
*
Author to whom correspondence should be addressed.
Agriculture 2023, 13(12), 2206; https://doi.org/10.3390/agriculture13122206
Submission received: 23 October 2023 / Revised: 12 November 2023 / Accepted: 23 November 2023 / Published: 27 November 2023
(This article belongs to the Section Digital Agriculture)

Abstract

:
The milk yield of dairy cows in a non-stressed state in the cold region in China is lower during cold seasons. In this study, the correlations between indoor environmental factors and milk production were analyzed. Temperature, relative humidity, and light intensity were found to be the main factors affecting milk yield. The warning values of these factors for lower milk production were 5 °C, 60%, and 300 lx, respectively. A neural network model predicting milk yield based on environmental factors was established, and the optimal model parameters were determined, resulting in a high accuracy of R2 = 0.802. This model was used to investigate the optimal measure for improving the indoor environment, which helps to increase milk production and economic benefits, including LED lights, heating radiators, and dehumidifiers. In conclusion, each type of device led to the growth of milk yield, reaching 2.341, 1.706, and 1.893 kg cow−1 Day−1. The combination of heating radiator and LED light resulted in the highest increased net benefit of 16.802 CNY cow−1 Day−1. This is the first time that a neural network model was successfully built to predict milk yield based on climatic features which was also applied to economic analysis of indoor environment improvement for dairy barns in extreme cold regions.

1. Introduction

Climatic conditions mainly affect the welfare and production performance of livestock [1,2]. In recent years, research on the impact of environmental factors on dairy cow production continues to deepen. The sweat glands of cows are underdeveloped, coupled with the short and dense hair, making it difficult for cows to dissipate heat [3]. Dairy cows can tolerate a certain range of low temperatures, but too low a temperature would cause decreased breathing rate and surface temperature of the body [4,5]. In severe cases, milk production can be significantly reduced [6,7]. Studies show [8,9,10] that when the temperature is lower than −4~−6.8 °C, milk yield and the content of milk protein and lactose start decreasing. Moreover, research has found that prolactin secretion is significantly affected by photoperiodic changes [11], which also influence the protein content of milk [12].
The northeast region of China has long winters, where the period of summer and autumn is short, and the average temperature is not high (the measured daily averaged temperature was in the range of 2.32–27.98 °C in this study). In 2018, milk production in the Northeast region accounted for one-fifth of the whole country [13]. It was found that dairy cows in this region are in a non-stressed state most of the time, but the loss of milk production in winter has been still observed [14,15]. The incidence of recessive mastitis in dairy cows also increased significantly [16]. This might be because of the low air temperature and high air humidity in the barn, which is caused by the poor thermal insulation of the barn and the extremely cold environment outside resulting in limited ventilation. During this period, the suitability of the ambient environment affects the production level of dairy cows. Xu et al. identified the temperature drop period when the average temperature decreased by more than 5 °C within 3 days, which would significantly reduce dry matter intake and milk production of cows in early lactation and peak lactation [17]. Lim et al. found that the milk yield was improved by adding LED lights during the photoperiod of 16 h [18]. Relative humidity showed a negative correlation with milk yield at low temperatures above 0 °C [19].
Regression models are often used to establish predictive models in the dairy field, including two core algorithms of conventional statistics and machine learning [20]. Conventional statistic models were developed to predict the milk yield and fat data with temperature or THI (temperature-humidity index) as inputs and to predict the protein content with wind speed and sunshine hours as inputs [12]. However, structural restrictions and data quality impose limitations on such regressions based on standard regression techniques [21]. Machine learning has been more and more used in dairy research in the past decade [22,23,24]. A machine learning framework was developed to predict milk production, composition, and individual cow milking frequency in the coming month using cow and climate features [25]. Milk fatty acids were used in artificial neural networks to predict the rumen fermentation pattern [26]. Dry matter intake of Canadian Holstein dairy cows was successfully predicted by mid-infrared reflectance spectroscopy on milk and environment variables via artificial neural networks [27].
Therefore, this study was initiated to analyze the relationship between low milk yield and climate features in the extreme cold region, to provide the basis for the promotion of milk production via an improved rearing environment.

2. Materials and Methods

2.1. Experiment Location

The measurements were carried out from August 2019 to March 2020 in Taobei District (45.7° N, 122.9° E), Baicheng City, Jilin Province, China. The barn ran east-west with a length of 250 m and a span of 27 m in the north-south direction. The fans were arranged staggered every 12 m in the east-west direction. A total of 40 36 inch spoiler fans were arranged in the cow-feeding area, and 32 54 inch glass-fiber-reinforced plastic windpipe fans were arranged in the cow lying area without spray cooling facilities.
The dairy cows were reared in loose pens in the experimental barn, and each cow weighed between 500 and 600 kg. A total of 28 drinking troughs with level control valves and electric heating devices were evenly arranged in the barn. Cows were fed by TMR spreaders at 7:00, 13:00, and 19:00 each day. One hour before spreading the feed, the cows were driven to the milking parlor for milking, then the manure removal truck was used for manure removal.

2.2. Environmental Factors and Milk Yield Measurements

A total of 4 environmental data collection points were set in the barn, which were placed evenly along the length direction of the barn. The outdoor climate was measured at the southeast corner of the barn. Each collection point collected five types of environmental data: temperature, relative humidity, wind speed, carbon dioxide concentration, and light intensity. The sensors were fixed at a distance of 1.8 m by a PC perforated plate and iron cage. The collection point outside was installed on the top of a fixed iron rod, which was at a height of 2.5 m from the ground. The sampling interval of all sensors was 10 min, resulting in 144 points of data per day.
Dairy cows were milked in the side-by-side milking parlor at 6:00, 12:00, and 18:00 each day. The milking system recorded the total daily milk yield, the number of milking cows, and the average milk yield of the entire group of cows. The ratio of the total daily milk production to the number of cows was used as the milk yield per cow per day.

2.3. Data Analysis

To investigate the way that indoor environment variables affect averaged total milk yield, correlation analysis took place using the Pearson correlation coefficient.

2.4. Data Preprocessing

To develop the neural network model, all the environment data were normalized into the range of [0, 1] according to Equation (1), where x is the input, xmin is the minimum value of the input, and xmax is the maximum value of the input.
x n e w = ( x x m i n ) / ( x m a x x m i n )
The normalized data set was trained in the neural network. Denormalization was applied afterward according to Equation (2), where y is a value between [0, 1], and ymax, ymin are the maximum and minimum values, respectively.
y d e n o = y × y m a x + y m i n + y m i n

2.5. Artificial Neural Networks

The artificial neural network was applied to establish the model of milk yield prediction using climate features, which helps to gain the performance estimation of different promotion measures, Figure 1.
The backpropagation neural network (BPNN) was used in this study, which is the most commonly used neural network paradigm and also called a multilayer perceptron [26]. The BPNN model consists of three layers: the input layer, the hidden layer, and the output layer [28]. There is always one or more hidden layers in BPNN, allowing the network to model complex functionality, where two processes include: forward information propagation and back error propagation [29,30]. Because of the simple structure and low computational load, the 3-layer network is the most popular multi-layer network [31], which was applied to this study.
A total of 243 samples were used in building the neural network model. The data set was randomly separated by 0.6:0.2:0.2 as a training data set, validating data set, and testing data set, respectively. The data set was provided to the network multiple times to form an iterative training process, to update the weight and bias term in the hidden layer [26].

2.6. Model Performance Evaluation

In order to accurately evaluate the model predictive performance of milk production, three model evaluation indicators were chosen, namely the coefficient of determination R2, the relative error RE, and the root mean square error RMSE, and were calculated via Equations (3)–(5).
R 2 = 1 i = 1 n ( y i y ̑ i ) 2 / i = 1 n ( y i y ¯ i ) 2
R E = i = 1 n y i y ̑ i y i / n
R M S E = i = 1 n ( y i y ̑ i ) 2 / n
where yi is the real data of milk production, y ¯ i is the average milk yield, y ̑ i is the model prediction, and n is the number of samples.

2.7. Devices and Equipment to Improve Environmental Conditions

Three devices were chosen to improve the indoor environment in winter. Firstly, a copper-aluminum-composed heating radiator was selected as one of the most popular choices in China to increase the indoor temperature in winter. Steam coal and natural gas were chosen as the usually used fuel to produce heat with the radiator device. Secondly, a dehumidifier was selected as the method to reduce the indoor air humidity. Additionally, an LED light was selected as an energy-saving way to provide extra light inside rooms. Both the dehumidifier and LED light were driven by electricity.

3. Results and Discussion

3.1. Correlation Analysis

Figure 2 shows the indoor environment, dairy diet, number of lactating cows, and milk yield data for the whole measuring period. There were significant changes in temperature from August to December. Relative humidity was higher in warm days in August, and it kept about 80% from December to February. Wind speed gradually decreased from August to December. This was due to the high temperature in summer, all fans in the barn were turned on to dissipate heat. Subsequently, the temperature gradually decreased, so the number of working fans decreased as well. In December, the fans completely stopped running, and the doors and windows were closed to keep the inside warm. During cold days, the wind speed inside the dairy cow barn was stable at about 0 m s−1. In contrast, the CO2 concentration was higher during cold seasons, which was about 1400 ppm. Light intensity experienced stronger fluctuations than the other environmental variables, which depended on the outside weather, and was relatively lower than the warm days. Moreover, the number of lactating cows increased dramatically in the period of autumn-winter, which means more cows in the stage of early lactation were added to the group. Furthermore, the feed intake and water intake of the cows fluctuated with the same trend as the milk yield.
Due to the extremely cold winter in Northeast China, closed cattle farms were used, which was completely different from the warm seasons. Hence, the correlation analysis was divided into summer-autumn (a) and autumn-winter (b) sections as shown in Figure 3. In summer-autumn, data from July to October were used, and in autumn-winter, data from November to February were used. In the summer-autumn season, feed intake, water intake, indoor temperature, wind speed, and CO2 concentration were extremely significantly correlated with milk yield. Relative humidity was significantly correlated with milk yield. From November, closed barn management was adopted, in which the ventilation was rare. The barn was in a state of low temperature and high humidity for a long time. The correlation coefficients of water intake, indoor temperature, relative humidity, and light intensity with milk production were relatively high.
Compared to the summer-autumn season, the correlation coefficients of temperature, relative humidity, and light intensity to milk yield increased dramatically, while the relative importance of wind speed and CO2 concentration to milk production weakened in the autumn-winter season. The correlation coefficient between the number of lactating cows and milk yield became higher in the period of autumn-winter than that of summer-autumn, which might be cause by the group shifting. Although the number of lactating cows became more relevant to the milk yield in the period of autumn-winter, the correlation between milk yield and indoor environment was still much stronger. Hence, air temperature, relative humidity, and light intensity were selected as key variables to investigate the influence of the rearing environment on milk yield in the cold season.
According to the milk yield distribution (Figure 4), it was found that the boundaries of higher milk yield were formed when light intensity was higher than 300 lx, temperature was higher than 5 °C, and relative humidity was lower than 60%. Therefore, these boundaries can be treated as warning lines of low milk production, where measures should be adapted to improve the rearing environment, such as heating, dehumidification, and increased light, to avoid lower milk yield. To know the effectiveness of environmental modification measures on milk yield, a neural network model was developed to predict milk production based on the selected environmental variables as inputs.

3.2. Neural Network Milk Yield Prediction Model Based on Environmental Variables

To build the neural network model, several neurons and activation functions in the hidden layer should be defined. The determination of the number of neurons in the hidden layer s was determined based on Equation (6), where the number of nodes in the input layer is m, and the number of nodes in the output layer is n. The activation functions were chosen according to the model performance, Table 1. Five inputs including indoor air temperature, relative humidity, light intensity, wind speed, and CO2 concentration were used resulting in m = 5. The output was milk yield, leading to n = 1. The range of s is then possible to calculate, which is 3~12. To find out the optimal value of s, the model of the neural network was applied with different s values via model evaluation, Table 1. The activation functions tansig and purelin were used in the hidden layer and output layer, respectively. Each model ran 10 times and the average of the R2, RE, and RMSE were gained to evaluate the model performance. The number of iterations was 1000, the residual was 0.001, and the learning rate was 0.01.
s m + n + a , a = 1 ~ 10
It can be seen in Table 1 that when the number of nodes in the hidden layer varies from 3 to 13, R2 was about 0.733–0.802 and RE was about 2.5–2.9%. Considering the model determination coefficient and relative error, s = 11 was selected for subsequent analysis. As for the determination of the activation function, different activation functions of the hidden layer and the output layer were combined and applied to the neural network to find the optimal ones [32]. Table 1 gives the result of different combinations of tansig, purelin, and logsig activation functions in the hidden and output layers. The model of tansig-purelin resulted in the highest average R2 of 0.802, which was able to predict milk yield more accurately than the other combinations. The percentage of the error < 1 kg of milk yield prediction was close to 70%.
The BP neural network model was built based on model tests, Figure 5. The high accuracy illustrated that a neural network model was successfully built to predict milk yield based on climatic features inside a dairy barn in the extreme cold region. Via this predictive model, the changes in milk yield under different types of indoor environmental modification measures can be predicted. Accordingly, these modification measures can be evaluated from an economic point of view at little cost.

3.3. Economic Benefits of Improving Environmental Quality

The average daily indoor air temperature, relative humidity, and light intensity presented strong regularity with milk yield. When the temperature and light intensity increased, the milk yield increased but decreased when the relative humidity increased. In order to explore the economic benefits of improved indoor temperature, light intensity, and reduced relative humidity, the neural network model was used to predict milk production after optimizing the environment and then conducting cost and benefit analysis.
The cost of improving the indoor environment included the loss of equipment and the cost of power sources. According to the unit price and device life span (Table 2), the loss of the equipment was calculated on a daily basis. The dehumidifier and LED light consumed electricity with operation times of 24 h and 18 h per day, respectively. The required amount of power source for heating radiators was computed based on the calorific value, combustion efficiency, and the heat loss through the building envelope as shown in Equation (7) [33].
Q = A K ( t i t o )
where Q is the amount of heat loss through the building envelope, A is the surface area of the envelope, K is the heat transfer coefficient of each surface of the building, and tito is the temperature difference between inside and outside.
On the base of warning boundaries of lower milk yield and the selected devices, the living environment was improved by setting different intensities of measures (Table 3). Indoor air temperature was raised by 2, 4, 6, 8, and 10 °C on average. Air relative humidity inside was controlled at 55, 60, 65, 70, and 75% on average. Light intensity in the barn was increased by 52, 78, 115, 125, and 149 lx on average. The values of increased light intensity were selected according to the capability of the regular products on the market in China. The change in milk yield under the improved conditions was predicted by applying the established neural network model. To evaluate the performance of each measure, 41 samples of milk yield in the cold season were selected in cold seasons, in which the milk production was relatively low.
Using an LED light, a heating radiator, and a dehumidifier can dramatically increase milk yield by 8%, 6%, and 7%, respectively, as shown in Figure 6. The average increase of milk yield at the raised indoor temperature was 0.284 kg day−1°C−1 in this study. Xu et al. [17] indicated that milk production of dairy cows at the peak of lactation decreased by 0.365 kg day−1 as the rearing temperature dropped by 1 °C. This is reasonable since the lactation periods were mixed in the experimental group of this study. The milk production response of cows in the early lactation could be less sensitive than the cows in the peak lactation period.
The milk yield increased as the LED intensity rose, the peak value was reached at 125 lx. Intensities of 52 lx, 78 lx, 115 lx, 125 lx, and 149 lx LED resulted in increased milk yield of 0.56 kg day−1, 0.97 kg day−1, 1.16 kg day−1, 1.29 kg day−1, and 1.02 kg day−1, respectively. However, the results of Lim et al. [18] showed that the milk yield increased after adding an LED light to the dairy barn, but the growth rate decreased as the LED intensity rose. They found that 50 lx, 100 lx, and 200 lx LEDs led to increased milk production of 8.62 kg day−1, 7.72 kg day−1, and 3.58 kg day−1, respectively. This might be caused by the difference between the basic environment of each experiment.
The effect of relative humidity on milk yield seems to have the same feature as that of light intensity. Milk yield increased by 0.33, 0.55, 0.94, 1.26, and 0.96 as the decline of relative humidity to 75%, 70%, 65%, 60%, and 55%. 60% relative humidity led to the growth peak of milk yield.
The increased milk yield was shown as net growth profit to perform economic analysis, using the local price of 4.2 CNY kg−1 for raw milk. The net growth profit as a result of using a heating radiator reached 2.957 CNY cow−1 Day−1 and 3.226 CNY cow−1 Day−1 with natural gas and steam coal, respectively, Figure 7a. An increase in net profit of 9.09% can be gained by using steam coal as fuel. The dehumidifier created less profit, reaching a peak value of 2.509 CNY cow−1 Day−1 with the setting point of relative humidity at 60%, Figure 7b. LED light was the most cost-effective measure in this study, resulting in 5.405 CNY more net profit per cow per day using the additional LED light at 125 lx, Figure 7c.
According to the growth of net revenue and energy consumption, the total heating intensity of a winter dairy house radiator in northeast China was recommended to be 96,136 W, the recommended light intensity of LED was 125 lx, and the recommended target indoor relative humidity of dehumidifier was 60%. Compared with dehumidifiers, adding LED light sources to supplement light intensity and adding radiators to increase temperature can increase milk yield and profit to a greater extent.
Based on the economic analysis of environmental improvement using single measures, heating radiators, and LED lights were able to earn more benefits than dehumidifiers. Hence, these two measures were taken as a combination to investigate their ability to promote milk production. Increasing the temperature and light together in the dairy barn further increased milk yield, with an average growth of 1.03–4.33 kg per cow per day, depending on different intensities of measures, Figure 8a. The highest raised milk yield was 7.2 times more than that gained from environmental improvement of light intensity, and 9.8 times more than that of indoor temperature.
The increased net profit caused by environmental improvement was similar to the changing trend of milk yield, as shown in Figure 8b. When the temperature was increased alone, increases of 8 °C and 10 °C on average produced similar net growth earnings, Figure 7a. However, under the combined influence of light and temperature, the net growth of profit for a 10 °C increase on average was significantly higher than that for 8 °C, reaching 16.802 CNY cow−1 Day−1. Moreover, when the light intensity was improved alone, the net growth profit increased first (with 52–125 lx) and then decreased (with 149 lx) with the intensification of LED light intensity. However, the net growth profit reached its highest value at 149 lx LED light intensity under all the temperature conditions. Furthermore, the increased milk yield grew exponentially under this combined measure, compared to the single measures. The combination of measures enhanced the promoting effect of temperature and light intensity on milk yield.
Compared to the optimization of the two variables mentioned above, there was not much difference in milk yield growth with the three-measure combined optimization of indoor air relative humidity, temperature, and light intensity, Figure 9a. The milk yield growth was distributed in the range of 1.15–4.32 kg per cow per day. The measures taken to control indoor air relative humidity influenced the increase of milk yield insignificantly. The net profit reached the highest point at 13.96 CNY cow−1 Day−1. Because of the usage of a dehumidifier in the three-measure combination and its poor promotion of milk yield, the increased net profit dropped by 17%, Figure 9b. On the other hand, dehumidification helped to increase the lower milk yield in the cold season. The lowest milk yield growth rose from 1.03 to 1.15 kg per cow per day, with an improvement of 11.7%.
Dehumidifiers can solve the problem of higher water vapor in the air, but the cost of equipment loss is much higher than other measures. Higher relative humidity was associated with lower milk yield, but decreasing relative humidity only increased the minimum milk yield and had no significant effect on the maximum milk yield. Although the economic analysis provided a clear result, the effect of low milk yield caused by high humidity on the long-term performance of dairies remains unknown, which may also influence benefits.
The use of natural gas has the limitation of whether or not there is a natural gas pipeline lying near the site. The use of thermal coal has more transportation and labor problems. Both sources have the potential to raise costs. Therefore, different dairy farms should choose the appropriate heating method according to the geographical location and equipment conditions when using heating equipment. No active ventilation was applied to the environmental management of the barn in cold seasons during the experiment process. A heat exchanger could be considered in further investigations to replace the heating radiator so that ventilation can be included in environmental management, as the outside air can be warmed to prevent heat loss through ventilation.

4. Conclusions

The correlation between the milk yield and environmental factors was different in the summer-autumn and autumn-winter seasons in the northeast region of China. The highly significant environmental variables in terms of milk yield were temperature, wind speed, and CO2 concentration in warm seasons. These were dramatically different in cold seasons, including temperature, relative humidity, and light intensity. According to milk yield, warning boundaries of the rearing environment for dairy cows were determined to be lower than 5 °C for temperature, 300 lx for light intensity, and higher than 60% for relative humidity.
A prediction method of milk yield was established based on neural networks and the ambient environment of dairy cows, using indoor air temperature, relative humidity, and light intensity as inputs. The model was of high accuracy, where R2 was 0.802. Economic analysis of improving the living environment for dairy cows by applying LED light, heating radiator, and dehumidification was performed via the neural network model. Each of the measures resulted in increased milk yield, reaching 8%, 6%, and 7%, respectively. The combination of heating radiator and LED light was found to be the optimal solution in producing raised net benefits of 16.802 CNY cow−1 Day−1, while the three-measure combination only led to 83.1% of the profit gained from the former.

Author Contributions

J.Z.: Formal analysis, Methodology, Visualization, Writing—Original draft. Z.L.: Conceptualization, Writing—Review and Editing. Z.S.: Funding acquisition, Project administration. L.J.: Data curation, Software. T.D.: Supervision. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Modern Agricultural Industrial Technology System Support (CARS36).

Institutional Review Board Statement

Not applicable.

Data Availability Statement

Data are available on request from the authors.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Könyves, T.; Zlatkovic, N.; Memisi, N.; Lukac, D.; Puvaca, N.; Stojsin, M.; Halász, A.; Miscevic, B. Relationship of temperature-humidity index with milk production and feed intake of holstein-frisian cows in different year seasons. Thai J. Vet. Med. 2017, 47, 15. [Google Scholar] [CrossRef]
  2. Ravagnolo, O.; Misztal, I.; Hoogenboom, G. Genetic component of heat stress in dairy cattle, development of heat index function. J. Dairy Sci. 2000, 83, 2120–2125. [Google Scholar] [CrossRef]
  3. Yang, Y.; Ye, B.; Liu, H. Occurrence, Danger, Prevention and Treatment of Heat Stress in Dairy Cattle. China Cattle Sci. 2010, 36, 63–66. [Google Scholar]
  4. Baumgard, L.; Rhoads, R. Ruminant nutrition symposium: Ruminant production and metabolic responses to heat stress. J. Anim. Sci. 2012, 90, 1855–1865. [Google Scholar] [CrossRef]
  5. DeShazer, J.A.; Hahn, G.L.; Xin, H. Basic principles of the thermal environment and livestock energetics. In Livestock Energetics and Thermal Environment Management; American Society of Agricultural and Biological Engineers: St. Joseph, MI, USA, 2009; pp. 1–22. [Google Scholar]
  6. Guo, S.; Meng, F.; Xu, X.; Yang, J.; Li, Y.; Wang, X.; Wang, H. Effects of the Cold Stress on Production in Dairy Cow and Its Prevention and Control Measures. Tianjin Agric. Sci. 2021, 27, 61–64. [Google Scholar]
  7. Liu, G.; Wang, J.; Liu, W.; Zhang, X.; Yuan, Y.; Bu, D.; Wang, J. Study on heat stress and cold Stress of dairy cows in different regions of China. China Dairy Cattle 2009, 08, 66–69. [Google Scholar]
  8. Zhang, L. Evaluation of Thermal Design Parameters for the Envelopes of Dairy Barns in Cold Climate and Its Database Design; China Agricultural University: Beijing, China, 2015. [Google Scholar]
  9. Zhang, M.; Wang, X.; Yi, J. Research Progress of Barn Microclimate on Dairy Cow Production and Health. Acta Ecol. Anim. Domastici 2018, 39, 6–11. [Google Scholar]
  10. Zhang, Y.; Ao, R.; Wang, C.; Jiang, J.; Zhao, C.; Wu, H. Effects of Cold Stress on Maintenance Behavior and Antioxidative Function in Holstein Cows and Sanhe Cattle. Prog. Vet. Med. 2016, 37, 73–77. [Google Scholar]
  11. Forbes, J. Effects of lighting pattern on growth, lactation and food intake of sheep, cattle and deer. Livest. Prod. Sci. 1982, 9, 361–374. [Google Scholar] [CrossRef]
  12. Hill, D.L.; Wall, E. Dairy cattle in a temperate climate: The effects of weather on milk yield and composition depend on management. Animal 2015, 9, 138–149. [Google Scholar] [CrossRef]
  13. Ministry of Agriculture and Rural Affairs of the People’s Republic of China. Agricultural Statistics of China; China Agriculture Press: Beijing, China, 2018. [Google Scholar]
  14. Ding, T.; Jiang, L.; Shi, Z.; Zhao, Y.; Ma, H. Relationship between Environmental Factors and Milk Yield of Dairy Cow House in Cold Region Based on Random Forest. Trans. Chin. Soc. Agric. Mach. 2021, 52, 378–385. [Google Scholar]
  15. Yuan, L.; Xu, J. Effect of Variation of Temperature and Humidity on Dairy Cow Lactating Performance in Urumqi. China Cattle Sci. 2017, 43, 28–32. [Google Scholar]
  16. Wei, C. The Epidemiological Research of Subclincial Mastitis in Some Dairy Farms in Haerbin and Study on the Traditional Chinses Medicine Treatment. Master’s Thesis, Northeast Agricultural University, Harbin, China, 2010. [Google Scholar]
  17. Xu, M.; Liu, G.; Yao, X. Effect of Temperature Decrease on Dairy Performance of Dairy Cows in Winter. China Dairy Cattle 2017, 02, 10–14. [Google Scholar]
  18. Lim, D.-H.; Kim, T.-I.; Park, S.-M.; Ki, K.S.; Kim, Y. Effects of photoperiod and light intensity on milk production and milk composition of dairy cows in automatic milking system. J. Anim. Sci. Technol. 2021, 63, 626–639. [Google Scholar] [CrossRef] [PubMed]
  19. Song, J.; Yu, Q.; Wang, X.; Wang, Y.; Zhang, Y.; Sun, Y. Relationship between microclimate and cow behavior and milk yield under low-temperature and high-humidity conditions. Front. Ecol. Evol. 2023, 11, 1058147. [Google Scholar] [CrossRef]
  20. Liakos, K.G.; Busato, P.; Moshou, D.; Pearson, S.; Bochtis, D. Machine learning in agriculture: A review. Sensors 2018, 18, 2674. [Google Scholar] [CrossRef]
  21. Fang, Q.; Hanna, M.; Haque, E.; Spillman, C. Neural network modeling of energy requirements for size reduction of wheat. Trans. ASAE 2000, 43, 947. [Google Scholar] [CrossRef]
  22. Hsieh, C.-L.; Hung, C.-Y.; Kuo, C.-Y. Quantization of adulteration ratio of raw cow milk by least squares support vector machines (LS-SVM) and visible/near infrared spectroscopy. In Engineering Applications of Neural Networks: 12th INNS EANN-SIG International Conference, EANN 2011 and 7th IFIP WG 12.5 International Conference, AIAI 2011, Corfu, Greece, 15–18 September 2011, Proceedings Part I; Springer: Berlin/Heidelberg, Germany, 2011; pp. 130–139. [Google Scholar]
  23. Fenlon, C.; O’Grady, L.; Dunnion, J.; Shalloo, L.; Butler, S.; Doherty, M.L. A Comparison of Machine Learning Techniques for Predicting Insemination Outcome in Irish Dairy Cows. In Proceedings of the 24th Irish Conference on Artificial Intelligence and Cognitive Science, AICS 2016, Dublin, Ireland, 20–21 September 2016. [Google Scholar]
  24. Grzesiak, W.; Zaborski, D.; Szatkowska, I.; Królaczyk, K. Lactation milk yield prediction in primiparous cows on a farm using the seasonal auto-regressive integrated moving average model, nonlinear autoregressive exogenous artificial neural networks and Wood’s model. Anim. Biosci. 2021, 34, 770. [Google Scholar] [CrossRef]
  25. Ji, B.; Banhazi, T.; Phillips, C.J.C.; Wang, C.; Li, B. A machine learning framework to predict the next month’s daily milk yield, milk composition and milking frequency for cows in a robotic dairy farm. Biosyst. Eng. 2022, 216, 186–197. [Google Scholar] [CrossRef]
  26. Craninx, M.; Fievez, V.; Vlaeminck, B.; De Baets, B. Artificial neural network models of the rumen fermentation pattern in dairy cattle. Comput. Electron. Agric. 2008, 60, 226–238. [Google Scholar] [CrossRef]
  27. Shadpour, S.; Chud, T.C.S.; Hailemariam, D.; Oliveira, H.R.; Plastow, G.; Stothard, P.; Lassen, J.; Baldwin, R.; Miglior, F.; Baes, C.F.; et al. Predicting dry matter intake in Canadian Holstein dairy cattle using milk mid-infrared reflectance spectroscopy and other commonly available predictors via artificial neural networks. J. Dairy Sci. 2022, 105, 8257–8271. [Google Scholar] [CrossRef] [PubMed]
  28. Skapura, D.M. Building Neural Networks; Addison-Wesley Professional: New York, NY, USA, 1996. [Google Scholar]
  29. Lek, S.; Guégan, J.-F. Artificial neural networks as a tool in ecological modelling, an introduction. Ecol. Model. 1999, 120, 65–73. [Google Scholar] [CrossRef]
  30. Plumb, A.P.; Rowe, R.C.; York, P.; Brown, M. Optimisation of the predictive ability of artificial neural network (ANN) models: A comparison of three ANN programs and four classes of training algorithm. Eur. J. Pharm. Sci. 2005, 25, 395–405. [Google Scholar] [CrossRef]
  31. Kang, L. Application Research of Particle Swarm Optimization BP Neural Network on Emergency Resource Demand Forecasting; Lanzhou Jiaotong University: Lanzhou, China, 2013. [Google Scholar]
  32. Zhong, T.; Zhang, D.; Chen, Z.; Zou, C.; Zhu, J.; Zhao, F.; LIang, Y. Insulin evaluation and prediction model based on back-propagation neural network. Chin. J. Med. Phys. 2018, 35, 1318–1323. [Google Scholar]
  33. Wang, Y.; Li, B. Analysis and experiment on thermal insulation performance of outer building envelope for closed layer house in winter. Trans. Chin. Soc. Agric. Eng. 2017, 33, 190–196. [Google Scholar]
Figure 1. The aim of this study is to obtain the relation between milk yield and climatic features in dairy barns and to build the predictive model of milk yield based on neural networks in which the economic analysis of indoor environmental improvement can be achieved.
Figure 1. The aim of this study is to obtain the relation between milk yield and climatic features in dairy barns and to build the predictive model of milk yield based on neural networks in which the economic analysis of indoor environmental improvement can be achieved.
Agriculture 13 02206 g001
Figure 2. The indoor environment, dairy diet, number of lactating cows, and milk yield data from August 2019 to March 2020. The environment data includes air temperature, relative humidity, wind speed, CO2 concentration, and light intensity, respectively.
Figure 2. The indoor environment, dairy diet, number of lactating cows, and milk yield data from August 2019 to March 2020. The environment data includes air temperature, relative humidity, wind speed, CO2 concentration, and light intensity, respectively.
Agriculture 13 02206 g002
Figure 3. Correlation coefficients of indoor environmental variables and milk yield in seasons of summer-autumn (a) and autumn-winter (b).
Figure 3. Correlation coefficients of indoor environmental variables and milk yield in seasons of summer-autumn (a) and autumn-winter (b).
Agriculture 13 02206 g003
Figure 4. The milk yield distribution versus indoor temperature, relative humidity, and light intensity in cold seasons.
Figure 4. The milk yield distribution versus indoor temperature, relative humidity, and light intensity in cold seasons.
Agriculture 13 02206 g004
Figure 5. Architecture of the established feed-forward neural network.
Figure 5. Architecture of the established feed-forward neural network.
Agriculture 13 02206 g005
Figure 6. Increased milk yield under different measurements compared with the original condition.
Figure 6. Increased milk yield under different measurements compared with the original condition.
Agriculture 13 02206 g006
Figure 7. Increased milk profit and cost caused by improved indoor temperature (a), improved indoor relative humidity (b), and improved indoor light intensity (c).
Figure 7. Increased milk profit and cost caused by improved indoor temperature (a), improved indoor relative humidity (b), and improved indoor light intensity (c).
Agriculture 13 02206 g007
Figure 8. Increased milk yield (a) and net profit (b) caused by improved indoor environment via combined heating radiator and LED light different intensity, respectively.
Figure 8. Increased milk yield (a) and net profit (b) caused by improved indoor environment via combined heating radiator and LED light different intensity, respectively.
Agriculture 13 02206 g008
Figure 9. Increased milk yield (a) and net profit (b) caused by improved indoor environment with the combination of dehumidifier, heating radiator, and LED light to different intensities.
Figure 9. Increased milk yield (a) and net profit (b) caused by improved indoor environment with the combination of dehumidifier, heating radiator, and LED light to different intensities.
Agriculture 13 02206 g009
Table 1. The model performance of different numbers of nodes in the hidden layer and different activation functions in the hidden and output layers.
Table 1. The model performance of different numbers of nodes in the hidden layer and different activation functions in the hidden and output layers.
SHidden LayerOutput LayerR2RE/%RMSEError < 0.5 kg/%Error < 1 kg/%
Node tests
3tansigpurelin0.7332.91.1838.360.9
4tansigpurelin0.7482.81.1438.761.4
5tansigpurelin0.7642.71.1139.161.6
6tansigpurelin0.7762.61.0639.562.4
7tansigpurelin0.7872.61.0640.863.1
8tansigpurelin0.7812.71.0740.262.1
9tansigpurelin0.7852.61.0639.067.2
10tansigpurelin0.7892.71.0540.167.5
11tansigpurelin0.8022.51.0245.668.7
12tansigpurelin0.8012.61.0244.663.9
13tansigpurelin0.7982.61.0345.068.4
Function tests
11tansigtansig0.7892.61.0538.260.2
11tansiglogsig0.4344.41.7220.939.7
11tansigpurelin0.8022.51.0245.668.7
11logsigtansig0.7942.61.0441.165.6
11logsiglogsig0.4404.41.7119.738.2
11logsigpurelin0.7892.61.0540.962.3
11purelintansig0.4953.91.6321.540.2
11purelinlogsig0.2355.22.0013.424.6
11purelinpurelin0.4943.91.6322.242.6
Table 2. Information on selected devices to improve indoor environment.
Table 2. Information on selected devices to improve indoor environment.
DevicePrice
(CNY/m2)
Life Span
(Years)
SourcePriceCalorific Value
(kcal/m3)
Combustion Efficiency
Heating Radiator6530Natural gas2.8 CNY/m3931092%
Steam coal1.2 CNY/m3550082%
Dehumidifier18.710Electricity0.48 CNY/kWh--
LED lights0.15 (5 W)
0.17 (10 W)
10Electricity0.48 CNY/kWh--
Table 3. The conditions of indoor environment improvement.
Table 3. The conditions of indoor environment improvement.
VariableSet Point of Environmental Improvement
Temperature+2 °C+4 °C+6 °C+8 °C+10 °C
Relative humidity55%60%65%70%75%
Light intensity+52 lx+78 lx+115 lx+125 lx+149 lx
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

Zhang, J.; Liu, Z.; Shi, Z.; Jiang, L.; Ding, T. Milk Yield Prediction and Economic Analysis of Optimized Rearing Environment in a Cold Region Using Neural Network Model. Agriculture 2023, 13, 2206. https://doi.org/10.3390/agriculture13122206

AMA Style

Zhang J, Liu Z, Shi Z, Jiang L, Ding T. Milk Yield Prediction and Economic Analysis of Optimized Rearing Environment in a Cold Region Using Neural Network Model. Agriculture. 2023; 13(12):2206. https://doi.org/10.3390/agriculture13122206

Chicago/Turabian Style

Zhang, Jingfu, Zhiwei Liu, Zhengxiang Shi, Leisheng Jiang, and Tao Ding. 2023. "Milk Yield Prediction and Economic Analysis of Optimized Rearing Environment in a Cold Region Using Neural Network Model" Agriculture 13, no. 12: 2206. https://doi.org/10.3390/agriculture13122206

APA Style

Zhang, J., Liu, Z., Shi, Z., Jiang, L., & Ding, T. (2023). Milk Yield Prediction and Economic Analysis of Optimized Rearing Environment in a Cold Region Using Neural Network Model. Agriculture, 13(12), 2206. https://doi.org/10.3390/agriculture13122206

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop