Machine Learning Methods for Predicting Manure Management Emissions

  • Widi Hastomo ITB Ahmad Dahlan
  • Nur Aini ITB Ahmad Dahlan
  • Adhitio Satyo Bayangkari Karno STMIK Jakarta STI&K
  • L.M. Rasdi Rere STMIK Jakarta STI&K
Keywords: Machine Learning, Manure Management, GRK, LSTM, GRU


Indonesia is committed to reducing greenhouse gas (GHG) emissions through a nationally determined contribution (NDC) scheme. The target to reduce GHG emissions is 29% through the business as usual (BAU) scheme or 41% with international aid. These ambitious targets require transformations in energy, food, and land-use systems, which need to cope with the potential trade-offs among many targets, such as food security, energy security, avoided deforestation, biodiversity conservation, land use competition, and freshwater use. Mitigation and adaptation have complementary roles in responding to climate change at both temporal and spatial scales. This paper aims to perform simulations and predictions on manure management emissions producing CO2eq using machine learning methods of long short-term memory (LSTM) and gated recurrent unit (GRU). The hidden layer architecture used was six combinations, while the dataset was obtained from the repository. The optimizer used in this paper was RMSprop, with a graphical user interface using the Streamlit dashboard. The results of this study are (a) cattle with fifteen epochs using hidden layer four combinations (LSTM, GRU, LSTM, GRU) yielded RMSE 450,601; (b) non-dairy cattle with fifteen epochs and one hidden layer (GRU, GRU, GRU, GRU) yielding RMSE 361.421; (c) poultry birds with twelve epoch values and three hidden layers (GRU, GRU, LSTM, LSTM) resulted in an RMSE value of 341.429. The challenges faced were the determination of epochs, the combination of hidden layers, and the characteristics of the relatively small number of datasets. The results of this study are expected to provide added value for developing better decision support tools and models to assess emission trends in the livestock sector and develop CO2eq emission mitigation strategies that lead to sustainable fertilizer management practices.


R.K. Pachauri, et al., Eds., Climate Change 2014: Synthesis Report. Contribution of Working Groups I, II and III to the Fifth Assessment Report, Geneva, Switzerland: Intergovernmental Panel on Climate Change, 2015.

M. Allen, et al., “Summary for Policymakers,” in Global Warming of 1.5°C. An IPCC Special Report on the Impacts of Global Warming of 1.5°C above Pre-industrial Levels and Related Global Greenhouse Gas Mission Pathways, in the Context of Strengthening the Global Response to the Threat of Climate Change, Sustainable Development, and Efforts to Eradicate Poverty, V. Masson-Delmotte, et al., Eds., Geneva, Switzerland: Intergovernmental Panel on Climate Change, 2015.

V.P. Aneja, W.H. Schlesinger, and J.W. Erisman, “Effects of Agriculture upon the Air Quality and Climate: Research, Policy, and Regulations,” Environ. Sci. Technol., Vol. 43, No. 12, pp. 4234–4240, 2009.

T. Jungbluth, E. Hartung, and G. Brose, “Greenhouse Gas Emissions from Animal Houses and Manure Stores,” Nutr. Cycl. Agroecosystems, Vol. 60, No. 1, pp. 133–145, 2001.

O. Gavrilova, et al., “Emissions from Livestock and Manure Management,” in 2019 Refinement to the 2006 IPCC Guidelines for National Greenhouse Gas Inventories, Vol. 4, E.C. Buendia, Eds., Geneva, Switzerland: Intergovernmental Panel on Climate Change, 2019.

V. Sejian, J. Gaughan, L. Baumgard, and C. Prasad, Eds., Climate Change Impact on Livestock: Adaptation and Mitigation. New Delhi, India: Springer, 2015.

(2020) “FAOSTAT Agriculture Total Online Database,” [Online],, access date: 20-Oct-2021.

“Rencana Aksi Nasional Penurunan Emisi Gas Rumah Kaca Peraturan Presiden,” Peraturan Presiden Republik Indonesia, No. 61, 2011.

(2017) “Mengurangi Emisi Gas Rumah Kaca (GRK) Melalui Pakan Ternak,” [Online],, access date: 20-Oct-2021.

R.A. Genedy and J.A. Ogejo, “Using Machine Learning Techniques to Predict Liquid Dairy Manure Temperature During Storage,” Comput. Electron. Agric., Vol. 187, pp. 1-10, 2021.

H. Mollenhorst, M.H.A. de Haan, J. Oenema, and C. Kamphuis, “Field and Crop Specific Manure Application on a Dairy Farm Based on Historical Data and Machine Learning,” Comput. Electron. Agric., Vol. 175, pp. 1-8, 2020.

J. Zhang, et al., “TG-FTIR and Py-GC/MS Analyses of Pyrolysis Behaviors and Products of Cattle Manure in CO2 and N2 Atmospheres: Kinetic, Thermodynamic, and Machine-Learning Models,” Energy Convers. Manag., Vol. 195, pp. 346–359, 2019.

H. Cao, Y. Xin, and Q. Yuan, “Prediction of Biochar Yield from Cattle Manure Pyrolysis via Least Squares Support Vector Machine Intelligent Approach,” Bioresour. Technol., Vol. 202, pp. 158–164, 2016.

