Processing and Reporting GreenFeed Emissions Data Just Got Easier with a New Open-Source, Flexible Data Analysis Tool
May 15, 2025
A new technical note from JDS Communications introduces greenfeedr and demonstrates how it can generate easy-to-read reports and insights using real dairy cow data
The dairy and agriculture sectors’ pursuit of sustainability and efficiency has fueled a dramatic expansion in research aimed at understanding and reducing livestock greenhouse gas emissions. Central to this effort is the ability to accurately measure methane and carbon dioxide output from cattle on a large scale. GreenFeed is a popular tool helping researchers and producers measure emissions in real time.
A new open-source tool, greenfeedr—outlined in a new technical note opens in new tab/window in JDS Communications opens in new tab/window—is simplifying processing and data reporting from GreenFeed systems, making it easier to get flexible, useful, and impactful data and accelerate the work toward a sustainable future for dairy and livestock production.
GreenFeed systems are portable head chambers that measure individual animal gas production in real time, generating substantial amounts of data. Animals voluntarily use the machine, receiving pelleted feed throughout the day, meaning that the system gathers data 24 hours a day, often for weeks at a time. While all of these data are crucial for researchers and producers aiming to understand and mitigate livestock’s contribution to climate change, it comes with challenges. Managing and analyzing this high volume of data—especially across different research projects, dairy herds, and teams—are often time consuming and can lead to error and data inconsistencies.
Guillermo Martinez-Boggio, PhD, of the Department of Animal and Dairy Sciences, University of Wisconsin–Madison, and lead author of the article, said, “The sheer volume of data produced by GreenFeed systems can be really overwhelming.We set out to create an open-source tool that simplifies this process, making it more efficient and reproducible, and flexible to the variety of situations in which these systems are used.”
Motivated by the principle of “doing as little as possible by hand and as much as possible with functions,” Dr. Martinez-Boggio, of the Peñagaricano Lab, developed greenfeedr—a toolkit with functions for downloading, processing, and reporting GreenFeed data—all freely and publicly available as an R package, an open-source software and programming language. Interested users can access greenfeedr on the Comprehensive R Archive Network (CRAN) at https://cran.r-project.org/web/packages/greenfeedr opens in new tab/window and its source code on GitHub at https://github.com/GMBog/greenfeedr opens in new tab/window.
The R package has functions for downloading GreenFeed data (get_gfdata), for generating daily and final reports (report_gfdata), for processing daily and final records (process_gfdata), and extra functions that help to extract information regarding pellet intakes and daily visits (pellin and viseat).
After development, the team demonstrated the package’s capabilities using data from 32 lactating dairy cows. The article demonstrates how greenfeedr can generate comprehensive reports and efficiently process large datasets, allowing for a detailed analysis of methane and carbon dioxide emissions. The package also permits user-defined parameters to allow the best use of each research group’s datasets.
Dr. Martinez-Boggio explained, “We wanted the tool to be as versatile as possible, so it was designed to be used with all livestock species and housing systems, including freestall, tiestall, and pasture based.
This important advancement allows teams to automate routine processes as they gather data with GreenFeed systems, simplifying formerly complex workflows, saving time, and creating insightful outputs that can inform study results and farm management decisions.
This tool is expected to benefit researchers and producers by enhancing the efficiency and accuracy of GreenFeed data analysis, ultimately contributing to a better understanding of livestock emissions and the development of mitigation strategies.
Notes for editors
The article is “greenfeedr: An R package for processing and reporting GreenFeed data,” by Guillermo Martinez-Boggio, Patrick Lutz, Meredith Harrison, Kent A. Weigel, and Francisco Peñagaricano (https://doi.org/10.3168/jdsc.2024-0662 opens in new tab/window). It appears in JDS Communications, volume 6, issue 2 (March 2025), published by ADSA opens in new tab/window and Elsevier.
The article is openly available at https://www.jdscommun.org/article/S2666-9102(24)00187-X/fulltext opens in new tab/window, and the PDF version is available at https://www.jdscommun.org/action/showPdf?pii=S2666-9102%2824%2900187-X opens in new tab/window.
Journalists wishing to interview the authors should contact Guillermo Martinez-Boggio, PhD, of the Department of Animal and Dairy Sciences, University of Wisconsin–Madison, at [email protected] opens in new tab/window.
About JDS Communications
JDS Communications®, an official journal of the American Dairy Science Association®, is co-published by Elsevier and ADSA. The journal publishes narrowly focused, hypothesis-driven original research studies designed to answer a specific question on the production or processing of milk or milk products intended for human consumption. In addition to short research articles, JDS Communications publishes mini reviews—unsolicited, concise review papers. Research published in this journal is broadly divided into the production of milk from food animals (nutrition, physiology, health, genetics, and management) and processing of milk for human consumption (dairy foods). JDS Communications aims for rapid turnaround and a short time to publication. www.jdscommun.org opens in new tab/window
About the American Dairy Science Association (ADSA®)
The American Dairy Science Association (ADSA) is an international organization of educators, scientists, and industry representatives who are committed to advancing the dairy industry and keenly aware of the vital role the dairy sciences play in fulfilling the economic, nutritive, and health requirements of the world’s population. It provides leadership in scientific and technical support to sustain and grow the global dairy industry through generation, dissemination, and exchange of information and services. Together, ADSA members have discovered new methods and technologies that have revolutionized the dairy industry. www.adsa.org opens in new tab/window
About Elsevier
A global leader in advanced information and decision support, Elsevier helps to advance science and healthcare, to advance human progress. We do this by facilitating insights and critical decision-making with innovative solutions based on trusted, evidence-based content and advanced AI-enabled digital technologies.
We have supported the work of our research and healthcare communities for more than 140 years. Our 9,700 employees around the world, including 2,300 technologists, are dedicated to supporting researchers, librarians, academic leaders, funders, governments, R&D-intensive companies, doctors, nurses, future healthcare professionals and educators in their critical work. Our 3,000 scientific journals and iconic reference books include the foremost titles in their fields, including Cell Press, The Lancet and Gray’s Anatomy. Together with the Elsevier Foundation opens in new tab/window, we work in partnership with the communities we serve to advance inclusion in science, research and healthcare in developing countries and around the world.
Elsevier is part of RELX opens in new tab/window, a global provider of information-based analytics and decision tools for professional and business customers. For more information on our work, digital solutions and content, visit www.elsevier.com.
Contact
JT
EL