Next Article in Journal
Brain MRI Analysis for Alzheimer’s Disease Diagnosis Using CNN-Based Feature Extraction and Machine Learning
Next Article in Special Issue
Alternate Wetting and Drying in the Center of Portugal: Effects on Water and Rice Productivity and Contribution to Development
Previous Article in Journal
Cooperatively Routing a Truck and Multiple Drones for Target Surveillance
Previous Article in Special Issue
Soil Water Content Prediction Using Electrical Resistivity Tomography (ERT) in Mediterranean Tree Orchard Soils
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Evolution and Neural Network Prediction of CO2 Emissions in Weaned Piglet Farms

1
Department of Agroforestry Engineering, Higher Polytechnic Engineering School, University of Santiago de Compostela, 27002 Lugo, Spain
2
Centro de Investigaciones Agrarias de Mabegondo, Xunta de Galicia, 15318 A Coruña, Spain
3
Consellería do Medio Rural, Xunta de Galicia, 36500 Lalin, Spain
*
Author to whom correspondence should be addressed.
Sensors 2022, 22(8), 2910; https://doi.org/10.3390/s22082910
Submission received: 30 March 2022 / Accepted: 6 April 2022 / Published: 11 April 2022

Abstract

:
This paper aims to study the evolution of CO2 concentrations and emissions on a conventional farm with weaned piglets between 6.9 and 17.0 kg live weight based on setpoint temperature, outdoor temperature, and ventilation flow. The experimental trial was conducted during one transition cycle. Generally, the ventilation flow increased with the reduction in setpoint temperature throughout the cycle, which caused a reduction in CO2 concentration and an increase in emissions. The mean CO2 concentration was 3.12 g m–3. Emissions of CO2 had a mean value of 2.21 mg s−1 per animal, which is equivalent to 0.195 mg s−1 kg−1. A potential function was used to describe the interaction between 10 min values of ventilation flow and CO2 concentrations, whereas a linear function was used to describe the interaction between 10 min values of ventilation flow and CO2 emissions, with r values of 0.82 and 0.85, respectively. Using such equations allowed for simple and direct quantification of emissions. Furthermore, two prediction models for CO2 emissions were developed using two neural networks (for 10 min and 60 min predictions), which reached r values of 0.63 and 0.56. These results are limited mainly by the size of the training period, as well as by the differences between the behavior of the series in the training stage and the testing stage.

1. Introduction

Animal production is a fundamental activity for meeting the increasing global demand for food. However, this activity is a key contributor to global GHG emissions [1,2] and to the global problem of climate change [3]. Pig production accounts for a significant portion of these emissions [4], with a contribution of between 9 and 13% [2,3]. Considering the GHG produced by pigs and manure at pig house level, the gas that contributes the most to the greenhouse effect is CO2, with approximately 81% of emissions [5]. However, direct CO2 emissions, arising from the animals and manure, are generally excluded from GHG evaluation, because they are supposed to be compensated by CO2 consumption through photosynthesis, performed by the plants used as feed. For this reason, CO2 production is rarely addressed in the literature [5].
CO2 emissions from farms depend on two factors, CO2 production and ventilation rate. Here, the main source of CO2 is animal metabolism, followed by manure [6], although other sources may exist, such as heaters using propane or natural gas [7]. More specifically, the carbon dioxide produced by animals depends on animal weight and daily gain, while CO2 emissions are also strongly affected by variations in animal activity [8,9,10,11,12]. Carbon dioxide emissions have also been reported to be affected by other factors, such as diet composition [13,14] and conversion efficiency, droppings management, or environmental conditions [15], following a sinusoidal pattern of daily emission [8,9]. Nevertheless, there are some discrepancies between the results that have been reported so far, probably due to variations in animal species, feeding level, farm practices, control strategy, manure management systems, animal density, geography, climate, season, and other factors [7,10]. In relation to pig production, variations have been found between physiological stages [5,16], which could be attributed to the conditions of the building, ventilation system, management, diet, or even gas measurement method. Thus, while different authors [17,18] have reported fairly similar CO2 emissions during the fattening period, larger variations have been found during the other physiological stages [19,20,21], especially during weaning [5]. In fact, CO2 production per unit of total heat production is much lower for weaning pigs than for growing finishing pigs [12]. In addition, large variations have been found in GHG emissions per unit of product across EU countries, mainly because of the differences observed in the production systems [5], feed type, and efficiency of nutrient use [22].
Farm buildings for piglets in transition, where weaned piglets are housed from weaning up to fattening, as well as delivery rooms, are the facilities with the highest levels of CO2 concentration. This is because ventilation rates are kept reduced at this stage owing to the fact that animals require high temperatures and are very sensitive to air currents [23]. Consequently, although CO2 emissions are affected considerably more by ventilation rate than by indoor air concentration [24], these farms present high levels of CO2 emissions into the atmosphere due to the relationship between concentration and emission through the ventilation rate [24,25]. Moreover, the ventilation system and the control strategy can significantly affect the airflow inside livestock rooms, which can further affect the emission of gaseous contaminants from animal buildings [6].
Intelligent livestock farming, with a continuous improvement in the production efficiency of management systems, can contribute to decreasing GHG emissions [26,27]. In recent years, technological progress has contributed to obtaining positive results in the reduction of GHG emissions from pig production [28], although other studies have shown that these efforts may not be enough to achieve a sustainable level [29,30]. Therefore, there is a need to find housing systems that minimize ammonia and GHG emissions, and improve animal welfare [31]. In this respect, most existing studies focus on GHG emissions for ruminants, partly because of their high emission per unit of production. In contrast, fewer studies focus on monogastric animals, like pigs [32,33]. New research is thus necessary in order to obtain accurate emission factors [4,10,15], mainly under farm conditions [34], that cover the full production seasons [14].
A number of studies have been performed to evaluate emissions from farms with weaned piglets, both in field conditions [14] and in experimental rooms, during part of the transition period [3,13]. Two of those studies focused on determining the influence of different diets on GHG emissions and found that including dried distillers grains with solubles in the diet of piglets did not cause significant differences in CO2 emissions [3]. In addition, using five different isoenergetic diets (control, low protein, inclusion of sugar beet pulp, addition of benzoic acid, and a combination of previous diets) only caused a 15% decrease in CO2 emissions for the combined diet [13]. Different floor systems (straw-based deep litter, sawdust-based deep litter, and fully slatted floors) were also analyzed, but no significant differences in CO2 emissions were found between systems [3]. There is a lack of studies aimed at quantifying CO2 emissions on farms raising weaned piglets based on continuous measurements performed under field conditions. In contrast to the above studies, in this paper, we analyze the data for a complete production cycle, from weaning to fattening, from a conventional farm. Continuous measurements of environmental parameters and ventilation flow have been used, which results in quality data for a largely unexplored production stage.
In addition to quantifying emissions, generating models that are capable of predicting the emission of gases from farms is necessary to achieve emission control through intelligent livestock farming. One of the emerging technologies for modelling and predicting farm emissions is artificial intelligence (AI), which has already been used for developing many applications and papers in the field of smart farming. The most common AI models used for the modelling, prediction, and management of variables related to livestock farming are artificial neural networks (ANN), convolutional neural networks, deep learning, adaptive neural fuzzy inference system (ANFIS), machine learning, and pattern recognition [35]. Specifically, ANFIS models have been used for modelling ammonia emissions in pig farms [36], and ANN and ANFIS (artificial neural network and adaptive neuro-fuzzy inference systems, respectively) have been used for modelling and predicting energy output and greenhouse gas emissions from calf fattening farms [37].
This paper aims to quantify and study the evolution of CO2 concentration and emissions on a pig farm with weaned piglets from 6.9 to 17 kg LW during a complete transition cycle under field conditions. Our aim is to find the relationship between CO2 concentration and emissions, and some control parameters of the air conditioning system, such as setpoint temperature, outdoor temperature, or ventilation flow, during one transition cycle. In addition, we present a neural network-based model for the prediction of 10 min and 60 min CO2 emissions that can be incorporated into the environmental control system.