M. Homaira and R. Hassan, “Prediction of Agricultural Emissions in Malaysia Using Machine Learning Algorithms,” Int. J. Perceptive, Cogn. Comput., Vol. 7, No. 1, pp. 33–40, 2021.

H.-N. Guo, et al., “Application of Machine Learning Methods for the Prediction of Organic Solid Waste Treatment and Recycling Processes: A Review,” Bioresour. Technol., Vol. 319, pp. 1-13, 2021.

H. Mollenhorst, et al., “Predicting Nitrogen Excretion of Dairy Cattle with Machine Learning,” in Environmental Software Systems. Data Science in Action. ISESS 2020. IFIP Advances in Information and Communication Technology, Vol 554, I.N. Athanasiadis, S.P. Frysinger, G. SchimakWillem, and J. Knibbe, Eds., Cham, Switzerland: Springer, 2020, pp. 132-138.

L. Uwamahoro and P. Niyigena, “Deep Learning in Greenhouse Gases Emissions from Agriculture Activities in Rwanda Using Long Short Term Memory Recurrent Neural Network,” Int. Res. J. Eng. Technol., Vol. 6, No. 10, pp. 928–931, 2019.

K. Kononenko and D. Demidov, “Use of Artificial Neural Networks to Predict Greenhouse Gases Emissions,” Int. Scientific Conf. Eng. Rural Dev., 2020, pp. 892–896.

P.K. KosamkarEmail and V.Y. Kulkarni, “Effect of Soil and Climatic Attribute on Greenhouse Gas Emission from Agriculture Sector,” in Evolution in Computational Intelligence. Advances in Intelligent Systems and Computing, Vol. 1176, V. Bhateja, S.-L. Peng, S.C. Satapathy, and Y.-D. Zhang, Eds., Singapore, Singapore: Springer, 2021, pp. 91-101.

M. Hermans and B. Schrauwen, “Training and Analyzing Deep Recurrent Neural Networks,” in Advances in Neural Information Processing Systems 26 (NIPS 2013), C.J.C. Burges, et al., Eds., Red Hook, AS: Curran Associates Inc., 2013, pp. 192–196.

LMR Rere, M.I. Fanany, and A.M. Arymurthy, “Simulated Annealing Algorithm for Deep Learning,” Procedia Comput. Sci., Vol. 72, pp. 137–144, 2015.

R. Pascanu, C. Gulcehre, K. Cho, and Y. Bengio, “How to Construct Deep Recurrent Neural Networks,” 2nd Int. Conf. Learn. Represent. (ICLR 2014), 2014, pp. 1–13.

S. Hochreiter and J. Schmidhuber, “Long Short-Term Memory,” Neural Comput., Vol. 9, No. 8, pp. 1735–1780, 1997.

C. Gulcehre, K. Cho, R. Pascanu, and Y. Bengio, “Learned-norm Pooling for Deep Neural Networks,” 2014, arXiv:1311.1780.

A.S.B. Karno, W. Hastomo, and Sutarno, “Optimalisasi Data Terbatas Prediksi Jangka Panjang COVID-19 dengan Kombinasi LSTM dan GRU,” Pros. Sem. SeNTIK, Vol. 4, No. 1, pp. 181–191, 2020.

W. Hastomo, et al., “Optimasi Deep Learning untuk Prediksi Saham di Masa Pandemi Covid-19,” J. Eduk., Penelit. Inform. (JEPIN), Vol. 7, No. 2, pp. 133–140, 2021.

J. Chung, C. Gulcehre, K. Cho, and Y. Bengio, “Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling,” 2014. arXiv:1412.3555.

S. Hempel, et al., “Supervised Machine Learning to Assess Methane Emissions of a Dairy Building with Natural Ventilation,” Appl. Sci., Vol. 10, No. 19, pp. 1–21, 2020.

(2021) “Long-term Strategy on Low Carbon and Climate Resilience 2050 (LTS-LCCR 2050),” [Online],, access date: 20-Oct-2021.

H. Shaftel (2021) “Overview: Weather, Global Warming and Climate Change,” [Online],, access date: 20-Oct-2021.

W. Hastomo, et al., “Characteristic Parameters of Epoch Deep Learning to Predict Covid-19 Data in Indonesia,” J. Phys. Conf. Ser., Vol. 1933, pp. 1-6, 2021.

(2021) “Pemerintah Terus Upayakan Pemulihan Ekonomi, Namun Tetap Waspada terhadap Pandemi Covid,” [Online],, access date: 20-Oct-2021.

N. Kalbuana, et al., “Earnings Management is Affected by Firm Size, Leverage and ROA: Evidence from Indonesia,” Acad. Strateg. Manag. J., Vol. 20, Special Issue 2, pp. 1–12, 2021.

A. Nugroho (2020) “Daya Beli Sapi Potong di Masa Pandemi Turun,” [Online],, access date: 20-Oct-2021.

P. Wicaksono (2020) “Harga Ayam Turun Akibat Corona, Peternak Minta Pemda Turun Tangan,” [Online],, access date: 20-Oct-2021.

How to Cite
Widi Hastomo, Nur Aini, Adhitio Satyo Bayangkari Karno, & L.M. Rasdi Rere. (2022). Machine Learning Methods for Predicting Manure Management Emissions. Jurnal Nasional Teknik Elektro Dan Teknologi Informasi, 11(2), 131-139.