Source: SOUTH DAKOTA STATE UNIVERSITY submitted to NRP
DEVELOPMENT OF A COST-EFFECTIVE ENVIRONMENTAL MONITORING SYSTEM FOR SWINE AND DAIRY OPERATIONS
Sponsoring Institution
National Institute of Food and Agriculture
Project Status
COMPLETE
Funding Source
Reporting Frequency
Annual
Accession No.
1021667
Grant No.
(N/A)
Cumulative Award Amt.
(N/A)
Proposal No.
(N/A)
Multistate No.
(N/A)
Project Start Date
Nov 25, 2019
Project End Date
Sep 30, 2024
Grant Year
(N/A)
Program Code
[(N/A)]- (N/A)
Recipient Organization
SOUTH DAKOTA STATE UNIVERSITY
PO BOX 2275A
BROOKINGS,SD 57007
Performing Department
Agricultural & Biosystems Engineering
Non Technical Summary
Smart livestock farming demands an improved data infrastructure that gathers various operating, production performance, and environmental data in an automated, timely, and cost-effective manner. For years only temperature has been routinely measured in livestock barns despite the fact that other environmental parameters, such as humidity, particulate matter (PM), and ammonia (NH3), have significant impacts on animal growth and wellbeing, occupational health, and the environmental footprint of livestock industry.This project aims to develop a cost-effective, Internet-of-Things (IoT) based monitoring system that measures several key air quality parameters in livestock barns and delivers the acquired real-time data to livestock producers and other authorized users via the Internet. With that, the producers will be able to precisely control the livestock environment to improve economic productivity while ensuring good environmental stewardship. The system, along with those monitoring the production performance and operating parameters in livestock barns, will enable a solid data foundation for the development of next-generation livestock farming technologies.To achieve the project goal, we plan to conduct research in three steps. First, we will assess the performance of low-cost gas and PM sensors through lab and field experiments and identify the commercial sensors that readily apply to the livestock environment. Secondly, we will develop a low-cost (<$1,000), portable ammonia sensor that can accurately measure ammonia gas from 1 to 50 ppm. This work will similarly involve lab and field testing, and the majority of field investigations will be done using the state-of-the-art swine and dairy production facilities at the South Data State University. Thirdly, the sensors identified or developed from the previous steps will be integrated to build an IoT-based monitoring system. The system will consist of multiple sensor nodes deployed across a livestock facility, an IoT gateway, and a web server that stores, visualizes, and distributes the environmental data. The outcome of this research may also find applications in other agricultural controlled environments such as poultry barns and greenhouses.
Animal Health Component
30%
Research Effort Categories
Basic
0%
Applied
30%
Developmental
70%
Classification

