Abstract
Understanding forage quality is essential for meeting animal demands and optimizing production. This study aimed to: (i) test the applicability of machine learning models with tabular data such as climate variables, light interception (LI), nitrogen dose (N dose), interval between grazing (GI), and pre- (HPRE) and post-grazing height (HPOST) to predict leaf crude protein (CP) content of tamani grass pastures; (ii) identify which variables contribute most to CP prediction. A set of 90 instances was used with 80% for training and validation and 20% for testing. The hyperparameters were adjusted with grid-search on the training set. We tested Linear Regression (LR), Multilayer Perceptron (MLP), Decision Trees (DT), Random Forest (RF), and XGBoost. The MLP (r = 0.75, R2 = 44.18%, MAE = 1.55), RF (r = 0.78, R2 = 49.07%, MAE = 1.59) and XGBoost (r = 0.78, R2 = 56.65% MAE = 1.45) models presented the best prediction results (p < 0.001). The variables most important in predicting CP content were GI, followed by N dose, HPRE and HPOST. XGBoost outperformed other tested models (p < 0.001). Tabular data, including N dose, GI, HPRE, HPOST, LI, and climatic variables, is a viable alternative for predicting CP. In conclusion, the results of this study suggest that management practices may have a greater influence on the chemical composition of Tamani grass than environmental conditions, although further research with larger and more diverse datasets is needed to confirm these findings. Link to the API: https://github.com/GabrielaAquino93/Project-BiomassCalculator.
Data availability
All data generated or analysed during this study are included in this published article.
References
FAO. Land statistics 2001–2022. Global, regional and country trends. Food and Agriculture Organization of the United Nations. July 4, 2024. Avaiable: https://www.fao.org/statistics/highlights-archive/highlights-detail/land-statistics-2001-2022.-global--regional-and-country-trends/en
Reinermann, S. et al. Remote sensing of grassland production and management—A review. Remote Sens. 12, 1949 (2020). https://doi.org/10.3390/rs12121949
Wijesingha, J. et al. Predicting forage quality of grasslands using UAV-borne imaging spectroscopy. Remote Sens. 12, 126 (2020).https://doi.org/10.3390/rs12010126
Bretas, I. L. et al. Prediction of aboveground biomass and dry-matter content in brachiaria pastures by combining meteorological data and satellite imagery. Grass Forage Sci. 76, 340–352 (2021). https://doi.org/10.1111/gfs.12517
Balseca, D. G. et al. Nutritional value of brachiarias and forage legumes in the humid tropics of Ecuador. Cienc. Investig. Agrar. 42, 57–63 (2015). https://doi.org/10.4067/S0718-16202015000100006
Lopes, C. M. et al. Massa de forragem, composição morfológica e valor nutritivo de capim-braquiária Submetido a níveis de Sombreamento e fertilização. Arq. Bras. Med. Vet. Zootec. 69, 225–233 (2017). https://doi.org/10.1590/1678-4162-9201
Rouquette, F. M. Invited review: the roles of forage management, forage quality, and forage allowance in grazing. Prof. Anim. Sci. 32, 10–18 (2016). https://doi.org/10.15232/pas.2015-01408
Zubieta, A. S. et al. Does grazing management provide opportunities to mitigate methane emissions by ruminants in pastoral ecosystems? Sci. Total Environ. 754, 142029 (2021). https://doi.org/10.1016/j.scitotenv.2020.142029
Horrocks, R. D. & Vallentine, J. F. Forage quality—the basics. in Harvested Forage 17–47 (Academic Press, 1999).
t’Mannetje, L. & Jones, R. Field and Laboratory Methods for Grassland and Animal Production Research. (CABI Publishing, 2000).
Gornott, C. & Wechsung, F. Statistical regression models for assessing climate impacts on crop yields: A validation study for winter wheat and silage maize in Germany. Agric. For. Meteorol. 217, 89–100 (2016). https://doi.org/10.1016/j.agrformet.2015.10.005
Jeong, J. H. et al. Random Forests for global and regional crop yield predictions. PLoS One 11, e0156571 (2016). https://doi.org/10.1371/journal.pone.0156571
Le Maire, G. et al. MODIS NDVI time-series allow the monitoring of Eucalyptus plantation biomass. Remote Sens. Environ. 115, 2613–2625 (2011). https://doi.org/10.1016/j.rse.2011.05.017
Freitas, E. C. S. et al. Modeling of Eucalyptus productivity with artificial neural networks. Ind. Crops Prod. 146, 112149 (2020). https://doi.org/10.1016/j.indcrop.2020.112149
Vahedi, A. A. Monitoring soil carbon pool in the hyrcanian coastal plain forest of iran: artificial neural network application in comparison with developing traditional models. Catena 152, 182–189 (2017). https://doi.org/10.1016/j.catena.2017.01.022
Vani, S. et al. Prediction of sugar yields during hydrolysis of lignocellulosic biomass using artificial neural network modeling. Bioresour. Technol. 188, 128–135 (2015). https://doi.org/10.1016/j.biortech.2015.01.083
Da Silva, A. K. V. et al. Predicting Eucalyptus diameter at breast height and total height with UAV-based spectral indices and machine learning. Forests 12, 582 (2021). https://doi.org/10.3390/f12050582
Ramos, A. P. M. et al. A random forest ranking approach to predict yield in maize with UAV-based vegetation spectral indices. Comput. Electron. Agric. 178, 105791 (2020). https://doi.org/10.1016/j.compag.2020.105791
Mwendia, S. W. et al. Does harvesting Urochloa and Megathyrsus forages at short intervals confer an advantage on cumulative dry matter yields and quality? J. Sci. Food Agric. 102, 750–756 (2022). https://doi.org/10.1002/jsfa.11407
Reis, A. A. et al. Monitoring pasture aboveground biomass and canopy height in an integrated crop–livestock system using textural information from planetscope imagery. Remote Sens. 12, 2534 (2020). https://doi.org/10.3390/rs12162534
Rosa, D. et al. Predicting pasture biomass using a statistical model and machine learning algorithm implemented with remotely sensed imagery. Comput. Electron. Agric. 180, 105880 (2021). https://doi.org/10.1016/j.compag.2020.105880
Solos, E. Sistema Brasileiro De classificação De Solos. 3ª ed. (Centro Nacional de Pesquisa de Solos, Rio de Janeiro, 2018).
De Campos, R. L. C., De Oliveira, R. H. M., Macedo, M., & Gomes, R. D. C. Predicting the nutritional value of tropical forages by Near Infrared Reflectance Spectroscopy (NIRS) (2024).
Pedregosa, F. et al. Scikit-learn: machine learning in python. J. Mach. Learn. Res. 12, 2825–2830 (2011).
Štepanovský, M. et al. Novel age Estimation model based on development of permanent teeth compared with classical approach and other modern data mining methods. Forensic Sci. Int. 279, 72–82 (2017). https://doi.org/10.1016/j.forsciint.2017.08.005
Raj, P. & Evangeline, P. The Digital Twin Paradigm for Smarter Systems and Environments: the Industry Use Cases. (Academic Press, 2020).
Breiman, L. Random forests. Mach. Learn. 45, 5–32 (2001).
Saha, S. et al. Predicting the deforestation probability using the binary logistic regression, random forest, ensemble rotational forest, reptree: A case study at the Gumani river Basin, India. Sci. Total Environ. 730, 139197 (2020). https://doi.org/10.1016/j.scitotenv.2020.139197
Bisong, E. et al. Building machine learning and deep learning models on Google Cloud Platform. (Apress, 2019).
Moore, David S. & Mccabe, George. Introduction to the practice of statistics. New York, Freeman (2004).
Nabinger, C. Eficiência do Uso de pastagens: disponibilidade e Perdas de forragem. in Simpósio Sobre Manejo Da Pastagem 213–251 (1997).
Carnevalli, R. A. et al. Herbage production and grazing losses in panicum maximum cv. Mombaça under four grazing managements. Trop. Grassl. 40, 165–171 (2006).
Pedreira, B. C., Pedreira, C. G. S. & Silva, S. C. Acúmulo de forragem Durante a rebrotação de capim-xaraés Submetido a três estratégias de desfolhação. Rev. Bras. Zootec. 38, 618–625 (2009).
Costa, N. L. et al. Resposta de Pastagens de Megathyrsus Maximus cv. Zuri à frequência de desfolhação. Res. Soc. Dev. 8, e1185 (2019).
Geremia, E. V. et al. Sward structure and herbage intake of brachiaria Brizantha cv. Piatã in a crop-livestock-forestry integration area. Livest. Sci. 212, 83–92 (2018). https://doi.org/10.1016/j.livsci.2018.03.020
Hodgson, J. Grazing Management: Science into Practice. (Longman Group UK Ltd., 1990).
Taiz, L. et al. Fisiologia E Desenvolvimento Vegetal: Diversidade Vegetal. (Artmed, 2017).
Delevatti, L. M. et al. Effect of nitrogen application rate on yield, forage quality, and animal performance in a tropical pasture. Sci. Rep. 9, 7596 (2019). https://doi.org/10.1038/s41598-019-44138-x
Paciullo, D. S. C. et al. Morphogenesis, biomass and nutritive value of panicum maximum under different shade levels and fertilizer nitrogen rates. Grass Forage Sci. 72, 590–600 (2017). https://doi.org/10.1111/gfs.12264
Bretas, I. L. et al. Canopy height and biomass prediction in Mombaça Guinea grass pastures using satellite imagery and machine learning. Precis. Agric. 1–25 (2023). https://doi.org/10.1007/s11119-023-10013-z
Kamilaris, A. & Prenafeta-Boldú, F. X. Deep learning in agriculture: A survey. Comput. Electron. Agric. 147, 70–90 (2018). https://doi.org/10.1016/j.compag.2018.02.016
Lu, D. & Weng, Q. A survey of image classification methods and techniques for improving classification performance. Int. J. Remote Sens. 28, 823–870 (2007). https://doi.org/10.1080/01431160600746456
Doshi-Velez, F. & Kim, B. Towards a rigorous science of interpretable machine learning. ArXiv Preprint arXiv:1702.08608 (2017).
Cunha, A. M. Q. et al. Nitrogen fertilisation as a strategy for intensifying production and improving the quality of Massai grass grown in a humid tropical climate. J. Plant Nutr. 45, 2213–2227 (2022). https://doi.org/10.1080/01904167.2022.2046078
Galindo, F. S. et al. Technical and economic viability and nutritional quality of Mombasa Guinea grass silage production. Acta Sci. Agron. 40, e36395 (2018). https://doi.org/10.4025/actasciagron.v40i1.36395
Li, P. et al. Elevated carbon dioxide and nitrogen supply affect photosynthesis and nitrogen partitioning of two wheat varieties. J. Plant Nutr. 42, 1290–1300 (2019). https://doi.org/10.1080/01904167.2019.1616758
Zanine, A. et al. Effect of season and nitrogen fertilization on the agronomic traits and efficiency of Piatã grass in Brazilian savanna. Agriculture 10, 337 (2020). https://doi.org/10.3390/agriculture10080337
Alvarenga, C. A. F. et al. Animal performance and Sward characteristics of Mombaça guineagrass pastures subjected to two grazing frequencies. Trop. Grassl. Forrajes Trop. 8, 1–10 (2020). https://doi.org/10.17138/tgft(8)1-10
Da Silva, S. C., Sbrissia, A. F. & Pereira, L. E. T. Ecophysiology of C4 forage grasses—understanding plant growth for optimizing their use and management. Agriculture 5, 598–625 (2015).
Van Soest, P. J. Nutritional Ecology of the Ruminant. (Cornell University Press, 1994).
Gillet, M. Las gramíneas Forrajeras: Descripción, funcionamiento, Aplicaciones Al Cultivo De La Hierba. (Acribia, 1984).
Reis, R. A., Bernardes, T. F. & Siqueira, G. R. Forragicultura: Ciência, Tecnologia E gestão Dos Recursos Forrageiros. (Gráfica Multipress, 2013).
Chen, Y. et al. Estimating pasture biomass using Sentinel-2 imagery and machine learning. Remote Sensing 13, 603 (2021). https://doi.org/10.3390/rs13040603
Tesk, C. R. M. et al. Impact of grazing management on forage qualitative characteristics: A review. Sci. Electron. Arch. 11, 188–197 (2018).
Bretas, I. L., Dubeux Jr, J. C., Cruz, P. J., Oduor, K. T., Queiroz, L. D., Valente, D. S., & Chizzotti, F. H. Precision livestock farming applied to grazingland monitoring and management—a review. Agron. J. 116, 1164–1186 (2024). https://doi.org/10.1002/agj2.21346
Murphy, D. J., Murphy, M. D., O’Brien, B., & O’Donovan, M. A. Review of precision technologies for optimising pasture measurement on Irish grassland. Agriculture 11, 600 (2021). https://doi.org/10.3390/agriculture11120600
Acknowledgements
AcknowledgementsThe authors thank the Embrapa Beef Cattle, Federal University of Mato Grosso do Sul Foundation, through the Postgraduate Program in Animal Science, the National Council for Scientific and Technological Development (CNPq), the Higher Education Personnel Improvement Coordination (CAPES, Finance Code 001) and the Foundation for the Support of the Development of Education, Science and Technology of the State of Mato Grosso do Sul (FUNDECT).
Funding
The authors received no funding for this work.
Author information
Authors and Affiliations
Contributions
G.O.A.M., G.S.D., E.T.M., D.B.M. and V.P.B.E., designed the study. G.O.A.M., J.G.R., M.G.P., J.C.S.S., R.T.N. and J.A.C. performed the experiment and collected data. G.O.A.M., R.T.N., J.A.C., A.B.C., L.C.V.I. and M.M.P.M.F.C. analyzed the data. G.O.A.M. conducted statistical analysis and wrote the manuscript. All authors read and critically revised drafts for intellectual content and provided approval for publication.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
The authors declare that they have no conflict of interest.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Oliveira de Aquino Monteiro, G., dos Santos Difante, G., Baptaglin Montagner, D. et al. Machine learning models for crude protein prediction in Tamani grass pastures. Sci Rep (2026). https://doi.org/10.1038/s41598-026-36949-6
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-026-36949-6