2. Materials and Methods

Research was conducted in a conventional farm for the production of piglets located in NW Spain. Measurements were performed in a transition room, where piglets entered with an average weight of 6.9 kg at day 28 after birth and exited with 17.0 kg LW at day 65 after birth, covering a complete transition cycle, from 27 February to 4 April. An intermediate room was chosen in order to avoid the boundary effect of lateral positions in the building. The inner dimensions of the room, with polypropylene slats on the floor, were 11.82 m long by 5.86 m wide, and between 2.25 and 2.50 m high. The mean depth of the pit was 0.45 m. At the end of each cycle, the room was completely cleaned and manure was completely removed from the pit. The room had six pens on both sides of a central corridor and housed a maximum of 300 weaned piglets, with 50 piglets per pen, with 0.20 m2 per piglet (Figure 1).
The air conditioning system comprised ventilation and warm water underfloor heating facilities. Environmental control was performed in the building through a temperature probe, without altering the usual conditions of the farm. The setpoint temperatures (TS) defined for environmental control were between 26 and 23 °C with a bandwidth of ±1.5 °C, and decreased gradually with the increase in the age and weight of the animals (Table 1). Clean air entered the room through two windows with air deflectors on the wall opposite to the fan (Figure 1E). The animals were provided feed ad libitum through a screw conveyor system with a feeder shared by two pens. Water was supplied through two drinking cups in each pen.
The number of animals was registered daily. Animals were weighed at the beginning of the cycle, on day 28 after birth, on day 38 when the feed type was changed, and at the end of the cycle on day 65 after birth. In order to obtain the value for emissions per kg throughout the cycle, a linear interpolation was performed between the weighed values. Table 1 shows the mean weight of the piglets for each setpoint temperature.
Table 2 shows the environmental variables measured and the sensors used to measure them. Variables were measured every second, and the averages for every 10 min interval were stored in a HOBO® data logger (Bourne, MA, USA).
Based on the speed of the air extracted, the flow extracted through the fan (Q) was calculated using the following expression:
Q = 1.143 Vm·S
where:
  • Q = flow extracted through the fan (m3 s−1);
  • Vm = mean speed (m s−1);
  • 1.143 = relation between Vm at every measured point and speed measured at the location of the sensor, in m s−1;
  • S = duct section (0.303 m2).
The emission of CO2 per animal, ECO2, was calculated according to the following expression:
ECO2 = (COUTLETCINLET) Q/n
where:
  • ECO2= emission of CO2 per animal (mg s−1);
  • COUTLET = concentration of CO2 at the ventilation air outlet (mg m−3), measured at a height of 2.30 m;
  • CINLET = concentration of CO2 in the exterior corridor of air inlet (mg m−3), obtained as a mean of the measurements performed at four positions at an average temperature of 17.75 °C;
  • n = number of animals in the room.

2.1. Prediction of CO2 Emissions

Neural networks were trained to predict CO2 emissions at 10 min and 60 min intervals. An artificial neural network (ANN) is a method used for modelling non-linear relationships between input and output variables [38]. An ANN does not require previous knowledge about how to handle the system, which turns it into a very efficient and versatile technique in complex processes. Since the 2000s, ANNs have been the most recurring artificial intelligence models in the field of research on animal farming, mainly for detecting illnesses, estimating growth performance, or monitoring and controlling environmental conditions [35]. Since then, different training algorithms have been used, such as back propagation, radial basis function, or feed forward [37,39]. In this paper, a multilayer perceptron neural network was used. A resilient backpropagation method with weight backtracking, available in the “neuralnet” pack of R [40], was used to train the ANN. This algorithm is a first-rate optimization method similar to the backpropagation algorithm, but is generally faster, without the requirement of specifying free parameter values [41].
The number of neurons in the input and output layers is determined by the input and output variables of the model. In this case, three inputs were used, namely the values of Q, TIN, and CCO2 measured during the previous 10 min or 60 min periods, to obtain the output, ECO2. On the contrary, there is no specific procedure to determine the number of neurons, M, of the hidden layer. This value is defined through a procedure of trial and error. After having checked the performance of different neural network structures, and having evaluated the average degree of fit of up to 40 training iterations with each structure, we chose a network with an input layer of three neurons and one output layer of one neuron, with two hidden layers, and a total of 3-4-4-1 neurons per layer. This structure was the most efficient at predicting emissions for both the 10 min and 60 min periods. Moreover, the initial weights of the network were allocated randomly. A logistic activation function was used because of the common use of these functions in the field of agriculture [37]. The stopping criterion was set to 0.01, with a maximum number of steps for the training of 1 × 105.

