Segmentation-guided modeling for robust NIRS-based nutrient prediction in liquid organic manure

Heterogeneity is inherent to near-infrared spectroscopy (NIRS) in agricultural sensing and is especially severe in liquid organic manures (LOM). While chemometric models such as partial least squares regression can deliver good results under controlled conditions, individual global calibrations often deteriorate when applied to different types of manure and changing composition ranges. This study evaluates whether explicit data segmentation can improve both accuracy and robustness of NIRS-based prediction of key LOM analytes: dry matter (DM), ammonium nitrogen (NH 4 –N), total nitrogen (TN), and phosphorus (P 2 O 5 ). A dataset of 1768 LOM (cattle and pig) was analyzed. Four strategies were compared under an identical preprocessing and modeling pipeline on a fixed 80/20 split: (i) no segmentation (global calibration), (ii) label-based segmentation by LOM type, (iii) clustering-based segmentation, and (iv) gated clustering-based segmentation. To ensure practical deployability, only clusterings whose labels could be assigned from spectra with accuracy ≥ 0.80 on the validation set were retained. Across analytes, gated clustering-based segmentation yielded the most reliable predictions, reducing both systematic deviation and extreme errors relative to global and label-based baselines. For example, root mean squared error (RMSE) decreased from 0.51 to 0.35 for TN in pig and from 0.41 to 0.27 for P 2 O 5 in cattle. These gains were linked to strong spectral–chemical alignment rather than cluster tendency alone. These findings show that segmentation informed by spectral structure and composition increases accuracy and robustness of NIRS-based nutrient prediction in heterogeneous LOM. The approach extends to other high-heterogeneity NIRS use cases.

Authors

Institutions

Publication Details

Journal
Computers and Electronics in Agriculture
Published
2026-11-30
DOI
https://doi.org/10.1016/j.compag.2026.112722
Primary Topic
Spectroscopy and Chemometric Analyses
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Segmentation-guided modeling for robust NIRS-based nutrient prediction in liquid organic manure

Karl-Ludwig Krieger, Leonard Friedrich
Computers and Electronics in Agriculture
Spectroscopy and Chemometric Analyses
article

Segmentation-guided modeling for robust NIRS-based nutrient prediction in liquid organic manure

Karl-Ludwig Krieger, Leonard Friedrich
article en

Abstract

Heterogeneity is inherent to near-infrared spectroscopy (NIRS) in agricultural sensing and is especially severe in liquid organic manures (LOM). While chemometric models such as partial least squares regression can deliver good results under controlled conditions, individual global calibrations often deteriorate when applied to different types of manure and changing composition ranges. This study evaluates whether explicit data segmentation can improve both accuracy and robustness of NIRS-based prediction of key LOM analytes: dry matter (DM), ammonium nitrogen (NH 4 –N), total nitrogen (TN), and phosphorus (P 2 O 5 ). A dataset of 1768 LOM (cattle and pig) was analyzed. Four strategies were compared under an identical preprocessing and modeling pipeline on a fixed 80/20 split: (i) no segmentation (global calibration), (ii) label-based segmentation by LOM type, (iii) clustering-based segmentation, and (iv) gated clustering-based segmentation. To ensure practical deployability, only clusterings whose labels could be assigned from spectra with accuracy ≥ 0.80 on the validation set were retained. Across analytes, gated clustering-based segmentation yielded the most reliable predictions, reducing both systematic deviation and extreme errors relative to global and label-based baselines. For example, root mean squared error (RMSE) decreased from 0.51 to 0.35 for TN in pig and from 0.41 to 0.27 for P 2 O 5 in cattle. These gains were linked to strong spectral–chemical alignment rather than cluster tendency alone. These findings show that segmentation informed by spectral structure and composition increases accuracy and robustness of NIRS-based nutrient prediction in heterogeneous LOM. The approach extends to other high-heterogeneity NIRS use cases.

Computers and Electronics in AgricultureVol. 258
University of Bremen (DE)
Spectroscopy and Chemometric Analyses
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
Segmentation-guided modeling for robust NIRS-based nutrient prediction in liquid organic manure — Karl-Ludwig Krieger, Leonard Friedrich · Computers and Electronics in Agriculture (2026) | TGRS Research Map | TGRS