Related Experiment Video
Updated: Jun 13, 2026

Construction of Models for Nondestructive Prediction of Ingredient Contents in Blueberries by Near-infrared Spectroscopy Based on HPLC Measurements
Published on: June 28, 2016
Moving beyond book values: Using machine learning to improve the accuracy of manure nutrient concentration
Amitava Chatterjee1, Nancy L Bohl Bormann2
1USDA-ARS National Laboratory for Agriculture and the Environment, Ames, Iowa, USA.
None:
While animal manure is an excellent nutrient source, its high variability across farms makes static averages unreliable for crop demand. This study utilizes the ManureDB database to analyze regional variations in total nitrogen (N), phosphorus (P2O5), and potassium (K2O) across the United States, categorized by animal source and total solid content. Three machine learning (ML) models, Random Forest, Extreme Gradient Boosting, and a hybrid of the two, were used to predict total NPK concentrations using ammonium-N (NH4-N), pH, moisture percentage, region, and animal source as predictor variables. Models had higher predictability for the total N concentration (R2 = 0.8-0.9), moderate for the total P (R2 = 0.6-0.7), and lower for the total K (R2 = 0.4-0.7). Models provided better predictions for the total N in liquid manure than for solid manure and the opposite trend was observed for total K. For solid manure, animal source and NH4-N emerged as the primary factors, while moisture percentage was a secondary influence. For liquid manure, NH4-N and moisture percentage were primary predictors. Static book values often miss site-specific variations due to the complex, nonlinear interactions among manure properties. Using the ManureDB dataset, ML models use variables like NH4-N, moisture, and pH to precisely predict total NPK. This approach moves beyond traditional averages, offering a more precise tool for nutrient management when laboratory data are incomplete.