2.2. Evaluation of the Performance of the Model

In order to evaluate the performance of the model, three statistical measures were used: root mean square error (RMSE), Pearson correlation coefficient (r), and mean absolute relative error (MARE). RMSE was used to measure the difference between the predictions of the model and the observed values. The values of RMSE are expressed in units, while MARE indicates the size of the error in relative terms. The Pearson correlation coefficient indicates the strength and direction of a linear relationship between the predicted and observed values.
R M S E = i = 1 n ( y y ) 2 n
M A R E = 1 n   i = 1 n | y y y |
r = i = 1 n ( y y ¯ ) ( y y ¯ ) i = 1 n ( y y ¯ ) 2 i = 1 n ( y y ¯ ) 2
where y is the observed value; y is the predicted value; y ¯ and y ¯ are the average values of y and y , respectively; and n is the number of values.

3. Results and Discussion

The mean CO2 concentration at the air outlet of the building where piglets between 6.9 kg and 17.0 kg were housed was 1852 ± 711 ppm, which is equivalent to 3.12 ± 1.20 g m–3 (Table 3). These values were near the lowest mean value of 1981–3253 ppm found in different trials for pigs between 5.5 and 118 kg, with highly extreme temperatures and very restricted ventilation over a prolonged period in the cycle [14], and slightly higher than the mean of 2.89 g m–3 found for pigs between 13 and 32 kg in environmental chambers [13]. All of these CO2 concentrations were far below the 5.30 mg m−3 obtained for animals between 17 and 20 kg [20].
The mean CO2 emission was 2.21 ± 1.09 mg s−1 pig−1 (Table 4), which is below the emissions reported by other authors in buildings with fully slatted floors [3] for pigs in the same growth stage, with very similar weights of 7 and 23 kg and emission values of 3.51 and 3.95 mg s−1 pig−1. By transforming the unit based on animal weight, the emission obtained was 0.195 ± 0.074 mg s−1 kg−1. This value was only above the 0.139 mg s−1 kg−1 found for pigs of 7 to 35 kg [19], and well below the values reported in other studies that analyzed different diets, with mean values of 0.293 mg s−1 kg−1 for piglets between 13 and 32 kg [13], and values of 0.423 mg s−1 kg−1 and 0.549 mg s−1 kg−1 for pigs between 5.5 and 118 kg [14]. Even though both studies focused on pigs with weights within the range analyzed in our study, the study in [13] started at much heavier weights than the weights studied in our paper and ended much later, while the study in [14] started at a slightly lower weight, but included the finishing stage, so that the animals ended up being much older. The weaned piglet stage is the one with the largest variations in CO2 emissions, whereas other stages produce more homogenous emissions [5]. Despite this, the studies devoted to the effect of different diets on weaned piglets have not found significant differences on CO2 emissions [13,14]. Likewise, using a fully slatted floor as opposed to straw-based deep litter or sawdust-based deep litter did not cause significant differences in CO2 emissions [3].

3.1. Variation of CO2 Concentration and Emissions with Setpoint Temperature

The CO2 concentration in the building reached its peak with the highest setpoint temperature, 26 °C, set at the start of the cycle, and decreased as animals grew and the setpoint temperature was reduced (Table 3, Figure 2A). The mean CO2 concentrations for every setpoint temperature were lower than the measurements reported by [42], although concentrations were always in the range reported by a number of authors for pig farms [43,44,45]. In summary, the CO2 concentration declined as the animals grew. In contrast, another study reported increasing concentrations [13], which may be caused by the different ages of the animals (28 days vs. 37 days). As a result of age difference, higher temperatures and lower ventilation rates were required in our study to ensure animal welfare conditions. Actually, a trend of increasing concentrations was observed in the final stage of the cycle analyzed in our study (Figure 2A).
CO2 emissions decreased at the beginning of the cycle because of the limitation of ventilation flows and the weight of piglets (Table 4 and Figure 2B). Emissions during the first five days (TS = 26 °C) were higher than on the following days (change to TS = 25 °C) because the piglets showed more activity as a consequence of post-weaning stress. From that moment, emissions increased with the age of the animals, which was particularly noticeable at the end of the cycle (from day 28), as stated by [2]. The regular increase in CO2 emissions over the cycle suggests the influence of animal weight [3], which results from an increase in the metabolic rate and in CO2 production due to breathing [14].

3.2. Variation of CO2 Concentrations and Emission with Outdoor Temperature

The daily behavior of the CO2 concentration was inverse to the evolution of the outdoor temperature (Figure 3A), with the highest concentrations occurring at night. This resulted in a negative correlation, with a value of r = −0.695 for the cycle, which was above the value obtained by Ni et al. [46] for two manure-belt layer hen houses.
As shown in Figure 3B, during the first three days of the cycle, with TS = 26 °C, the outdoor temperature and CO2 emissions followed a similar pattern because of the effects of outdoor temperature on the ventilation system. On the following days, CO2 emissions decreased steadily until day 25, when outdoor temperature started to increase. During this interval, both variables showed a weak, inverse correlation (r = −0.475), which was in agreement with the correlation found by Ni et al. [46] for laying hens. This means that minimum emissions occurred at maximum outdoor temperatures. From that day until the end of the cycle, emissions followed a daily oscillation that was parallel to that of outdoor temperatures.

3.3. Variation of CO2 Concentrations and Emissions with Ventilation Flow

