_Applied_  
_sciences_  
Supervised Machine Learning to Assess Methane Emissions of a Dairy Building with Natural Ventilation  
**[PERSON] 1,*,*,(r)**, **[PERSON] 2,*,(r)**, **[PERSON] 2,3(r)**, **[PERSON] 1**,  
**[PERSON] 1** and **[PERSON] 1,4(r)**  
1 Department Livestock Engineering, Leibniz Institute for Agricultural Engineering and Bioeconomy (ATB), Max-Eyth-Allee 100, 14469 Potsdam, Germany; [EMAIL_ADDRESS] (D.W.); [EMAIL_ADDRESS] (D.J.); [EMAIL_ADDRESS] (T.A.)  
2 RSC Data Science in Agriculture, Leibniz Institute for Agricultural Engineering and Bioeconomy (ATB), Max-Eyth-Allee 100, 14469 Potsdam, Germany; [EMAIL_ADDRESS] (J.A.); [EMAIL_ADDRESS] (N.L.)  
3 Department of Computer Science, University of Potsdam, August-Bebel-Str. 89, 14482 Potsdam, Germany  
4 Department of Veterinary Medicine, Institute of Animal Hygiene and Environmental Health, Free University Berlin (FUB), Robert-von-Ostertag-Str. 7-13, 14163 Berlin, Germany  
* Correspondence: [EMAIL_ADDRESS]  
+ These authors contributed equally to this work.  
Received: 20 July 2020; Accepted: 29 September 2020; Published: 3 October 2020  
A reliable quantification of greenhouse gas emissions is a basis for the development of adequate mitigation measures. Protocols for emission measurements and data analysis approaches to extrapolate to accurate annual emission values are a substantial prerequisite in this context. We systematically analyzed the benefit of supervised machine learning methods to project methane emissions from a naturally ventilated cattle building with a concrete solid floor and manure scraper located in Northern Germany. We took into account approximately 40 weeks of hourly emission measurements and compared model predictions using eight regression approaches, 27 different sampling scenarios and four measures of model accuracy. Data normalization was applied based on median and quartile range. A correlation analysis was performed to evaluate the influence of individual features. This indicated only a very weak linear relation between the methane emission and features that are typically used to predict methane emission values of naturally ventilated barns. It further highlighted the added value of including day-time and squared ambient temperature as features. The error of the predicted emission values was in general below 10%. The results from Gaussian processes, ordinary multilinear regression and neural networks were least robust. More robust results were obtained with multilinear regression with regularization, support vector machines and particularly the ensemble methods gradient boosting and random forest. The latter had the added value to be rather insensitive against the normalization procedure. In the case of multilinear regression, also the removal of not significantly linearly related variables (i.e., keeping only the day-time component) led to robust modeling results. We concluded that measurement protocols with 7 days and six measurement periods can be considered sufficient to model methane emissions from the dairy barn with solid floor with manure scraper, particularly when periods are distributed over the year with a preference for transition periods. Features should be normalized according to median and quartile range and must be carefully selected depending on the modeling approach.  
greenhouse gas; on-farm evaluation; emission factor; regression; ensemble methods; gradient boosting; random forest; neural networks; support vector machines