<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "JATS-journalpublishing1-3-mathml3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" article-type="research-article" dtd-version="1.3" xml:lang="EN">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Soil Sci.</journal-id>
<journal-title-group>
<journal-title>Frontiers in Soil Science</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Soil Sci.</abbrev-journal-title>
</journal-title-group>
<issn pub-type="epub">2673-8619</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.3389/fsoil.2026.1760011</article-id>
<article-version article-version-type="Version of Record" vocab="NISO-RP-8-2008"/>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Original Research</subject>
</subj-group>
</article-categories>
<title-group>
<article-title>Soil spectroscopy improves mid infrared soil property prediction through optimized preprocessing and variable selection</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<name><surname>Mokere</surname><given-names>Reda</given-names></name>
<xref ref-type="corresp" rid="c001"><sup>*</sup></xref>
<uri xlink:href="https://loop.frontiersin.org/people/3303715/overview"/>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="investigation" vocab-term-identifier="https://credit.niso.org/contributor-roles/investigation/">Investigation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="software" vocab-term-identifier="https://credit.niso.org/contributor-roles/software/">Software</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="validation" vocab-term-identifier="https://credit.niso.org/contributor-roles/validation/">Validation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="conceptualization" vocab-term-identifier="https://credit.niso.org/contributor-roles/conceptualization/">Conceptualization</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &amp; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-review-editing/">Writing &#x2013; review &amp; editing</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; original draft" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-original-draft/">Writing &#x2013; original draft</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Formal analysis" vocab-term-identifier="https://credit.niso.org/contributor-roles/formal-analysis/">Formal analysis</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="methodology" vocab-term-identifier="https://credit.niso.org/contributor-roles/methodology/">Methodology</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="visualization" vocab-term-identifier="https://credit.niso.org/contributor-roles/visualization/">Visualization</role>
</contrib>
<contrib contrib-type="author">
<name><surname>Ghassan</surname><given-names>Mohamed</given-names></name>
<uri xlink:href="https://loop.frontiersin.org/people/3332526/overview"/>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="methodology" vocab-term-identifier="https://credit.niso.org/contributor-roles/methodology/">Methodology</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="investigation" vocab-term-identifier="https://credit.niso.org/contributor-roles/investigation/">Investigation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="conceptualization" vocab-term-identifier="https://credit.niso.org/contributor-roles/conceptualization/">Conceptualization</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &amp; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-review-editing/">Writing &#x2013; review &amp; editing</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="validation" vocab-term-identifier="https://credit.niso.org/contributor-roles/validation/">Validation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="software" vocab-term-identifier="https://credit.niso.org/contributor-roles/software/">Software</role>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name><surname>Barra</surname><given-names>Issam</given-names></name>
<xref ref-type="corresp" rid="c001"><sup>*</sup></xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Formal analysis" vocab-term-identifier="https://credit.niso.org/contributor-roles/formal-analysis/">Formal analysis</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Project-administration" vocab-term-identifier="https://credit.niso.org/contributor-roles/project-administration/">Project administration</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="visualization" vocab-term-identifier="https://credit.niso.org/contributor-roles/visualization/">Visualization</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Data curation" vocab-term-identifier="https://credit.niso.org/contributor-roles/data-curation/">Data curation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="resources" vocab-term-identifier="https://credit.niso.org/contributor-roles/resources/">Resources</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="validation" vocab-term-identifier="https://credit.niso.org/contributor-roles/validation/">Validation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="software" vocab-term-identifier="https://credit.niso.org/contributor-roles/software/">Software</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="methodology" vocab-term-identifier="https://credit.niso.org/contributor-roles/methodology/">Methodology</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="supervision" vocab-term-identifier="https://credit.niso.org/contributor-roles/supervision/">Supervision</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Funding acquisition" vocab-term-identifier="https://credit.niso.org/contributor-roles/funding-acquisition/">Funding acquisition</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &amp; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-review-editing/">Writing &#x2013; review &amp; editing</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="investigation" vocab-term-identifier="https://credit.niso.org/contributor-roles/investigation/">Investigation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="conceptualization" vocab-term-identifier="https://credit.niso.org/contributor-roles/conceptualization/">Conceptualization</role>
</contrib>
</contrib-group>
<aff id="aff1"><institution>Center of Sustainable Soil Sciences (C3S), College of Agriculture and Environmental Science (CAES), Mohammed VI Polytechnic University (UM6P)</institution>, <city>Ben Guerir</city>,&#xa0;<country country="ma">Morocco</country></aff>
<author-notes>
<corresp id="c001"><label>*</label>Correspondence: Reda Mokere, <email xlink:href="mailto:reda.mokere@um6p.ma">reda.mokere@um6p.ma</email>; Issam Barra, <email xlink:href="mailto:Issam.barra@um6p.ma">Issam.barra@um6p.ma</email></corresp>
</author-notes>
<pub-date publication-format="electronic" date-type="pub" iso-8601-date="2026-01-28">
<day>28</day>
<month>01</month>
<year>2026</year>
</pub-date>
<pub-date publication-format="electronic" date-type="collection">
<year>2026</year>
</pub-date>
<volume>6</volume>
<elocation-id>1760011</elocation-id>
<history>
<date date-type="received">
<day>05</day>
<month>12</month>
<year>2025</year>
</date>
<date date-type="accepted">
<day>05</day>
<month>01</month>
<year>2026</year>
</date>
<date date-type="rev-recd">
<day>30</day>
<month>12</month>
<year>2025</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#xa9; 2026 Mokere, Ghassan and Barra.</copyright-statement>
<copyright-year>2026</copyright-year>
<copyright-holder>Mokere, Ghassan and Barra</copyright-holder>
<license>
<ali:license_ref start_date="2026-01-28">https://creativecommons.org/licenses/by/4.0/</ali:license_ref>
<license-p>This is an open-access article distributed under the terms of the <ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution License (CC BY)</ext-link>. The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</license-p>
</license>
</permissions>
<abstract>
<p>Mid-infrared (MIR) spectroscopy is a powerful, eco-friendly, and cost-effective technique for predicting soil property. However, its predictive accuracy can be affected by factors such as moisture content, particle size, sensor variability, and the baseline noise. To address these limitations, this study investigated the impact of combining various preprocessing techniques with variable selection methods on the performance of partial least squares regression (PLSR) models. Soil samples from the Rhamna region of Morocco were analyzed to estimate key properties, including total nitrogen (TN), total carbon (TC), total organic carbon (TOC), clay, silt, sand, moisture content (MC), pH, phosphorus (P<sub>2</sub>O<sub>5</sub>), and cation exchange capacity (CEC). Spectral data were preprocessed using methods such as standard normal variate (SNV), Savitzky&#x2013;Golay smoothing (SG smoothing), first and second derivatives (SG1D and SG2D), and their combinations (e.g., SNV + SG2D). The best-performing preprocessing combinations were then used with variable selection approaches, interval PLS (iPLS), variable importance in projection (VIP), and selectivity ratio (SR). The results indicated that Savitzky&#x2013;Golay (SG) derivatives combined with SNV generally improved model performance across most soil properties. In particular, total nitrogen (TN) prediction improved primarily with the first SG derivative, with R<sup>2</sup><sub>cv</sub> increasing from 0.82 (raw spectra) to 0.88 (SG1D), while RMSEcv decreased from 0.03% to 0.01%. Further improvements were achieved through variable selection, with iPLS providing the most consistent enhancement across properties with a very low number of features compared to the other methods. Overall, the integration of optimal preprocessing and iPLS variable selection significantly improved the predictive accuracy and robustness of partial least squares regression (PLSR) models for soil property estimation compared with the full spectrum.</p>
</abstract>
<kwd-group>
<kwd>chemometrics</kwd>
<kwd>data preprocessing</kwd>
<kwd>mid-infrared</kwd>
<kwd>soil diagnosis</kwd>
<kwd>soil spectroscopy</kwd>
<kwd>variable selection</kwd>
</kwd-group>
<funding-group>
<funding-statement>The author(s) declared that financial support was not received for this work and/or its publication.</funding-statement>
</funding-group>
<counts>
<fig-count count="5"/>
<table-count count="4"/>
<equation-count count="0"/>
<ref-count count="52"/>
<page-count count="13"/>
<word-count count="7830"/>
</counts>
<custom-meta-group>
<custom-meta>
<meta-name>section-at-acceptance</meta-name>
<meta-value>Pedometrics</meta-value>
</custom-meta>
</custom-meta-group>
</article-meta>
</front>
<body>
<sec id="s1" sec-type="intro">
<label>1</label>
<title>Introduction</title>
<p>Mid-infrared (MIR) spectroscopy has emerged as a powerful, non-destructive, eco-friendly, and low-cost soil analysis tool. It offers many advantages, such as high resolution, wide absorbance range, and strong signals, which make it popular and important in the study of soil environments (<xref ref-type="bibr" rid="B1">1</xref>). The combination of MIR data with machine learning, especially with partial least square regression as a mathematical model, is widely used to predict soil properties (<xref ref-type="bibr" rid="B2">2</xref>) and has proven excellent predictive capabilities for various properties such as total carbon, nitrogen, clay, potassium, pH, sand, and silt (<xref ref-type="bibr" rid="B3">3</xref>&#x2013;<xref ref-type="bibr" rid="B5">5</xref>).</p>
<p>However, the accuracy of soil spectroscopy models based on infrared spectral data might be impacted by several factors, such as moisture. (<xref ref-type="bibr" rid="B6">6</xref>) found that the moisture level of the studied sample impacts the accuracy of the models for different soil properties. The soil particle size was also found to be an impacting factor for model accuracy (<xref ref-type="bibr" rid="B7">7</xref>). Baseline drift and background noise are similar factors that influence the model accuracy (<xref ref-type="bibr" rid="B8">8</xref>). The data source may also impact the accuracy of the predictive models, as benchtop, mobile, and homemade sensors perform differently in predicting soil properties (<xref ref-type="bibr" rid="B9">9</xref>).</p>
<p>These factors vary significantly across soil environments, potentially affecting the robustness and transferability of commonly applied preprocessing strategies. Most existing preprocessing workflows have been developed and validated using datasets from well-studied sources, leaving uncertainties regarding their generalized applicability across diverse and underrepresented soil contexts (<xref ref-type="bibr" rid="B10">10</xref>, <xref ref-type="bibr" rid="B11">11</xref>). This highlights the need to evaluate variable selection approaches in combination with optimized preprocessing, especially for datasets originating from less-studied soil regions.</p>
<p>To overcome these challenges, data preprocessing is an efficient tool that can significantly increase the predictability of soil properties using mid-infrared spectral data (<xref ref-type="bibr" rid="B12">12</xref>). Different preprocessing methods were applied to the mid-infrared data, such as standard normal variate (SNV), normalization, Savitzky&#x2013;Golay smoothing, and 1st and 2nd derivatives. These transformative approaches have shown excellent to acceptable results when predicting soil properties using the partial least square algorithm (<xref ref-type="bibr" rid="B13">13</xref>, <xref ref-type="bibr" rid="B14">14</xref>). Likewise, combining pretreatments increases the accuracy of the predictive model (<xref ref-type="bibr" rid="B15">15</xref>); found that applying normalization after moving average is considered the best preprocessing step for MIR data to predict pH, organic carbon, Mg, and moisture content, while applying standard normal variate after moving average is the best approach to predict phosphorus. Further research by (<xref ref-type="bibr" rid="B16">16</xref>) suggests that the combination of normalization and the 1st derivative of Savitzky&#x2013;Golay leads to better partial least squares regression (PLSR) performance.</p>
<p>The model&#x2019;s development and behavior have been greatly influenced by the preprocessing techniques and combinations used; however, the variable selection is crucial to the model&#x2019;s further enhancement and accuracy, and these variable selection techniques can provide even greater prediction accuracy in a shorter computing time than the full-spectrum model (<xref ref-type="bibr" rid="B17">17</xref>). Various studies have applied variable selection, such as interval-PLS and variable importance in projection (VIP) to predict soil properties using infrared spectral data, and these approaches have demonstrated their ability to achieve strong predictive performance in the model (<xref ref-type="bibr" rid="B18">18</xref>, <xref ref-type="bibr" rid="B19">19</xref>). Nevertheless, recent work on Moroccan soils indicates that iPLS and VIP mainly contribute to model simplification rather than systematic accuracy improvements (<xref ref-type="bibr" rid="B20">20</xref>).</p>
<p>This study aimed to investigate the impact of combining preprocessing (standard normal variate, Savitzky&#x2013;Golay smoothing, 1st and 2nd derivatives) with iPLS, VIP, and selectivity ratio as variable selection methods on the prediction accuracy of the PLSR model to predict total nitrogen (TN), total carbon (TC), total organic carbon (TOC), clay, silt, sand, moisture content (MC), pH, phosphorus (P<sub>2</sub>O<sub>5</sub>), and cation exchange capacity (CEC).</p>
</sec>
<sec id="s2" sec-type="materials|methods">
<label>2</label>
<title>Materials and methods</title>
<sec id="s2_1">
<label>2.1</label>
<title>Soil sample collection and preparation</title>
<p>Fifty soil samples were collected from different locations and depths in the Rhamna region, to assess the impact of combining statistical preprocessing and variable selection methods on the prediction accuracy of some soil properties. Each soil sample was finely ground, sieved, and oven-dried at 39&#xb0;C for 48 h before analysis.</p>
</sec>
<sec id="s2_2">
<label>2.2</label>
<title>The structural framework of the study</title>
<p>The standard procedure for using spectral data to calibrate multivariate models to predict soil properties begins with the construction of a database. To ensure accuracy, one or more preprocessing techniques intended to improve the signals and reduce noise interference can be implemented. Subsequently, relevant variables were identified using suitable variable selection methods. The next stage involves developing a modeling framework and assessing the models that have been built. Statistical metrics, such as the root mean square error (RMSE) of prediction and the coefficient of correlation (R<sup>2</sup>), were used to evaluate the accuracy of these models (<xref ref-type="bibr" rid="B21">21</xref>).</p>
<p>This study aimed to examine the impact of preprocessing tools on predictive models; therefore, the procedure outlined below and in <xref ref-type="fig" rid="f1"><bold>Figure&#xa0;1</bold></xref> was adhered to. Models generated based on raw data and several preprocessing algorithms (standard normal variate, Savitzky&#x2013;Golay smoothing, Savitzky&#x2013;Golay 1st and 2nd derivatives, Savitzky&#x2013;Golay 1st derivatives coupled with SNV, and Savitzky&#x2013;Golay 2nd derivatives coupled with SNV) were evaluated. Furthermore, variable importance projection (VIP), selectivity ratio (SR), and interval-PLS (iPLS) were used to highlight important variables. The resulting data were then used to generate PLSR models to predict TN, TC, TOC, clay, silt, sand, MC, pH, P<sub>2</sub>O<sub>5</sub>, and CEC in Moroccan soils.</p>
<fig id="f1" position="float">
<label>Figure&#xa0;1</label>
<caption>
<p>Workflow for evaluating the impact of preprocessing tools and their combinations with variable selection on PLSR models for estimating soil properties.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fsoil-06-1760011-g001.tif">
<alt-text content-type="machine-generated">Flowchart depicting a process for predicting soil properties. It starts with soil samples analyzed through wet chemistry and FTIR analysis. The data undergoes chemometrics and PLSR modeling. Preprocessing techniques include SNV, SG Smoothing, SG1D, SG2D, SG1D + SNV, SNV + SG1D, and SNV + SG2D. Selection techniques are Interval-PLS (iPLS), Variable Importance in Projection (VIP), and Selectivity Ratio (SR). The final output is soil properties prediction.</alt-text>
</graphic></fig>
</sec>
<sec id="s2_3">
<label>2.3</label>
<title>Wet chemistry</title>
<p>Soil physical&#x2013;chemical properties (<xref ref-type="table" rid="T1"><bold>Table&#xa0;1</bold></xref>), such as total nitrogen (TN) via the combustion method (ISO 13878), soil total carbon (TC) via the combustion method (ISO 10694), total organic carbon (OC) (ISO 10694), sand, silt, and clay (Bouyoucos method ISO 13317), soil pH<sub>(1/5 in water)</sub> (ISO 10390), moisture (MC) using the gravimetric method (ISO 11461), available phosphorus (P<sub>2</sub>O<sub>5</sub>) using the Olsen method (ISO 11263), and the hexamine-cobalt method for cation exchange capacity (CEC) (NF ISO 23470) were analyzed in the Soil Testing Laboratories of Mohammed VI Polytechnic University (UM6P).</p>
<table-wrap id="T1" position="float">
<label>Table&#xa0;1</label>
<caption>
<p>Statistical summary of wet chemistry analysis.</p>
</caption>
<table frame="hsides">
<thead>
<tr>
<th valign="middle" align="left">Statistic</th>
<th valign="middle" align="left">TN(%)</th>
<th valign="middle" align="left">TC(%)</th>
<th valign="middle" align="left">TOC(%)</th>
<th valign="middle" align="left">Clay(%)</th>
<th valign="middle" align="left">Silt(%)</th>
<th valign="middle" align="left">Sand(%)</th>
<th valign="middle" align="left">MC(%)</th>
<th valign="middle" align="left">pH</th>
<th valign="middle" align="left">P<sub>2</sub>O<sub>5</sub> (mg/kg)</th>
<th valign="middle" align="left">CEC (meq/100 g)</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="middle" align="left">Number of samples</td>
<td valign="middle" align="right">50</td>
<td valign="middle" align="right">50</td>
<td valign="middle" align="right">50</td>
<td valign="middle" align="right">50</td>
<td valign="middle" align="right">50</td>
<td valign="middle" align="right">50</td>
<td valign="middle" align="right">50</td>
<td valign="middle" align="right">50</td>
<td valign="middle" align="right">50</td>
<td valign="middle" align="right">50</td>
</tr>
<tr>
<td valign="middle" align="left">Standard deviation</td>
<td valign="middle" align="right">0.08</td>
<td valign="middle" align="right">0.83</td>
<td valign="middle" align="right">0.32</td>
<td valign="middle" align="right">19.35</td>
<td valign="middle" align="right">10.29</td>
<td valign="middle" align="right">24.16</td>
<td valign="middle" align="right">1.82</td>
<td valign="middle" align="right">0.64</td>
<td valign="middle" align="right">40.24</td>
<td valign="middle" align="right">8.78</td>
</tr>
<tr>
<td valign="middle" align="left">Min</td>
<td valign="middle" align="right">0</td>
<td valign="middle" align="right">0.22</td>
<td valign="middle" align="right">0.2</td>
<td valign="middle" align="right">10</td>
<td valign="middle" align="right">2</td>
<td valign="middle" align="right">8</td>
<td valign="middle" align="right">0.4</td>
<td valign="middle" align="right">5.22</td>
<td valign="middle" align="right">8</td>
<td valign="middle" align="right">0.1</td>
</tr>
<tr>
<td valign="middle" align="left">Max</td>
<td valign="middle" align="right">0.45</td>
<td valign="middle" align="right">4.55</td>
<td valign="middle" align="right">1.4</td>
<td valign="middle" align="right">80</td>
<td valign="middle" align="right">38</td>
<td valign="middle" align="right">88</td>
<td valign="middle" align="right">8.51</td>
<td valign="middle" align="right">8.93</td>
<td valign="middle" align="right">207.01</td>
<td valign="middle" align="right">35.9</td>
</tr>
<tr>
<td valign="middle" align="left">Mean</td>
<td valign="middle" align="right">0.11</td>
<td valign="middle" align="right">1.34</td>
<td valign="middle" align="right">0.80</td>
<td valign="middle" align="right">34.92</td>
<td valign="middle" align="right">20.68</td>
<td valign="middle" align="right">44.4</td>
<td valign="middle" align="right">3.18</td>
<td valign="middle" align="right">8.27</td>
<td valign="middle" align="right">37.62</td>
<td valign="middle" align="right">17.83</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s2_4">
<label>2.4</label>
<title>Chemometrics analysis</title>
<sec id="s2_4_1">
<label>2.4.1</label>
<title>Data processing</title>
<p>Chemometrics is essential for fully extracting the potential of contemporary instruments (<xref ref-type="bibr" rid="B22">22</xref>). In numerous investigations, it has been used to estimate different soil parameters using spectral data, such as near- or mid-infrared data, using various types of models, such as Partial Least Square Regression (<xref ref-type="bibr" rid="B2">2</xref>). As indicated by (<xref ref-type="bibr" rid="B23">23</xref>), the PLSR is the most employed learning modeling method. It has proven to be a good mathematical model for predicting various soil properties, such as soil organic carbon, total nitrogen, cation exchange capacity, clay, sand, pH, and other properties (<xref ref-type="bibr" rid="B3">3</xref>, <xref ref-type="bibr" rid="B4">4</xref>). Predictions based on unprocessed soil sample laboratory spectra appear promising for quantitatively estimating soil chemical properties (<xref ref-type="bibr" rid="B24">24</xref>). However, the accuracy of this information can be affected by different factors, such as moisture, variations in soil roughness, and soil particle size. Therefore, data preprocessing methods that can enhance spectral information must be implemented (<xref ref-type="bibr" rid="B7">7</xref>, <xref ref-type="bibr" rid="B24">24</xref>). Numerous preprocessing techniques, including standard normal variate, Savitzky&#x2013;Golay smoothing, 1st derivative, and 2nd derivative, have been used in various studies and have demonstrated good prediction capabilities for soil properties (<xref ref-type="bibr" rid="B25">25</xref>, <xref ref-type="bibr" rid="B26">26</xref>). The standard normal variate is an easy approach for spectral data normalization that works row by row, aimed at correcting for light scattering using the formula: <inline-formula>
<mml:math display="inline" id="im1"><mml:mrow><mml:mi>S</mml:mi><mml:mi>N</mml:mi><mml:mi>V</mml:mi><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mi>x</mml:mi><mml:mi>i</mml:mi><mml:mo>&#xa0;</mml:mo><mml:mo>&#x2212;</mml:mo><mml:mo>&#xa0;</mml:mo><mml:mover accent="true"><mml:mi>x</mml:mi><mml:mo stretchy="true">&#xaf;</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>S</mml:mi><mml:mi>i</mml:mi></mml:mrow></mml:mfrac></mml:mrow></mml:math></inline-formula>, where <inline-formula>
<mml:math display="inline" id="im2"><mml:mrow><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:mrow></mml:math></inline-formula> represents the signal of the observation, <inline-formula>
<mml:math display="inline" id="im3"><mml:mrow><mml:mover accent="true"><mml:mi>x</mml:mi><mml:mo stretchy="true">&#xaf;</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:mrow></mml:math></inline-formula> is its mean, and <inline-formula>
<mml:math display="inline" id="im4"><mml:mrow><mml:mi>S</mml:mi><mml:mi>i</mml:mi></mml:mrow></mml:math></inline-formula> is its standard deviation (<xref ref-type="bibr" rid="B27">27</xref>).</p>
<p>The derivation of Savitzky&#x2013;Golay pre-processing is one of the most extensively utilized drift-noise reduction strategies. The first and second are two orders, each with a special role. The second derivative is recommended to address the effect of the offset and linear trend of the baseline, while the first is intended only for a constant baseline effect (<xref ref-type="bibr" rid="B28">28</xref>). The Savitzky&#x2013;Golay derivative uses the same procedure as the Savitzky&#x2013;Golay smoothing described by (<xref ref-type="bibr" rid="B29">29</xref>), but with an added step. The derivative of this function is calculated after fitting the polynomial to a window around the moving point. This value was then used as the derivative estimate for the central point (<xref ref-type="bibr" rid="B29">29</xref>).</p>
</sec>
<sec id="s2_4_2">
<label>2.4.2</label>
<title>Variable selection</title>
<p>In areas where datasets with many variables are available, variable and feature selection has attracted considerable interest in the research community. The variable selection process has many advantages, such as enhancing data comprehension and visualization, lowering the need for measurement and storage, shortening the time needed for application and training, and reducing the impact of dimensionality to increase prediction accuracy (<xref ref-type="bibr" rid="B30">30</xref>). The use of some variable techniques, such as variable selection with interval-PLS (iPLS) and variable importance in projection (VIP), has proven to be more effective and increases the accuracy of the model (<xref ref-type="bibr" rid="B31">31</xref>, <xref ref-type="bibr" rid="B32">32</xref>). The selectivity ratio is also beneficial for increasing predictive accuracy by concentrating on a small, highly relevant subset of variables (<xref ref-type="bibr" rid="B33">33</xref>).</p>
</sec>
<sec id="s2_4_3">
<label>2.4.3</label>
<title>Variable selection with interval</title>
<p>Interval partial least squares (iPLS) is an approach for finding intervals of variables that are highly important for prediction. The algorithm splits the variables (predictors) into intervals and attempts to find the best combination of intervals that has the highest predictive accuracy. This interval selection can be performed using two methods: forward and backward. The forward method is when the intervals are included successively, whereas the backward method is when the intervals are excluded successively (<xref ref-type="bibr" rid="B34">34</xref>). In this study, forward iPLS was applied to the data after selecting the optimal preprocessing on R.</p>
</sec>
<sec id="s2_4_4">
<label>2.4.4</label>
<title>Variable importance in projection</title>
<p>Variable importance in projection-partial least squares (VIP-PLS) is a multivariate statistical methodology employed to evaluate the significance of individual indicators in influencing an aggregate index. The primary objective of VIP-PLS is to establish a hierarchical ranking of indicators based on their respective degrees of importance to an aggregate index. This facilitates a clear understanding of the relative contributions of individuals (<xref ref-type="bibr" rid="B35">35</xref>). The VIP score is calculated using the following equation: <inline-formula>
<mml:math display="inline" id="im5"><mml:mrow><mml:msub><mml:mrow><mml:mi>V</mml:mi><mml:mi>I</mml:mi><mml:mi>P</mml:mi></mml:mrow><mml:mi>j</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msqrt><mml:mrow><mml:mfrac><mml:mrow><mml:msubsup><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>f</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mi>F</mml:mi></mml:msubsup><mml:msubsup><mml:mi>W</mml:mi><mml:mrow><mml:mi>j</mml:mi><mml:mi>f</mml:mi></mml:mrow><mml:mn>2</mml:mn></mml:msubsup><mml:mo>&#xb7;</mml:mo><mml:msub><mml:mrow><mml:mi>S</mml:mi><mml:mi>S</mml:mi><mml:mi>Y</mml:mi></mml:mrow><mml:mrow><mml:mi>f</mml:mi><mml:mo>&#xb7;</mml:mo></mml:mrow></mml:msub><mml:mi>J</mml:mi></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>S</mml:mi><mml:mi>S</mml:mi><mml:mi>Y</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>o</mml:mi><mml:mi>t</mml:mi><mml:mi>a</mml:mi><mml:mi>l</mml:mi><mml:mo>&#xb7;</mml:mo></mml:mrow></mml:msub><mml:mi>F</mml:mi></mml:mrow></mml:mfrac></mml:mrow></mml:msqrt></mml:mrow></mml:math></inline-formula>, where w<sub>jf</sub> represents the weight value for j variable and f component, SSY<sub>f</sub> is the sum of squares of explained variance for the <italic>f</italic>th component, and J is the number of X variables. SSY<sub>total</sub> is the total sum of squares explained by the dependent variable, and F is the total number of components (<xref ref-type="bibr" rid="B36">36</xref>).</p>
</sec>
<sec id="s2_4_5">
<label>2.4.5</label>
<title>Selectivity ratio</title>
<p>The selectivity ratio is the ratio of the explained variance to the residual variance for each variable in a dataset, which is calculated after applying a target projection in a multivariate analysis. This ratio is based on the ability of a variable to discriminate between the different groups of samples. A high selectivity ratio indicates that a variable has a strong discriminative advantage (<xref ref-type="bibr" rid="B37">37</xref>). The selectivity ratio is defined as follows: <inline-formula>
<mml:math display="inline" id="im6"><mml:mrow><mml:mi>S</mml:mi><mml:msub><mml:mi>R</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mi>S</mml:mi><mml:msub><mml:mi>S</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mo>&#xa0;</mml:mo><mml:mi>e</mml:mi><mml:mi>x</mml:mi><mml:mi>p</mml:mi><mml:mi>l</mml:mi><mml:mi>a</mml:mi><mml:mi>i</mml:mi><mml:mi>n</mml:mi><mml:mi>e</mml:mi><mml:mi>d</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mi>S</mml:mi><mml:msub><mml:mi>S</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mo>&#xa0;</mml:mo><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:mi>s</mml:mi><mml:mi>i</mml:mi><mml:mi>d</mml:mi><mml:mi>u</mml:mi><mml:mi>a</mml:mi><mml:mi>l</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mrow></mml:math></inline-formula>. The SS<sub>i,residual</sub> represents the portion of the variance of variable <italic>i</italic> that is explained by the target projection component, that is, the part aligned with the PLS regression direction. In contrast, SS<sub>i,residual</sub> denotes the remaining or unexplained variance of that variable after subtracting the target-projected part (the residual variance in the model). Therefore, the ratio quantifies the relevance of each variable&#x2019;s variance to prediction versus residual noise, with higher SR values indicating greater predictive importance (<xref ref-type="bibr" rid="B36">36</xref>).</p>
</sec>
</sec>
<sec id="s2_5">
<label>2.5</label>
<title>Spectra collection and preprocessing</title>
<p>The spectral data acquisition was done at the soil spectroscopy laboratory of the Center of Sustainable Soil Sciences (C3S) Mohammed VI Polytechnic University (UM6P) of the Mohammed VI Polytechnic University, using a Bruker Tensor II bench-top spectrometer coupled with the Diffuse reflectance infrared Fourier transform spectroscopy (DRIFT) technology. The generated spectra were an average of 60 scans from each sample, at the 4,000 and 600 cm<sup>&#x2212;1</sup> range, with a 4 cm<sup>&#x2212;1</sup> resolution.</p>
<p>Prediction models were built using the entire FTIR spectra measured for the soil samples. Nine groups of PLS models were established, namely raw spectral data, SNV, SG smoothing (polynomial order = 0 and number of windows = 3), 1st SG derivative (polynomial order = 1, number of windows = 3, and derivative order = 1), 2nd SG derivative (polynomial order = 2, number of windows = 15, and derivative order = 2), SNV coupled with 1st SG derivative, 1st SG derivative coupled with SNV, 2nd SG derivative coupled with SNV, and SNV coupled with 2nd SG derivative data. The optimal number of wavelengths was identified by evaluating multiple configurations, with selection based on predictive accuracy. These models were validated using leave-one-out cross-validation (<xref ref-type="bibr" rid="B38">38</xref>), R<sup>2</sup>, and the root mean square error (RMSE<sub>cv</sub>), which were calculated to evaluate the accuracy of each model. Based on these metrics, the best prediction model was selected to apply iPLS, VIP, and SR as variable selection techniques. PLSR modeling was conducted in the R environment using the <italic>mdatools</italic> package (<xref ref-type="bibr" rid="B39">39</xref>). Spectral preprocessing was performed using <italic>prospectr</italic> (<xref ref-type="bibr" rid="B40">40</xref>) and variable selection techniques were implemented using the <italic>plsVarSel</italic> package (<xref ref-type="bibr" rid="B41">41</xref>).</p>
<p>To test whether the optimal preprocessing combined with variable selection has improved the model performance, a paired, non-parametric Wilcoxon signed-rank test on cross-validation metrics (R<sup>2</sup><sub>cv</sub> and RMSE<sub>cv</sub>) comparing raw with the optimal preprocessing combined with best variable selection approaches (&#x3b1; = 0.05) (<xref ref-type="bibr" rid="B42">42</xref>, <xref ref-type="bibr" rid="B43">43</xref>). The tests were performed collectively across all 10 soil properties.</p>
</sec>
</sec>
<sec id="s3" sec-type="results">
<label>3</label>
<title>Results and discussion</title>
<sec id="s3_1">
<label>3.1</label>
<title>Raw data</title>
<p><xref ref-type="fig" rid="f2"><bold>Figure&#xa0;2</bold></xref> illustrates the FTIR spectra of the soil samples for raw data and after each preprocessing technique. The raw spectra show all the studied samples&#x2019; original features, divided into four regions. The first, from 4,000 cm<sup>&#x2212;1</sup> to 2,500 cm<sup>&#x2212;1</sup> is characterized by single bond stretch (C&#x2013;N, C&#x2013;H, O&#x2013;H), the second, is located between 2,500 and 2,000 cm<sup>&#x2212;1</sup> which represents the triple bond (C&#x2261;N). Double bonds can be found in the third region, which starts from 2,000 cm<sup>&#x2212;1</sup> to 1,500 cm<sup>&#x2212;1</sup>. The last region between 1,500 cm<sup>&#x2212;1</sup> and 400 cm<sup>&#x2212;1</sup> is defined as the fingerprint zone (C&#x2013;C, C&#x2013;O, C&#x2013;N) (<xref ref-type="bibr" rid="B44">44</xref>). As shown in <xref ref-type="table" rid="T2"><bold>Table&#xa0;2</bold></xref>, the prediction model built using PLSR on raw data yielded good predictions for TN (R<sup>2</sup><sub>cv</sub> = 0.82), TC (R<sup>2</sup><sub>cv</sub> = 0.88), clay (R<sup>2</sup><sub>cv</sub> = 0.81), silt (R<sup>2</sup><sub>cv</sub> = 0.82), and MC (R<sup>2</sup><sub>cv</sub> = 0.8), and acceptable predictions for sand (R<sup>2</sup><sub>cv</sub> = 0.79), TOC (R<sup>2</sup><sub>cv</sub> = 0.87), pH (R<sup>2</sup><sub>cv</sub> = 0.66), and P<sub>2</sub>O<sub>5</sub> (R<sup>2</sup><sub>cv</sub> = 0.6), whereas CEC was poorly predicted (R<sup>2</sup><sub>cv</sub> = 0.46).</p>
<fig id="f2" position="float">
<label>Figure&#xa0;2</label>
<caption>
<p>FTIR spectra of the soil samples before preprocessing and after applying different statistical pretreatment methods (SNV, SG smoothing, Savitzky&#x2013;Golay 1st and 2nd derivatives. SNV coupled with Savitzky&#x2013;Golay 1st derivative, Savitzky&#x2013;Golay 1st derivative coupled with SNV, Savitzky&#x2013;Golay 2nd derivative coupled with SNV, and SNV coupled with Savitzky&#x2013;Golay 2nd derivative).</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fsoil-06-1760011-g002.tif">
<alt-text content-type="machine-generated">Nine graphs showing various spectral data transformations with absorbance versus wavenumber. Top row: raw data, standard normal variate, Savitzky-Golay smoothing. Middle row: Savitzky-Golay first and second derivatives, standard normal variate plus first derivative. Bottom row: first derivative plus standard normal variate, second derivative plus normal variate, standard normal variate plus second derivative. Graphs display varying effects on spectral data.</alt-text>
</graphic></fig>
<table-wrap id="T2" position="float">
<label>Table&#xa0;2</label>
<caption>
<p>Table of merit of the prediction of (TN), total carbon (TC), total organic carbon (TOC), clay, silt, sand, moisture (MC), pH, phosphorus (P<sub>2</sub>O<sub>5</sub>), and cations exchange capacity (CEC) using medium infrared (MIR) data and preprocessing data with the application of iPLS, VIP, and SR.</p>
</caption>
<table frame="hsides">
<thead>
<tr>
<th valign="middle" colspan="11" align="left">Prediction of soil properties using preprocessing techniques</th>
</tr>
<tr>
<th valign="middle" rowspan="2" align="left">Soil properties</th>
<th valign="middle" colspan="2" align="left">Raw data</th>
<th valign="middle" colspan="2" align="left">SNV</th>
<th valign="middle" colspan="2" align="left">SG smoothing</th>
<th valign="middle" colspan="2" align="left">SG1D</th>
<th valign="middle" colspan="2" align="left">SG2D</th>
</tr>
<tr>
<th valign="middle" align="left">RMSE<sub>cv</sub></th>
<th valign="middle" align="left">R<sup>2</sup><sub>cv</sub></th>
<th valign="middle" align="left">RMSE<sub>cv</sub></th>
<th valign="middle" align="left">R<sup>2</sup><sub>cv</sub></th>
<th valign="middle" align="left">RMSE<sub>cv</sub></th>
<th valign="middle" align="left">R<sup>2</sup><sub>cv</sub></th>
<th valign="middle" align="left">RMSE<sub>cv</sub></th>
<th valign="middle" align="left">R<sup>2</sup><sub>cv</sub></th>
<th valign="middle" align="left">RMSE<sub>cv</sub></th>
<th valign="middle" align="left">R<sup>2</sup><sub>cv</sub></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="middle" align="left">TN (%)</td>
<td valign="middle" align="right">0.03</td>
<td valign="middle" align="right">0.82</td>
<td valign="middle" align="right">0.036</td>
<td valign="middle" align="right">0.8</td>
<td valign="middle" align="right">0.03</td>
<td valign="middle" align="right">0.81</td>
<td valign="middle" align="right"><bold>0.01</bold></td>
<td valign="middle" align="right"><bold>0.88</bold></td>
<td valign="middle" align="right">0.02</td>
<td valign="middle" align="right">0.87</td>
</tr>
<tr>
<td valign="middle" align="left">TC (%)</td>
<td valign="middle" align="right"><bold>0.27</bold></td>
<td valign="middle" align="right"><bold>0.88</bold></td>
<td valign="middle" align="right">0.29</td>
<td valign="middle" align="right">0.87</td>
<td valign="middle" align="right">0.28</td>
<td valign="middle" align="right">0.88</td>
<td valign="middle" align="right">0.3</td>
<td valign="middle" align="right">0.86</td>
<td valign="middle" align="right">0.31</td>
<td valign="middle" align="right">0.85</td>
</tr>
<tr>
<td valign="middle" align="left">TOC (%)</td>
<td valign="middle" align="right">0.14</td>
<td valign="middle" align="right">0.78</td>
<td valign="middle" align="right">0.15</td>
<td valign="middle" align="right">0.76</td>
<td valign="middle" align="right">0.14</td>
<td valign="middle" align="right">0.77</td>
<td valign="middle" align="right">0.13</td>
<td valign="middle" align="right">0.8</td>
<td valign="middle" align="right">0.14</td>
<td valign="middle" align="right">0.78</td>
</tr>
<tr>
<td valign="middle" align="left">Clay (%)</td>
<td valign="middle" align="right">8.12</td>
<td valign="middle" align="right">0.81</td>
<td valign="middle" align="right">7.93</td>
<td valign="middle" align="right">0.82</td>
<td valign="middle" align="right">8.25</td>
<td valign="middle" align="right">0.81</td>
<td valign="middle" align="right">7.17</td>
<td valign="middle" align="right">0.85</td>
<td valign="middle" align="right">7.33</td>
<td valign="middle" align="right">0.82</td>
</tr>
<tr>
<td valign="middle" align="left">Silt (%)</td>
<td valign="middle" align="right">4.28</td>
<td valign="middle" align="right">0.82</td>
<td valign="middle" align="right">4.07</td>
<td valign="middle" align="right">0.62</td>
<td valign="middle" align="right">4.27</td>
<td valign="middle" align="right">0.82</td>
<td valign="middle" align="right">4.02</td>
<td valign="middle" align="right">0.84</td>
<td valign="middle" align="right">3.74</td>
<td valign="middle" align="right">0.6</td>
</tr>
<tr>
<td valign="middle" align="left">Sand (%)</td>
<td valign="middle" align="right">10.78</td>
<td valign="middle" align="right">0.79</td>
<td valign="middle" align="right">10.78</td>
<td valign="middle" align="right">0.79</td>
<td valign="middle" align="right">11.04</td>
<td valign="middle" align="right">0.78</td>
<td valign="middle" align="right">9.78</td>
<td valign="middle" align="right">0.83</td>
<td valign="middle" align="right">9.48</td>
<td valign="middle" align="right">0.84</td>
</tr>
<tr>
<td valign="middle" align="left">MC (%)</td>
<td valign="middle" align="right">0.79</td>
<td valign="middle" align="right">0.8</td>
<td valign="middle" align="right">0.79</td>
<td valign="middle" align="right">0.8</td>
<td valign="middle" align="right">0.82</td>
<td valign="middle" align="right">0.78</td>
<td valign="middle" align="right">0.69</td>
<td valign="middle" align="right">0.85</td>
<td valign="middle" align="right">0.7</td>
<td valign="middle" align="right">0.84</td>
</tr>
<tr>
<td valign="middle" align="left">pH</td>
<td valign="middle" align="right">0.36</td>
<td valign="middle" align="right">0.66</td>
<td valign="middle" align="right">0.35</td>
<td valign="middle" align="right">0.69</td>
<td valign="middle" align="right">0.39</td>
<td valign="middle" align="right">0.61</td>
<td valign="middle" align="right">0.33</td>
<td valign="middle" align="right">0.71</td>
<td valign="middle" align="right">0.35</td>
<td valign="middle" align="right">0.68</td>
</tr>
<tr>
<td valign="middle" align="left">P<sub>2</sub>O<sub>5</sub> (mg/kg)</td>
<td valign="middle" align="right">24.98</td>
<td valign="middle" align="right">0.6</td>
<td valign="middle" align="right"><bold>24.29</bold></td>
<td valign="middle" align="right"><bold>0.62</bold></td>
<td valign="middle" align="right">24.74</td>
<td valign="middle" align="right">0.61</td>
<td valign="middle" align="right">26.87</td>
<td valign="middle" align="right">0.54</td>
<td valign="middle" align="right">28.23</td>
<td valign="middle" align="right">0.49</td>
</tr>
<tr>
<td valign="middle" align="left">CEC (meq/100 g)</td>
<td valign="middle" align="right">6.37</td>
<td valign="middle" align="right">0.46</td>
<td valign="middle" align="right">6.26</td>
<td valign="middle" align="right">0.48</td>
<td valign="middle" align="right">6.37</td>
<td valign="middle" align="right">0.46</td>
<td valign="middle" align="right">5.83</td>
<td valign="middle" align="right">0.54</td>
<td valign="middle" align="right">5.76</td>
<td valign="middle" align="right">0.55</td>
</tr>
</tbody>
<tbody>
<tr>
<th valign="middle" rowspan="2" align="left">Soil properties</th>
<th valign="middle" colspan="2" align="left">SNV + SG1D</th>
<th valign="middle" colspan="2" align="left">SG1D + SNV</th>
<th valign="middle" colspan="2" align="left"/>
<th valign="middle" colspan="2" align="left">SG2D + SNV</th>
<th valign="middle" colspan="2" align="left">SNV + SG2D</th>
</tr>
<tr>
<th valign="middle" align="left">RMSE<sub>cv</sub></th>
<th valign="middle" align="left">R<sup>2</sup><sub>cv</sub></th>
<th valign="middle" align="left">RMSE<sub>cv</sub></th>
<th valign="middle" align="left">R<sup>2</sup><sub>cv</sub></th>
<th valign="middle" align="left"/>
<th valign="middle" align="left"/>
<th valign="middle" align="left">RMSE<sub>cv</sub></th>
<th valign="middle" align="left">R<sup>2</sup><sub>cv</sub></th>
<th valign="middle" align="left">RMSE<sub>cv</sub></th>
<th valign="middle" align="left">R<sup>2</sup><sub>cv</sub></th>
</tr>
<tr>
<td valign="middle" align="left">TN (%)</td>
<td valign="middle" align="right">0.03</td>
<td valign="middle" align="right">0.85</td>
<td valign="middle" align="right">0.03</td>
<td valign="middle" align="right">0.83</td>
<td valign="middle" align="right"/>
<td valign="middle" align="left"/>
<td valign="middle" align="right">0.03</td>
<td valign="middle" align="right">0.85</td>
<td valign="middle" align="right">0.02</td>
<td valign="middle" align="right">0.88</td>
</tr>
<tr>
<td valign="middle" align="left">TC (%)</td>
<td valign="middle" align="right">0.31</td>
<td valign="middle" align="right">0.85</td>
<td valign="middle" align="right">0.32</td>
<td valign="middle" align="right">0.84</td>
<td valign="middle" align="right"/>
<td valign="middle" align="left"/>
<td valign="middle" align="right">0.35</td>
<td valign="middle" align="right">0.81</td>
<td valign="middle" align="right">0.31</td>
<td valign="middle" align="right">0.85</td>
</tr>
<tr>
<td valign="middle" align="left">TOC (%)</td>
<td valign="middle" align="right">0.13</td>
<td valign="middle" align="right">0.81</td>
<td valign="middle" align="right"><bold>0.13</bold></td>
<td valign="middle" align="right"><bold>0.81</bold></td>
<td valign="middle" align="right"/>
<td valign="middle" align="left"/>
<td valign="middle" align="right">0.14</td>
<td valign="middle" align="right">0.76</td>
<td valign="middle" align="right">0.14</td>
<td valign="middle" align="right">0.78</td>
</tr>
<tr>
<td valign="middle" align="left">Clay (%)</td>
<td valign="middle" align="right">7.21</td>
<td valign="middle" align="right">0.85</td>
<td valign="middle" align="right"><bold>7.04</bold></td>
<td valign="middle" align="right"><bold>0.86</bold></td>
<td valign="middle" align="right"/>
<td valign="middle" align="left"/>
<td valign="middle" align="right">7.05</td>
<td valign="middle" align="right">0.86</td>
<td valign="middle" align="right">7.34</td>
<td valign="middle" align="right">0.85</td>
</tr>
<tr>
<td valign="middle" align="left">Silt (%)</td>
<td valign="middle" align="right">3.89</td>
<td valign="middle" align="right">0.86</td>
<td valign="middle" align="right">4.1</td>
<td valign="middle" align="right">0.83</td>
<td valign="middle" align="right"/>
<td valign="middle" align="left"/>
<td valign="middle" align="right">3.8</td>
<td valign="middle" align="right">0.86</td>
<td valign="middle" align="right"><bold>3.72</bold></td>
<td valign="middle" align="right"><bold>0.86</bold></td>
</tr>
<tr>
<td valign="middle" align="left">Sand (%)</td>
<td valign="middle" align="right">9.36</td>
<td valign="middle" align="right">0.84</td>
<td valign="middle" align="right">9.4</td>
<td valign="middle" align="right">0.84</td>
<td valign="middle" align="right"/>
<td valign="middle" align="left"/>
<td valign="middle" align="right">9.28</td>
<td valign="middle" align="right">0.84</td>
<td valign="middle" align="right"><bold>8.87</bold></td>
<td valign="middle" align="right"><bold>0.86</bold></td>
</tr>
<tr>
<td valign="middle" align="left">MC (%)</td>
<td valign="middle" align="right">0.68</td>
<td valign="middle" align="right">0.85</td>
<td valign="middle" align="right"><bold>0.67</bold></td>
<td valign="middle" align="right"><bold>0.85</bold></td>
<td valign="middle" align="right"/>
<td valign="middle" align="left"/>
<td valign="middle" align="right">0.69</td>
<td valign="middle" align="right">0.85</td>
<td valign="middle" align="right">0.68</td>
<td valign="middle" align="right">0.85</td>
</tr>
<tr>
<td valign="middle" align="left">pH</td>
<td valign="middle" align="right"><bold>0.32</bold></td>
<td valign="middle" align="right"><bold>0.73</bold></td>
<td valign="middle" align="right">0.37</td>
<td valign="middle" align="right">0.66</td>
<td valign="middle" align="right"/>
<td valign="middle" align="left"/>
<td valign="middle" align="right">0.41</td>
<td valign="middle" align="right">0.58</td>
<td valign="middle" align="right">0.36</td>
<td valign="middle" align="right">0.67</td>
</tr>
<tr>
<td valign="middle" align="left">P<sub>2</sub>O<sub>5</sub> (mg/kg)</td>
<td valign="middle" align="right">26.98</td>
<td valign="middle" align="right">0.57</td>
<td valign="middle" align="right">24.65</td>
<td valign="middle" align="right">0.63</td>
<td valign="middle" align="right"/>
<td valign="middle" align="left"/>
<td valign="middle" align="right">26.15</td>
<td valign="middle" align="right">0.56</td>
<td valign="middle" align="right">27.16</td>
<td valign="middle" align="right">0.53</td>
</tr>
<tr>
<td valign="middle" align="left">CEC (meq/100g)</td>
<td valign="middle" align="right">5.87</td>
<td valign="middle" align="right">0.54</td>
<td valign="middle" align="right">5.93</td>
<td valign="middle" align="right">0.53</td>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="right"><bold>5.52</bold></td>
<td valign="middle" align="right"><bold>0.59</bold></td>
<td valign="middle" align="right">6.62</td>
<td valign="middle" align="right">0.58</td>
</tr>
</tbody>
<tbody>
<tr>
<th valign="middle" colspan="11" align="left">Prediction of soil properties using the combination of optimal preprocessing and variable selection approaches</th>
</tr>
<tr>
<th valign="middle" rowspan="2" align="center">Soil properties</th>
<th valign="middle" colspan="3" align="center">iPLS</th>
<th valign="middle" colspan="4" align="center">VIP</th>
<th valign="middle" colspan="3" align="center">SR</th>
</tr>
<tr>
<th valign="middle" align="center">RMSE<sub>cv</sub></th>
<th valign="middle" align="center">R<sup>2</sup><sub>cv</sub></th>
<th valign="middle" align="center">NI</th>
<th valign="middle" align="center">RMSE<sub>cv</sub></th>
<th valign="middle" align="center">R<sup>2</sup><sub>cv</sub></th>
<th valign="middle" colspan="2" align="center">threshold</th>
<th valign="middle" align="center">RMSE<sub>cv</sub></th>
<th valign="middle" align="center">R<sup>2</sup><sub>cv</sub></th>
<th valign="middle" align="center">threshold</th>
</tr>
<tr>
<td valign="middle" align="left">TN (%)</td>
<td valign="middle" align="right"><bold>0.02</bold></td>
<td valign="middle" align="right"><bold>0.9</bold></td>
<td valign="middle" align="right"><bold>45</bold></td>
<td valign="middle" align="right">0.02</td>
<td valign="middle" align="right">0.89</td>
<td valign="middle" align="right"/>
<td valign="middle" align="right">0.45</td>
<td valign="middle" align="right"><italic>Na</italic></td>
<td valign="middle" align="right"><italic>Na</italic></td>
<td valign="middle" align="right"><italic>Na</italic></td>
</tr>
<tr>
<td valign="middle" align="left">TC (%)</td>
<td valign="middle" align="right"><bold>0.2</bold></td>
<td valign="middle" align="right"><bold>0.93</bold></td>
<td valign="middle" align="right"><bold>55</bold></td>
<td valign="middle" align="right">0.24</td>
<td valign="middle" align="right">0.91</td>
<td valign="middle" align="right"/>
<td valign="middle" align="right">0.6</td>
<td valign="middle" align="right">0.21</td>
<td valign="middle" align="right">0.93</td>
<td valign="middle" align="right">0.15</td>
</tr>
<tr>
<td valign="middle" align="left">TOC (%)</td>
<td valign="middle" align="right"><bold>0.09</bold></td>
<td valign="middle" align="right"><bold>0.9</bold></td>
<td valign="middle" align="right"><bold>110</bold></td>
<td valign="middle" align="right">0.13</td>
<td valign="middle" align="right">0.82</td>
<td valign="middle" align="right"/>
<td valign="middle" align="right">0.6</td>
<td valign="middle" align="right">0.13</td>
<td valign="middle" align="right">0.82</td>
<td valign="middle" align="right">0.03</td>
</tr>
<tr>
<td valign="middle" align="left">Clay (%)</td>
<td valign="middle" align="right"><bold>6.51</bold></td>
<td valign="middle" align="right"><bold>0.88</bold></td>
<td valign="middle" align="right"><bold>88</bold></td>
<td valign="middle" align="right"><italic>Na</italic></td>
<td valign="middle" align="right"><italic>Na</italic></td>
<td valign="middle" align="right"/>
<td valign="middle" align="right"><italic>Na</italic></td>
<td valign="middle" align="right"><italic>Na</italic></td>
<td valign="middle" align="right"><italic>Na</italic></td>
<td valign="middle" align="right"><italic>Na</italic></td>
</tr>
<tr>
<td valign="middle" align="left">Silt (%)</td>
<td valign="middle" align="right"><bold>3.13</bold></td>
<td valign="middle" align="right"><bold>0.9</bold></td>
<td valign="middle" align="right"><bold>60</bold></td>
<td valign="middle" align="right">3.5</td>
<td valign="middle" align="right">0.88</td>
<td valign="middle" align="right"/>
<td valign="middle" align="right">1.5</td>
<td valign="middle" align="right">3.52</td>
<td valign="middle" align="right">0.88</td>
<td valign="middle" align="right">0.09</td>
</tr>
<tr>
<td valign="middle" align="left">Sand (%)</td>
<td valign="middle" align="right"><bold>7.22</bold></td>
<td valign="middle" align="right"><bold>0.9</bold></td>
<td valign="middle" align="right"><bold>40</bold></td>
<td valign="middle" align="right">7.69</td>
<td valign="middle" align="right">0.89</td>
<td valign="middle" align="right"/>
<td valign="middle" align="right">2</td>
<td valign="middle" align="right">8.28</td>
<td valign="middle" align="right">0.88</td>
<td valign="middle" align="right">1.2</td>
</tr>
<tr>
<td valign="middle" align="left">MC (%)</td>
<td valign="middle" align="right"><bold>0.52</bold></td>
<td valign="middle" align="right"><bold>0.91</bold></td>
<td valign="middle" align="right"><bold>50</bold></td>
<td valign="middle" align="right"><italic>Na</italic></td>
<td valign="middle" align="right"><italic>Na</italic></td>
<td valign="middle" align="right"/>
<td valign="middle" align="right"><italic>Na</italic></td>
<td valign="middle" align="right"><italic>Na</italic></td>
<td valign="middle" align="right"><italic>Na</italic></td>
<td valign="middle" align="right"><italic>Na</italic></td>
</tr>
<tr>
<td valign="middle" align="left">pH</td>
<td valign="middle" align="right"><bold>0.19</bold></td>
<td valign="middle" align="right"><bold>0.91</bold></td>
<td valign="middle" align="right"><bold>66</bold></td>
<td valign="middle" align="right">0.31</td>
<td valign="middle" align="right">0.75</td>
<td valign="middle" align="right"/>
<td valign="middle" align="right">2</td>
<td valign="middle" align="right"><italic>Na</italic></td>
<td valign="middle" align="right"><italic>Na</italic></td>
<td valign="middle" align="right"><italic>Na</italic></td>
</tr>
<tr>
<td valign="middle" align="left">P<sub>2</sub>O<sub>5</sub> (mg/kg)</td>
<td valign="middle" align="right"><bold>22</bold></td>
<td valign="middle" align="right"><bold>0.69</bold></td>
<td valign="middle" align="right"><bold>150</bold></td>
<td valign="middle" align="right"><italic>Na</italic></td>
<td valign="middle" align="right"><italic>Na</italic></td>
<td valign="middle" align="right"/>
<td valign="middle" align="right"><italic>Na</italic></td>
<td valign="middle" align="right">24.01</td>
<td valign="middle" align="right">0.63</td>
<td valign="middle" align="right">0.04</td>
</tr>
<tr>
<td valign="middle" align="left">CEC (meq/100 g)</td>
<td valign="middle" align="right"><bold>4.08</bold></td>
<td valign="middle" align="right"><bold>0.77</bold></td>
<td valign="middle" align="right"><bold>70</bold></td>
<td valign="middle" align="right">4.32</td>
<td valign="middle" align="right">0.75</td>
<td valign="middle" align="left"/>
<td valign="middle" align="right">3.6</td>
<td valign="middle" align="right">4.43</td>
<td valign="middle" align="right">0.73</td>
<td valign="middle" align="right">2</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<fn>
<p>NI, number of intervals; threshold, threshold of the weighted regression coefficient; SNV, standard normal variate; SG smoothing, Savitzky&#x2013;Golay smoothing; SG1, Savitzky&#x2013;Golay 1st derivative; SG2, Savitzky&#x2013;Golay 2nd derivative; VIP, variable importance in projection; iPLS, interval-PLS; <italic>Na</italic>, No improvement and the techniques could not result better metrics or maintain the optimal preprocessing models&#x2019; metrics; cv, cross validation. Bold values denote the best performance metrics and represent the selected models used in combination with variable selection approaches.</p></fn>
</table-wrap-foot>
</table-wrap>
</sec>
<sec id="s3_2">
<label>3.2</label>
<title>Preprocessed data</title>
<p>As shown in <xref ref-type="fig" rid="f2"><bold>Figure&#xa0;2</bold></xref>, after the application of preprocessing, the spectra become different. The spectra shapes after SNV preprocessing seem similar, the spectra become tightly grouped and follow a consistent baseline, with a decrease in inter-sample variation, showing that these processes have scaled it to a common range and maintained the spectra. SG smoothing is expected to smooth the spectra and reduce the noise while preserving the peaks; however, this preprocessing does not seem to have any impact on the spectra because the raw spectra and SG smoothing spectra seem to be similar.</p>
<p>For the SG 1st derivative, the changes in absorption are highlighted, and the peaks become more pronounced, helping to observe spaced spectral features. The positions of the absorption changes positions are easier to identify, and the baseline of the derivative spectra tends to be flatter and closer to zero, despite the spectra being noisier. The 2nd derivative exhibited the same changes, except that it corrected the baseline drift more effectively and exaggerated some data points, making them noisier than the 1st derivative.</p>
<p>When the 1st derivative is applied to the SNV, the noise increases compared to the raw data, and the peaks are more pronounced when the baseline is corrected and a cleaner and more detailed representation of spectral variations is obtained. After the reverse procedure (applying SNV to the 1st derivative), properties similar to those in the previous plot appear, but the 1st derivative applied to the SNV is more effective in reducing the variability.</p>
<p>After applying the SNV to the 2nd derivative, the baseline was corrected with highlighted peaks. When applying the 2nd derivative to the SNV, this preprocessing yielded a more detailed spectrum with improved resolution. The slope differences and baseline drift were corrected compared to the raw data, while the previous preprocessing was still better at correcting the baseline drift. Small peaks were highlighted by low-frequency noise.</p>
</sec>
<sec id="s3_3">
<label>3.3</label>
<title>Soil property prediction</title>
<p>The analysis involves 12 developed models (raw data, SNV, SG Smoothing, SG1D, SG2D, SNV + SG1D, SG1D + SNV, SG2D + SNV, SNV + SG2D, iPLS, VIP, and SR) for each property from the studied 10 soil properties (TN, TC, TOC, clay, silt, sand, MC, pH, P<sub>2</sub>O<sub>5</sub>, and CEC), with each model&#x2019;s predictive accuracy assessed through R&#xb2; and RMSE, while the selection of the optimal preprocessing for variable selection application was done using two criteria, the R&#xb2; and RMSE and model complexity.</p>
<sec id="s3_3_1">
<label>3.3.1</label>
<title>Total nitrogen</title>
<p>The results of predicting TN using PLS and different preprocessing methods showed that the Savitzky&#x2013;Golay 1st derivative was the preprocessing method that yielded the best prediction, with an R<sup>2</sup><sub>cv</sub> of 0.88 and an RMSE<sub>cv</sub> of 0.01%. Savitzky&#x2013;Golay 2nd derivative, SNV coupled with SG1D, SG1D coupled with SNV, and SNV with SG2D also yielded a good prediction higher than the raw data prediction ranging between 0.85 and 0.88 for the R<sup>2</sup><sub>cv</sub> and 0.02% and 0.03% for the RMSE<sub>cv</sub>, respectively. SNV and SG smoothing yielded good predictions but were lower than the raw data (R<sup>2</sup><sub>cv</sub> &lt;0.8 and RMSE<sub>cv</sub> = 0.03%).</p>
</sec>
<sec id="s3_3_2">
<label>3.3.2</label>
<title>Total carbon</title>
<p>All preprocessing techniques employed did not show any improvement and generated R<sup>2</sup><sub>cv</sub> below the R squared of the raw data, except Savitzky&#x2013;Golay smoothing, which yielded similar results with an R<sup>2</sup><sub>cv</sub> of 0.88 and an RMSE<sub>cv</sub> (0.28%) higher than the RMSE<sub>cv</sub> of the raw data. The inconsistent performance observed for total carbon using raw MIR spectra likely reflects fundamental spectroscopic limitations rather than deficiencies in model calibration. Total carbon includes both organic and inorganic carbon fractions, which exhibit different MIR spectral behaviors. Organic carbon is mainly associated with broad and chemically informative absorption features, whereas inorganic carbonates show more specific bands that may overlap with organic signals (<xref ref-type="bibr" rid="B45">45</xref>, <xref ref-type="bibr" rid="B46">46</xref>).</p>
<p>Consequently, raw spectra may already capture the dominant organic carbon information, whereas common preprocessing techniques can unintentionally suppress or distort these broad features. This likely explains why preprocessing did not improve and, in some cases, reduced the predictive performance compared with the raw spectra.</p>
</sec>
<sec id="s3_3_3">
<label>3.3.3</label>
<title>Total organic carbon</title>
<p>The combination of Savitzky&#x2013;Golay&#x2019;s 1st derivative and SNV yielded good predictions for total organic carbon (R<sup>2</sup><sub>cv</sub> = 0.81, RMSE<sub>cv</sub> = 0.13%), with a better calibration performance of SNV applied to SG1D (SG1D + SNV). Savitzky&#x2013;Golay&#x2019;s 2nd derivative and SG2D applied to SNV resulted in the same predictive performance as the raw data models (R<sup>2</sup><sub>cv</sub> = 0.78, RMSE<sub>cv</sub> = 0.14%). Conversely, SNV, SG smoothing, and SG2D + SNV generated acceptable results (0.76 &lt; R<sup>2</sup><sub>cv</sub> &lt; 0.77, 0.14% &lt; RMSE<sub>cv</sub> &lt; 0.15%) but did not show any improvement in predictive performance (lower than the raw data).</p>
</sec>
<sec id="s3_3_4">
<label>3.3.4</label>
<title>Clay</title>
<p>The results of predicting clay content using PLS and various preprocessing methods highlighted that SG1D + SNV was the optimal preprocessing method with the highest R<sup>2</sup><sub>cv</sub> (0.86) and lowest RMSE<sub>cv</sub> (7.04%). SNV, SG1D, SG2D, SNV + SG1D, SG2D + SNV, and SNV + SG2D also exhibited good predictive performance, with an R<sup>2</sup><sub>cv</sub> higher than and an RMSE<sub>cv</sub> lower than the raw data. SG smoothing demonstrated an R<sup>2</sup><sub>cv</sub> similar to raw data (0.81) but higher RMSE<sub>cv</sub> (8.25%).</p>
</sec>
<sec id="s3_3_5">
<label>3.3.5</label>
<title>Silt</title>
<p>With an R&#xb2; value of 0.86 and an RMSE<sub>cv</sub> of 3.72%, the application of Savitzky&#x2013;Golay 2nd derivative after applying SNV (SNV + SG2D) produced the highest accuracy in the silt content prediction results utilizing PLS. With R<sup>2</sup><sub>cv</sub> values of 0.81 and a slight difference in the RMSE<sub>cv</sub> (4.27%), Savitzky&#x2013;Golay smoothing had a predictive performance similar to that of the raw data. The SG1D, SNV + SG1D, SG1D + SNV, and SG2D + SNV techniques also elevated R<sup>2</sup><sub>cv</sub> to 0.86 and lowered RMSE<sub>cv</sub> to 3.8%. In contrast, SNV and SG2D did not improve the predictive accuracy of the model and yielded inferior R<sup>2</sup><sub>cv</sub> and RMSE<sub>cv</sub> values of R<sup>2</sup><sub>cv</sub> = 0.62, RMSE<sub>cv</sub> = 4.07%, and R<sup>2</sup><sub>cv</sub> = 0.6, RMSE<sub>cv</sub> = 3.74%, respectively.</p>
</sec>
<sec id="s3_3_6">
<label>3.3.6</label>
<title>Sand</title>
<p>As shown in <xref ref-type="table" rid="T2"><bold>Table&#xa0;2</bold></xref>, the results of the sand content prediction using PLS and multiple preprocessing methods showed that the SNV + SG2D combination yielded the highest R<sup>2</sup><sub>cv</sub> and the lowest RMSE<sub>cv</sub>, 0.86% and 8.87%, respectively. Savitzky&#x2013;Golay&#x2019;s 1st and 2nd derivatives, SNV + SG1D, SG1D + SNV, and SG2D + SNV also yielded good prediction performance and higher than the raw data with an RMSE<sub>cv</sub> of 9.78%, 9.48%, 9.36%, 9.4%, and 9.28%, respectively, and an R<sup>2</sup><sub>cv</sub> of 0.83 for SG1D and 0.84 for the other preprocessing methods. SNV did not improve the prediction, resulting in similar results as the raw data (R<sup>2</sup><sub>cv</sub> = 0.79, RMSE<sub>cv</sub> = 10.78%). In contrast to all the previous preprocessing methods, SG smoothing lowered R<sup>2</sup><sub>cv</sub> to 0.78 and elevated RMSE<sub>cv</sub> to 11.04%, suggesting that smoothing is unsuitable for the prediction of sand in this context.</p>
</sec>
<sec id="s3_3_7">
<label>3.3.7</label>
<title>Moisture content</title>
<p>All the derivative preprocessing and their combination with SNV improved the prediction accuracy of the moisture content, with R<sup>2</sup><sub>cv</sub> ranging between 0.8 and 0.85 and RMSE<sub>cv</sub> between 0.68% and 0.7%. The highest R<sup>2</sup><sub>cv</sub> (0.85) and lowest RMSE<sub>cv</sub> (0.67%) were generated by SG1D + SNV, ranking it as the best preprocessing methods to predict MC in this context. SNV alone could not enhance the model&#x2019;s predictive accuracy and delivered results similar to raw data (R<sup>2</sup><sub>cv</sub> = 0.8, RMSE<sub>cv</sub> = 0.79%). In contrast, SG smoothing increased the RMSE<sub>cv</sub> to 0.82% and decreased the R<sup>2</sup><sub>cv</sub> to 0.78.</p>
</sec>
<sec id="s3_3_8">
<label>3.3.8</label>
<title>pH</title>
<p>The performance metrics showed that SG smoothing and SG2D + SNV decreased the predictive performance of the model compared to the raw data model, with R<sup>2</sup><sub>cv</sub> values of 0.61 and 0.58 and RMSE<sub>cv</sub> values of 0.39 and 0.41, respectively. The SG1D + SNV also decreased the predictive performance, even though this preprocessing yielded a similar R<sup>2</sup><sub>cv</sub> (0.66) to the raw data but a higher RMSE<sub>cv</sub> (0.37), which led to a higher predictive error. In contrast, SNV + SG2D generated a similar RMSE<sub>cv</sub> but a higher R<sup>2</sup><sub>cv</sub> (0.67). The remaining preprocessing methods (SNV, SG1D, SG2D, and SNV + SG1D) improved the model performance by lowering the RMSE<sub>cv</sub> and increasing the R<sup>2</sup><sub>cv</sub>, suggesting SNV + SG1D as the optimal preprocessing method for predicting pH (R<sup>2</sup><sub>cv</sub> = 0.73, RMSE<sub>cv</sub> = 0.32).</p>
</sec>
<sec id="s3_3_9">
<label>3.3.9</label>
<title>Phosphorus</title>
<p>Overall, none of the used preprocessing methods improved or at least maintained the predictive raw data model, except for SNV and SG smoothing, which showed better performance and nearly identical results (R<sup>2</sup><sub>cv</sub> = 0.62 and RMSE<sub>cv</sub> = 24.29 mg/kg for SNV and R<sup>2</sup><sub>cv</sub> = 0.61 and RMSE<sub>cv</sub> = 24.74 mg/kg). The low MIR prediction accuracy obtained for soil phosphorus agrees with previous studies reporting unreliable spectroscopic prediction of phosphorus due to its weak association with MIR-active soil components (<xref ref-type="bibr" rid="B47">47</xref>).</p>
</sec>
<sec id="s3_3_10">
<label>3.3.10</label>
<title>Cation exchange capacity</title>
<p>In contrast to phosphorus, all preprocessing improved the prediction accuracy of the CEC model, except for SG smoothing, which yielded results similar to those of the raw model&#x2019;s metrics (R<sup>2</sup><sub>cv</sub> = 0.46, RMSE<sub>cv</sub> = 6.3 meq/100 g). The results also show that the best preprocessing for CEC prediction using PLSR is SG2D + SNV, with the highest R<sup>2</sup><sub>cv</sub> (0.59) and the lowest RMSE<sub>cv</sub> (5.52 meq/100 g). The moderate predictive performance obtained for CEC can be explained by the limitations of MIR spectroscopy. The cation exchange capacity is not spectrally active, and its prediction relies on indirect correlations with clay mineralogy and soil organic matter rather than direct absorption features (<xref ref-type="bibr" rid="B48">48</xref>). explicitly highlights this limitation, showing that accurate MIR-based CEC prediction is strongly dependent on the dataset size and modeling strategy.</p>
<p>Overall, the results presented in <xref ref-type="table" rid="T2"><bold>Tables&#xa0;2</bold></xref>, <xref ref-type="table" rid="T3"><bold>3</bold></xref> suggest that the application of Savitzky-Golay (SG) preprocessing, either alone or in combination with standard normal variate (SNV), improves the model performance for most soil properties. However, the order of SNV (applying SNV to the derivative or applying the derivative to the SNV) plays a crucial role in decreasing or increasing the model performance. This combination yielded strong predictive performance for most soil parameters, indicating that it was the most effective preprocessing technique tested, except for TN, TC, and P<sub>2</sub>O<sub>5</sub>. SNV and Savitzky&#x2013;Golay derivatives and their combination offered the best results for different soil properties and for different regression techniques (partial least squares, support vector regression, cubist, and convolutional neural networks), as proven in a similar study by (<xref ref-type="bibr" rid="B49">49</xref>). In a study by (<xref ref-type="bibr" rid="B50">50</xref>), the optimal preprocessing to develop a model for total nitrogen monitoring <italic>in situ</italic> and in-door for different depths and the optimal preprocessing combinations for the best-performing models (both indoor and <italic>in situ</italic>) consistently included Standard Normal Variate and derivative preprocessing. Other studies have found other optimal preprocessing combinations to predict soil properties; however, their optimal combination always includes derivative pretreatment, which highlights its role in improving model accuracy (<xref ref-type="bibr" rid="B26">26</xref>, <xref ref-type="bibr" rid="B51">51</xref>).</p>
<table-wrap id="T3" position="float">
<label>Table&#xa0;3</label>
<caption>
<p>Optimal preprocessing with RMSE<sub>cv</sub> and R<sup>2</sup><sub>cv</sub> for each soil property.</p>
</caption>
<table frame="hsides">
<thead>
<tr>
<th valign="middle" align="left">Soil properties</th>
<th valign="middle" align="left">Optimal preprocessing</th>
<th valign="middle" align="left">RMSE<sub>cv</sub></th>
<th valign="middle" align="left">R<sup>2</sup><sub>cv</sub></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="middle" align="left">TN (%)</td>
<td valign="middle" align="left">SG1</td>
<td valign="middle" align="right">0.01</td>
<td valign="middle" align="right">0.88</td>
</tr>
<tr>
<td valign="middle" align="left">TC (%)</td>
<td valign="middle" align="left">Raw</td>
<td valign="middle" align="right">0.27</td>
<td valign="middle" align="right">0.88</td>
</tr>
<tr>
<td valign="middle" align="left">TOC (%)</td>
<td valign="middle" align="left">SG1 + SNV</td>
<td valign="middle" align="right">0.13</td>
<td valign="middle" align="right">0.81</td>
</tr>
<tr>
<td valign="middle" align="left">Clay (%)</td>
<td valign="middle" align="left">SG1 + SNV</td>
<td valign="middle" align="right">7.04</td>
<td valign="middle" align="right">0.86</td>
</tr>
<tr>
<td valign="middle" align="left">Silt (%)</td>
<td valign="middle" align="left">SNV + SG2</td>
<td valign="middle" align="right">3.72</td>
<td valign="middle" align="right">0.86</td>
</tr>
<tr>
<td valign="middle" align="left">Sand (%)</td>
<td valign="middle" align="left">SNV + SG2</td>
<td valign="middle" align="right">8.87</td>
<td valign="middle" align="right">0.86</td>
</tr>
<tr>
<td valign="middle" align="left">MC (%)</td>
<td valign="middle" align="left">SG1 + SNV</td>
<td valign="middle" align="right">0.67</td>
<td valign="middle" align="right">0.85</td>
</tr>
<tr>
<td valign="middle" align="left">pH</td>
<td valign="middle" align="left">SNV + SG1</td>
<td valign="middle" align="right">0.32</td>
<td valign="middle" align="right">0.73</td>
</tr>
<tr>
<td valign="middle" align="left">P<sub>2</sub>O<sub>5</sub> (mg/kg)</td>
<td valign="middle" align="left">SNV</td>
<td valign="middle" align="right">24.29</td>
<td valign="middle" align="right">0.62</td>
</tr>
<tr>
<td valign="middle" align="left">CEC (meq/100 g)</td>
<td valign="middle" align="left">SG2 + SNV</td>
<td valign="middle" align="right">5.52</td>
<td valign="middle" align="right">0.59</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
</sec>
<sec id="s3_4">
<label>3.4</label>
<title>Preprocessed data with variable selection</title>
<sec id="s3_4_1">
<label>3.4.1</label>
<title>Interval partial least square variable selection</title>
<p>The R<sup>2</sup><sub>cv</sub> and RMSE<sub>cv</sub> of the models generated by the combination of optimal preprocessing and iPLS indicated a high level of prediction ability for most soil parameters, with an R<sup>2</sup><sub>cv</sub> over 90% for TN, TC, TOC, silt, sand, MC, and pH, and an R<sup>2</sup><sub>cv</sub> of 77% for CEC and 67% for P<sub>2</sub>O<sub>5</sub>, as illustrated in <xref ref-type="fig" rid="f3"><bold>Figure&#xa0;3</bold></xref>. The resulting RMSE<sub>cv</sub> was lower than that of the raw data and optimal preprocessing. <xref ref-type="fig" rid="f4"><bold>Figure&#xa0;4</bold></xref> illustrates that the selected intervals varied for different soil properties. Sand required the fewest intervals, utilizing 40 intervals. In contrast, P<sub>2</sub>O<sub>5</sub> required the highest number of intervals (150). The remaining properties, TN, TC, TOC, Clay, silt, MC, pH, and CEC, required 45, 55, 110, 88, 60, 50, 66, and 70 intervals, respectively. These results indicate that the combination of iPLS and optimal preprocessing can improve the predictive accuracy of soil properties. <xref ref-type="table" rid="T2"><bold>Table&#xa0;2</bold></xref> and <xref ref-type="fig" rid="f3"><bold>Figure&#xa0;3</bold></xref> show that the predictive performance improved for nearly all properties in this methodological integration. These values represent some of the highest accuracies among the preprocessing methods employed in this study. Demonstrating the robustness of the optimal preprocessing + iPLS method.</p>
<fig id="f3" position="float">
<label>Figure&#xa0;3</label>
<caption>
<p>Reference vs. predicted values of different PLSR models for the prediction of total nitrogen (TN), total carbon (TC), total organic carbon (TOC), clay, silt, sand, moisture (MC), pH, phosphorus (P<sub>2</sub>O<sub>5</sub>), and cations exchange capacity (CEC) after the application of the optimal preprocessing and interval-PLS.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fsoil-06-1760011-g003.tif">
<alt-text content-type="machine-generated">Scatter plots displaying predicted versus observed values for various soil properties: Total Nitrogen (TN), Total Carbon (TC), Total Organic Carbon (TOC), Clay, Silt, Sand, Moisture Content (MC), pH, Phosphorus Pentoxide (P2O5), and Cation Exchange Capacity (CEC). Each plot shows a diagonal line indicating perfect prediction, with scattered data points around this line. Statistics such as number of latent variables (nLV), root mean square error (RMSE), and coefficient of determination (R&#xb2;) are included in each plot.</alt-text>
</graphic></fig>
<fig id="f4" position="float">
<label>Figure&#xa0;4</label>
<caption>
<p>Selected intervals of total nitrogen (TN), total carbon (TC), total organic carbon (TOC), clay, silt, sand, moisture (MC), pH, phosphorus (P<sub>2</sub>O<sub>5</sub>), and cations exchange capacity (CEC) after the application of Savitzky&#x2013;Golay 1st derivate and iPLS.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fsoil-06-1760011-g004.tif">
<alt-text content-type="machine-generated">Figure 4 presents multiple graphs for the selected spectral intervals corresponding to TN, TC, TOC, Clay, Silt, Sand, MC, pH, P&#x2082;O&#x2085;, and CEC. Each graph highlights the spectral region that yields the lowest RMSECV among all tested intervals, indicating the best predictive performance when used individually in a PLS model. This optimal interval is interpreted as containing the most relevant and concentrated spectral information for predicting the target variable, whereas intervals associated with higher RMSECV values are considered less informative or more affected by noise.</alt-text>
</graphic></fig>
</sec>
<sec id="s3_4_2">
<label>3.4.2</label>
<title>Variable importance in projection</title>
<p>Improved predictive accuracy for the studied soil attributes was also achieved by applying the variable importance in projection variable selection method to the optimal preprocessing, except for clay, moisture content, and phosphorus, which did not show any improvement using this technique. As shown in <xref ref-type="table" rid="T2"><bold>Table&#xa0;2</bold></xref>, VIP showed excellent predictive accuracy for TC with an R<sup>2</sup><sub>cv</sub> of 0.91 and an RMSE<sub>cv</sub> of 0.24%, and good predictive accuracy for TN, TOC, silt, and sand, with an R<sup>2</sup><sub>cv</sub> ranging between 0.82 and 0.89. In comparison, pH and CEC exhibited acceptable accuracy with an R<sup>2</sup><sub>cv</sub> of 0.75 and an RMSE<sub>cv</sub> of 0.31 for pH and 4.32% for CEC.</p>
</sec>
<sec id="s3_4_3">
<label>3.4.3</label>
<title>Selectivity ratio</title>
<p>Compared to VIP and iPLS, SR was not the best technique for improving the predictive accuracy of soil properties, as it did not show any improvement in total nitrogen, moisture content, clay, and pH. SR showed improved predictive accuracy of total organic carbon and silt with nearly similar R<sup>2</sup><sub>cv</sub> and RMSE<sub>cv</sub> of VIP. The same case was observed for total carbon, but the R<sup>2</sup><sub>cv</sub> and RMSE<sub>cv</sub> values were nearly similar to those of iPLS. Sand, P<sub>2</sub>O<sub>5</sub>, and CEC were improved using SR, with R<sup>2</sup><sub>cv</sub> values of 0.88, 0.63, and 0.73 and an RMSE<sub>cv</sub> of 8.28%, 24.01%, and 4.43%, respectively.</p>
<p>Overall, the combination of optimal preprocessing with variable selection techniques has been shown to be effective in improving the accuracy of the developed models by increasing R<sup>2</sup><sub>cv</sub> and decreasing the models&#x2019; errors. However, when comparing the variable selection techniques, iPLS outperformed both VIP and SR. The iPLS method improved the metrics of all the properties. In contrast, VIP and SR could not improve certain properties, particularly the moisture content. In addition, the improvement rate of iPLS was higher than that of the other techniques (lowest RMSE<sub>cv</sub> and highest R<sup>2</sup><sub>cv</sub>). In terms of model complexity, as illustrated in <xref ref-type="fig" rid="f5"><bold>Figure&#xa0;5</bold></xref>, SR and VIP selected larger wavelength intervals, whereas iPLS selected shorter intervals, which means a less complex model. iPLS selected a lower number of intervals for some properties, such as total carbon, but for others, such as pH, a high number of intervals was needed to improve accuracy. <xref ref-type="table" rid="T4"><bold>Table&#xa0;4</bold></xref> lists the intervals selected by iPLS and the number of selected wavenumbers for each property. Spectral interval selection using iPLS was conducted on the preprocessed data. As preprocessing methods modify the physical meaning of individual wavelengths, the selected intervals were used to optimize predictive performance and reduce model complexity rather than for direct chemical interpretation, which should be approached with caution when feature selection is applied (<xref ref-type="bibr" rid="B52">52</xref>). The proportion of selected MIR wavenumbers differed substantially among soil properties, highlighting the contrasting levels of spectral redundancy and information density. MC required the largest fraction of the spectrum (68.74%), indicating that predictive information for this property is distributed across the broad MIR regions. In contrast, properties such as P<sub>2</sub>O<sub>5</sub> and clay were characterized by very limited spectral selections (3.15% and 5.50%, respectively), suggesting that their predictive signals are concentrated within narrow intervals. Intermediate selection levels were observed for organic-related properties (TN, TC, TOC), pH, and CEC, indicating an equilibrium between spectral coverage and reduced model complexity.</p>
<fig id="f5" position="float">
<label>Figure&#xa0;5</label>
<caption>
<p>Selected MIR wavenumber ranges by variable selection techniques (iPLS, VIP, and SR). (When the technique is written in red it means that this technique could not show any improvement.).</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fsoil-06-1760011-g005.tif">
<alt-text content-type="machine-generated">The graph illustrates the spectral ranges selected for different soil attributes: CEC, P&#x2082;O&#x2085;, pH, MC, Sand, Silt, Clay, TOC, TC, and TN, using three variable selection techniques. Each attribute is plotted against wavenumbers ranging from 500 to 4000 cm&#x207b;&#xb9;, with distinct colors representing the SR, VIP, and iPLS methods, allowing a direct comparison of the spectral regions identified as most informative by each approach.</alt-text>
</graphic></fig>
<table-wrap id="T4" position="float">
<label>Table&#xa0;4</label>
<caption>
<p>Medium infrared wavelength ranges selected by iPLS of total nitrogen (TN), total carbon (TC), total organic carbon (TOC), clay, silt, sand, moisture (MC), pH, phosphorus (P<sub>2</sub>O<sub>5</sub>), and cations exchange capacity (CEC), from an initial set of 2,380 MIR wavenumbers (3,997 cm<sup>&#x2212;1&#x2013;</sup>600 cm<sup>&#x2212;1</sup>).</p>
</caption>
<table frame="hsides">
<thead>
<tr>
<th valign="middle" align="left">Soil properties</th>
<th valign="middle" align="left">Number of selected wavenumbers</th>
<th valign="middle" align="left">Percentage (%)</th>
<th valign="middle" align="left">Ranges (cm<sup>&#x2212;</sup>&#xb9;)</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="middle" align="left">TN</td>
<td valign="middle" align="left">687</td>
<td valign="middle" align="left">28.86%</td>
<td valign="middle" align="left">674.04&#x2013;746.87, 1,046.77&#x2013;1,121.03, 1,198.14&#x2013;1,272.4, 1,349.52&#x2013;1,423.78, 1,576.58&#x2013;1,726.53, 2,409.15&#x2013;2,483.41, 2,938.96&#x2013;3,164.59, 3,317.4&#x2013;3,391.66, 3,468.77&#x2013;3,618.72</td>
</tr>
<tr>
<td valign="middle" align="left">TC</td>
<td valign="middle" align="left">255</td>
<td valign="middle" align="left">10.71%</td>
<td valign="middle" align="left">1,029.63&#x2013;1,212.43, 2,441.99&#x2013;2,501.97, 2,626.21&#x2013;2,686.19, 3,244.57&#x2013;3,305.97</td>
</tr>
<tr>
<td valign="middle" align="left">TOC</td>
<td valign="middle" align="left">211</td>
<td valign="middle" align="left">8.87%</td>
<td valign="middle" align="left">694.04&#x2013;724.03, 819.71&#x2013;849.70, 2,139.24&#x2013;2,169.23, 2,202.08&#x2013;2,232.07, 2,799.01&#x2013;2,829, 2,924.68&#x2013;2,954.67, 3,176.02&#x2013;3,237.43, 3,333.11&#x2013;3,363.10, 3,835.79&#x2013;3,865.78</td>
</tr>
<tr>
<td valign="middle" align="left">Clay</td>
<td valign="middle" align="left">131</td>
<td valign="middle" align="left">5.50%</td>
<td valign="middle" align="left">754.02&#x2013;791.149, 1,717.96&#x2013;1,755.09, 1,872.19&#x2013;1,909.32, 3,414.51&#x2013;3,451.64, 3,958.6&#x2013;3,997.16</td>
</tr>
<tr>
<td valign="middle" align="left">Silt</td>
<td valign="middle" align="left">234</td>
<td valign="middle" align="left">9.83%</td>
<td valign="middle" align="left">989.65&#x2013;1,043.91, 1,942.17&#x2013;1,997.86, 3,141.75&#x2013;3,197.44, 3,484.48&#x2013;3,540.18, 3,884.34&#x2013;3,997.16</td>
</tr>
<tr>
<td valign="middle" align="left">Sand</td>
<td valign="middle" align="left">234</td>
<td valign="middle" align="left">9.83%</td>
<td valign="middle" align="left">989.65&#x2013;1,043.91, 1,942.17&#x2013;1,997.86, 3,141.75&#x2013;3,197.44, 3,484.48&#x2013;3,540.18, 3,884.34&#x2013;3,997.16</td>
</tr>
<tr>
<td valign="middle" align="left">MC</td>
<td valign="middle" align="left">1,636</td>
<td valign="middle" align="left">68.74%</td>
<td valign="middle" align="left">801.14&#x2013;866.83, 1,203.86&#x2013;1,269.55, 1,539.45&#x2013;1,605.14, 1,942.17&#x2013;2,283.48, 696.19&#x2013;2,831.85, 3,176.02&#x2013;3,243.14, 3,381.66&#x2013;3,448.78, 3,587.30&#x2013;3,654.42</td>
</tr>
<tr>
<td valign="middle" align="left">pH</td>
<td valign="middle" align="left">389</td>
<td valign="middle" align="left">16.35%</td>
<td valign="middle" align="left">1,165.30&#x2013;1,215.28, 2,347.74&#x2013;2,449.13, 2,656.2&#x2013;2,809, 3,016.08&#x2013;3,117.47, 3,221.72&#x2013;3,271.7, 3,581.59&#x2013;3,631.57, 3,735.82&#x2013;3,785.8</td>
</tr>
<tr>
<td valign="middle" align="left">P<sub>2</sub>O<sub>5</sub></td>
<td valign="middle" align="left">75</td>
<td valign="middle" align="left">3.15%</td>
<td valign="middle" align="left">754.02&#x2013;775.44, 982.51&#x2013;1,003.93, 1,690.83&#x2013;1,712.25, 2,627.64&#x2013;2,649.06, 3,701.55&#x2013;3,722.97</td>
</tr>
<tr>
<td valign="middle" align="left">CEC</td>
<td valign="middle" align="left">366</td>
<td valign="middle" align="left">15.38%</td>
<td valign="middle" align="left">1,619.42&#x2014;1,666.55, 2,299.19&#x2013;2,394.87, 2,590.51&#x2013;2,637.64, 3,027.50&#x2013;3,074.63, 3,173.16&#x2013;3,268.84, 3,415.93&#x2013;3,463.06, 3,513.04&#x2013;3,560.17, 3,852.92&#x2013;3,948.6</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>To assess whether the improvement in model performance after variable selection was statistically significant, a two-sided Wilcoxon signed-rank test was conducted on the cross-validated R<sup>2</sup> values before and after applying the iPLS (&#x3b1; = 0.05). The test revealed a significant increase in predictive accuracy following iPLS variable selection (V = 55, <italic>p</italic> = 0.0029), confirming that the observed improvement in the R<sup>2</sup><sub>cv</sub> values was statistically significant. This supports the effectiveness of iPLS in enhancing the PLSR model performance.</p>
<p>The application of iPLS in the present study has proven to boost model accuracy and reduce model complexity. In parallel research by (<xref ref-type="bibr" rid="B34">34</xref>), the iPLS performed comparably to other variable selection methods (principal variables, forward stepwise selection, and recursively weighted regression), but the iPLS demonstrated its power in optimizing the prediction model compared to the full spectrum Partial Least Squares; this technique offers a beneficial advantage which is the graphical output that enhances data interpretation. The results of this study demonstrated the combination of optimal preprocessing with variable selection improves the predictive accuracy of the model, but when choosing the optimal preprocessing and optimal variable selection techniques, a better predictive performance is achieved, lowering the error of the model. The studied techniques (iPLS, VIP, and SR) are not commonly used in soil spectroscopy, which opens the window for further research and application and can guide future research in developing robustness and testing other preprocessing and variable selection techniques.</p>
</sec>
</sec>
</sec>
<sec id="s4" sec-type="conclusions">
<label>4</label>
<title>Conclusion</title>
<p>This study demonstrates that pairing mid&#x2212;infrared spectroscopy with preprocessing and variable&#x2212;selection strategies can substantially improve partial least squares regression (PLSR) models for routine soil diagnosis. This confirms the hypothesis that using preprocessing techniques, especially Savitzky&#x2013;Golay derivatives combined with standard normal variate and variable selection approaches, such as interval Partial Least Squares, improves the predictive capability of the models.</p>
<p>With the iPLS pipeline, cross&#x2212;validated coefficients of determination reached approximately 0.90 for TN, TC, TOC, silt, sand, MC, and pH (pH R<sup>2</sup><sub>cv</sub> = 0.91 with RMSE<sub>cv</sub> = 0.19), while CEC and P<sub>2</sub>O<sub>5</sub> remained moderate (R<sup>2</sup><sub>cv</sub> = 0.77 and 0.69, respectively), highlighting both the promise and limitations of MIR&#x2212;based prediction in this dataset.</p>
<p>All models were evaluated with leave&#x2212;one&#x2212;out cross&#x2212;validation, and the observed improvements from combining optimal preprocessing with variable selection were assessed using paired Wilcoxon signed&#x2212;rank tests on fold&#x2212;wise metrics (&#x3b1; = 0.05) that further confirmed that the improvements achieved through iPLS variable selection were statistically significant (<italic>p</italic> = 0.0029), reinforcing the reliability of the optimized modeling approach. Beyond accuracy, iPLS reduces model complexity by focusing on compact, property&#x2212;specific spectral intervals, aiding mechanistic interpretation and easing deployment. This study highlights the best combinations, setting the stage for future research to explore more options. Combining MIR spectroscopy with chemometric tools has strong potential to improve soil property prediction, helping make soil management more precise and efficient in both agricultural and environmental monitoring.</p>
</sec>
<sec id="s5">
<label>5</label>
<title>Limitations, future perspectives, and recommendations</title>
<p>This study was designed around a small, locally homogeneous dataset collected in the Rhamna region of Morocco and measured using a single benchtop MIR instrument under controlled, oven&#x2212;dry laboratory conditions. Although leave&#x2212;one&#x2212;out cross&#x2212;validation (LOOCV) and a Wilcoxon signed&#x2212;rank test provided internal evidence of improvement, the lack of an external prediction set or fully nested resampling means that the reported gains may be optimistic when transferred to other soils, moisture states, particle size distributions, or sensor platforms.</p>
<p>Finally, the model performance remained moderate for some targets (P<sub>2</sub>O<sub>5</sub> and CEC), the outlier influence was non&#x2212;negligible for CEC, and precision estimates for wet&#x2212;chemistry references were unavailable, limiting our ability to benchmark the RMSE against analytical uncertainty.</p>
<p>Future work should prioritize broader and more diverse spectral libraries spanning soil types, texture classes, mineralogies, and field moisture conditions, coupled with either independent external validation or repeated nested cross&#x2212;validation to de&#x2212;bias performance estimates. Methodologically, population&#x2212;based and stability&#x2212;oriented selection schemes such as Monte Carlo uninformative variable elimination (MC-UVE), recursive weighted PLS (rPLS), competitive adaptive reweighted sampling (CARS), and variable iterative space shrinkage approach (VISSA) alongside alternative learners such as support vector machine (SVR), Random Forests, and/or cubist can be explored.</p>
<p>Derivative along or combined with SNV is often beneficial, but the order matters. It is recommended to embed all model&#x2212;selection steps, preprocessing choices, the number of latent variables, variable selection, and selected wavenumbers reporting both accuracy (R&#xb2;<sub>cv</sub>/RMSE<sub>cv</sub>) and uncertainty relative to reference&#x2212;method precision. For properties that remain challenging (P<sub>2</sub>O<sub>5</sub>, CEC), it is also recommended to prioritize targeted sample augmentation, moisture/particle size stress tests, and robust models.</p>
</sec>
</body>
<back>
<sec id="s6" sec-type="data-availability">
<title>Data availability statement</title>
<p>The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.</p></sec>
<sec id="s7" sec-type="author-contributions">
<title>Author contributions</title>
<p>RM: Investigation, Software, Validation, Conceptualization, Writing &#x2013; review &amp; editing, Writing &#x2013; original draft, Formal analysis, Methodology, Visualization. MG: Methodology, Investigation, Conceptualization, Writing &#x2013; review &amp; editing, Validation, Software. IB: Formal analysis, Project administration, Visualization, Data curation, Resources, Validation, Software, Methodology, Supervision, Funding acquisition, Writing &#x2013; review &amp; editing, Investigation, Conceptualization.</p></sec>
<sec id="s9" sec-type="COI-statement">
<title>Conflict of interest</title>
<p>The author(s) declared that this work was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p></sec>
<sec id="s10" sec-type="ai-statement">
<title>Generative AI statement</title>
<p>The author(s) declared that generative AI was not used in the creation of this manuscript.</p>
<p>Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.</p></sec>
<sec id="s11" sec-type="disclaimer">
<title>Publisher&#x2019;s note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p></sec>
<ref-list>
<title>References</title>
<ref id="B1">
<label>1</label>
<mixed-citation publication-type="book">
<person-group person-group-type="author">
<name><surname>Wu</surname> <given-names>Y</given-names></name>
</person-group>. 
<article-title>The application of mid-infrared spectroscopy in the soil properties</article-title>. In: 
<person-group person-group-type="editor">
<name><surname>Chen</surname> <given-names>S</given-names></name>
</person-group>, editor. <source>2nd International Conference on Materials Chemistry and Environmental Engineering (CONF-MCEE 2022)</source>. 
<publisher-name>40 (SPIE, ONLINE</publisher-name>, <publisher-loc>United States</publisher-loc> (<year>2022</year>). doi:&#xa0;<pub-id pub-id-type="doi">10.1117/12.2646217</pub-id>
</mixed-citation>
</ref>
<ref id="B2">
<label>2</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Barra</surname> <given-names>I</given-names></name>
<name><surname>Haefele</surname> <given-names>SM</given-names></name>
<name><surname>Sakrabani</surname> <given-names>R</given-names></name>
<name><surname>Kebede</surname> <given-names>F</given-names></name>
</person-group>. 
<article-title>Soil spectroscopy with the use of chemometrics, machine learning and pre-processing techniques in soil diagnosis: Recent advances&#x2013;A review</article-title>. <source>TrAC Trends Analytical Chem</source>. (<year>2021</year>) <volume>135</volume>:<fpage>116166</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.trac.2020.116166</pub-id>
</mixed-citation>
</ref>
<ref id="B3">
<label>3</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Baumann</surname> <given-names>P</given-names></name>
<name><surname>Lee</surname> <given-names>J</given-names></name>
<name><surname>Frossard</surname> <given-names>E</given-names></name>
<name><surname>Sch&#xf6;nholzer</surname> <given-names>LP</given-names></name>
<name><surname>Diby</surname> <given-names>L</given-names></name>
<name><surname>Hgaza</surname> <given-names>VK</given-names></name>
<etal/>
</person-group>. 
<article-title>Estimation of soil properties with mid-infrared soil spectroscopy across yam production landscapes in West Africa</article-title>. <source>SOIL</source>. (<year>2021</year>) <volume>7</volume>:<page-range>717&#x2013;31</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.5194/soil-7-717-2021</pub-id>
</mixed-citation>
</ref>
<ref id="B4">
<label>4</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Hume</surname> <given-names>R</given-names></name>
<name><surname>Marschner</surname> <given-names>P</given-names></name>
<name><surname>Mason</surname> <given-names>S</given-names></name>
<name><surname>Schilling</surname> <given-names>RK</given-names></name>
<name><surname>Hughes</surname> <given-names>B</given-names></name>
<name><surname>Mosley</surname> <given-names>LM</given-names></name>
<etal/>
</person-group>. 
<article-title>Measurement of lime movement and dissolution in acidic soils using mid-infrared spectroscopy</article-title>. <source>Soil Tillage Res</source>. (<year>2023</year>) <volume>233</volume>:<fpage>105807</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.still.2023.105807</pub-id>
</mixed-citation>
</ref>
<ref id="B5">
<label>5</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Johnson</surname> <given-names>J-M</given-names></name>
<name><surname>Vandamme</surname> <given-names>E</given-names></name>
<name><surname>Senthilkumar</surname> <given-names>K</given-names></name>
<name><surname>Sila</surname> <given-names>A</given-names></name>
<name><surname>Shepherd</surname> <given-names>KD</given-names></name>
<name><surname>Saito</surname> <given-names>K</given-names></name>
<etal/>
</person-group>. 
<article-title>Near-infrared, mid-infrared or combined diffuse reflectance spectroscopy for assessing soil fertility in rice fields in sub-Saharan Africa</article-title>. <source>Geoderma</source>. (<year>2019</year>) <volume>354</volume>:<fpage>113840</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.geoderma.2019.06.043</pub-id>
</mixed-citation>
</ref>
<ref id="B6">
<label>6</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Marakkala Manage</surname> <given-names>LP</given-names></name>
<name><surname>Greve</surname> <given-names>MH</given-names></name>
<name><surname>Knadel</surname> <given-names>M</given-names></name>
<name><surname>Moldrup</surname> <given-names>P</given-names></name>
<name><surname>de Jonge</surname> <given-names>LW</given-names></name>
<name><surname>Katuwal</surname> <given-names>S</given-names></name>
</person-group>. 
<article-title>Visible-near-infrared spectroscopy prediction of soil characteristics as affected by soil-water content</article-title>. <source>Soil Sci Soc Amer J</source>. (<year>2018</year>) <volume>82</volume>:<page-range>1333&#x2013;46</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.2136/sssaj2018.01.0052</pub-id>
</mixed-citation>
</ref>
<ref id="B7">
<label>7</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Barra</surname> <given-names>I</given-names></name>
<name><surname>El Moatassem</surname> <given-names>T</given-names></name>
<name><surname>Kebede</surname> <given-names>F</given-names></name>
</person-group>. 
<article-title>Soil particle size thresholds in soil spectroscopy and its effect on the multivariate models for the analysis of soil properties</article-title>. <source>Sensors</source>. (<year>2023</year>) <volume>23</volume>:<fpage>9171</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.3390/s23229171</pub-id>, PMID: <pub-id pub-id-type="pmid">38005556</pub-id>
</mixed-citation>
</ref>
<ref id="B8">
<label>8</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Fu</surname> <given-names>C-B</given-names></name>
<name><surname>Cao</surname> <given-names>S</given-names></name>
<name><surname>Tian</surname> <given-names>A-H</given-names></name>
</person-group>. 
<article-title>High-precision soil ni content prediction model using visible near-infrared spectroscopy coupled with recurrent neural networks</article-title>. <source>Sensors Mater</source>. (<year>2024</year>) <volume>36</volume>:<fpage>5019</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.18494/SAM5199</pub-id>
</mixed-citation>
</ref>
<ref id="B9">
<label>9</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Mokere</surname> <given-names>R</given-names></name>
<name><surname>Ghassan</surname> <given-names>M</given-names></name>
<name><surname>Barra</surname> <given-names>I</given-names></name>
</person-group>. 
<article-title>Soil spectroscopy evolution: A review of homemade sensors, benchtop systems, and mobile instruments coupled with machine learning algorithms in soil diagnosis for precision agriculture</article-title>. <source>Crit Rev Analytical Chem</source>. (<year>2024</year>) <volume>55</volume>(<issue>7</issue>):<fpage>1</fpage>&#x2013;<lpage>20</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1080/10408347.2024.2351820</pub-id>, PMID: <pub-id pub-id-type="pmid">38743807</pub-id>
</mixed-citation>
</ref>
<ref id="B10">
<label>10</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Ng</surname> <given-names>W</given-names></name>
<name><surname>Winowiecki</surname> <given-names>LA</given-names></name>
<name><surname>Karari</surname> <given-names>V</given-names></name>
<name><surname>Weullow</surname> <given-names>E</given-names></name>
<name><surname>Ateku</surname> <given-names>DA</given-names></name>
<name><surname>V&#xe5;gen</surname> <given-names>TG</given-names></name>
<etal/>
</person-group>. 
<article-title>Exploring mid-infrared spectral transfer functions for the prediction of multiple soil properties using a global dataset</article-title>. <source>Soil Sci Soc Amer J</source>. (<year>2024</year>) <volume>88</volume>:<page-range>1234&#x2013;47</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1002/saj2.20697</pub-id>
</mixed-citation>
</ref>
<ref id="B11">
<label>11</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Viscarra Rossel</surname> <given-names>RA</given-names></name>
<name><surname>Shen</surname> <given-names>Z</given-names></name>
<name><surname>Ramirez-Lopez</surname> <given-names>L</given-names></name>
<name><surname>Behrens</surname> <given-names>T</given-names></name>
<name><surname>Shi</surname> <given-names>Z</given-names></name>
<name><surname>Wetterlind</surname> <given-names>J</given-names></name>
<etal/>
</person-group>. 
<article-title>An imperative for soil spectroscopic modelling is to think global but fit local with transfer learning</article-title>. <source>Earth-Sci Rev</source>. (<year>2024</year>) <volume>254</volume>:<fpage>104797</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.earscirev.2024.104797</pub-id>
</mixed-citation>
</ref>
<ref id="B12">
<label>12</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Reeves</surname> <given-names>JB</given-names></name>
</person-group>. 
<article-title>Near- versus mid-infrared diffuse reflectance spectroscopy for soil analysis emphasizing carbon and laboratory versus on-site analysis: Where are we and what needs to be done</article-title>? <source>Geoderma</source>. (<year>2010</year>) <volume>158</volume>:<fpage>3</fpage>&#x2013;<lpage>14</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.geoderma.2009.04.005</pub-id>
</mixed-citation>
</ref>
<ref id="B13">
<label>13</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Knox</surname> <given-names>NM</given-names></name>
<name><surname>Grunwald</surname> <given-names>S</given-names></name>
<name><surname>McDowell</surname> <given-names>ML</given-names></name>
<name><surname>Bruland</surname> <given-names>GL</given-names></name>
<name><surname>Myers</surname> <given-names>DB</given-names></name>
<name><surname>Harris</surname> <given-names>WG</given-names></name>
<etal/>
</person-group>. 
<article-title>Modelling soil carbon fractions with visible near-infrared (VNIR) and mid-infrared (MIR) spectroscopy</article-title>. <source>Geoderma</source>. (<year>2015</year>) <volume>239&#x2013;240</volume>:<page-range>229&#x2013;39</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.geoderma.2014.10.019</pub-id>
</mixed-citation>
</ref>
<ref id="B14">
<label>14</label>
<mixed-citation publication-type="book">
<person-group person-group-type="author">
<name><surname>Theophile</surname> <given-names>T</given-names></name>
</person-group>. <source>Infrared spectroscopy: life and biomedical sciences</source>. <publisher-loc>Rijeka, Croatia</publisher-loc>: 
<publisher-name>BoD &#x2013; Books on Demand</publisher-name> (<year>2012</year>). doi:&#xa0;<pub-id pub-id-type="doi">10.5772/2655</pub-id>
</mixed-citation>
</ref>
<ref id="B15">
<label>15</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Kandpal</surname> <given-names>LM</given-names></name>
<name><surname>Munnaf</surname> <given-names>MA</given-names></name>
<name><surname>Cruz</surname> <given-names>C</given-names></name>
<name><surname>Mouazen</surname> <given-names>AM</given-names></name>
</person-group>. 
<article-title>Spectra fusion of mid-infrared (MIR) and X-ray fluorescence (XRF) spectroscopy for estimation of selected soil fertility attributes</article-title>. <source>Sensors</source>. (<year>2022</year>) <volume>22</volume>:<fpage>3459</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.3390/s22093459</pub-id>, PMID: <pub-id pub-id-type="pmid">35591149</pub-id>
</mixed-citation>
</ref>
<ref id="B16">
<label>16</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Tiecher</surname> <given-names>T</given-names></name>
<name><surname>Moura-Bueno</surname> <given-names>JM</given-names></name>
<name><surname>Caner</surname> <given-names>L</given-names></name>
<name><surname>Minella</surname> <given-names>JPG</given-names></name>
<name><surname>Evrard</surname> <given-names>O</given-names></name>
<name><surname>Ramon</surname> <given-names>R</given-names></name>
<etal/>
</person-group>. 
<article-title>Improving the quantification of sediment source contributions using different mathematical models and spectral preprocessing techniques for individual or combined spectra of ultraviolet&#x2013;visible, near- and middle-infrared spectroscopy</article-title>. <source>Geoderma</source>. (<year>2021</year>) <volume>384</volume>:<fpage>114815</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.geoderma.2020.114815</pub-id>
</mixed-citation>
</ref>
<ref id="B17">
<label>17</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Li</surname> <given-names>H</given-names></name>
<name><surname>Wang</surname> <given-names>J</given-names></name>
<name><surname>Zhang</surname> <given-names>J</given-names></name>
<name><surname>Liu</surname> <given-names>T</given-names></name>
<name><surname>Acquah</surname> <given-names>GE</given-names></name>
<name><surname>Yuan</surname> <given-names>H</given-names></name>
<etal/>
</person-group>. 
<article-title>Combining variable selection and multiple linear regression for soil organic matter and total nitrogen estimation by DRIFT-MIR spectroscopy</article-title>. <source>Agronomy</source>. (<year>2022</year>) <volume>12</volume>:<fpage>638</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.3390/agronomy12030638</pub-id>
</mixed-citation>
</ref>
<ref id="B18">
<label>18</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Ca&#xf1;asveras S&#xe1;nchez</surname> <given-names>JC</given-names></name>
<name><surname>Barr&#xf3;n</surname> <given-names>V</given-names></name>
<name><surname>Del Campillo</surname> <given-names>MC</given-names></name>
<name><surname>Viscarra Rossel</surname> <given-names>RA</given-names></name>
</person-group>. 
<article-title>Reflectance spectroscopy: a tool for predicting soil properties related to the incidence of Fe chlorosis</article-title>. <source>Span J Agric Res</source>. (<year>2012</year>) <volume>10</volume>:<fpage>1133</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.5424/sjar/2012104-681-11</pub-id>
</mixed-citation>
</ref>
<ref id="B19">
<label>19</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>dos Santos</surname> <given-names>GLAA</given-names></name>
<name><surname>Besen</surname> <given-names>MR</given-names></name>
<name><surname>Furlanetto</surname> <given-names>RH</given-names></name>
<name><surname>Crusiol</surname> <given-names>LGT</given-names></name>
<name><surname>Rodrigues</surname> <given-names>M</given-names></name>
<name><surname>Reis</surname> <given-names>AS</given-names></name>
<etal/>
</person-group>. 
<article-title>Spectral method for liming recommendation in oxisol based on the prediction of chemical characteristics using interval partial least squares regression</article-title>. <source>Remote Sens</source>. (<year>2022</year>) <volume>14</volume>:<fpage>1972</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.3390/rs14091972</pub-id>
</mixed-citation>
</ref>
<ref id="B20">
<label>20</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Ghassan</surname> <given-names>M</given-names></name>
<name><surname>Mokere</surname> <given-names>R</given-names></name>
<name><surname>Beniaich</surname> <given-names>A</given-names></name>
<name><surname>Barra</surname> <given-names>I</given-names></name>
</person-group>. 
<article-title>Mid-infrared spectral insights into soil hydraulic, physical, and chemical properties across four Moroccan regions</article-title>. <source>Geoderma Regional</source>. (<year>2025</year>) <volume>43</volume>:<fpage>e01028</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.geodrs.2025.e01028</pub-id>
</mixed-citation>
</ref>
<ref id="B21">
<label>21</label>
<mixed-citation publication-type="book">
<person-group person-group-type="author">
<name><surname>Wadoux</surname> <given-names>A. M. J.-C.</given-names></name>
<name><surname>Malone</surname> <given-names>B</given-names></name>
<name><surname>Minasny</surname> <given-names>B</given-names></name>
<name><surname>Fajardo</surname> <given-names>M</given-names></name>
<name><surname>McBratney</surname> <given-names>AB</given-names></name>
</person-group>. <source>Soil Spectral Inference with R: Analysing Digital Soil Spectra Using the R Programming Environment</source>. <publisher-loc>Cham</publisher-loc>: 
<publisher-name>Springer International Publishing</publisher-name> (<year>2021</year>). doi:&#xa0;<pub-id pub-id-type="doi">10.1007/978-3-030-64896-1</pub-id>
</mixed-citation>
</ref>
<ref id="B22">
<label>22</label>
<mixed-citation publication-type="book">
<person-group person-group-type="author">
<name><surname>Esteban</surname> <given-names>M</given-names></name>
<name><surname>Ari&#xf1;o-Blasco</surname> <given-names>MC</given-names></name>
<name><surname>D&#xed;az-Cruz</surname> <given-names>JM</given-names></name>
</person-group>. 
<article-title>Chemometrics in electrochemistry</article-title>. In: <source>Comprehensive Chemometrics</source>. <publisher-loc>Cham, Switzerland</publisher-loc>: 
<publisher-name>Elsevier</publisher-name> (<year>2020</year>). p. <fpage>1</fpage>&#x2013;<lpage>31</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/B978-0-12-409547-2.14622-0</pub-id>
</mixed-citation>
</ref>
<ref id="B23">
<label>23</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Ahmadi</surname> <given-names>A</given-names></name>
<name><surname>Emami</surname> <given-names>M</given-names></name>
<name><surname>Daccache</surname> <given-names>A</given-names></name>
<name><surname>He</surname> <given-names>L</given-names></name>
</person-group>. 
<article-title>Soil properties prediction for precision agriculture using visible and near-infrared spectroscopy: A systematic review and meta-analysis</article-title>. <source>Agronomy</source>. (<year>2021</year>) <volume>11</volume>:<fpage>433</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.3390/agronomy11030433</pub-id>
</mixed-citation>
</ref>
<ref id="B24">
<label>24</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Franceschini</surname> <given-names>MHD</given-names></name>
<name><surname>Dematt&#xea;</surname> <given-names>JAM</given-names></name>
<name><surname>Kooistra</surname> <given-names>L</given-names></name>
<name><surname>Bartholomeus</surname> <given-names>H</given-names></name>
<name><surname>Rizzo</surname> <given-names>R</given-names></name>
<name><surname>Fongaro</surname> <given-names>CT</given-names></name>
<etal/>
</person-group>. 
<article-title>Effects of external factors on soil reflectance measured on-the-go and assessment of potential spectral correction through orthogonalisation and standardisation procedures</article-title>. <source>Soil Tillage Res</source>. (<year>2018</year>) <volume>177</volume>:<fpage>19</fpage>&#x2013;<lpage>36</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.still.2017.10.004</pub-id>
</mixed-citation>
</ref>
<ref id="B25">
<label>25</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Vasques</surname> <given-names>GM</given-names></name>
<name><surname>Grunwald</surname> <given-names>S</given-names></name>
<name><surname>Sickman</surname> <given-names>JO</given-names></name>
</person-group>. 
<article-title>Comparison of multivariate methods for inferential modeling of soil carbon using visible/near-infrared spectra</article-title>. <source>Geoderma</source>. (<year>2008</year>) <volume>146</volume>:<fpage>14</fpage>&#x2013;<lpage>25</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.geoderma.2008.04.007</pub-id>
</mixed-citation>
</ref>
<ref id="B26">
<label>26</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Vestergaard</surname> <given-names>R-J</given-names></name>
<name><surname>Vasava</surname> <given-names>HB</given-names></name>
<name><surname>Aspinall</surname> <given-names>D</given-names></name>
<name><surname>Chen</surname> <given-names>S</given-names></name>
<name><surname>Gillespie</surname> <given-names>A</given-names></name>
<name><surname>Adamchuk</surname> <given-names>V</given-names></name>
<name><surname>Biswas</surname> <given-names>A</given-names></name>
</person-group>. 
<article-title>Evaluation of optimized preprocessing and modeling algorithms for prediction of soil properties using VIS-NIR spectroscopy</article-title>. <source>Sensors</source>. (<year>2021</year>) <volume>21</volume>:<fpage>6745</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.3390/s21206745</pub-id>, PMID: <pub-id pub-id-type="pmid">34695958</pub-id>
</mixed-citation>
</ref>
<ref id="B27">
<label>27</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Barnes</surname> <given-names>RJ</given-names></name>
<name><surname>Dhanoa</surname> <given-names>MS</given-names></name>
<name><surname>Lister</surname> <given-names>SJ</given-names></name>
</person-group>. 
<article-title>Standard normal variate transformation and de-trending of near-infrared diffuse reflectance spectra</article-title>. <source>Appl Spectrosc</source>. (<year>1989</year>) <volume>43</volume>:<page-range>772&#x2013;7</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1366/0003702894202201</pub-id>
</mixed-citation>
</ref>
<ref id="B28">
<label>28</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Brown</surname> <given-names>CD</given-names></name>
<name><surname>Vega-Montoto</surname> <given-names>L</given-names></name>
<name><surname>Wentzell</surname> <given-names>PD</given-names></name>
</person-group>. 
<article-title>Derivative preprocessing and optimal corrections for baseline drift in multivariate calibration</article-title>. <source>Appl Spectrosc</source>. (<year>2000</year>) <volume>54</volume>:<page-range>1055&#x2013;68</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1366/0003702001950571</pub-id>
</mixed-citation>
</ref>
<ref id="B29">
<label>29</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Ezenarro</surname> <given-names>J</given-names></name>
<name><surname>Schorn-Garc&#xed;a</surname> <given-names>D</given-names></name>
<name><surname>Busto</surname> <given-names>O</given-names></name>
<name><surname>Boqu&#xe9;</surname> <given-names>R</given-names></name>
</person-group>. 
<article-title>ProSpecTool: A MATLAB toolbox for spectral preprocessing selection</article-title>. <source>Chemometr Intelligent Lab Syst</source>. (<year>2024</year>) <volume>247</volume>:<fpage>105096</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.chemolab.2024.105096</pub-id>
</mixed-citation>
</ref>
<ref id="B30">
<label>30</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Guyon</surname> <given-names>I</given-names></name>
<name><surname>Elisseeff</surname> <given-names>A</given-names></name>
</person-group>. 
<article-title>An introduction to variable and feature selection</article-title>. <source>J Mach Learn Res</source>. (<year>2003</year>) <volume>3</volume>:<page-range>1157&#x2013;82</page-range>.
</mixed-citation>
</ref>
<ref id="B31">
<label>31</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Colombo</surname> <given-names>C</given-names></name>
<name><surname>Palumbo</surname> <given-names>G</given-names></name>
<name><surname>Di Iorio</surname> <given-names>E</given-names></name>
<name><surname>Sellitto</surname> <given-names>V</given-names></name>
<name><surname>Comolli</surname> <given-names>R</given-names></name>
<name><surname>Stellacci</surname> <given-names>A</given-names></name>
<etal/>
</person-group>. 
<article-title>Soil organic carbon variation in alpine landscape (Northern Italy) as evaluated by diffuse reflectance spectroscopy</article-title>. <source>Soil Sci Soc America J</source>. (<year>2014</year>) <volume>78</volume>:<fpage>794</fpage>&#x2013;<lpage>804</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.2136/sssaj2013.11.0488</pub-id>
</mixed-citation>
</ref>
<ref id="B32">
<label>32</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Novacoski</surname> <given-names>EJ</given-names></name>
<name><surname>Caetano</surname> <given-names>IK</given-names></name>
<name><surname>Melquiades</surname> <given-names>FL</given-names></name>
<name><surname>Gen&#xfa;</surname> <given-names>AM</given-names></name>
<name><surname>Reyes Torres</surname> <given-names>Y</given-names></name>
<name><surname>Gonz&#xe1;lez-Borrero</surname> <given-names>PP</given-names></name>
<etal/>
</person-group>. 
<article-title>Spectroscopic based partial least-squares models to estimate soil features</article-title>. <source>Microchem J</source>. (<year>2022</year>) <volume>180</volume>:<fpage>107617</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.microc.2022.107617</pub-id>
</mixed-citation>
</ref>
<ref id="B33">
<label>33</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Farr&#xe9;s</surname> <given-names>M</given-names></name>
<name><surname>Platikanov</surname> <given-names>S</given-names></name>
<name><surname>Tsakovski</surname> <given-names>S</given-names></name>
<name><surname>Tauler</surname> <given-names>R</given-names></name>
</person-group>. 
<article-title>Comparison of the variable importance in projection (VIP) and of the selectivity ratio (SR) methods for variable selection and interpretation</article-title>. <source>J Chemometr</source>. (<year>2015</year>) <volume>29</volume>:<page-range>528&#x2013;36</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1002/cem.2736</pub-id>
</mixed-citation>
</ref>
<ref id="B34">
<label>34</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>N&#xf8;rgaard</surname> <given-names>L</given-names></name>
<name><surname>Saudland</surname> <given-names>A</given-names></name>
<name><surname>Wagner</surname> <given-names>J</given-names></name>
<name><surname>Nielsen</surname> <given-names>JP</given-names></name>
<name><surname>Munck</surname> <given-names>L</given-names></name>
<name><surname>Engelsen</surname> <given-names>SB</given-names></name>
<etal/>
</person-group>. 
<article-title>Interval partial least-squares regression (<italic>i</italic> PLS): A comparative chemometric study with an example from near-infrared spectroscopy</article-title>. <source>Appl Spectrosc</source>. (<year>2000</year>) <volume>54</volume>:<page-range>413&#x2013;9</page-range>.
</mixed-citation>
</ref>
<ref id="B35">
<label>35</label>
<mixed-citation publication-type="book">
<person-group person-group-type="author">
<name><surname>Mukherjee</surname> <given-names>R</given-names></name>
<name><surname>Sengupta</surname> <given-names>D</given-names></name>
<name><surname>Sikdar</surname> <given-names>SK</given-names></name>
</person-group>. 
<article-title>Selection of sustainable processes using sustainability footprint method</article-title>. In: <source>Computer Aided Chemical Engineering</source>, vol. <volume>36</volume>. <publisher-loc>Amsterdam, The Netherlands</publisher-loc>: 
<publisher-name>Elsevier</publisher-name> (<year>2015</year>). p. <page-range>311&#x2013;29</page-range>.
</mixed-citation>
</ref>
<ref id="B36">
<label>36</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Farr&#xe9;s</surname> <given-names>M</given-names></name>
<name><surname>Platikanov</surname> <given-names>S</given-names></name>
<name><surname>Tsakovski</surname> <given-names>S</given-names></name>
<name><surname>Tauler</surname> <given-names>R</given-names></name>
</person-group>. 
<article-title>Comparison of the variable importance in projection (VIP) and of the selectivity ratio (SR) methods for variable selection and interpretation</article-title>. <source>J Chemometr</source>. (<year>2015</year>) <volume>29</volume>:<page-range>528&#x2013;36</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1002/cem.2736</pub-id>
</mixed-citation>
</ref>
<ref id="B37">
<label>37</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Rajalahti</surname> <given-names>T</given-names></name>
<name><surname>Arneberg</surname> <given-names>R</given-names></name>
<name><surname>Berven</surname> <given-names>FS</given-names></name>
<name><surname>Myhr</surname> <given-names>KM</given-names></name>
<name><surname>Ulvik</surname> <given-names>RJ</given-names></name>
<name><surname>Kvalheim</surname> <given-names>OM</given-names></name>
<etal/>
</person-group>. 
<article-title>Biomarker discovery in mass spectral profiles by means of selectivity ratio plot</article-title>. <source>Chemometr Intelligent Lab Syst</source>. (<year>2009</year>) <volume>95</volume>:<fpage>35</fpage>&#x2013;<lpage>48</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.chemolab.2008.08.004</pub-id>
</mixed-citation>
</ref>
<ref id="B38">
<label>38</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Shao</surname> <given-names>J</given-names></name>
</person-group>. 
<article-title>Linear Model selection by cross-validation</article-title>. <source>J Am Stat Assoc</source>. (<year>1993</year>) <volume>88</volume>:<page-range>486&#x2013;94</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1080/01621459.1993.10476299</pub-id>
</mixed-citation>
</ref>
<ref id="B39">
<label>39</label>
<mixed-citation publication-type="book">
<person-group person-group-type="author">
<name><surname>Kucheryavskiy</surname> <given-names>S</given-names></name>
</person-group>. <source>mdatools: multivariate data Analysis for Chemometrics</source>. <publisher-loc>Vienna, Austria</publisher-loc>: 
<publisher-name>CRAN (The Comprehensive R Archive Network), R Foundation for Statistical Computing</publisher-name> (<year>2024</year>).
</mixed-citation>
</ref>
<ref id="B40">
<label>40</label>
<mixed-citation publication-type="book">
<person-group person-group-type="author">
<name><surname>Stevens</surname> <given-names>A</given-names></name>
<name><surname>Ramirez-Lopez</surname> <given-names>L</given-names></name>
</person-group>. <source>prospectr: Miscellaneous Functions for Processing and Sample Selection of Spectroscopic Data</source>. <publisher-loc>Vienna, Austria</publisher-loc>: 
<publisher-name>CRAN (The Comprehensive R Archive Network), R Foundation for Statistical Computing</publisher-name> (<year>2024</year>).
</mixed-citation>
</ref>
<ref id="B41">
<label>41</label>
<mixed-citation publication-type="book">
<person-group person-group-type="author">
<name><surname>Liland</surname> <given-names>KH</given-names></name>
</person-group>. <source>plsVarSel: Variable Selection in Partial Least Squares. 0.9.13</source>. <publisher-loc>Vienna, Austria</publisher-loc>: 
<publisher-name>CRAN (The Comprehensive R Archive Network), R Foundation for Statistical Computing</publisher-name>. (<year>2016</year>). doi:&#xa0;<pub-id pub-id-type="doi">10.32614/CRAN.package.plsVarSel</pub-id>.
</mixed-citation>
</ref>
<ref id="B42">
<label>42</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Zhao</surname> <given-names>Y</given-names></name>
<name><surname>Yu</surname> <given-names>J</given-names></name>
<name><surname>Shan</surname> <given-names>P</given-names></name>
<name><surname>Zhao</surname> <given-names>Z</given-names></name>
<name><surname>Jiang</surname> <given-names>X</given-names></name>
<name><surname>Gao</surname> <given-names>S</given-names></name>
</person-group>. 
<article-title>PLS Subspace-Based calibration transfer for near-infrared spectroscopy quantitative analysis</article-title>. <source>Molecules</source>. (<year>2019</year>) <volume>24</volume>:<fpage>1289</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.3390/molecules24071289</pub-id>, PMID: <pub-id pub-id-type="pmid">30987017</pub-id>
</mixed-citation>
</ref>
<ref id="B43">
<label>43</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Zheng</surname> <given-names>X</given-names></name>
<name><surname>Nie</surname> <given-names>B</given-names></name>
<name><surname>Du</surname> <given-names>J</given-names></name>
<name><surname>Rao</surname> <given-names>Y</given-names></name>
<name><surname>Li</surname> <given-names>H</given-names></name>
<name><surname>Chen</surname> <given-names>J</given-names></name>
<etal/>
</person-group>. 
<article-title>A non-linear partial least squares based on monotonic inner relation</article-title>. <source>Front Physiol</source>. (<year>2024</year>) <volume>15</volume>:<elocation-id>1369165</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.3389/fphys.2024.1369165</pub-id>, PMID: <pub-id pub-id-type="pmid">38751986</pub-id>
</mixed-citation>
</ref>
<ref id="B44">
<label>44</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Hynes</surname> <given-names>A</given-names></name>
<name><surname>Scott</surname> <given-names>DA</given-names></name>
<name><surname>Man</surname> <given-names>A</given-names></name>
<name><surname>Singer</surname> <given-names>DL</given-names></name>
<name><surname>Sowa</surname> <given-names>MG</given-names></name>
<name><surname>Liu</surname> <given-names>KZ</given-names></name>
<etal/>
</person-group>. 
<article-title>Molecular mapping of periodontal tissues using infrared microspectroscopy</article-title>. <source>BMC Med Imaging</source>. (<year>2005</year>) <volume>5</volume>:<fpage>2</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1186/1471-2342-5-2</pub-id>, PMID: <pub-id pub-id-type="pmid">15890072</pub-id>
</mixed-citation>
</ref>
<ref id="B45">
<label>45</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>McCarty</surname> <given-names>G</given-names></name>
<name><surname>Reeves</surname> <given-names>J</given-names></name>
<name><surname>Reeves</surname> <given-names>V</given-names></name>
<name><surname>Follett</surname> <given-names>R</given-names></name>
<name><surname>Kimble</surname> <given-names>J</given-names></name>
</person-group>. (<year>2002</year>). 
<article-title>Mid-Infrared and Near-Infrared Diffuse Reflectance Spectroscopy for Soil Carbon Measurement</article-title>. <source>Soil Science Society of America Journal</source>. <volume>66</volume>:<fpage>640</fpage>&#x2013;<lpage>646</lpage>. doi: <pub-id pub-id-type="doi">10.2136/sssaj2002.6400</pub-id>
</mixed-citation>
</ref>
<ref id="B46">
<label>46</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Mirzaeitalarposht</surname> <given-names>R</given-names></name>
<name><surname>Kambouzia</surname> <given-names>J</given-names></name>
</person-group>. 
<article-title>Development of mid-infrared spectroscopic feature-based indices to quantify soil carbon fractions</article-title>. <source>Eurasian Soil Sc</source>. (<year>2020</year>) <volume>53</volume>:<fpage>73</fpage>&#x2013;<lpage>81</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1134/S1064229320010111</pub-id>
</mixed-citation>
</ref>
<ref id="B47">
<label>47</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Terra</surname> <given-names>FS</given-names></name>
<name><surname>Dematt&#xea;</surname> <given-names>JAM</given-names></name>
<name><surname>Viscarra Rossel</surname> <given-names>RA</given-names></name>
</person-group>. 
<article-title>Spectral libraries for quantitative analyses of tropical Brazilian soils: Comparing vis&#x2013;NIR and mid-IR reflectance data</article-title>. <source>Geoderma</source>. (<year>2015</year>) <volume>255&#x2013;256</volume>:<fpage>81</fpage>&#x2013;<lpage>93</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.geoderma.2015.04.017</pub-id>
</mixed-citation>
</ref>
<ref id="B48">
<label>48</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Ng</surname> <given-names>W</given-names></name>
<name><surname>Minasny</surname> <given-names>B</given-names></name>
<name><surname>Jeon</surname> <given-names>SH</given-names></name>
<name><surname>McBratney</surname> <given-names>A</given-names></name>
</person-group>. 
<article-title>Mid-infrared spectroscopy for accurate measurement of an extensive set of soil properties for assessing soil functions</article-title>. <source>Soil Secur</source>. (<year>2022</year>) <volume>6</volume>:<fpage>100043</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.soisec.2022.100043</pub-id>
</mixed-citation>
</ref>
<ref id="B49">
<label>49</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Haghi</surname> <given-names>RK</given-names></name>
<name><surname>P&#xe9;rez-Fern&#xe1;ndez</surname> <given-names>E</given-names></name>
<name><surname>Robertson</surname> <given-names>AHJ</given-names></name>
</person-group>. 
<article-title>Prediction of various soil properties for a national spatial dataset of Scottish soils based on four different chemometric approaches: A comparison of near infrared and mid-infrared spectroscopy</article-title>. <source>Geoderma</source>. (<year>2021</year>) <volume>396</volume>:<fpage>115071</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.geoderma.2021.115071</pub-id>
</mixed-citation>
</ref>
<ref id="B50">
<label>50</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Barth&#xe8;s</surname> <given-names>BG</given-names></name>
<name><surname>Kouakoua</surname> <given-names>E</given-names></name>
<name><surname>Clairotte</surname> <given-names>M</given-names></name>
<name><surname>Lallemand</surname> <given-names>J</given-names></name>
<name><surname>Chapuis-Lardy</surname> <given-names>L</given-names></name>
<name><surname>Rabenarivo</surname> <given-names>M</given-names></name>
<etal/>
</person-group>. 
<article-title>Performance comparison between a miniaturized and a conventional near infrared reflectance (NIR) spectrometer for characterizing soil carbon and nitrogen</article-title>. <source>Geoderma</source>. (<year>2019</year>) <volume>338</volume>:<page-range>422&#x2013;9</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.geoderma.2018.12.031</pub-id>
</mixed-citation>
</ref>
<ref id="B51">
<label>51</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Heil</surname> <given-names>K</given-names></name>
<name><surname>Schmidhalter</surname> <given-names>U</given-names></name>
</person-group>. 
<article-title>An evaluation of different NIR-spectral pre-treatments to derive the soil parameters C and N of a humus-clay-rich soil</article-title>. <source>Sensors (Basel)</source>. (<year>2021</year>) <volume>21</volume>:<fpage>1423</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.3390/s21041423</pub-id>, PMID: <pub-id pub-id-type="pmid">33670612</pub-id>
</mixed-citation>
</ref>
<ref id="B52">
<label>52</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Mishra</surname> <given-names>P</given-names></name>
</person-group>. 
<article-title>Stop selecting features on pre-processed NIR spectra and then trying to explain the chemistry &#x2013; It simply doesn&#x2019;t make sense</article-title>. <source>NIR News</source>. (<year>2025</year>) <volume>36</volume>:<page-range>16&#x2013;7</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1177/09603360251355239</pub-id>
</mixed-citation>
</ref>
</ref-list>
<fn-group>
<fn id="n1" fn-type="custom" custom-type="edited-by">
<p>Edited by: <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1110540">Songchao Chen</ext-link>, Zhejiang University, China</p></fn>
<fn id="n2" fn-type="custom" custom-type="reviewed-by">
<p>Reviewed by: <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/3317094">Shengchang Huai</ext-link>, University of Li&#xe8;ge, Belgium</p>
<p><ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/3319517">Vimalashree H</ext-link>, University of Agricultural Sciences, Bangalore, India</p></fn>
</fn-group>
</back>
</article>