The ventilation flow was highly reduced during the first days of the cycle, until day 25, with a mean of 0.17 m3 s−1 and a maximum of 0.50 m3 s−1 (Figure 4). After that, a transition stage began for three days with a mean of 0.33 m3 s−1 and a maximum of 0.82 m3 s−1. From day 28, ventilation flow was significantly increased, with a mean of 0.74 m3 s−1 and a peak of 2.02 m3 s−1. Consequently, CO2 concentrations varied depending on the ventilation flow, such that, as the flow increased, concentration decreased both throughout the cycle [13] and on a daily basis [6]. Maximum CO2 concentrations (Figure 4A) of 9.50 g m−3 were measured during the first 25 days, when the highest mean value of 3.63 g m−3 was reached. This means that, as stated by [23] and contrary to what is usually anticipated, maximum CO2 concentrations occurred when the animals were younger. Furthermore, as the ventilation flow increased, the CO2 concentration decreased near the fan, and, therefore, in the building [24,25,47]. Thus, higher ventilation rates involved lower CO2 concentrations inside the facilities, albeit with higher emission rates [6].
The relationship between CO2 concentration (CCO2 in g m−3) and the flow of air extracted through the fan (Q in m3 s−1) during the cycle (Figure 5A) is given by the following equation:
CCO2 = 1.5316 Q−0.442
The correlation coefficient between the CO2 concentration and ventilation flow is r = 0.82.
CO2 emissions (Figure 4B) increased with the age of the piglets, in agreement with Stin et al. [16]. Mean CO2 emissions of 2.21 mg s−1 per animal were found for piglets with a mean weight of 11.39 kg during the cycle, although there was a sharp increase from day 28, with a peak of 12.34 mg s−1. Throughout the cycle, increasing the ventilation flow caused a rise in emissions, as observed for the fattening pigs [6,7]. As a consequence, CO2 emissions (ECO2 in mg s−1) and the flow of air extracted through the fan (Q in m3 s−1) showed a linear relationship (Figure 5B), which is given by the following equation:
ECO2 = 2.8624 Q + 1.2919
The correlation coefficient between CO2 emissions and ventilation flow is r = 0.85.

3.4. Neural Networks for the Prediction of CO2 Emissions

Table 5 shows the mean performance of the 10 min and 60 min prediction models after 40 iterations.
Expectedly, the 10 min prediction was more accurate than the hourly prediction, although statistical differences were minimal. In particular, r values of 0.63 and 0.56 were obtained with the 10 min and 60 min prediction models, respectively, whereas the RMSE values were 1.21 and 1.27 mg s−1, respectively. The prediction error of the models with regard to measured data in absolute terms (RMSE) was associated with very similar relative values (MARE), namely 0.23 for the 60 min prediction and 0.25 for the 10 min prediction. Figure 6 shows these differences. Furthermore, the hourly prediction model showed greater difficulty in predicting the peaks of CO2 emission.
The prediction results were limited mainly by the size of the training period and the differences between the behavior of the series in the training stage and the testing stage. As shown in Figure 6, the period for the data chosen as the training data corresponded to a stage of certain stability in emission values, while the emissions showed greater daily oscillations during the testing stage. These differences in the series limited the performance of the model and could account for its poor performance compared to the model proposed in [48], which returned an r value near 0.99 using a multilayer perceptron neural network. However, other authors [37] obtained an r2 of 0.733 and a MARE of 0.025 using an ANN prediction model of GHG emissions in a farm for calves. Xie et al., 2017 [36], used an ANFIS model to predict ammonia emissions in a fattening room for pigs and found an r2 of 0.635 and 0.648, with a MARE of 0.312 and 0.237, in contrast to the values of 0.23 and 0.25 reported above. In the discussed cases, the available dataset was larger than the one used in this study. Self-learning in neural networks with a larger dataset would lead to a better performance of the models, particularly because two of the input variables (ventilation flow and CO2 concentration) were key parameters in the emissions.

3.5. Innovative Potential of the Results

This paper focuses on CO2 concentrations and emissions in pig farms during weaning, the production stage with the largest variations in values obtained for emissions [5]. Such variations may be related to the complexity of the farm climate control system, which has to meet the strict environmental requirements of piglets. Furthermore, these requirements change considerably throughout the cycle. For this reason, conventional farms usually have air conditioning systems that include heating and forced ventilation. These were the conditions for this research, performed in a conventional farm, during the complete transition cycle, from the weaning of piglets to their transfer to fattening. New values were provided for this stage, which requires deeper study in terms of the quantification of GHG concentrations and emissions [15,34].
CO2 is the gas that contributes the most to the global emissions of greenhouse gases in pig production, accounting for approximately 81% [5]. Therefore, estimating CO2 emissions provides highly relevant information for global estimations. CO2 concentrations can be measured affordably, reliably, and with little maintenance using infrared sensors, which can be implemented on farms. Yet, the large number of rooms in transition farms would substantially increase the costs [49]. Moreover, for the estimation of emissions, the flow of the ventilation system must be determined. Ventilation flow may be obtained using the values provided by the controller, which can be easily measured, along with the fan curves or through previous calibrations using an anemometer.
This study evidenced the relationship between CO2 concentrations and emissions with the different operating parameters of the climate control system, namely setpoint temperature or ventilation flow, and with outdoor temperature, which directly influences climate control. By using these parameters, the CO2 concentrations and emissions can be estimated for any farm at any given moment, because 10 min values are used. In addition, we proposed Equations (6) and (7), which allow for a simple and direct estimation of the CO2 concentrations and emissions with high correlation indexes. Furthermore, because CO2 concentrations and emissions are linked to farm control parameters, emissions can also be regulated by operating the climate control system.
Finally, generating neural network-based models for 10 min and 60 min CO2 emissions allows for the prediction of the evolution of the study variables based on the input variables, namely flow extracted through the fan, temperature inside the building, and CO2 concentration, which provides a deeper understanding of the problem and the possibility to regulate emissions. In fact, good results have been obtained in studies focused on the optimization of environmental conditions in buildings based on machine learning systems [50]. These predictive systems can be incorporated into climate control systems to automatically optimize concentrations, consequently improving animal welfare, and emissions, consequently improving the environment.
In addition, an optimizer could be designed to simultaneously achieve a suitable distribution of temperatures and pollutant concentrations, yet using another model to predict indoor concentrations.

