Implementation of Machine Learning for Detection of VFA Depletion

Purpose

Current bioplastic production using polyhydroxyalkanoates (PHA) is limited by production costs associated with maintaining a pure culture and using synthetic chemical-based feeds. Significant barriers for commercialization of bioplastics associated with high production costs are maintaining sterile conditions for a pure culture and the acquiring/synthesizing chemical-based feeds. This research uses a more practical approach that substitutes synthetic feeds for a more robust manure derived Volatile Fatty Acid (VFA) rich feed. VFAs are acquired from acidic fermentation of organic matter (dairy manure) and are important precursors to PHA synthesis by bacteria. Another change is the use of a mixed microbial culture (MMC) instead of a pure culture. MMCs are a collection of many types of bacteria compared to pure cultures which aim to only contain a single species. Usage of VFAs and MMCs help reduce the main drivers behind high production costs by alleviating the need for sterile conditions and expensive feeds. However, for a commercialized process there is another significant barrier that needs to be overcome. Real-time monitoring of VFAs remains elusive while being essential to commercialization. Without the ability to monitor VFAs in real-time results in the inability to confidently maximize PHA yield on VFA-based feeds. 

This research establishes a more efficient and reliable alternative to measure the concentration of VFAs in MMCs. Ensuring VFA depletion is essential to maximize PHA yield. The current method requires a methodical examination of VFA uptake by the consortium through measuring volatile suspended solids (VSS), VFA concentrations, and duration of examination (time). This is a time intensive process and is not always accurate. Without real time, measurement of VFA concentration the consortium can experience a buildup of VFAs instead of depletion as intended leading to a decrease in PHA yield. This research uses machine learning to predict the concentration of VFAs in real time, alleviates the time requirement needed, and has potential to minimize the chance of buildup instead of depletion. Additionally, using a real-time measurement strategy is more akin to a commercialized process, the end goal for PHA production. 

 What Did We Do?

The first step towards building a reliable machine learning model was to collect data that could be used to train a model. For this we used ten experimental production runs (an experiment that feeds VFA rich substrate to a mixed microbial consortium to build up PHA concentrations internally) measuring run duration, dissolved oxygen (DO), Oxidative Reduction Potential (ORP), Oxygen Uptake Rate (OUR), and Waste Activated Sludge (WAS) Concentration.  DO is the measure of oxygen dissolved in the water and OUR is the measure of the rate at which oxygen is being consumed by the consortium. ORP is the measure of how likely a medium is to give or receive electrons in a redox reaction in wastewater in can be a measure of the reactors condition (aerobic, anoxic, or anaerobic). Lastly, WAS Concentration is the measure of percent WAS used to start an experiment based on a maximum value of one liter. Using this data we also calculated some additional measurements before the data reached the model to give more insight into reactor’s condition throughout time however, these were less impactful than the variables above. This data was split into a training set (Ten out of 16 runs) and a testing set (Six out of 16 runs). With this data we utilized five main machine learning models (linear regression, support vector regression, decision tree, random forest, and neural network) to make accurate and precise predictions of VFA concentration.  

We differentiated the different models by using three primary statistics: mean squared error (MSE), mean absolute error (MAE), and r2. MSE is the average squared error between the models’ predictions and the measured concentration. MSE was chosen as it more heavily penalizes larger errors due to the squared nature of the statistic. MAE is the average error between the predicted and measured concentrations. MAE was chosen as it gives a more interpretable measure of the models’ accuracy. This metric is not influenced by large outliers and treats over and under predicted errors similarly and overall is easier to interpret compared to MSE. The r2 metric is a representation of the model’s predictive accuracy. This metric was used as it gives a numerical representation of a model’s fit to the measured concentrations   The models were evaluated using a single measurement, combination of measurements, and lastly all four measurements (Time, DO, ORP, and OUR). The optimal model was determined by the combination of model and parameters that resulted in the lowest deviation from the measured concentration and highest r2.  

 What Have We Learned?  

This research has allowed us to increase production run optimization by more accurately predicating VFA concentrations in real time. Real time prediction is the beginning step to the realization of a reliable commercialized process. Bioplastic production using PHAs is primarily limited by cost of production. Using a resource such as dairy manure to produce VFA rich substrate can minimize the production cost but without real time monitoring can lead to excess costs. The biggest benefit of using machine learning to predict VFA concentrations is its ability to minimize PHA production costs by accurately predicting VFA depletion. The model being used currently is a random forest model using all parameters (DO, ORP, OUR, WAS Concentration, etc.). Using this model on test data results in an r2 around 0.89 and MAE of 1.6 Cmmol/L with some variation depending on the testing set used. 

Future Plans

Using a machine learning model to monitor real time measurements for predicting VFA concentration is to be utilized in operating an autosampler. The model would be used to automatically take samples from and feed the production reactor with VFA rich liquor. This setup will be assembled to mirror a commercialized process in which PHA is produced autonomously with operators overseeing the process. Conducting automated production runs will allow us to investigate the upper limits of a mixed microbial consortium to produce and store PHA. This will give us insights into the optimized amount of VFA liquor to produce for a predetermined reactor volume. 