Knowledge Area (KA)Subject of Investigation (SOI)Field of Science (FOS)Percent
3073510202070%
3073410202030%
Goals / Objectives
The over-arching goal of this research is to provide a cost-effective solution for environmental monitoring and control at confinement livestock facilities, which will facilitate the development of next-generation livestock farming systems. The specific objectives are to:(1) Assess the performance of low-cost particulate matter (PM) and gas sensors through lab and field experiments. As most sensors were developed for ambient environment monitoring or industrial process control, the purpose is to find the sensors that can be readily applied to the livestock environment.(2) Develop a low-cost, photoacoustic ammonia sensor. Ammonia has a significant impact on livestock health and the environment. Existing analyzers either are too expensive or lack robust performance in livestock barns. The purpose of this effort is to develop a portable, sub-$1,000 ammonia sensor that can accurately measure ammonia gas from 1 to 50 ppm.(3) Develop an Internet-of-things (IoT) based monitoring system. The sensors selected or developed from objectives 1 and 2 will be used to build an IoT-based monitoring system that collects environmental parameters from multiple locations within a livestock facility and submits the collected data to a web server that can be accessed by the livestock producer or other authorized users.
Project Methods
Objective 1. Assess the performance of low-cost particulate matter (PM) and gas sensors through lab and field experimentsThis project will focus on PM, hydrogen sulfide (H2S), volatile organic compounds (VOCs), and carbon dioxide (CO2). For each pollutant, four to six different models of commercial sensors will be selected, following seven criteria: (1) the sensor should be portable (< 0.5 lb); (2) it should be inexpensive (< $200); (3) it should be capable of measuring the concentration range typical of livestock facilities; (4) it should provide a reasonable sensitivity and resolution; (5) it should potentially survive in the challenging livestock environment; (6) it should require little maintenance or can easily be replaced; (7) it should demand low power and can be readily interfaced with a microcontroller or computer.Once the sensors are selected, they will be assessed in three steps:Specification comparisons. For each pollutant, the specifications of the selected sensors will be compared against a reference analyzer (a TEOM for PM, a pulse fluorescence H2S/SO2 analyzer for H2S, a direct CH4-NMHC analyzer for VOCs, and an NDIR CO2 analyzer for CO2) and the typical air quality inside swine and dairy barns. The purpose of this comparison is to provide a basic understanding of the strengths and weaknesses of different sensors and to affirm they can apply to the livestock environment. A testing platform will be built based on the sampling and electrical requirements for each sensor.Lab challenge experiments. The selected sensors will be challenged with different air pollutant concentrations to examine their performance (e.g., sensitivity, linearity, and drift) and to build calibration curves. Standard gas or particle streams will be diluted to the designed concentrations using zero air and a multigas calibrator. Reference analyzers will also be calibrated during this step.Field assessment. The field assessment will be done at the South Dakota State University Swine Education and Research Facility (SERF) and the Dairy Research and Training Facility (DRTF). The experimental setup, known as co-located air monitoring, will place the low-cost sensors adjacent to their reference analyzers and perform air monitoring for up to several months. The monitoring data from the sensors and analyzers will then be analyzed, with the reference analyzers serving as a secondary standard. A visual inspection of the sensor (including both the interior and exterior) will also be conducted.A list of sensors applicable to the livestock environment will be generated from this work, as well as their performance characteristics, advantages, and weaknesses.Objective 2. Develop a low-cost, photoacoustic ammonia sensorThe USDA sponsored several small business projects (e.g., Grants No. 2004-33610-14831, 2007-33610-17980, and 2012-33610-19511) in the past to develop ammonia (NH3) sensors or analyzers for livestock usage. However, to our knowledge, none of them have led to a commercial product. A commonality of these projects is that they aimed to develop a unit capable of measuring NH3 at the ppb level. In reality, such diluted NH3 concentrations normally occur in the ambient air and have no impact on animal health or wellbeing.This project intends to develop a sensor that measures NH3 from 1 to 50 ppm, the concentration range typical of livestock facilities. Because of the relaxed sensitivity requirement, the complexity and cost of the analyzer can be significantly reduced. The sensor will be based on the photoacoustic detection principle. In brief, an NH3-laden gas sample will be irradiated with a pulsed light beam. Because of the periodic light absorption by NH3, the gas sample will undergo periodic thermal expansion and contraction, which translates into a sound. By measuring the sound intensity, the NH3 concentration can be quantitated. The sensor development will involve the following steps:Step 1. Design and fabrication of a prototype sensor. The sensor will consist of various components such as a laser diode, a laser power supply/modulator, a photoacoustic chamber, and a phase-lock amplifier. Part of these components are commercially available, and the rest will be fabricated during this project. The PI will work closely with the Co-PI and collaborators to finalize the design of the sensor.Step 2. Lab characterization. This work will include challenging the sensor with zero air, different concentrations of NH3 gas, and potentially interfering agents. A calibration curve will be derived, along with compensation algorithms to address measurement interferences. The characterization will also cover the electrical and pneumatic parts of the sensor to identify possible design or fabrication issues that affect the sensor's performance.Step 3. Field assessment. The sensor will be deployed at the SERF and DRTF to examine its performance in the real-world livestock environment. It will share the same sampling inlet with a reference NH3 analyzer (ThermalFisher 17i). The monitoring data derived from the two instruments will then be compared through statistical analyses. The prototype sensor will be dissembled to check the durability of individual components.Instrumentation development is a highly iterative process. The feedback from lab and field experiments will be used for further improving the design of the NH3 sensor. Once the design is finalized, a standard operating procedure will also be provided.Objective 3. Develop an IoT-based environmental monitoring systemThe system will follow the same architecture as the one the PI recently developed in his group. In brief, it will consist of three components: sensor nodes, a gateway, and a web server. The sensor node will monitor environmental parameters and submit the acquired data wirelessly to a gateway. The gateway will gather the data from multiple sensor nodes and transmit them to a web server. The web server will store, visualize, and distribute the environmental data to end-users. The data flow will be bidirectional, i.e., a user can operate a sensor node by sending commands on cell phones or computers through the network.The sensor node will consist of PM and gas sensors, a microcontroller, a wireless transceiver, a GPS module, and other supporting components. The sensors from objectives 1 and 2 will be used for node fabrication. They, along with the GPS module, will send monitoring data to the microcontroller where the data will be encrypted and sent to a micro-SD card and the wireless transceiver. The PI's existing system uses a LoRa transceiver for long-distance data transmission. Depending on the purpose, LoRa can be replaced with Zigbee, WIFI, or Bluetooth.The gateway will be comprised of a Raspberry Pi microcomputer and a wireless transceiver. Again, the existing system uses LoRa and it can be substituted by other wireless modules. The Raspberry Pi connects to the Internet via WIFI or an Ethernet cable. For farms with no network service, a cellular modem or a 4G hat will be incorporated into the gateway setup. The Raspberry Pi will be programmed with Python to manage data transmission and coordinate the operation of multiple sensor nodes.The PIs plan to build a web server hosted on the South Dakota State University campus network. JSON web tokens will be used to ensure secure data transmission. A customized webpage will be developed, allowing an end-user to browse the environmental information and manage her/his facilities in an intuitive manner. A mobile app will also be created to improve the user experience.Once the system is developed, it will be tested at the university swine (SERF) and dairy facilities (DRTF) for at least one year. The system will then be deployed at several commercial barns for further assessments.