4. Conclusions

The following conclusions can be drawn from the analysis of variations in CO2 concentration and emissions in a conventional farm building with a fully slatted floor and mechanical ventilation for weaned piglets from 6.9 to 17.0 kg LW, and the relationship of such variations with setpoint temperature, outdoor temperature, and ventilation flow during a complete production cycle:
  • Generally, the ventilation flow increased with the reduction in setpoint temperature as the animals grew, which caused a reduction in CO2 concentration in the building. The mean value of the CO2 concentration was 3.12 g m–3. Maximum concentrations were obtained during the first days of the cycle, when ventilation was restricted due to the demanding thermal requirements of the piglets and their susceptibility to air currents.
  • CO2 emissions increased throughout the cycle. The emission pattern matched the pattern of outdoor temperatures when the ventilation flow was low and setpoint temperatures were high, at the start of the cycle. On the contrary, with higher ventilation flows and lower setpoint temperatures, the daily evolution of CO2 emissions was inverse to the evolution of the outdoor temperature. Emissions of CO2 showed a mean of 2.21 mg s−1 per animal, which was equivalent to 0.195 mg s−1 kg−1, with a total emission per animal of 7.05 kg at the end of the cycle.
  • Mathematical expressions for 10 min values of CO2 concentrations and emissions were obtained based on ventilation flow, a variable controlled by the climate control system, with r values of 0.82 and 0.85, respectively, which allowed for simple and direct quantification.
  • Using two neural networks, the 10 min and 60 min prediction models for CO2 emissions reached r values of 0.63 and 0.56. These results were mainly limited by the size of the training period, as well as by the differences between the behavior of the series in the training stage and the testing stage.
  • Both the equations and the ANN models for farm emissions allowed for the prediction of the values of emissions from the variables involved in environmental control. Therefore, the proposed equations and models could be integrated into climate control systems, thus allowing for emission regulation.

Author Contributions

Conceptualization, M.D.F. and M.R.R.; methodology, T.A. and M.D.F.; validation, T.A., M.D.F. and R.B.; formal analysis, T.A. and M.D.F.; investigation, M.D.F., R.B., J.A.O. and M.R.R.; data curation, T.A. and J.A.O.; writing—original draft preparation, T.A. and M.R.R.; writing—review and editing, T.A. and M.D.F.; supervision, T.A. and M.D.F. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Consellería de Educación, Universidade e Formación Profesional and Consellería de Economía, Emprego e Industria from the Galician Government (Xunta de Galicia). Granted with reference ED431B 2018/12-GPC.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Acknowledgments

