Mengting Li , Shengbo Liu , Di Sun , Zengjun Yang , Run Zhao , Keqiang Zhang
{"title":"不同温度下奶牛场浆料中氮磷近红外光谱评价模型的构建与优化","authors":"Mengting Li , Shengbo Liu , Di Sun , Zengjun Yang , Run Zhao , Keqiang Zhang","doi":"10.1016/j.compag.2025.110782","DOIUrl":null,"url":null,"abstract":"<div><div>Near-infrared spectroscopy (NIRS) was widely used for total nitrogen (TN) and total phosphorus (TP) detection in the slurry of animal farming. However, temperature could interfere with NIRS in practical measurements, affecting the robustness of models. Therefore, we employed three methods of temperature global model (TG), external parameter orthogonalization (EPO) and genetic algorithms (GA) to mitigate the impact of temperature on model performance. We collected 365 slurry samples from a representative dairy farm in Tianjin, China. Temperature gradient experiments were implemented in the lab, setting 5 ℃ intervals within the range of 0–40 ℃. It was found that temperature had a greater influence on the TN model compared to the TP model, with higher temperature occurring greater effects. Compared to the unoptimized TN model, the TG, EPO, and GA optimized models of TN showed reductions in RMSEP ranging from −8% to 32 %, −14 % to 35 %, and −1% to 33 %, respectively. And for the unoptimized TP model, the TG, EPO, and GA optimized models of TP exhibited a decrease in RMSEP ranging from −27 % to 16 %, −33 % to 13 %, and −24 % to 9 %, respectively. The optimal method for TN was the GA method (RMSEP = 168 mg/L), while the optimal method for TP was EPO filtering (RMSEP = 69 mg/L). The ability to rapidly and accurately predict TN and TP contents in slurry under field variable temperatures offer critical technical support for optimizing slurry management, enhancing nutrient utilization efficiency, and promoting sustainable resource recycling.</div></div>","PeriodicalId":50627,"journal":{"name":"Computers and Electronics in Agriculture","volume":"237 ","pages":"Article 110782"},"PeriodicalIF":8.9000,"publicationDate":"2025-07-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Construction and optimization of a near-infrared spectroscopic model for the assessment of nitrogen and phosphorus in dairy farm slurry under different temperatures\",\"authors\":\"Mengting Li , Shengbo Liu , Di Sun , Zengjun Yang , Run Zhao , Keqiang Zhang\",\"doi\":\"10.1016/j.compag.2025.110782\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>Near-infrared spectroscopy (NIRS) was widely used for total nitrogen (TN) and total phosphorus (TP) detection in the slurry of animal farming. However, temperature could interfere with NIRS in practical measurements, affecting the robustness of models. Therefore, we employed three methods of temperature global model (TG), external parameter orthogonalization (EPO) and genetic algorithms (GA) to mitigate the impact of temperature on model performance. We collected 365 slurry samples from a representative dairy farm in Tianjin, China. Temperature gradient experiments were implemented in the lab, setting 5 ℃ intervals within the range of 0–40 ℃. It was found that temperature had a greater influence on the TN model compared to the TP model, with higher temperature occurring greater effects. Compared to the unoptimized TN model, the TG, EPO, and GA optimized models of TN showed reductions in RMSEP ranging from −8% to 32 %, −14 % to 35 %, and −1% to 33 %, respectively. And for the unoptimized TP model, the TG, EPO, and GA optimized models of TP exhibited a decrease in RMSEP ranging from −27 % to 16 %, −33 % to 13 %, and −24 % to 9 %, respectively. The optimal method for TN was the GA method (RMSEP = 168 mg/L), while the optimal method for TP was EPO filtering (RMSEP = 69 mg/L). The ability to rapidly and accurately predict TN and TP contents in slurry under field variable temperatures offer critical technical support for optimizing slurry management, enhancing nutrient utilization efficiency, and promoting sustainable resource recycling.</div></div>\",\"PeriodicalId\":50627,\"journal\":{\"name\":\"Computers and Electronics in Agriculture\",\"volume\":\"237 \",\"pages\":\"Article 110782\"},\"PeriodicalIF\":8.9000,\"publicationDate\":\"2025-07-21\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Computers and Electronics in Agriculture\",\"FirstCategoryId\":\"97\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0168169925008889\",\"RegionNum\":1,\"RegionCategory\":\"农林科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"AGRICULTURE, MULTIDISCIPLINARY\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computers and Electronics in Agriculture","FirstCategoryId":"97","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0168169925008889","RegionNum":1,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURE, MULTIDISCIPLINARY","Score":null,"Total":0}
Construction and optimization of a near-infrared spectroscopic model for the assessment of nitrogen and phosphorus in dairy farm slurry under different temperatures
Near-infrared spectroscopy (NIRS) was widely used for total nitrogen (TN) and total phosphorus (TP) detection in the slurry of animal farming. However, temperature could interfere with NIRS in practical measurements, affecting the robustness of models. Therefore, we employed three methods of temperature global model (TG), external parameter orthogonalization (EPO) and genetic algorithms (GA) to mitigate the impact of temperature on model performance. We collected 365 slurry samples from a representative dairy farm in Tianjin, China. Temperature gradient experiments were implemented in the lab, setting 5 ℃ intervals within the range of 0–40 ℃. It was found that temperature had a greater influence on the TN model compared to the TP model, with higher temperature occurring greater effects. Compared to the unoptimized TN model, the TG, EPO, and GA optimized models of TN showed reductions in RMSEP ranging from −8% to 32 %, −14 % to 35 %, and −1% to 33 %, respectively. And for the unoptimized TP model, the TG, EPO, and GA optimized models of TP exhibited a decrease in RMSEP ranging from −27 % to 16 %, −33 % to 13 %, and −24 % to 9 %, respectively. The optimal method for TN was the GA method (RMSEP = 168 mg/L), while the optimal method for TP was EPO filtering (RMSEP = 69 mg/L). The ability to rapidly and accurately predict TN and TP contents in slurry under field variable temperatures offer critical technical support for optimizing slurry management, enhancing nutrient utilization efficiency, and promoting sustainable resource recycling.
期刊介绍:
Computers and Electronics in Agriculture provides international coverage of advancements in computer hardware, software, electronic instrumentation, and control systems applied to agricultural challenges. Encompassing agronomy, horticulture, forestry, aquaculture, and animal farming, the journal publishes original papers, reviews, and applications notes. It explores the use of computers and electronics in plant or animal agricultural production, covering topics like agricultural soils, water, pests, controlled environments, and waste. The scope extends to on-farm post-harvest operations and relevant technologies, including artificial intelligence, sensors, machine vision, robotics, networking, and simulation modeling. Its companion journal, Smart Agricultural Technology, continues the focus on smart applications in production agriculture.