Authors

Presenting & corresponding author

Brandon M. Boyd, Research Assistant, University of Idaho, Boyd4708@vandals.uidaho.edu

Additional author

Dr. Erik Coats, Associate Professor, University of Idaho 

Acknowledgements

This research was funded by the USDA Sustainable Agricultural Systems Initiative through the Idaho Sustainable Agriculture Initiative for Dairy (ISAID) grant (Award No. 2020-69012-31871).  

I would like to acknowledge my coworkers who have helped me conduct my research, Dr. Moberly in the chemical engineering department and JR in IT for helping me with my Machine Learning model and future plans, and lastly Dr. McDonald. 

The authors are solely responsible for the content of these proceedings. The technical information does not necessarily reflect the official position of the sponsoring agencies or institutions represented by planning committee members, and inclusion and distribution herein does not constitute an endorsement of views expressed by the same. Printed materials included herein are not refereed publications. Citations should appear as follows. EXAMPLE: Authors. 2025. Title of presentation. Waste to Worth. Boise, ID. April 711, 2025. URL of this page. Accessed on: today’s date. 

 

Diet Modification to Reduce Odors, Gas Emissions and Nutrient Excretions from Swine Operations

Can Changing Pig Diets Reduce Odor Emissions?

The pork industry has undergone a rapid change in the past two decades, with a decrease in farm numbers and an increase in farm size. These changes magnify the stress of the compatibility of pork production with neighbors in rural America. Concerns of the potential impact of the swine operation on water and air quality and health are also raised due to numerous compounds often produced from anaerobic degradation of animal manures, such as, sulfurous compounds, volatile fatty acids (VFAs), and ammonia (NH3). Since the pig is the point source of excreted nutrients resulting in gas and odor emissions, diet modification has the potential to reduce nutrient output and improve air quality.

Our hypothesis is that by utilizing a low nutrient excretion diet formulation and an alternative manure management strategy, the amount of nutrient output and gas/odor emissions will be reduced over the wean-finish period.

Activities

A total of 1, 920 pigs (initial BW = 5.29 kg) were used in a 2 x 2 factorial, wean-finish experiment to determine the effects of diet (control, CTL vs. low nutrient excretion, LNE) and manure management (6 mo. deep-pit, DP vs. monthly pull plug-recharge, PP) on growth performance, nutrient output, and air quality. Pigs were housed in a 12-room environmental building.

Pigs were split-sex and phase-fed to meet or exceed their nutrient requirements (NRC, 1998) at different stages of growth. The CTL and LNE diets were corn-soybean meal based and formulated to an equal Lysine:calorie. The LNE diet formulation had reduced CP and P, increased synthetic amino acids, phytase, non-sulfur trace mineral premix and added fat. Improvements in pig performance were observed over the wean-finish period.

Did Lysine Affect Performance or Odorous Emissions?

Pigs fed the LNE diets were 4.3 kg heavier (131.2 vs. 126.9 kg) at market, gain was increased by 0.03 kg/d (0.83 vs. 0.80 kg/d), feed intake was reduced by 0.16 kg/d (1.95 vs. 2.11 kg/d), and overall feed efficiency was increased by 11.6% (0.43 vs. 0.38) compared to CTL fed pigs (P<0.01). In addition, manure generation was reduced by 0.39 L/pig/d when the LNE diets were fed vs. the CTL diets (4.05 vs. 4.44 L/pig/d, P<0.008).

Excretion of total N, P, and K was reduced (P<0.001) by 27.5, 42.5, and 20.4%, respectively, from LNE fed pigs. Pigs fed the LNE diets had a 25.5, 23.8, 32.3, 18.5, 35.8, and 26.7% reduction (P<0.05) in manure acetate, iso-butyrate, iso-valerate, valerate, and total VFA production, respectively, compared to CTL fed pigs. Using the PP manure strategy reduced manure ammonium N and VFA production by 10.3 % (16.5 vs. 18.4 g/pig/d; P<0.002) and 20.5% (26.0 vs. 32.7 mM/pig/d; P<0.001), respectively, compared to DP strategy. Pigs fed LNE diets had a 13.6% (P<0.001) reduction in aerial NH3 emissions over the wean-finish period compared to pigs fed CTL diets. Aerial H2S and SO2 emissions and odor were not different (P>0.10) between dietary treatments.

Why is This Important?

Feeding LNE diet formulations are effective in reducing environmental impacts of pork production while maintaining growth performance. In addition, utilizing a monthly pull plug-recharge manure management strategy can improve air quality parameters, however can be more labor intensive.

For More Information

Contact us at jradclif@purdue.edu or (765)496-7718.

By Scott Radcliffe, Brian Richert, Danielle Sholly, Ken Foster, Brandon Hollas, Teng Lim, Jiqin Ni, Al Heber, Alan Sutton – Purdue University

This report was prepared for the 2008 annual meeting of the regional research committee, S-1032 “Animal Manure and Waste Utilization, Treatment and Nuisance Avoidance for a Sustainable Agriculture”. This report is not peer-reviewed and the author has sole responsibility for the content.