The authors are grateful to the Galician government (Xunta de Galicia) for funding this research through the “Program of consolidation and structuring of competitive research units” (ED431B 2018/12).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Dai, X.W.; Zhanli, S.U.N.; Müller, D. Driving factors of direct greenhouse gas emissions from China’s pig industry from 1976 to 2016. J. Integr. Agric. 2021, 20, 319–329. [Google Scholar] [CrossRef]
  2. Smit, L.A.; Heederik, D. Impacts of intensive livestock production on human health in densely populated regions. GeoHealth 2017, 1, 272–277. [Google Scholar] [CrossRef] [PubMed]
  3. Cabaraux, J.F.; Philippe, F.X.; Laitat, M.; Canart, B.; Vandenheede, M.; Nicks, B. Gaseous emissions from weaned pigs raised on different floor systems. Agric. Ecosyst. Environ. 2009, 130, 86–92. [Google Scholar] [CrossRef]
  4. Philippe, F.X.; Laitat, M.; Nicks, B.; Cabaraux, J.F. Ammonia and greenhouse gas emissions during the fattening of pigs keton two types of straw floor. Agric. Ecosyst. Environ. 2012, 150, 45–53. [Google Scholar] [CrossRef]
  5. Philippe, F.X.; Nicks, B. Review on greenhouse gas emissions from pig houses: Production of carbon dioxide, methane and nitrous oxide by animals and manure. Agric. Ecosyst. Environ. 2015, 199, 10–25. [Google Scholar] [CrossRef] [Green Version]
  6. Zong, C.; Zhang, G.; Feng, Y.; Ni, J.Q. Carbon dioxide production from a fattening pig building with partial pit ventilation system. Biosyst. Eng. 2014, 126, 56–68. [Google Scholar] [CrossRef]
  7. Ni, J.Q.; Heber, A.J.; Lim, T.T.; Tao, P.C.; Schmidt, A.M. Methane and carbon dioxide emission from two pig finishing barns. J. Environ. Qual. 2008, 37, 2001–2011. [Google Scholar] [CrossRef]
  8. Blanes, V.; Pedersen, S. Ventilation flow in pig houses measured and calculated by carbon dioxide, moisture and heat balance equations. Biosyst. Eng. 2005, 92, 483–493. [Google Scholar] [CrossRef]
  9. Calvet, S.; Cambra-López, M.; Barber, F.E.; Torres, A.G. Characterization of the indoor environment and gas emissions in rabbit farms. World Rabbit. Sci. 2011, 19, 49–61. [Google Scholar] [CrossRef]
  10. Calvet, S.; Estellés, F.; Cambra-López, M.; Torres, A.G.; Van den Weghe, H.F.A. The influence of broiler activity, growth rate, and litter on carbon dioxide balances for the determination of ventilation flow rates in broiler production. Poult. Sci. 2011, 90, 2449–2458. [Google Scholar] [CrossRef]
  11. Jeppsson, K.H. Diurnal variation in ammonia, carbon dioxide and water vapour emission from an uninsulated, deep litter building for growing/finishing pigs. Biosyst. Eng. 2002, 81, 213–224. [Google Scholar] [CrossRef] [Green Version]
  12. Pedersen, S.; Blanes-Vidal, V.; Joergensen, H.; Chwalibog, A.; Haeussermann, A.; Heetkamp, M.J.W.; Aarnink, A.J.A. Carbon dioxide production in animal houses: A literature review. Agric. Eng. Int. CGIR E J. 2008, 5, 19. [Google Scholar]
  13. Montalvo, G.; Morales, J.; Piñeiro, C.; Godbout, S.; Bigeriego, M. Effect of different dietary strategies on gas emissions and growth performance in post-weaned piglets. Span. J. Agric. Res. 2013, 11, 1016–1027. [Google Scholar] [CrossRef] [Green Version]
  14. Pepple, L.M.; Burns, R.T.; Xin, H.; Li, H.; Patience, J. Ammonia, hydrogen sulfide, and greenhouse gas emissions from wean-to-finish swine barns fed diets with or without DDGS. In Proceedings of the Agricultural and Biosystems Engineering Conference Proceedings and Presentations, Louisville, Kentucky, 7–10 August 2011; American Society of Agricultural and Biosystems Engineering: St. Joseph, MI, USA, 2011. [Google Scholar]
  15. Broucek, J.; Cermák, B. Emission of harmful gases from poultry farms and possibilities of their reduction. Ekologia 2015, 34, 89–100. [Google Scholar] [CrossRef] [Green Version]
  16. Stinn, J.P.; Xin, H.; Shepherd, T.A.; Li, H.; Burns, R.T. Ammonia and greenhouse gas emissions from a modern US swine breeding-gestation-farrowing system. Atmos. Environ. 2014, 98, 620–628. [Google Scholar] [CrossRef]
  17. Guingand, N.; Quiniou, N.; Courboulay, V. Comparison of ammonia and greenhouse gas emissions from fattening pigs kept either on partially slatted floor in cold conditions or on fully slatted floor in thermoneutral conditions. In International Symposium on Air Quality and Manure Management for Agriculture Conference Proceedings, Dallas, TX, USA, 13–16 September 2010; American Society of Agricultural and Biological Engineers: St. Joseph, MI, USA, 2010; p. 1. [Google Scholar]
  18. Palkovičová, Z.; Knížatová, M.; Mihina, Š.; Brouček, J.; Hanus, A. Emissions of greenhouse gases and ammonia from intensive pig breeding. Folia Vet. 2009, 53, 168–170. [Google Scholar]
  19. Costa, A.; Guarino, M. Definition of yearly emission factor of dust and greenhouse gases through continuous measurements in swine husbandry. Atmos. Environ. 2009, 43, 1548–1556. [Google Scholar] [CrossRef]
  20. Dong, H.; Zhu, Z.; Shang, B.; Kang, G.; Zhu, H.; Xin, H. Greenhouse gas emissions from swine barns of various production stages in suburban Beijing, China. Atmos. Environ. 2007, 41, 2391–2399. [Google Scholar] [CrossRef]
  21. Philippe, F.X.; Cabaraux, J.F.; Nicks, B. Ammonia emissions from pig houses: Influencing factors and mitigation techniques. Agric. Ecosyst. Environ. 2011, 141, 245–260. [Google Scholar] [CrossRef]
  22. Lesschen, J.P.; van den Berg, M.; Westhoek, H.J.; Witzke, H.P.; Oenema, O. Greenhouse gas emission profiles of European livestock sectors. Anim. Feed Sci. Technol. 2011, 166, 16–28. [Google Scholar] [CrossRef]
  23. Banhazi, T.M.; Stott, P.; Rutley, D.; Blanes-Vidal, V.; Pitchford, W. Air exchanges and indoor carbon dioxide concentration in Australian pig buildings: Effect of housing and management factors. Biosyst. Eng. 2011, 110, 272–279. [Google Scholar] [CrossRef]
  24. Mostafa, E.; Hoelscher, R.; Diekmann, B.; Ghaly, A.E.; Buescher, W. Evaluation of two indoor air pollution abatement techniques in forced-ventilation fattening pig barns. Atmospheric Pollut. Res. 2017, 8, 428–438. [Google Scholar] [CrossRef]
  25. Banhazi, T.M.; Seedorf, J.; Rutley, D.L.; Pitchford, W.S. Identification of risk factors for sub-optimal housing conditions in Australian piggeries: Part 3. Environmental parameters. J. Agric. Saf. Health 2008, 14, 41–52. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  26. Panchasara, H.; Samrat, N.H.; Islam, N. Greenhouse gas emissions trends and mitigation measures in Australian agriculture sector—A review. Agriculture 2021, 11, 85. [Google Scholar] [CrossRef]
  27. Wang, L.Z.; Bai, X.U.E.; Yan, T. Greenhouse gas emissions from pig and poultry production sectors in China from 1960 to 2010. J. Integr. Agric. 2017, 16, 221–228. [Google Scholar] [CrossRef] [Green Version]
  28. Chen, X.; Chen, Y.; Liu, X.; Li, Y.; Wang, X. Investigating historical dynamics and mitigation scenarios of anthropogenic greenhouse gas emissions from pig production system in China. J. Clean Prod. 2021, 296, 126572. [Google Scholar] [CrossRef]
  29. Chaudhary, A.; Gustafson, D.; Mathys, A. Multi-indicator sustainability assessment of global food systems. Nat. Commun. 2018, 9, 1–13. [Google Scholar] [CrossRef] [Green Version]
  30. Röös, E.; Nylinder, J. Uncertainties and Variations in the Carbon Footprint of Livestock Products; Department of Energy and Technology, Swedish University of Agricultural Sciences: Uppsala, Sweden, 2013. [Google Scholar]
  31. Amon, B.; Kryvoruchko, V.; Fröhlich, M.; Amon, T.; Pöllinger, A.; Mösenbacher, I.; Hausleitner, A. Ammonia and greenhouse gas emissions from a straw flow system for fattening pigs: Housing and manure storage. Livest. Sci. 2007, 112, 199–207. [Google Scholar] [CrossRef]
  32. Wu, X.; Zhang, J.; You, L. Marginal abatement cost of agricultural carbon emissions in China: 1993–2015. China Agric. Econ. Rev. 2018, 10, 558–571. [Google Scholar] [CrossRef]
  33. Yun, T.I.A.N.; Zhang, J.B.; He, Y.Y. Research on spatial-temporal characteristics and driving factor of agricultural carbon emissions in China. J. Integr. Agric. 2014, 13, 1393–1403. [Google Scholar]
  34. Reidy, B.; Webb, J.; Misselbrook, T.H.; Menzi, H.; Luesink, H.H.; Hutchings, N.J.; Eurich-Menden, B.; Döhler, H.; Dämmgen, U. Comparison of models used for national agricultural ammonia emission inventories in Europe: Litter-based manure systems. Atmos. Environ. 2009, 43, 1632–1640. [Google Scholar] [CrossRef]
  35. Bao, J.; Xie, Q. Artificial intelligence in animal farming: A systematic literature review. J. Clean. Prod. 2022, 331, 129956. [Google Scholar] [CrossRef]
  36. Xie, Q.; Ni, J.Q.; Su, Z. A prediction model of ammonia emission from a fattening pig room based on the indoor concentration using adaptive neuro fuzzy inference system. J. Hazard. Mater. 2017, 325, 301–309. [Google Scholar] [CrossRef]
  37. Hosseinzadeh-Bandbafha, H.; Nabavi-Pelesaraei, A.; Shamshirband, S. Investigations of energy consumption and greenhouse gas emissions of fattening farms using artificial intelligence methods. Environ. Prog. Sustain. Energy 2017, 36, 1546–1559. [Google Scholar] [CrossRef]
  38. Rojas, R. Neural Networks: A Systematic Introduction; Springer Science & Business Media: Berlin, Germany, 2013. [Google Scholar]
  39. Amid, S.; Mesri Gundoshmian, T. Prediction of output energies for broiler production using linear regression, ANN (MLP, RBF), and ANFIS models. Environ. Prog. Sustain. Energy 2017, 36, 577–585. [Google Scholar] [CrossRef]
  40. Fritsch, S.; Guenther, F. Neuralnet: Training of Neural Networks. R Package Version 1, 33. 2016. Available online: https://CRAN.R-project.org/package=neuralnet (accessed on 15 November 2021).
  41. Riedmiller, M. Rprop-Description and Implementation Details. 1994. Available online: http://www.inf.fu-berlin.de/lehre/WS06/Musterererkennung/Paper/rprop.pdf (accessed on 7 December 2021).
  42. Zhang, Q.; Zhou, X.J.; Cicek, N.; Tenuta, M. Measurement of odour and greenhouse gas emissions in two swine farrowing operations. Can. Biosyst. Eng. 2007, 49, 6. [Google Scholar]
  43. Cargill, C.; Skirrow, S.C. Air Quality in Pig Housing Facilities; Post Graduate Foundation in Veterinary Science, University of Sydney: Sydney, Australia, 1997; pp. 85–194. [Google Scholar]
  44. Ni, J.Q.; Vinckier, C.; Hendriks, J.; Coenegrachts, J. Production of carbon dioxide in a fattening pig house under field conditions. II. Release from the manure. Atmos. Environ. 1999, 33, 3697–3703. [Google Scholar] [CrossRef]
  45. Nicks, B.; Canart, B.; Vandenheede, M. Temperature, air humidity and air pollution levels in farrowing or weaner pig houses. Pig News Inf. 1993, 14, 77N–78N. [Google Scholar]
  46. Ni, J.Q.; Diehl, C.A.; Chai, L.; Chen, Y.; Heber, A.J.; Lim, T.T.; Bogan, B.W. Factors and characteristics of ammonia, hydrogen sulfide, carbon dioxide, and particulate matter emissions from two manure-belt layer hen houses. Atmos. Environ. 2017, 156, 113–124. [Google Scholar] [CrossRef]
  47. Zong, C.; Feng, Y.; Zhang, G.; Hansen, M.J. Effects of different air inlets on indoor air quality and ammonia emission from two experimental fattening pig rooms with partial pit ventilation system—Summer condition. Biosyst. Eng. 2014, 122, 163–173. [Google Scholar] [CrossRef]
  48. Arulmozhi, E.; Basak, J.K.; Sihalath, T.; Park, J.; Kim, H.T.; Moon, B.E. Machine Learning-Based Microclimate Model for Indoor Air Temperature and Relative Humidity Prediction in a Swine Building. Animals 2021, 11, 222. [Google Scholar] [CrossRef] [PubMed]
  49. Fernandez, M.D.; Losada, E.; Ortega, J.A.; Arango, T.; Ginzo-Villamayor, M.J.; Besteiro, R.; Lamosa, S.; Barrasa, M.; Rodriguez, M.R. Energy, production and environmental characteristics of a conventional weaned piglet farm in north west spain. Agronomy 2020, 10, 902. [Google Scholar] [CrossRef]
  50. Gautam, K.R.; Zhang, G.; Landwehr, N.; Adolphs, J. Machine learning for improvement of thermal conditions inside a hybrid ventilated animal building. Comput. Electron. Agric. 2021, 187, 106259. [Google Scholar] [CrossRef]
