Assessing the success of soil reclamation programs can be costly and time-consuming due to the cost of traditional soil analytical techniques. One cost-effective tool that has been successfully used to efficiently analyze a range of soil parameters is reflectance spectroscopy. We used reflectance data to analyze natural and reclaimed soils in the field, examining three key soil parameters: soil organic carbon (SOC), total nitrogen (TN), and soil pH. Continuous wavelet transforms combined with machine learning models were used to predict these parameters. Based on the root mean square error (RMSE), R2 value, and the ratio of performance to deviation (RPD), the Cubist model produced the most accurate models for SOC, TN, and pH. The RMSE, R2, and RPD values for SOC were 0.60%, 0.80, and 2.2, respectively. The TN model results were 0.05%, 0.81 and 2.5, and pH model results were 0.44, 0.69 and 1.8. Overall, the optimal model can be used to predict SOC and TN accurately, and improvements in the pH model are needed as pH values less than 6.5 were consistently overpredicted.
Introduction
Conventional methodologies for assessing soils before and after disturbance are time-consuming and costly, requiring large volumes of samples to be sent to a commercial laboratory for analytical measurement. There is a need for technologies that can provide accurate data in a more timely and cost-effective manner. In Alberta, the energy industry alone is responsible for soil disturbance associated with 470 000 wellsites, 39 000 other oil and gas facilities, and 24 open pit coat mines (Alberta Energy Regulator 2016). In addition to the facility footprint, there is additional soil disturbance due to borrow pits, transmission lines, pipelines, and access roads that are associated with these facilities.
Evaluating the success of soil reconstruction and reclamation requires measuring key soil parameters. Three soil parameters of particular relevance are soil organic carbon (SOC), total nitrogen (TN), and soil pH that affect a number of key functions (i.e., nutrient cycling, plant productivity, and soil structure development) important for the development of sites undergoing reclamation (Reeves 1997; Blake and Goulding 2002; Dessureault-Rompré et al. 2015). Research conducted on reclaimed mine topsoil in the Athabasca Oil Sands Region has shown that SOC and TN can change in response to disturbance and reclamation. SOC and TN have been shown to increase with time, following reclamation due to development of the forest floor (Sorenson et al. 2011). Similar findings were observed in agricultural mine soils, reclaimed forests, pasture, and hay land uses which tend to have lower SOC content relative to undisturbed soils (Indorante et al. 1981; Shrestha and Lal 2007). Soil pH can also be affected by soil disturbance. For example, in the Canadian prairies, soils underlain by carbonate-rich parent material, which are admixed with overlying topsoil during a disturbance, can lead to an elevated soil pH (Anderson and Cerkowniak 2010). Furthermore, in locations such as Alberta, where sulfur dust is a common by-product of the desulfurization of oil and natural gas, low pH can also result from the addition of elemental sulfur to soil or as a result of industrial emissions of sulfur dioxide (Alberta Energy Regulator 2011).
Unfortunately, obtaining laboratory data for SOC, TN, and pH can be costly and time-consuming, which can serve as a barrier to reclamation and monitoring programs. More affordable options include using field systems to collect reflectance spectroscopy data in a rapid and nondestructive manner. Reflectance spectroscopy has been used to predict SOC, TN, and pH in a number of studies (Ben-Dor and Banin 1995; Chang et al. 2001; McBratney et al. 2006; Bartholomeus et al. 2008; Gomez et al. 2008b ; Rossel and Behrens 2010; Ge et al. 2014). SOC has been measured with error rates as low as 1.5 g kg-1 on dried intact soil cores and on samples ranging from 0.1% to 10.4% TOC (McCarty et al. 2002; Doetterl et al. 2013). While work conducted in the Canadian provinces of Manitoba and Ontario has successfully shown that reflectance spectroscopy can be used to predict SOC and TN (Martin et al. 2002; Xie et al. 2011), there is a lack of information on the use of reflectance spectroscopy on Canadian soils and more specifically, Alberta soils.
The processing of soil spectral data has focused on using partial least squares regressions (e.g., Gomez et al. 2008a , 2008b ; Xie et al. 2011; Kinoshita et al. 2012) and using signal processing techniques such as Savitzky–Golay smoothing, derivatives, and multiplicative scatter correction (e.g., He et al. 2007; Minasny et al. 2009; Doetterl et al. 2013; Nawar et al. 2016). Recently, two data processing techniques have been applied to spectral data and have improved the accuracy of model predictions. Machine learning tools have been successfully applied to spectral data and generated more accurate predictions than partial least squares regression models. Specifically, multivariate adaptive regression splines, support vector machines, and Cubist models have tended to produce the most accurate predictions (Rossel and Behrens 2010; Doetterl et al. 2013; Nawar et al. 2016). Additionally, the application of an alternative signal processing method, the wavelet transform, has improved the use of spectral soil data to accurately predict different soil properties (Viscarra Rossel and Lark 2009; Rossel and Behrens 2010). Wavelet analyses can be discrete or continuous, while the continuous wavelet transform (CWT) can be highly redundant, it is directly comparable to the original spectra and therefore manual inspection of the wavelet results is easier (Rivard et al. 2008). Detailed information about the application of the CWT to spectral data is available in Rivard et al. (2008).
Overall, the main objective of this research was to determine if reflectance spectroscopy data collected in the field with a drill-rig mounted spectroscopy system could be used to measure SOC, TN, and pH. Specifically, this study focused on using machine learning models, which have been applied to soils in other regions (Rossel and Behrens 2010; Doetterl et al. 2013), along with wavelet transforms, and determining if they can be successfully applied to reflectance spectroscopy data from Canadian soils.
Materials and Methods
Studied soils
Sampling locations were selected to include a range of soil types, with variations in SOC, TN, and pH. Samples were collected from natural reference locations and from two common land disturbances in Alberta. Soil samples were collected from agricultural soils, reclaimed oil and gas wellsites, and reclaimed coal mines at seven sites across central and southern Alberta, Canada; 144 were collected from agricultural soil and 104 were collected from reclaimed soils (Fig. 1). Agricultural soil samples were collected at a set of permanent agricultural plots established in 1929 that investigate farming practices near Breton, AB; at two separate locations near Vegreville, AB; and at two locations near Taber, AB. Reclaimed soils were collected from two reclaimed coal mines, one near Paintearth, AB and the other near Edmonton, AB. The remaining soil samples were collected from reclaimed oil and gas wellsites located near Vegreville and Taber, AB.
Spectral measurements
Spectral measurements were collected in-situ using a P4000 drill rig mounted spectrometer (Veris® Technologies, Salina, KS, USA). The P4000 contact probe has a sapphire window and an integrated light source. Detectors for the P4000 include a 3648 element Toshiba TCD1304AP Linear CCD Array and a 256 element InGaAs Linear Image Sensor G9206-02. The P4000 has a response range of 350–2200 nm, 384 wavelength bands, and a spectral resolution of 8 nm. Reflectance values were calculated by adjusting the soil radiance based on the radiance measurement of a black and a white reference panel provided for regular calibration of the P4000. Reference readings were taken when initializing the equipment and then every 10 min using the integrated light source. Spectral measurements were collected every 0.15 m continuously throughout each borehole. Each borehole was completed to 1 m below ground surface. Samples for the training datasets were collected from discrete 15 or 30 cm increments from the borehole at 3 or 4 sample locations. Samples were collected from A, B, and C horizons in the profile. If samples were collected from a 30 cm interval, the two spectra were averaged for that training data point. If spectra collected at a borehole did not have a corresponding laboratory data point, then it was not included in the analysis.
Laboratory analyses
Laboratory analyses were run on samples collected from the boreholes to generate a training dataset. Soil samples were oven dried and then ground with a ball mill prior to laboratory analysis. Total carbon (TC) and TN were determined by dry combustion according to the methods described in Nelson and Sommers (1996) and Bremner (1996). Samples were analyzed for TC and nitrogen on an Elementar Vario Max CNS Analyzer (Elementar Americas Inc., Mt. Laurel, NJ, USA). Soil samples were analyzed for pH according to the saturated paste method (McLean 1982). In total, 248 samples were analyzed for TC, 164 samples were run for TN, and 232 samples were analyzed for pH.
Statistical analysis
Data processing
The analysis focused on two spectral ranges: (1) 700 and 950 nm and (2) 1097 and 2183 nm. These spectral ranges were selected as the near infrared (NIR) and shortwave infrared (SWIR) regions have spectral features associated with organic carbon. Data were trimmed at the end of the NIR and the beginning of the SWIR region due to a low signal to noise ratio associated with detector switch between the NIR and SWIR regions. The end of the SWIR region was also removed due to noise associated with being at the edge of the detector range. Each band in both of these wavelength ranges was used in the model development. Each spectrum was processed using CWT (e.g., Rivard et al. 2008; Tappert et al. 2015; Scafutto et al. 2016) using the wmtsa package in R (Percival et al. 2016). The CWT outputs were calculated for each spectral range using an eight-scale second-order Gaussian transform. Between 700 and 950 nm, Scale 4 was deemed to best capture the spectral absorption features relating to composition and used to develop the statistical model, and between 1097 and 2183 nm, Scale 2 was selected (Fig. 2).
Model development
The spectral data were calibrated against SOC, TN, and soil pH calibration datasets. All model development was conducted using the caret package (Kuhn et al. 2016) in R (R Core Team 2016), with models previously used to predict soil parameters using spectroscopic data (Minasny and McBratney 2008; Rossel and Behrens 2010; Doetterl et al. 2013). Models included in the analysis are multivariate adaptive regression splines (Milborrow 2016), artificial neural networks (Venables and Ripley 2002), radial basis support vector machines (Karatzoglou et al. 2004), partial least squares regression (Mevik et al. 2015), random forests (Liaw and Wiener 2002), and Cubist models (Kuhn et al. 2014). All models were initially run with the default values defined by the caret package, with the final model parameters automatically selected by the caret package during model training (Kuhn et al. 2016). Model parameters are automatically selected by the caret package during a leave-one-out cross-validation, with the model parameters producing the smallest root mean square error (RMSE) of cross-validation being selected.
Model evaluation
Model accuracy was evaluated based on the RMSE, R 2, and ratio of performance to deviation (RPD). The RPD value is the ratio of the standard deviation to the RMSE. Generally, RPD values greater than 2 indicate that a model can be accurately used for prediction, values between 1.4 and 2 are satisfactory, but improvement would be valuable, and values less than 1.4 indicate the model has no prediction capability (Chang et al. 2001). The best model calibration was determined based on the model that minimized the RMSE value. Models were created using the combined reclaimed and natural soil data. The cross-validation results for the natural and reclaimed sites were separated to investigate how well the model performed in both contexts.
Results
Soil organic carbon (SOC)
SOC concentrations ranged from 0.25% to 6.14% with an average concentration of 1.93% in the natural background soils (Table 1). Soil organic carbon concentrations in the reclaimed soils ranged from 0.43% to 4.40% and had an average concentration of 1.63% (Table 1). The Cubist model produced the lowest RMSE value (0.60%) (Fig. 3a ), followed by the random forest model (0.62%), multivariate adaptive regression splines (0.66%), support vector machines (0.67%), partial least squares regression (0.90%), and finally the artificial neural nets (1.56%) model (Table 2). The RPD values for the Cubist (2.2), random forest (2.1), multivariate adaptive regression splines (2.0), and support vector machines (2.0) models indicate that these models can accurately be used for prediction. The partial least squares regression (1.5) produced satisfactory RPD values, whereas the artificial neural nets (0.9) model produced results that cannot be used for accurate prediction of SOC.
Table 1.
Soil organic carbon (SOC), total nitrogen (TN), and soil pH statistics for natural and reclaimed soils analyzed in this study.
Table 2.
Cross-validation results for soil organic carbon prediction using reflectance spectroscopy data.
Soil nitrogen
Soil nitrogen concentrations ranged from 0.04% to 0.54% in the natural background soils and from 0.43% to 0.40% in the reclaimed soils (Table 1). Natural background soils on average contained 0.21% TN and the reclaimed soils had an average TN content of 0.15% (Table 3). The Cubist model produced the lowest RMSE value (0.05%) (Fig. 3b ), followed by multivariate adaptive regression splines (0.06%), random forest (0.06%), support vector machines (0.06%), partial least squares regression (0.07%), and artificial neural nets model (0.12%). The RPD values for the Cubist (2.5), multivariate adaptive regression splines (2.1), random forest (2.1), and support vector machines (2.1) models indicate that they can accurately be used for prediction. The partial least squares regression (1.8) model was found to satisfactory based on the RPD value. However, the artificial neural nets (1.0) model did not accurately predict TN.
Table 3.
Cross-validation results for total nitrogen prediction using reflectance spectroscopy data.
Soil pH
Soil pH in the natural background soils ranged from 5.1 to 8.6, with an average pH of 7.1 (Table 1). The pH in the reclaimed soils ranged from 5.6 to 8.5 with an average pH of 7.7. The Cubist model produced the lowest RMSE value (0.44) (Fig. 3c ), followed by random forest (0.47) and support vector machines model (0.51) (Table 4). Multivariate adaptive regression splines were next (0.54), followed by partial least squares regression (0.68) and artificial neural networks (6.39). No model had an RPD value above 2.0. The cubist (1.8), random forest (1.7), support vector machines (1.6), and multivariate adaptive regression splines models (1.5) had RPD values greater than 1.4 indicating that they could satisfactorily be used for prediction. The partial least squares regression (1.2) and artificial neural nets (0.1) models could not be successfully used for prediction of soil pH.
Table 4.
Cross-validation results for soil pH prediction using reflectance spectroscopy data.
Prediction accuracy for natural and reclaimed soils
The accuracy of the model predictions varied slightly between the natural background and reclaimed soils for SOC, TN, and pH values (Table 5). While the RMSE value for natural soil carbon (0.60) was slightly higher than the RMSE value for reclaimed soil carbon (0.59), the predicative capability for carbon on natural soils was slightly higher when compared with reclaimed soils. The same pattern was also observed for nitrogen. Soil pH model results for reclaimed soils had a lower RMSE value and a higher RPD compared with the natural soils.
Table 5.
Cross-validation results from the Cubist model for samples collected from natural and reclaimed soils.
Discussion
Overall, our results indicate that there is potential for using field spectroscopy to monitor reclaimed soil properties. Specifically, our models could be used to predict SOC and TN concentrations from field collected spectra based on the criteria outlined in Chang et al. (2001). For soil pH, the model is adequate for prediction at pH values above 6.5, but improvements are required to accurately predict lower pH values as there was consistent over prediction of pH at values less than 6.5 (Fig. 3c ). The pH model may be improved by using a spectrometer that collects spectral data to 2500 nm, as key carbonate features are found near 2336 nm (Ben-Dor and Banin 1990).
For our study, model results were comparable for natural and reclaimed soils for TN and soil pH (Table 5). The reclaimed SOC samples had a lower RPD value than the natural samples, and the success of the model on reclaimed soil samples could use improvement. Modelling results can likely be improved by obtaining more data from reclaimed sites at SOC concentrations above 4%, as the reclaimed samples had less data at these concentrations.
The results of the Cubist models for predicting SOC and TN under field conditions were satisfactory and compared favourably with results from studies using dried and homogenized soil samples in the laboratory (Chang et al. 2001; Martin et al. 2002; Xie et al. 2011). Our results compare favourably with a study in Australia that used a portable spectrometer to measure SOC contents in the field, as we were able to obtain a RPD value of 2.2 compared with 1.92 in the study in Australia (Gomez et al. 2008b ). An important point about predictive modelling of reflectance spectroscopy data is that a model developed with more homogenous training datasets tend to be more accurate with lower RMSE values, but also less transferable to new sites. Therefore, it is important to consider the RPD value when assessing results and not just the RMSE. Overall, this study using a drilling rig mounted spectrometer probe had comparable results with other laboratory and field spectroscopy studies.
Additional work is needed to investigate methods that improve modelling results using field collected spectra. Variation in soil moisture in the field can have a substantial effect on overall reflectance. Other researchers have successful used external parameter orthogonalization (EPO) to correct spectra based on soil moisture variation (Minasny et al. 2009). Initially developed to remove the effects of temperature when analyzing fruit for sugar contents with reflectance spectroscopy (Roger et al. 2003), EPO corrects the spectra based on spectral areas affected by soil moisture and then projects the spectra orthogonal to the soil moisture variation (Minasny et al. 2009). Further work is needed to compare results using low-scale wavelets and EPO corrections to remove the effects of soil moisture from reflectance spectra. Modelling results may also be improved using a detector that allows data collection up to 2500 nm, as SOC has important spectral features between 2200 and 2500 nm (Rossel and Behrens 2010).
Improving the system to simultaneously measure carbonates, salinity and bulk density would increase the benefit of these tools through the dual measurement of soil chemical and physical parameters in the field. The measurement of carbonates using reflectance spectroscopy is well established (Ben-Dor and Banin 1990; Lagacherie et al. 2008; Gomez et al. 2012), and does not represent a significant technical challenge. This parameter could help to inform reclamation practitioners of admixing, since the presence of carbonate-rich material from parent materials is common in reconstructed soils in the Canadian Prairies (Anderson and Cerkowniak 2010). The Veris® P4000 Spectrophotometer Probe has dipole EC contacts and a load cell force sensor integrated into the probe, suitable for measuring soil bulk density. Determining how accurately dipole EC contacts and load cell force sensors can also be used to measure soil salinity and bulk density in situ is necessary before deploying this system for reclamation monitoring.
Acknowledgements
We thank Alberta Environment and Parks [formally the Alberta Environmental Monitoring and Evaluation Agency (AEMERA)] and Alberta Innovates-Technology Futures for providing financial assistance, soil samples, and soil proximal soil data for the project. We also acknowledge the National Science and Engineering Council (NSERC) for providing financial support for this project with a Discovery Grant to S.A. Quideau (no. 462352-2014).