Data-Driven Prediction of Ammonia and Methane Concentrations and Emissions in Dairy Barns Using Artificial Neural Networks
Luciano Manuel Santoro, Provvidenza Rita D’Urso, Claudia Arcidiacono, Salvatore Coco

TL;DR
This study uses artificial neural networks to accurately predict ammonia and methane emissions in dairy barns, helping farmers monitor and reduce environmental impact.
Contribution
The novel use of artificial neural networks with climatic, dietary, and animal activity variables to predict ammonia and methane emissions in dairy barns.
Findings
MLP models achieved high accuracy with R2 values of 0.93 for ammonia and 0.96 for methane.
Incorporating climatic, dietary, and animal activity variables significantly improved prediction performance.
ANN models offer a cost-effective solution for monitoring and reducing emissions in dairy farming.
Abstract
Dairy farming contributes to the emission of gases such as ammonia (NH3) and methane (CH4), which negatively impact the environment. NH3 causes water and soil pollution, while CH4 is a powerful greenhouse gas driving climate change. Direct measurement of these gases on farms is expensive and requires specialised equipment, limiting routine monitoring. This study applies artificial intelligence (AI) techniques to predict gas emissions from a dairy barn. AI models can learn complex patterns within data, enabling accurate prediction and reducing the need for continuous measurements. Moreover, the study identifies the main influencing variables (such as animal activity, climatic conditions, and dietary data) that significantly improve the accuracy of gas emission prediction. This approach is a cost-effective tool to support farmers in monitoring, achieving improved management decisions, and…
Genes, proteins, chemicals, diseases, species, mutations and cell lines named across the full text — each resolved to its canonical identifier and authoritative record.
Click any figure to enlarge with its caption.
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9
Figure 10
Figure 11
Figure 12
Figure 13
Figure 14- —European Union (NextGeneration EU) through the MUR-PNRR project SAMOTHRACE
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsOdor and Emission Control Technologies · Agriculture Sustainability and Environmental Impact · Air Quality Monitoring and Forecasting
1. Introduction
Global population growth, urbanisation, and changing dietary habits are increasing food demand [1], while climate change poses threats to agricultural sustainability through extreme weather and temperature [2]. These factors negatively influence food security and environmental protection [3]. Rising incomes and evolving consumer preferences are also increasing demand for animal products, highlighting the economic relevance of livestock production [4].
Livestock farming is a crucial source of food, especially in rural areas [5]. It occupies 26% of global land, contributing to increased resource use, deforestation, and pollutant emissions [6,7]. According to the European Environment Agency, agriculture accounted for approximately 11% of total greenhouse gas emissions in the European Union in 2021 [8].
Among pollutant gases, ammonia (NH_3_) is a concern for its role in eutrophication of water and soil. Additionally, NH_3_ contributes indirectly to global warming due to the formation of nitrous oxide (N_2_O) [9]. In livestock barns, NH_3_ is primarily realised by the urinary excretion of cattle, resulting in a significant loss of nitrogen in the atmosphere. Estimating NH_3_ emissions can be challenging due to the various factors that influence the estimation procedure. Multiple factors, including housing system and floor type, influence emission factors [10]. Facilities with fixed stalls showed NH_3_ emissions of 6.9 g LU^−1^ d^−1^, whereas free-stall cubicle systems accounted for 29.3 g LU^−1^ d^−1^. Regarding floor type, perforated floors resulted in emission factors of 33.3 g LU^−1^ d^−1^ compared to 27.6 g LU^−1^ d^−1^ for solid floors. Emissions were significantly influenced by temperature (p < 0.001). Furthermore, CH_4_ and NH_3_ concentrations showed a strong positive correlation (r = 0.80).
Another significant pollutant gas is methane (CH_4_), a well-known greenhouse gas (GHG) emitted from livestock facilities. Its release into the atmosphere contributes to increasing global warming. In dairy farming, CH_4_ is produced by manure and enteric fermentation of cows, accounting for a third of total livestock-related emissions. The mean global estimation of CH_4_ emissions is estimated to be 383.5 million tons per year [11].
In the literature, many research studies have analysed the influencing factors of NH_3_ and CH_4_ concentrations and emissions from naturally ventilated dairy barns. NH_3_ and CH_4_ emissions factors are based on several conditions, including housing system (i.e., cubicle free-stall or loose barn); waste management practices [12]; ventilation systems and cooling systems [13,14]; diet [15,16,17]; micro-climatic conditions in the barn (e.g., temperature, relative humidity, and ventilation rate) [18,19]; animal diet and nitrogen losses during digestion [20]; animal activity, such as standing, lying, and feeding [21,22]; and production demands related to milk yield, livestock growth, and reproduction [23]. In this context, the influence of animal activity on NH_3_ and CH_4_ concentrations and emissions has been analysed in a limited number of studies.
Recently, an artificial neural network (ANN) has been applied in the scientific literature to estimate concentrations and emissions related to the livestock sector [24,25]. A neural network is a computational model inspired by the structure and functioning of the human brain. It consists of interconnected nodes, or artificial neurons, organised into layers [26]. The network receives data input, processes it through hidden layers by using weighted connections, and produces an output [27]. Neural networks are trained by using labelled datasets, adjusting the weights between neurons through iterative learning processes. In the literature, some studies have applied ANN to predict NH_3_ and CH_4_ concentrations and emissions from livestock farming, as highlighted in a recent review [28].
In a recent study, authors estimated NH_3_ emissions by applying the mass balance method in manure storage of a dairy farm by training and testing ANN models based on weather variables, manure characteristic, and number of animals [29]. The recent investigation carried out in [30] predicted nitrogen excretion from indoor dairy cattle; in emission estimation, dietary variables, livestock variables, and excreta characteristics were considered as input [30].
A study investigated the NH_3_ emissions from an indoor loose stall dairy barn by using statistics and machine learning approaches. Data was collected in a naturally ventilated barn, and implied estimations of hourly emission values were derived from the ventilation rate, time, temperature, wind speed and direction [31].
These studies lack a systematic evaluation of the most relevant input variables for predicting concentrations and emissions. In detail, animal activity has not been considered as an input variable in any of the studies aiming to carry out emission prediction. Generally, models incorporating animal activity and diet often lack environmental variables and prove to have accuracy loss [32]. Therefore, there is a need for further investigations to analyse the influence of input variables on NH_3_ and CH_4_ concentrations and emissions. In fact, to the authors’ knowledge, the application of an ANN in this context has not been analysed yet. Therefore, this study aimed to evaluate how climatic conditions, animal activity, and diet intake characteristic of the Mediterranean area influence the prediction of NH_3_ and CH_4_ concentrations and emissions from dairy cattle housing. Based on these assumptions, the objective of this study was to compare ANN models based on different sets of input variables to identify optimal combinations for accurately predicting representative gas concentrations and emission rates in Mediterranean dairy barns.
2. Materials and Methods
2.1. Barn Features and Feed Composition
Data were collected in a cubicle free-stall dairy barn (Figure 1) located in Vittoria (37°01′ N, 14°32′ E), (RG), Italy, 234 m asl. The local climate in Vittoria (RG) is classified as Mediterranean (Csa in the Köppen classification), with a yearly average air temperature of 18.90 °C and 79.87% relative air humidity. The naturally ventilated barn structure was made of steel and concrete with a ridge vent located 7 m above the ground. The dimensions measured approximately 55.50 m in length and 20.80 m in width. It presented three completely open sides (SE, NE, and NW). The SW side was enclosed by a wall containing four small openings.
The investigation period was from 1 November 2021 to 30 November 2021.
During the study period, the cows’ diet consisted of a mixed ratio with concentrate. The diet, delivered once a day, was a unifeed composed of alfalfa hay, hay, grass hay, beet, urea, milk performer 170 A1 produced by Purina©, St. Louis, MO, USA (with the following ingredients: 20.5% of crude protein, 4.85% of crude fat, 8.31% of crude fibre, 5.99% of crude ash, and 0.25% of sodium), citrus pulp, fat, yeast, flaked maize, flaked soybeans, cottonseed, salt, and sodium bicarbonate. Table 1 shows the feed intake in the barn when the quantity, expressed in kilograms, changed due to animal or management needs.
2.2. Environmental Variables and Gas Concentration Measurements
Climate and micro-climatic variables were recorded by using two weather stations (MeteoSense 2.0 GPRS + LAN, Netsens, Florence, Italy), installed inside and outside the barn. Each station was equipped with an ultrasonic anemometer and a thermo-hygrometer. The outdoor station measured air temperature, relative humidity, and wind speed and direction, with a resolution of 0.01 m s^−1^, an accuracy of ±0.15 °C for temperature, and a sensitivity of 0.04% RH/°C and a precision of 2% (at 20 °C) for humidity. The indoor station was positioned 2.20 m above the central pen within the barn to monitor internal environmental conditions. Both stations acquired climatic and micro-climatic variables continuously throughout the experimental period.
CH_4_, NH_3_ and CO_2_ concentrations were continuously measured using an INNOVA photoacoustic gas analyser, consisting of a Multigas Monitor model 1412i and a multipoint sampler 1409/12 (Lumasense Technology A/S, Kleyerstr, Frankfurt/Main, Germany). Six sampling points (SLs) were positioned indoor the barn along the feeding alley, with two SLs at three different heights from the floor (i.e., 0.4 m, 1.5 m and 2.7 m from the floor). Another outdoor SL was located 8 m above the roof to measure background concentrations. The INNOVA analyser was calibrated just before the measurements. The setup of the INNOVA had a sample integration time of 5 s. The detection limit of the Multi-Gas Analyser was 0.2 ppm for NH_3_, 0.4 ppm for CH_4_, and 1.5 ppm for CO_2_.
2.3. Recording of Animals’ Activities
Animal activity was continuously monitored by using a 24 h video recording system consisting of ten cameras (Kon.Li.Cor, Perugia, Italy) installed at a height of 4 m above the floor in the central pen. The analysis of cows’ activity from the video recordings was performed by a trained operator. Visual assessments were carried out every 15 min to record the number of cows engaged in various activities (e.g., feeding, standing, walking, or lying). These observations were then used to calculate behavioural indices, namely the Cow Lying Index (CLI) and Cow Activity Index (CAI), as described in previous studies [33,34].
2.4. Emission Calculation Using CO2 Mass Balance Method
NH_3_ and CH_4_ emissions were estimated by using the CO_2_ mass balance method. The barn ventilation rate Q (m^3^ h^−1^) was calculated as
where PCO2 is the CO_2_ excretion rate per cow (g cow^−1^ h^−1^), N is the number of cows housed in the barn, and CCO2in and CCO2out are the average hourly concentrations of CO_2_ inside and outside the barn, respectively (g m^−3^). In this approach, the CO_2_ excretion rate depends on animal heat production. Since, in barns without deep litter, the CO_2_ produced from manure represents less than 4% of the total production [33], the excretion rate was calculated as follows [34,35,36]:
where is the total heat production (W), is the average animal mass (kg cow^−1^), is the number of days after insemination (d), is the milk yield (kg d^−1^), is the temperature correction factor, is the indoor air temperature (°C), and is the corrected total heat production (W).
The emission rate of NH_3_ and CH_4_ was then computed as
where is the gas emission rate (g h^−1^), is the ventilation rate obtained from the CO_2_ balance (m^3^ h^−1^), and and are the indoor (average of the four sampling locations) and outdoor concentrations (g m^−3^), respectively. To enable comparison with other studies, the emissions were expressed per livestock unit (LU), where one LU corresponds to a 500 kg animal mass. The emission rate per LU was determined as
2.5. Artificial Neural Network Models and Development Method
The ANN models used in this study were created in MATLAB© by MathWorks. All experimentations were performed in a computer running Microsoft Windows 11 Home© ×64 bit with an Intel(R) Celeron(R) N4020 CPU 1.10 GHz, RAM 4.00 GB, Intel(R) UHD Graphics 600, manufactured by ASUSTeK Computer Inc. (Taipei, Taiwan). MATLAB software versions R2025a and R2025b were used for model development and testing.
The following subsections describe in detail the dataset definitions, the model architecture, the training process, and the performance evaluation.
2.5.1. Dataset Definition
The dataset consisted of 718 records and included the following variables: hour of the day, indoor and outdoor air temperatures, indoor and outdoor air relative humidities, indoor and outdoor wind directions, indoor and outdoor wind speeds, CLI, CAI, and diet composition.
All variables were acquired during the measurement campaign, and the mean hourly value of each variable was considered for this study. For the prediction of NH_3_ emissions, the dataset also included indoor and outdoor NH_3_ and CO_2_ concentrations, while indoor and outdoor CO_2_ and CH_4_ concentrations were used for the prediction of CH_4_ emissions.
2.5.2. Model Architecture, Training Process and Evaluation Metrics
In this study, the optimal ANN model was determined by following a rational, incremental approach. The process started with the simplest structure, consisting of 1 hidden layer with 5 neurons. When the configuration failed to achieve the desired accuracy, an additional hidden layer was added, containing half of the neurons of the preceding hidden layer, as described in [24] and show in the flowchart below (Figure 2).
The model obtained, a Multilayer Perceptron (MLP) with a 20–10 structure, was used for all tests. Model performance was evaluated by using five evaluation metrics: the coefficient of determination (R^2^), coefficient of correlation (R), Mean Absolute Error (MAE), Root Mean Square Error (RMSE), Standard Deviation (SD) and Mean Square Error (MSE). Models were considered satisfactory when R^2^ was above 0.70 and R was above 0.80. These performances were evaluated through linear regression analysis between target values and network outputs using MATLAB’s built-in regression function.
Optimal network performance is indicated by an R value equal to 1 (i.e., perfect correlation), with an R^2^ value equal to 1 representing perfect agreement between predicted and observed values. Satisfactory network performance is indicated by an R value above 0.80 and an R^2^ value above 0.70.
It is relevant to highlight that although the MSE, RMSE, SD and MAE do not have predefined thresholds, they remain valuable indicators for evaluating model performance [37].
Further tests were performed by adding more neurons to the layers, yet no significant accuracy improvement was observed.
The training was carried out by using default MATLAB© variables and hypervariables, as summarised in Table 2. To prevent overfitting, an early stopping approach was applied, whereby training was interrupted once performance loss occurred during validation checks.
2.5.3. Performance Comparison of ANN Models for Predicting NH3 and CH4 Concentrations and Emissions
The optimal combination of input variables (climatic variables, animal activity and diet) was analysed to predict NH_3_ and CH_4_ concentrations and emissions. A series of prediction tests was carried out by using several configurations for concentration and emission predictions, as shown in Table 3 and Table 4, respectively. ANN model performance was evaluated through the comparison of evaluation metrics for each test. To evaluate the best-performing ANN models, linear regression analysis and prediction plots were applied. ANN models associated with variables that did not meet the quality thresholds were excluded from further analysis.
3. Results
In accordance with the methodology described in Section 2, a screening of various models was conducted to identify the best performing model. The ANN structures were described by using a numerical notation (e.g., 20–10), representing the number of neurons in the sequential hidden layers. Among the tested configurations, the MLP (20–10) model emerged as the most suitable structure, achieving the highest prediction accuracy. Consequently, this specific configuration was selected for both the NH_3_ and CH_4_ concentration and emission prediction tasks. The same ANN architecture (20–10) allowed a comparison of predictive performance across configurations.
3.1. Concentrations Outcomes
Table 5 summarises the model performance results for the prediction of NH_3_ and CH_4_ concentrations by using different combinations of input variables, including climatic variables, animal activity, and diet.
For NH_3_ concentrations, models based on single input categories showed moderate performance, with climatic variables providing the highest accuracy (R = 0.89; R^2^ = 0.78), followed by activity and diet. Model performance improved when multiple input variables were combined, particularly when climatic variables and diet were used as input (R = 0.92; R^2^ = 0.84). The highest predictive accuracy was obtained when climatic variables, animal activity, and diet were jointly included (R = 0.93 and R^2^ = 0.85) with the lowest error values.
For CH_4_ concentrations, climatic variables alone yielded higher accuracy than models obtained with animal activity or diet input variables. The inclusion of additional input variables improved model performance, particularly when climatic variables and diet were applied (R = 0.92 and R^2^ = 0.83). The best overall results were observed when all three variable groups were included (R = 0.96 and R^2^ = 0.89).
Variables that failed to meet quality requirements were discarded, and the corresponding ANN models were excluded in the subsequent linear regressions and plot analyses. Notably, while CH_4_ predictions satisfied the required quality thresholds, their prediction errors were higher than those for NH_3_.
Figure 3 and Figure 4 present the linear regression results for the best ANN models trained with different variables. Results demonstrated good agreement between the regression fit and the ideal Y = T line, confirming the prediction capability of the proposed models. As expected, the MLP models succeeded in making accurate predictions, effectively capturing the relationships between input variables and concentrations. Notably, prediction including climatic variables achieved the best results.
To further evaluate model performance, time-series predictions plots were generated based on historical concentration data collected in the barn. Figure 5, Figure 6, Figure 7 and Figure 8 show a comparison between predicted and observed concentrations, with each prediction paired to its corresponding measured value. Overall, the predicted values showed good agreement with the measured data, confirming the reliability of the proposed models.
3.2. Emissions Outcomes
Table 6 presents the model performance results for NH_3_ and CH_4_ emissions.
For NH_3_ emissions, models using single input categories showed variable performance. Gas concentrations alone provided higher accuracy (R = 0.91; R^2^ = 0.82) than when climatic, activity, or dietary variables were used individually. The inclusion of concentrations with additional inputs improved model performance, particularly when combined with climatic variables (R = 0.94; R^2^ = 0.89). The highest predictive accuracy was achieved when concentrations, climatic variables, animal activity, and diet were jointly included, including R = 0.96 and R^2^ = 0.92 with the lowest error values.
For CH_4_ emissions, models based on concentrations alone also showed good performance (R = 0.93; R^2^ = 0.86), while models relying solely on climatic, activity, or dietary variables resulted in lower accuracy. When concentrations were integrated with other variables as inputs, the prediction performance improved. Specifically, concentrations and diet as input variables reached R = 0.96 and R^2^ = 0.93. The best overall results were obtained when all input variables were included, achieving R = 0.97 and R^2^ = 0.92 and the lowest error metrics.
While CH_4_ models satisfied the required quality criteria, their prediction errors remained higher than those obtained for NH_3_. Figure 9 and Figure 10 present the regression results for the top-performing ANN models trained with different input variable configurations. The results demonstrate strong agreement between the regression fit and the ideal Y = T line, confirming the predictive capability of the proposed models. As expected, the MLP models achieved accurate predictions, effectively capturing the relationships between input variables and the emissions. Notably, incorporating gas concentration variables obtained the best performance.
Time-series prediction plots were generated to further assess model performance using estimated emission data. Figure 11, Figure 12, Figure 13 and Figure 14 compare predicted and estimated emissions over time, with each prediction paired to its corresponding measured value. These plots provided a comprehensive visualisation of model accuracy, enabling evaluation of both absolute prediction errors and the ability of the models to capture temporal emission dynamics, including daily pattern and responses to changes in environmental conditions, animal activity, and dietary intake. Visual inspection revealed that predicted values closely tracked measured emissions, accurately reproducing peak events and baseline levels. The strong temporal agreement between predictions and observations confirmed the reliability and robustness of the proposed MLP models.
4. Discussion
This study evaluated the capability of prediction models to accurately forecast gas concentrations and emissions in a Mediterranean dairy barn, incorporating climatic, dietary, activity, and gaseous concentration variables as inputs. The results demonstrate that ANN models can predict NH_3_ and CH_4_ concentrations and emissions, showing good agreement between measured or estimated data and predicted outcomes. Overall, the results confirm that ANN models incorporating a comprehensive set of climatic, activity, and dietary variables provide better predictive accuracy for both NH_3_ and CH_4_ concentrations and emissions. This highlights the importance of integrated, multi-source input strategies in livestock emission modelling.
The results of this study align with previous publications involving predicting concentrations and emissions in the livestock sector [24,29,31]. The investigation presented in [29] applied ANN models to predict NH_3_ emissions from dairy manure storage, using manure characteristics, temperature and NH_3_ concentrations as input variables. The outcomes demonstrated how ANN models generalise and predict NH_3_ emissions with good agreement, involving environmental, manure, and livestock inputs. Although the aim of the article was comparable to that of this study, direct comparison is limited due to differences in evaluation metrics, emission estimation output and input variable selection [29]. Similarly, in [38] an ANN model was developed to forecast NH_3_ emissions from piggeries, incorporating NH_3_, CO_2_, and H_2_O concentrations along with indoor and outdoor climatic variables. However, the reported accuracy was lower than that achieved in this study, and training algorithms applied during the training of the ANN models were not disclosed, limiting reproducibility.
Regarding CH_4_ predictions, the application of ANN for predicting enteric CH_4_ was investigated in [39], incorporating animal activity, climatic variables, milk characteristics and management practices. Although their study closely aligns with the objectives of this research, the reported prediction accuracy was lower compared to the results obtained in this study. Similarly, in [40], CH_4_ emissions were forecasted by developing several ANNs and statistical models, using animal and milk nutrient variables as input variables. They found that ANN models performed better than the applied statistical model. However, the reported RMSE (87.28 to 99.39) values were higher than those obtained in the present study.
Environmental variables have a significant influence on emission modelling and have been extensively investigated in the literature. These variables often show complex, nonlinear interactions influenced by climatic conditions requiring ANN models to adapt their weights to capture such relationship [41,42]. However, collecting reliable data remains challenging due to the high cost of the devices, the complexity of gas dynamics, and the relations between pollutants and barn conditions [43,44].
In this study, environmental variables were monitored by using accurate devices that require significant economic efforts not only for instrumentation but also for maintenance. The identification of the optimal ANN with specific variables allowed the definition of a specific methodology based on accurate data. Further analysis could focus on improving monitoring by using low-cost and user-friendly devices, but such solutions are often not affordable or sufficiently reliable for widespread application. Despite these challenges associated with data quality and sensor deployment, the results indicate that ANN models can reduce the cost of computational analysis and improve the efficiency of time-dependent analysis [45].
Traditional statistical approaches have been applied in the scientific literature to estimate pollutant gas emissions, such as CH_4_, CO_2_, N_2_O, and NH_3_, by using linear regression, multivariate analyses, and cross-over trial designs [46,47,48,49]. These methods have demonstrated the feasibility of mathematical equations for emission estimation and analysis. Comparative studies have also assessed statistical and ANN-based approaches for NH_3_ emission prediction [31]. However, statistical approaches in emission forecasting have been outperformed by ANN-based methods owing to improved predictive performance and enhanced understanding of barn dynamics [24,50,51,52]. The results of this study demonstrate the effectiveness of ANN models in predicting emissions from dairy housing systems using inputs related to climatic conditions and barn management (i.e., feed, animal activity). Although few studies [21,39] have explored the influence of animal activity and dietary on concentrations and emissions, the novelty of this study introduces their combined integration with climatic variables in an ANN-based approach to improve prediction accuracy for both NH_3_ and CH_4_ concentrations and emissions.
In recent years, ANN applications to livestock production have marked an important advancement in agricultural practices. These systems offer enhanced insights into animal activity, health, and overall well-being [53]. ANNs can process vast datasets from sensors and monitoring devices, tracking variables such as feeding patterns, movement, and physiological indicators. This real-time analysis enables farmers to detect anomalies promptly, enhancing disease prevention and livestock management [54]. Furthermore, ANNs contribute to precision livestock farming (PLF) by optimising feed formulations, reducing waste, and improving resource efficiency [55]. This integration of technology and agriculture not only enhances productivity but also promotes sustainable practices [56]. As the agricultural landscape evolves to meet the demands of a growing global population, the integration of predictive models into livestock production emerges as a key driver for efficient, humanitarian, and economically viable farming practices [57].
In the context of PLF, livestock activity has been investigated by using different devices and approaches, including GPS, video surveillance, accelerometers, and tags [58,59,60,61], with the aim of enhancing animal health and welfare. In the past decade, there has been a growing interest in the application of deep learning (DL) models useful for studying livestock activity in relation to animal health issues. Main monitoring systems include (i) computer vision-based systems that use camera technologies and deep learning algorithms for automatic activity monitoring; (ii) DL models used for activity recognition and classification; (iii) advanced neural networks for image analysis; and (iv) wearable sensors and devices for tracking movement, body temperature and physiological variables [62].
These PLF technologies generate large volumes of data that require advanced analytical tools for interpretation. In this context, the integration of ANNs with PLF systems represents a promising approach for comprehensive livestock management. ANNs have proven instrumental in several applications, including animal facial recognition for individual identification and tracking [37], movement tracking for improved understanding of animal activity and migration patterns [63,64], and activity classification for categorising animal responses to various stimuli [65,66]. Notably, low-cost devices combined with neural networks offer cost-effective solutions for activity monitoring [67]. Despite these advances, recent ANN applications have not yet fully incorporated animal activity and dietary variables for predicting gaseous emissions from livestock buildings. In this context, proposed MLP neural networks offer a promising approach for integrating PLF-derived behavioural data with environmental and nutritional variables to predict NH_3_ and CH_4_ emissions from dairy facilities. This integration enables a more comprehensive understanding of emission dynamics by capturing the combined effects of climatic conditions, animal behaviour, and feeding management on barn air quality.
5. Conclusions
The findings demonstrate that ANN models incorporating animal activity, diet and environmental variables represent effective tools for concentration and emission prediction from a Mediterranean dairy barn, contributing to improved environmental management and sustainable dairy farming practices. The novelty of this research study lies in three key aspects. Firstly, it provided an analysis of ANN model design, including architecture, hypervariables, and preprocessing techniques. Secondly, the integration of animal activity variables along with environmental and dietary variables addressed a gap identified in previous research, where some information on either activity or environmental variables was often omitted. Thirdly, the models were developed and validated under Mediterranean climatic conditions, which have not been investigated in depth in the literature.
Despite promising results, limitations related to dataset size and random data partitioning suggest the need for further validation. Future research should focus on testing these models across larger datasets, diverse climatic regions, and multiple seasons to enhance generalisability and robustness. Ultimately, the adoption of such predictive models contributes to more sustainable and efficient environmental management in the livestock sector.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Van Dijk M. Morley T. Rau M.L. Saghai Y. A meta-analysis of projected global food demand and population at risk of hunger for the period 2010–2050 Nat. Food 2021249450110.1038/s 43016-021-00322-937117684 · doi ↗ · pubmed ↗
- 2Ray D.K. West P.C. Clark M. Gerber J.S. Prishchepov A.V. Chatterjee S. Climate change has likely already affected global food production P Lo S ONE 201914 e 021714810.1371/journal.pone.021714831150427 PMC 6544233 · doi ↗ · pubmed ↗
- 3Bryngelsson D. Wirsenius S. Hedenus F. Sonesson U. How can the EU climate targets be met? A combined analysis of technological and demand-side changes in food and agriculture Food Policy 20165915216410.1016/j.foodpol.2015.12.012 · doi ↗
- 4Komarek A.M. Dunston S. Enahoro D. Godfray H.C.J. Herrero M. Mason-D’Croz D. Rich K.M. Scarborough P. Springmann M. Sulser T.B. Income, consumer preferences, and the future of livestock-derived food demand Glob. Environ. Change 20217010234310.1016/j.gloenvcha.2021.10234334857999 PMC 7612057 · doi ↗ · pubmed ↗
- 5Upton M. The Role of Livestock in Economic Development and Poverty Reduction Food and Agriculture Organization of the United Nations Rome, Italy 200410.22004/ag.econ.23783 · doi ↗
- 6Sakadevan K. Nguyen M.L. Livestock production and its impact on nutrient pollution and greenhouse gas emissions Adv. Agron.201714114718410.1016/bs.agron.2016.10.002 · doi ↗
- 7Koloszko-Chomentowska Z. Sieczko L. Trochimczuk R. Production profile of farms and methane and nitrous oxide emissions Energies 202114490410.3390/en 14164904 · doi ↗
- 8Sieczko L. Koloszko-Chomentowska Z. Sieczko A. Variability of Greenhouse Gas Emissions in Relation to Economic and Ecological Indicators from Cattle Farms Energies 202417183110.3390/en 17081831 · doi ↗