Progress 11/25/19 to 09/30/20

Outputs
Target Audience:Livestock producers and industry partners. Livestock producers and industry partners were targeted because they would be the end-users of the proposed monitoring system. They also help identify and prioritize the research needs. Last year, the PI reached out to livestock producers, barn builders, and equipment suppliers in South Dakota through face-to-face conversions and extension workshops. Two collaborative research and extension efforts are currently ongoing. Academia. Researchers in the areas of agricultural engineering, animal science, electrical engineering, and environmental engineering were targeted through joint research efforts and presentations at regional and national conferences. This will facilitate interdisciplinary collaborations in developing a holistic solution to environmental monitoring, and ultimately, improved environmental management of livestock production facilities. Students. Undergraduate students were targeted through the PI's Agricultural Waste Management course of which environmental monitoring and control constituted an integral part. Thirty-eight undergraduate students majored in dairy science and agricultural system technology took the course in spring 2019. Many of them will work in the livestock industry after graduation. Graduate students were also targeted by offering professional training and guidance in conducting research projects. General public. This audience was targeted because of a growing concern among the public regarding animal wellbeing and the impact of the livestock industry on the environment. The IoT-based farm monitoring also coincides with the quick development of smart cities and smart homes that are built on similar technologies. The research findings were disseminated to the general public through publications, presentations, and extension/outreach activities. Changes/Problems:The covid-19 pandemic starting in March 2020 has an adverse impact on the project progress. No lab or fieldwork was conducted from March 2020 through June 2020 because of the lockdown of the university campus. Student recruitment, conference participation, and extension/outreach activities were also adversely impacted. What opportunities for training and professional development has the project provided?The project provided great opportunities for undergraduate and graduate students from diverse backgrounds to exchange research ideas, work as a team, and learn Internet-of-Things (IoT), and sensor technologies. Through the project, three students were hired and mentored. Because IoT and sensors are new to most students, the PI has spent on average 6 hours per week working closely to mentor the students. The students' work has resulted in two conference presentations and three prototype sensor nodes or monitoring systems. Two graduate students and one undergraduate student were involved or trained in this project. They are listed as below: Zhisheng Cen is a current Ph.D. student in ABE (Aug 2020-Present). With a background in applied chemistry and agricultural and biosystems engineering, he worked on the development of environmental monitoring sensor nodes and low-cost ammonia sensors. He assisted the PI in setting up and testing IoT networks at the university research farms. Augustina Osabutey is a current Ph.D. student in ABME (Jan 2020-Present). With a background in mechanical engineering and environmental engineering, she helped the PI compare the performance of low-cost particulate and gas sensors in livestock barns. Harsh Dubey was an undergraduate student in electrical engineering and computer science. He helped the PI design and fabricate a LoRaWAN-based monitoring system, including both hardware and software. Harsh started in Jan 2020 and graduated in May 2020. How have the results been disseminated to communities of interest?Three conference presentations were achieved in the first year of the project. Presentations and training were also given through the South Dakota State University extension program to promote the awareness of IoT-based environmental monitoring and management among the public, in particular livestock producers and farm equipment suppliers. What do you plan to do during the next reporting period to accomplish the goals?We will continue to develop cost-effective environmental monitoring solutions for swine and dairy operations. We will keep a close dialog with animal scientists, extension specialists, and livestock producers to identify research needs and opportunities for swine and dairy farm applications. We will also explore the possibility of implementing similar technologies or systems to improve management of livestock, crops, and natural resources. Goal 1: Assess the performance of low-cost particulate matter (PM) and gas sensors through lab and field experiments. We will conduct a four-month field test of the selected PM sensors at the SDSU swine and dairy farms and identify the best performing sensor(s). We will try to modify the PM sensors to improve their performance for coarse particulates. We will acquire low-cost gas (H2S, VOCs, and CO2) sensors and develop a sensor testing platform for field and lab assessment. We will conduct lab testing of the acquired gas sensors and compare their performance against reference analyzers. Goal 2: Develop a low-cost, photoacoustic ammonia sensor. We will finish an initial design, acquire essential components, and build a prototype ammonia sensor. We will start lab challenging experiments to test the sensor output signals under different NH3 concentrations, with and without the presence of other gases. Through the experiments, we will finalize the key design parameters and features of the ammonia sensor and draft a detailed design document. Goal 3: Develop an Internet-of-things (IoT) based monitoring system. We will install and set up two outdoor LoRaWAN gateways on the SDSU research farm to facilitate the implementation and testing of IoT-based monitoring or control systems. We will conduct long-term field tests of the prototype monitoring systems to investigate their reliability, durability, and power consumption. We will develop one or two IoT-based systems for livestock farm management. One system already in our plan is for remote monitoring of light and animal activity in gilt houses.