Figure 1. Overview of the room and location of the sensors: extractor fan (A), internal corridor (B), drinker (C), feed distributor (D), air inlet (E), slat (F), feeder (G), indoor sensor structure (H), and heating plate (I). The sensors for the speed of the air extracted through the ventilation system (Vm) and CO2 concentration at the ventilation air outlet (COUTLET) were located at (A) and the sensor for CO2 concentration in the exterior corridor of air inlet (CINLET) was located at (E).
Figure 1. Overview of the room and location of the sensors: extractor fan (A), internal corridor (B), drinker (C), feed distributor (D), air inlet (E), slat (F), feeder (G), indoor sensor structure (H), and heating plate (I). The sensors for the speed of the air extracted through the ventilation system (Vm) and CO2 concentration at the ventilation air outlet (COUTLET) were located at (A) and the sensor for CO2 concentration in the exterior corridor of air inlet (CINLET) was located at (E).
Sensors 22 02910 g001
Figure 2. Evolution during the cycle of (A) CO2 concentration,  CCO2 (g m−3), and (B) CO2 emissions per animal,  ECO2 (mg s−1), with setpoint temperature,  TS (°C).
Figure 2. Evolution during the cycle of (A) CO2 concentration,  CCO2 (g m−3), and (B) CO2 emissions per animal,  ECO2 (mg s−1), with setpoint temperature,  TS (°C).
Sensors 22 02910 g002
Figure 3. Evolution throughout the cycle of outdoor temperature,  TOUT (°C) and setpoint temperature  TS (°C) with (A) CO2 concentration,  CCO2 (g m−3), and (B) CO2 emissions per animal,  ECO2 (mg s−1).
Figure 3. Evolution throughout the cycle of outdoor temperature,  TOUT (°C) and setpoint temperature  TS (°C) with (A) CO2 concentration,  CCO2 (g m−3), and (B) CO2 emissions per animal,  ECO2 (mg s−1).
Sensors 22 02910 g003
Figure 4. Evolution of ventilation flow,  Q (m3 s−1) during the cycle, with (A) concentration of CO2,  CCO2 (g m−3), and (B) emission of CO2 per animal,  ECO2 (mg s−1).
Figure 4. Evolution of ventilation flow,  Q (m3 s−1) during the cycle, with (A) concentration of CO2,  CCO2 (g m−3), and (B) emission of CO2 per animal,  ECO2 (mg s−1).
Sensors 22 02910 g004
Figure 5. Correlation between (A) CO2 concentration, CCO2 (g m−3), potential approximation, and (B) CO2 emission per animal, ECO2 (mg s−1), linear relationship, and ventilation flow, Q (m3 s−1) measured values throughout the cycle.
Figure 5. Correlation between (A) CO2 concentration, CCO2 (g m−3), potential approximation, and (B) CO2 emission per animal, ECO2 (mg s−1), linear relationship, and ventilation flow, Q (m3 s−1) measured values throughout the cycle.
Sensors 22 02910 g005
Figure 6. Measured () and predicted values of CO2 emission per animal, for a 10 min period () and a 60 min period (), during the trial stage.
Figure 6. Measured () and predicted values of CO2 emission per animal, for a 10 min period () and a 60 min period (), during the trial stage.
Sensors 22 02910 g006
Table 1. Setpoint temperature (TS), day of the cycle on which TS was set, piglet age, mean weight of piglets, and number of data.
Table 1. Setpoint temperature (TS), day of the cycle on which TS was set, piglet age, mean weight of piglets, and number of data.
TS
(°C)
Setting of TS
(Day of the Cycle)
Piglet Age
(Days)
Mean Weight of Piglets
(kg)
Number of Data
261287.46994
258368.901152
24164412.121872
23295715.581297
CYCLE 11.395315
Table 2. Variables measured and sensors used in the experimental trial.
Table 2. Variables measured and sensors used in the experimental trial.
VariableNameSensorMeasurement RangeAccuracy
CO2 concentration at the ventilation air outletCOUTLETTransmitter
(Delta Ohm HD37BTV.1, Delta Ohm, Caselle di Selvazzano, Italy)
0–5000 ppm50 ppm ± 4%
CO2 concentration in the exterior corridor of air inletCINLET
Outdoor temperature on the farm plotTOUTS-THB-M002 sensor installed in an EIC Control U-30 weather station (Onset Computer Corp., Bourne, MA, USA)−40–75 °C±0.2 °C from 0 °C to 50 °C
Indoor temperatureTIN
Speed of the air extracted through the ventilation systemVmActive air speed transmitter (Delta Ohm HD2903TTC310, Delta Ohm, Caselle di Selvazzano, Italy)0.20–20 m s−1±0.4 m s−1 + 3% of measurement
Table 3. Main statistics for CO2 concentration in the building for different setpoint temperatures.
Table 3. Main statistics for CO2 concentration in the building for different setpoint temperatures.
TSMaximumMinimumMeanSDE
(°C)(g m3)
269.501.054.591.22
258.071.693.340.89
247.191.312.970.74
235.691.022.020.56
CYCLE9.501.023.121.20
Table 4. Main statistics for CO2 emissions from the building per animal and per weight for different setpoint temperatures.
Table 4. Main statistics for CO2 emissions from the building per animal and per weight for different setpoint temperatures.
TS
(°C)
EmissionMaximumMinimumMeanSDE
26per animal (mg s−1)4.2620.1031.8420.600
per weight (mg s−1 kg−1)0.6020.0150.2490.088
25per animal (mg s−1)3.5540.7741.5480.341
per weight (mg s−1 kg−1)0.4430.0860.1750.041
24per animal (mg s−1)3.9260.6991.8750.578
per weight (mg s−1 kg−1)0.3210.0660.1550.047
23per animal (mg s−1)12.3430.5653.5661.242
per weight (mg s−1 kg−1)0.7510.0330.2290.078
CYCLEper animal (mg s−1)12.3430.1032.2101.093
per weight (mg s−1 kg−1)0.7510.0150.1950.074
Table 5. Statistics for the evaluation of the performance of the models: root mean square error (RMSE), correlation coefficient (r), and mean absolute relative error (MARE).
Table 5. Statistics for the evaluation of the performance of the models: root mean square error (RMSE), correlation coefficient (r), and mean absolute relative error (MARE).
Prediction PeriodRMSEMAREr
60 min1.210.230.63
10 min1.270.250.56
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Rodriguez, M.R.; Besteiro, R.; Ortega, J.A.; Fernandez, M.D.; Arango, T. Evolution and Neural Network Prediction of CO2 Emissions in Weaned Piglet Farms. Sensors 2022, 22, 2910. https://doi.org/10.3390/s22082910

AMA Style

Rodriguez MR, Besteiro R, Ortega JA, Fernandez MD, Arango T. Evolution and Neural Network Prediction of CO2 Emissions in Weaned Piglet Farms. Sensors. 2022; 22(8):2910. https://doi.org/10.3390/s22082910

Chicago/Turabian Style

Rodriguez, Manuel R., Roberto Besteiro, Juan A. Ortega, Maria D. Fernandez, and Tamara Arango. 2022. "Evolution and Neural Network Prediction of CO2 Emissions in Weaned Piglet Farms" Sensors 22, no. 8: 2910. https://doi.org/10.3390/s22082910

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