Enhancing Ammonia Concentration Prediction with a Transfer-Learning-Based Model: Application in a Pig Farm

Fuente: PubMed "smart farming"
Animals (Basel). 2026 Feb 14;16(4):609. doi: 10.3390/ani16040609.ABSTRACTGlobally, the swine industry is a major component of agricultural production, and the increasing scale and intensification of pig farming have heightened concerns about NH3 emissions. As farms expand and adopt smart farming technologies, there is a need for reliable prediction of NH3 concentrations without relying solely on costly physical sensors. In this study, we developed an artificial intelligence-based prediction model for NH3 concentration in commercial pig houses and examined the effects of data collection intervals and learning strategies. We compared a standalone model trained only on local data with a transfer learning model that adapts a pre-trained model to a target farm with limited data. Transfer learning consistently outperformed the standalone approach across all data collection intervals (10, 20, 30 and 60 min). The best-performing Random Forest and XGBoost models achieved a coefficient of determination (R2) of 0.969, root mean square error (RMSE) of about 1.0 ppm and mean absolute percentage error (MAPE) below 5%. These results show that transfer learning can provide accurate NH3 predictions in swine housing even with sparse data, supporting more sustainable and data-efficient environmental management.PMID:41751069 | PMC:PMC12937439 | DOI:10.3390/ani16040609