Impacts
What was accomplished under these goals? Goal 1: Assess the performance of low-cost particulate matter (PM) and gas sensors through lab and field experiments. (25% Accomplished) Our efforts to assess the performance of sensors was focused on lab testing of low-cost PM sensors. Seven different models of commercial PM sensors (<$50 per unit) were acquired: Plantower PMS5003, Plantower PMS7003, Sharp GP2Y1010, DFROBOT Gravity, Shinyei PPD42, Nova SDS011, and Grove HM3301. They were connected to a microcontroller. The microcontroller was programmed to gather PM concentration readings from the sensors and record the readings, along with date and time (from a real-time clock module), into an SD card. For replicate testing, two such systems were built. Two MiniVol PM samplers were used as the reference method. That is, the PM concentration readings derived from the low-cost sensors were compared to the measurement results from the MiniVol samplers.To further study the impact of particulate size on the sensor performance, a Grimm 11-D aerosol spectrometer was acquired through this project and it classified PM between 0.3 and 20 microns into 31 size ranges. The Grimm spectrometer and Minivol samplers were co-located with low-cost PM sensors during lab testing and challenged with the same PM samples. The lab testing results revealed that all the selected PM sensors, except Sharp GP2Y1010, produced reasonably accurate PM concentration readings (R2 > 0.7) when the PM was comprised of mostly fine particulates (with size < 2.5 microns). However, when coarse particulates became predominant, all those sensors underestimated the PM concentrations by ~23-75% when 50% of particulates by mass were larger than 10 microns, depending on the sensor. This poor performance included the Plantower PMS5003 - the sensor used in Purple Air, the largest non-governmental PM monitoring network in the U.S. Among those sensors, Nova SDS011 delivered the (relatively) best performance - while the sensor underestimated particulate concentration by on average 31%, its concentration data correlated relatively well (R2=0.917) with those derived from reference monitors, thereby allowing for a correlation of the underestimates. A further examination revealed that Nova SDS011 employed a unique airflow design and a relatively high sampling flow rate, which helped reduce the impaction loss of coarse particulates during measurement. Because PM in livestock housing environments (and many other agricultural settings) is comprised of mostly coarse particulates, our findings suggest that many of the low-cost PM sensors on the market cannot be directly used for PM monitoring at livestock facilities. A modification of the sensor airflow channel and sampling flow rate may help improve their performance for coarse particles. Goal 2: Develop a low-cost, photoacoustic ammonia sensor. (5% Accomplished) In the first year of the project our efforts focused on literature review and preparation work. A SolidWorks 3-D model of photoacoustic chambers, a key component of the ammonia sensor, was created. A potentiostat was acquired for high precision, high-frequency current measurement required for sensor development. A phase-lock amplifier was acquired to amplify micro-amp output signals from the sensor's sensing elements. Two commercial ammonia analyzers (Thermo Scientific 17i and INNOVA 1314) were troubleshot and calibrated. They will be used as reference methods for assessing the field performance of the proposed ammonia sensor. The proposed sensor will provide a cost-effective option for ammonia monitoring and control at livestock facilities, thereby promoting environmental stewardship and livestock welfare. Goal 3: Develop an Internet-of-things (IoT) based monitoring system. (35% Accomplished) Our work covered three essential elements of a LoRaWAN IoT network: sensor node, gateway, and webserver. Regarding the sensor node, three prototype air monitoring sensor nodes were built. Each sensor node consisted of a temperature/humidity sensor, a low-cost PM sensor, a semiconductor odor sensor, a microcontroller, a Dragino LoRa radio module, an SD reader, a GPS module, and a power supply circuit. The microcontroller gathered time, location, and air quality data from the sensors, saved the data into an SD card, and transferred them to the Internet through the LoRa radio. We also built one prototype sensor node for remotely monitoring the operating status of the ventilation system of livestock barns, two sensor nodes for remotely monitoring the air temperature in livestock barns, and two sensor nodes for remotely monitoring the water level and temperature in rangeland water tanks. The last two types of sensor nodes employed a low power design. They were projected to be able to run for >2 years without battery replacement, thus reducing the caretaking by farmers. Regarding the gateway, we acquired three commercial LoRaWAN gateways and finished the field installation and setup of two gateway. Each gateway was capable of handling >100 sensor nodes. Because commercial gateways provide little flexibility, we built two self-designed gateways for special application scenarios (e.g. those requiring high data uploading rates) using LoRa radio hats and Raspberry Pi 3B+ microcomputers. Regarding the webserver, we tried three options. The first was a simple, self-developed webserver, including both backend (databases) and frontend (webpages). This option provided the greatest flexibility and allowed us to host the webservers on the university network. The second approach was ThingSpeak, a free, open-source IoT service provider. The third approach was The Things Network (TTN) in conjunction with Cayenne LPP, a free LoRaWAN IoT webserver solution. By integrating the aforementioned sensor nodes, gateways, and webservers, three prototype IoT-based monitoring systems were developed: (1) a livestock barn air quality monitoring system; (2) a rangeland water tank remote monitoring system; and (3) a battery-powered in-barn air temperature monitoring system. The first system has been tested in both lab and field conditions (at the SDSU Swine Education and Research Facility [SERF]). The other two systems have been tested in the lab. All three systems met the performance expectations regarding measurement accuracy, data transmission stability, power consumption, and durability in challenging environments. However, additional tests (e.g. extended field testing) are still needed. Those systems are subjected to further revisions. For example, the sensors selected and/or developed from Goals 1 and 2 will replace the current sensors in the prototype air quality monitoring system. However, through the successful development of the prototype systems, several key design features have been finalized, including systems architecture, communication protocols, and cybersecurity measures. This enables a solid foundation for not only the further refining of the existing systems but also the development of similar LoRaWAN-based livestock management systems.

Publications

  • Type: Conference Papers and Presentations Status: Published Year Published: 2020 Citation: Osabutey, A., and Yang, X. 2020. Assessment of low-cost particulate matter (PM) sensors for their applicability in the livestock environment. ASABE 2020 Annual Conference. (virtual). Jul 13-15.
  • Type: Conference Papers and Presentations Status: Published Year Published: 2020 Citation: Dubey, H., and Yang, X. 2020. Non-disruptive retrofitting of traditional controllers to enable remote monitoring of livestock farm operations. ASABE 2020 Annual Conference. (virtual). Jul 13-15.
  • Type: Conference Papers and Presentations Status: Published Year Published: 2020 Citation: Yang, X. 2020. IoT and its applications to CAFOs. Minnkota Annual Meeting. Sioux Falls, SD. Mar 12-13.