Next Article in Journal
Channel and Timeslot Co-Scheduling with Minimal Channel Switching for Data Aggregation in MWSNs
Next Article in Special Issue
Optical Sensing to Determine Tomato Plant Spacing for Precise Agrochemical Application: Two Scenarios
Previous Article in Journal
Design of a Single Channel Modulated Wideband Converter for Wideband Spectrum Sensing: Theory, Architecture and Hardware Implementation
Previous Article in Special Issue
A Wireless Sensor Network for Growth Environment Measurement and Multi-Band Optical Sensing to Diagnose Tree Vigor
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Spectroscopic Diagnosis of Arsenic Contamination in Agricultural Soils

1
Key Laboratory for Geo-Environmental Monitoring of Coastal Zone of National Administration of Surveying, Mapping and GeoInformation & Shenzhen Key Laboratory of Spatial Smart Sensing and Services & College of Life Sciences and Oceanography, Shenzhen University, 518060 Shenzhen, China
2
Department of Geography, Hong Kong Baptist University, Kowloon Tong, Kowloon, Hong Kong, China
3
School of Resource and Environmental Sciences, Wuhan University, 430079 Wuhan, China
4
Suzhou Institute of Wuhan University, 215000 Suzhou, China
*
Author to whom correspondence should be addressed.
Sensors 2017, 17(5), 1036; https://doi.org/10.3390/s17051036
Submission received: 24 March 2017 / Revised: 24 April 2017 / Accepted: 2 May 2017 / Published: 4 May 2017
(This article belongs to the Special Issue Sensors in Agriculture)

Abstract

:
This study investigated the abilities of pre-processing, feature selection and machine-learning methods for the spectroscopic diagnosis of soil arsenic contamination. The spectral data were pre-processed by using Savitzky-Golay smoothing, first and second derivatives, multiplicative scatter correction, standard normal variate, and mean centering. Principle component analysis (PCA) and the RELIEF algorithm were used to extract spectral features. Machine-learning methods, including random forests (RF), artificial neural network (ANN), radial basis function- and linear function- based support vector machine (RBF- and LF-SVM) were employed for establishing diagnosis models. The model accuracies were evaluated and compared by using overall accuracies (OAs). The statistical significance of the difference between models was evaluated by using McNemar’s test (Z value). The results showed that the OAs varied with the different combinations of pre-processing, feature selection, and classification methods. Feature selection methods could improve the modeling efficiencies and diagnosis accuracies, and RELIEF often outperformed PCA. The optimal models established by RF (OA = 86%), ANN (OA = 89%), RBF- (OA = 89%) and LF-SVM (OA = 87%) had no statistical difference in diagnosis accuracies (Z < 1.96, p < 0.05). These results indicated that it was feasible to diagnose soil arsenic contamination using reflectance spectroscopy. The appropriate combination of multivariate methods was important to improve diagnosis accuracies.

1. Introduction

Soil heavy metal contamination demands effective methods for diagnosing suspected contaminated areas and controlling the rehabilitation process. There is increasing interest in using visible and near-infrared reflectance spectroscopy (VNIRS, 350–2500 nm) to measure soil heavy metal contents and to map its spatial distribution [1], since this technique provides a non-destructive, rapid, and cost-effective method for measuring several soil properties from a single scan, and requires minimal sample preparation and hazardous chemicals [2].
The spectroscopic measurement of heavy metals is usually feasible because of their indirect relationships with some spectral feature soil properties, such as organic matter, iron-oxides or clays [1]. Therefore, the spectral information for soil heavy metal estimations is weak, indirect, and non-specific. Moreover, the spectral features of soil properties in visible/near-infrared spectra are largely overlapping, while other factors, such as surface roughness, moisture content, and organic matter of soil, also weaken the spectroscopic measurement of soil properties [3]. Thus, the analysis of visible/near-infrared spectra requires the use of multivariate chemometric techniques to mathematically extract useful information for soil property estimations.
Pre-processing techniques are commonly used to reduce the random noise, baseline drift and multiple scattering effects in the spectra [1]. For instance, Savitzky-Golay (SG) smoothing is adopted to increase the spectral quality by eliminating random noise. Derivative transformation can remove background interferences, resolve overlapping spectra and minimize the baseline drift caused by the differences in grinding and optical setups [4]. Multiplicative scatter correction (MSC) and standard normal variate (SNV) seek to eliminate the multiplicative interferences of scattering and particle size [5]. Moreover, data enhancement algorithms, such as mean centering (MC) and normalization, are able to highlight the diversities of spectral data, reduce redundant information, and simplify calibration models [5]. For soil reflectance spectroscopy, the type and amount of pre-processing required are data-specific; no single or combination of pre-processing techniques will work well with all data sets [6].
Feature selection techniques, such as successive projection algorithm (SPA), uninformative variables elimination (UVE) and genetic algorithm (GA), are often applied to remove uninformative spectral bands and to select optimal spectral variable subsets for establishing regression models [7,8]. SPA is a forward feature selection technique, and it uses a simple projection operation in a vector space to minimize the collinearity problem [9]. UVE detects uninformative spectral variables based on a stability analysis of regression coefficients (b-coefficient) [10]. GA uses a probabilistic, non-local search process to randomly select an initial spectral data-set and to optimize this data set by considering many combinations of spectral variables and their interactions [10]. In soil spectroscopy, GA always results in better performances than SPA and UVE for soil property estimates [7,8].
These feature selection methods are designed to select features to improve the estimation of numerical variables, such as soil property contents, and they are inappropriate to reduce dimensionality and select features for classifying nominal variables, such as heavy metal contamination levels. Principal component analysis (PCA) and the RELIEF algorithm have been widely applied for feature selection in the classification applications, such as image classification and text categorization [11]. However, as far as we know, PCA and RELIEF have rarely been employed to select features for diagnosing soil heavy metal contamination from soil reflectance spectra.
From a large data-set using trained models, data mining techniques automatically or semi-automatically uncover patterns, which are used on a new data-set for prediction [12]. Various data mining techniques, such as principal component regression (PCR) [13], partial least squares regression (PLSR) [14,15,16], artificial neural network (ANN) [4], multivariate adaptive regression splines (MARS) [17] and support vector machine (SVM) [18,19,20] were employed to train models from spectral data for estimating soil properties, including heavy metals. The ‘training model’ process is synonymously described as ‘machine-learning’, which can be defined as the process of discovering the relationships between predictor and response variables using computer-based statistical methods [21]. In soil science, machine-learning techniques have been used to classify soil types, soil depth classes, and soil drainage classes [22]. However, few studies have adopted machine-learning techniques to diagnose soil heavy metal contamination from soil reflectance spectroscopy [23].
Several studies have adopted multivariate chemometric techniques to quantitatively predict heavy metal contents in agricultural soils by using reflectance spectroscopy. For example, Ren et al. [24] used PLSR to establish a quantitative relation between reflectance spectra and As, and Cu contents in agricultural soils; Wu et al. [13] predicted Hg concentration in suburban agricultural soils of the Nanjing region by using PCR and reflectance spectra within the visible-near-infrared region. By reviewing the literature on soil heavy metal predictions, it is found that the prediction accuracies of soil heavy metal contents usually cannot reach a good quantitative level (the recommended R2 of 0.81 or above for soil analysis [25]) because of the indirect prediction mechanisms. For practical applications, such as soil heavy metal monitoring, contamination remediation, or digital soil mapping, the diagnosis of soil heavy metal contamination may be sufficient rather than accurate heavy metal content estimations. However, at present, soil reflectance spectroscopy is rarely employed to qualitatively diagnose soil heavy metal contamination. To the best of our knowledge, Bray et al. [23] were the first to employ an ordinal logistic regression technique to diagnose Cd, Cu, Pb and Zn contamination in urban soils from reflectance spectra. Therefore, it is interesting and necessary to extend the knowledge about the diagnosis of soil heavy metal contamination by using soil reflectance spectroscopy.
In China, arsenic content has continuously increased in agricultural soils during the past 30 years, because of some anthropogenic activities, such as chemical fertilizers, arsenic-bearing pesticides, animal manures, mining, smelting, and irrigation with arsenic-contaminated water [26]. Excessive arsenic accumulation in agricultural soils can hinder the crops’ growth and decrease the yield and quality of agricultural products. Moreover, as a potent carcinogen, arsenic might pose a serious health threat to the human body, such as malignant arsenical skin lesions, respiratory disease, gastrointestinal disorder, liver malfunction, nervous system disorder and haematological diseases [27].
Given the importance of monitoring arsenic contamination in agricultural soils, this study aimed to compare the abilities of pre-processing techniques (derivative transformations, MSC, SNV, MC) and machine-learning techniques (random forests (RF), ANN, and SVM) in diagnosing soil arsenic contamination from soil reflectance spectroscopy, and to investigate whether the feature selection approaches (PCA and RELIEF) could improve the diagnosis accuracy by using different machine-learning methods. The result of this study is expected to establish a technical process for diagnosing soil heavy metal contamination by using soil reflectance spectroscopy.

2. Materials and Methods

2.1. Soil Samples

In total, 195 historical soil samples collected in Yixing and Zhongxiang regions were used for this work. Yixing (Figure 1b) is located in the south of Jiangsu Province, China, with an annual temperature of 15.7 °C and a mean annual precipitation of 1177 mm. Zhongxiang (Figure 1c) is situated in the middle of Hubei Province, China, and its mean annual temperature is 15.0 °C with a mean annual precipitation of 961 mm. Yixing’s dominant soil types are dystric cambisols, lixisols, anthrosols, alisols, calcaric fluvisols, calcisols, cambisols and gleysols for different crop cultivation [20]. The soils collected from Zhongxiang mainly belong to anthrosols for rice planting [28]. At each sample site, surface soils (0–10 cm) were collected. The industrial wastewater, exhaust gas or waste residues produced by local chemical factories are the major causes of arsenics contamination in agricultural soils in the Zhongxiang region [28]; in Yixing, the contamination may mostly result from sewage irrigation, parent materials or vehicle exhausts [29].

2.2. Laboratory Spectrum and Soil Arsenic Content Measurement

Soil samples were air-dried and ground in a mechanical agate grinder to a particle size of ≤2 mm. The diffuse reflectance spectra were measured by using the FieldSpec3 portable spectroradiometer (ASD Inc., now PANalytical Company, Boulder, CO, USA) with a spectral range of 350 to 2500 nm. The spectral measurements were conducted in a dark room. The air-dried and ground soil sample was placed in a 10 cm diameter petri dish with a thickness of approximately 15 mm. A 50 W halogen lamp was used as the light source, which was positioned 30 cm away from soil sample, with a 15° zenith angle [20]. The optical probe was installed about 15 cm above the soil sample. A Spectralon panel (Labsphere, North Sutton, NH, USA) was used for white referencing once every six measurements.
After spectral measurement, soil samples were further ground, and passed through a 100-mesh sieve (0.15 mm). The finely ground soil samples were digested by HF-HClO4-HNO3. The arsenic contents of digested samples were then analyzed by using a hydride generation atomic fluorescence spectrometry (HG-AFS) method [30]. Certified soil reference materials (GBW 07401, GBW 07402, and GBW 07407, National Research Center for Certified Reference Materials of China) were used to verify the precision of HG-AFS method.
For the purpose of diagnosis, the measured soil arsenic contents were coded into binary 0 or 1, describing uncontaminated or contaminated samples, respectively. The index of geo-accumulation (Igeo) [31] was applied to assess the arsenic contamination in the soils:
I geo = log 2 M As 1.5 B As
where MAs is the measured arsenic contents in the soils, BAs is the geochemical background value of arsenic (13 mg·kg−1), the constant of 1.5 was used to eliminate fluctuations caused by regional differences and anthropogenic influences [31]. Igeo ≤ 0 indicates practically uncontaminated, whereas Igeo > 0 means contaminated [31].

2.3. Pre-Processing Transformations

The whole measured soil arsenic content data and their corresponding spectral data were divided into training (n = 98) and test (n = 97) data sets using a Kennard-Stone algorithm [32], which is effective for selecting spectra-representative samples for model development. The reflectance spectra were first reduced to 400–2450 nm to remove the wavelengths with high noise effects at the spectral edges. The reflectance spectra were then SG smoothed with a moving window of 9 nm. The smoothed spectra were resampled to 10 nm intervals (e.g., 400, 410, and 420 nm, etc.) to eliminate the data redundancy by using a Gaussian model [4]. Moreover, first and second derivatives, MSC, SNV and MC of reflectance spectra were performed for soil spectra to enhance spectral features and to further establish robust diagnosis models. Reflectance spectra were transformed into log(1/Reflectance) before MSC and SNV were performed.

2.4. Feature Selection

PCA and the RELIEF algorithm were applied to extract features from spectral variables of the training data-set. PCA was an optimal linear scheme for extracting several principle components (PCs) from high dimensional variables, and the extracted components can hold the majority of the variables’ information. The RELIEF algorithm, first described by Kira and Rendell [33], was used as a simple, fast and effective approach to weigh variables, and its output is the ranking weights between −1 and 1 for spectral variables, in which the more positive weights indicate more predictive spectral variables. In this study, PCA and the RELIEF algorithm were implemented in Weka (Waikato Environment for Knowledge Analysis). The number of PCs was determined by the diagnosis accuracy of the calibration. The threshold for the RELIEF weight value was set to 0, and the scattered spectral bands with local extreme weights were selected as spectral features to avoid the multicollinearity among RELIEF-selected features.

2.5. Multivariate Diagnosis Analysis

Machine-learning methods, such as RF, ANN and SVM, were employed for calibrating diagnosis models using the training data set. For brevity, the summaries of these techniques were provided, and some key references were cited. Interested readers may find more details about these techniques in these references. In this study, the machine-learning methods were implemented by using a R-based Rattle package developed by Williams [34].

2.5.1. Random Forests (RF)

RF, introduced by Breiman [35], is an ensemble learning method that constructs a multitude of decision trees. For the RF learner, each tree is independently trained from a randomized bootstrap sample of the entire training data set, and a subset of explanatory variables is randomly selected for the node-splitting rules in each tree [36]. In classification, trees are voted by majority [35]. The RF depends only on two user-defined parameters: the number of variables in each random subset (nv) and the number of trees in the forest (nt). In this study, the nv was optimized from 1 to the total number of variables with increments of 1, and nt from 0 to 1000 by increments of 10. The variable that is important for RF modeling can be determined by mean decrease GINI values.

2.5.2. Artificial Neural Network (ANN)

The concept of ANN learner may date back to 1940s when McCulloch and Pitts [37] initially planned to develop a virtual “central nervous system” for computer modeling. The design of ANN simulates the data processing in biological nervous systems. The structure of an ANN consists of a set of interconnected neurons. Some neurons are adopted for the reception of information, others for its forwarding and storage, and another group for the outward release of information [38]. Neurons are connected to each other through weighted synapses. In an ANN, the number of hidden layers and neurons in each hidden layer ought to be optimized [21]. In this study, the number of hidden layers was optimized by iterating this parameter from 1 to 20, and the number of neurons in each layer was set as the total number of variables.

2.5.3. Support Vector Machine (SVM)

SVM is a kernel-based machine learning method developed on the basis of statistical learning theory [39]. SVM applies a kernel function to map training data into a higher dimensional feature space, and computes separating hyperplanes that achieve maximum separation (margin) between the classes [40]. The maximum separation hyperplane is the training data on the margin, which are called support vectors. The quality of the SVM classifier is affected by the type of kernel function, kernel width (γ) and regularization parameter (C) [40]. In this study, radial basis function (RBF) and linear function (LF) were adopted as kernel functions, respectively.

2.6. Validation and Comparison of Diagnosis Models

The calibrated models were applied for diagnosing the contaminated and uncontaminated soil samples of the test data-set. The overall accuracy (OA, Equation (2)) [38] of the test data-set was calculated and employed for comparing the diagnosis abilities of multivariate methods. The same computer environment was kept for running different machine-learning algorithms.
O A = p p + n n p p + n p + p n + n n
where the meanings of pp, np, pn and nn are displayed in Table 1.
The statistical significance of the difference between diagnosis models was evaluated by using McNemar’s test [41], which is based on a binary distinction between correct and incorrect class allocations (Table 2). McNemar’s test is also based on the standardized normal test statistic expressed in Equation (3):
Z = f 12 f 21 f 12 + f 21
Therefore, the test is focused on the cases that are correctly diagnosed by one classifier but misdiagnosed by the other. Two diagnosis models may exhibit different accuracies at the 95% level of confidence if Z > |1.96|.

3. Results

3.1. Soil Arsenic and the Spectra

The percent mean standard error of the HG-AFS method for arsenic determination was 2.9%. The descriptive statistics of soil arsenic of the 195 soil samples are shown in Table 3. For the total data set, the soil arsenic contents varied from 1.91 to 133.36 mg·kg−1, with a mean of 18.13 mg·kg−1 and a standard deviation of 18.67 mg·kg−1. Considering Igeo values, 27%, 26% and 29% of samples were contaminated by arsenic in total, training and test data sets, respectively.
The mean value and standard deviation of original and pre-processed spectra for contaminated and uncontaminated soil samples are shown in Figure 2. Three prominent absorption peaks around 1400, 1900 and 2000 nm are visibly water absorption features [42] (Figure 2a); MC centered the reflectance spectra on 0 values (Figure 2b); SNV (Figure 2c) and MSC (Figure 2d) had similar spectral curves, and served the same purpose to remove the multiple scattering effects in the reflectance spectra; first (Figure 2e) and second (Figure 2f) derivatives minimized the baseline drift and highlight the minor absorption features of reflectance spectra. These demonstrated that the original reflectance and pre-processed spectra of uncontaminated and contaminated soil samples were overlapped, which indicates that there might exist a nonlinear relationship between spectra and soil arsenic contamination.

3.2. Principal Components and RELIEF Selected Features

The first three loadings of the PCA analysis for original reflectance and pre-processed spectra were displayed in Figure 2. The score plots showed that the spectral space of the contaminated samples fell into those of uncontaminated samples. This meant that the linear classifier might be unable to effectively diagnose contaminated or uncontaminated soil samples by using principal components.
The RELIEF weights and the selected spectral features are displayed in Figure 3. The RELIEF weights of the MC spectra (Figure 3b) had the same values as those of original reflectance spectra (Figure 3a), thus the same spectral variables at 400, 470, 930, 1090, 1840, 2140, 2350 and 2400 nm were selected as spectral features for original reflectance and MC spectra. The RELIEF weights of SNV (Figure 3c) and MSC (Figure 3d) processed spectra showed the same tendency, and the same spectral variables at 470, 1100, 1420, 1780, 1910 and 2120 nm were identified as spectral features. Spectral variables at 410, 490, 540, 640, 820, 1210, 1300, 1460, 1940 and 2210 nm (Figure 3e), and variables at 570, 670, 750, 810, 990, 1290, 1400, 1570, 1890, 1990, 2150 and 2220 nm (Figure 3f) were selected as spectral features for first and second derivatives, respectively. Compared with the original reflectance, MC, SNV and MSC spectra, first and second derivatives resulted in more spectral features with higher RELIEF weights.

3.3. Comparison of the Abilities of Different Methods

The operation times, parameter setting, and validated OAs for diagnosis models by using different methods are illustrated in Table 4. The results showed that (1) the suitable combination of pre-processing and feature selection was vital to improve OAs of each machine-learning method; (2) feature selection methods, PCA and RELIEF, could improve modeling accuracies and decrease operation times of modeling, and RELIEF often outperformed PCA; (3) derivative transformation often resulted in the best diagnosis models. The optimal models for RF, ANN, LF and RBF-SVM were described as follows:

3.3.1. RF

The optimal pre-processing method for the RF model was second dervative. The best RF model was calibrated by using 12 RELIEF-selected spectral features, and the optimized nv and nt of the RF model were 3 and 50, respectively. The mean decrease GINI values (Figure 4) showed the importance of the spectral features for RF modeling in descending order as 2150, 810, 1400, 670, 1890, 2220, 1290, 570, 990, 750, 1570 and1990 nm. The validated OA for the RF model was 86%, which mean that the RF model correctly diagnosed 86% of soil samples in the test data-set (Figure 5a).

3.3.2. ANN

The optimal pre-processing method employed for ANN modeling was first derivative; PCA was selected as the feature selection method, and the number of hidden layers was three. The factor number for modeling was eight, and the first eight PCs explained approximately 99% of the variation of the spectral data. The ANN model correctly diagnosed 89% of soil samples in the test data-set (Figure 5b).

3.3.3. SVM

Second derivative was the optimal pre-processing method for RBF-SVM, and first derivative was the optimal pre-processing method for LF-SVM. The optimized C and γ for RBF-SVM were 1 and 0.06, respectively, while the optimized C for LF-SVM was 1. By adopting 12 RELIEF-selected spectral features, the RBF-SVM model correctly diagnosed 89% of soil samples in the test data-set (Figure 5c); and the LF-SVM model correctly diagnosed 87% of soil samples by using the RELIEF-selected spectral features (Figure 5d).

3.3.4. Model Comparison

Figure 5 displayed the predicted values of samples in the test dat-set by using three optimal diagnosis models. McNemar’s test applied to these diagnosis models showed that the Z values were all less than 1.96 (Table 5), which indicated that there was no statistical difference in the diagnosis abilities of these optimal diagnosis models (p < 0.05).

4. Discussion

In this study, with the combination of pre-processing, feature selection and machine-learning methods, the OAs for soil arsenic contamination diagnosis achieved a satisfactory level (OA > 85%). This result demonstrated that VNIRS could be applied to diagnose soil arsenic contamination, although in the process of developing diagnosis models, VNIRS technology depended on conventional methods for providing the ground-truth of soil heavy metal contamination. Compared with conventional methods, this study confirmed that VNIRS might allow for faster and cheaper classification of soil heavy metal contaminants in an increased spatial coverage, which has been suggested by Bray, Viscarra Rossel and McBratney [23].
This study demonstrated that, to establish robust diagnosis models, the trial and error of various pre-processing methods was vital. Pre-processing methods, including SNV, MSC, first derivative, and second derivative, can be employed to eliminate the baseline drift caused by the difference in particle size and optical setups [6]. Derivative transformations also enhance the minor absorption features which may be useful to improve the diagnosis abilities of models. Nevertheless, derivative transformation will add noises into the spectral data, generating more noises with the increase of derivative orders [20]. Therefore, derivative transformations are often applied in conjunction with a smoothing algorithm to amplify noise [6]. Our research suggested that, compared with other pre-processing methods, derivative transformation was a more suitable pre-processing method for developing diagnosis models.
Feature selection methods could improve modeling accuracies by eliminating uninformative spectral variables and increase modeling efficiency by reducing the independent variables for modeling [10]. PCA extracted principle components from spectral variables without consideration of dependent variables (i.e., soil arsenic contamination in this study). However, RELIEF-selected spectral features based on their contributions to the classification of dependent variables [33]. Therefore, the results in this study indicated that RELIEF always outperformed PCA for diagnosing soil arsenic contamination from hyperspectral spectra. We considered that, based on these factors, the RELIEF algorithm was a more suitable method to select spectral features. Moreover, van Groenigen et al. [43] demonstrated that pre-processing methods could strongly influence the reflectance spectra, and they will therefore have an impact on the spectral features. Therefore, in this study, the results indicated that pre-processing methods affected the RELIEF-selected spectral features (Figure 3).
The establishment of robust diagnosis models by using different machine-learning methods (i.e., RF, ANN, LF-SVM, RBF-SVM) depends on the selection of appropriate pre-processing and feature selection methods. In addition, our study demonstrated that these optimal models for machine-learning methods had no statistical difference in diagnosis abilities; moreover, RF was superior to other machine-learning methods because of its ability to simplify parameter optimization and its better models explanatory. In this study, based on mean decrease GINI values, wavelengths at 2150, 810, 1400, and 670 nm can be identified as the first four important wavelengths for diagnosing arsenic contamination with the RF model. Wavelengths near 2150 and 810 nm relate to organic matter, and spectral features near 1400 and 670 nm coincide with wavelengths related to mostly iron oxides [42]. This might demonstrate that the diagnosis of arsenic contamination might depend on its surrogated correlations with organic matter and iron oxides.
Over-fitting is a common problem for modeling. It means that the best diagnosis model for the training data-set will not work well for the test data-set. RF is robust against over-fitting. Breiman [35] observed that the error associated with the error of RF converged to a limit with the increase in the number of trees in a forest. Nevertheless, in the case of ANN, over-fitting is a serious problem [40]. RF is easily accessible to non-specialists because of its simplicity in parameters optimization. However, for SVM, a number of hyper-parameters need to be optimized for each kernel function [40], while its parameters optimization also requires considerable knowledge of the frequently non-trivial underlying mathematics [40]. Moreover, complex machine-learning algorithms, such as SVM and ANN, were not easily interpretable to present relationships between independent and dependent variables [44]. However, RF, a method that performs a majority vote of tree-based classifiers, is explicit and comprehensible, revealing the important spectral variables for modeling [40]. Variable importance in RF can be evaluated by the increase in prediction error when the out-of-bag data are permuted for a certain variable, while keeping all other data constant. Considering these advantages, we regarded RF as a more efficient machine-learning method for modeling soil arsenic contamination levels.
This study investigated the abilities of laboratory reflectance spectroscopy to diagnose soil arsenic contamination. The field and air-/space-borne imaging spectroscopy have the potential to rapidly map heavy metal contamination over large areas [17,45,46]. Compared with laboratory spectroscopy, the application of field or imaging spectroscopy faces some constraints, such as soil surface, atmospheric and illumination conditions [47]. Therefore, the principles of this study should be further tested with field and imaging data.

5. Conclusions

The spectroscopic diagnosis of soil arsenic contamination is feasible, and the appropriate combination of pre-processing, feature selection and machine-learning methods is important for diagnosis accuracies. The RELIEF algorithm is a simple and efficient method to extract spectral features to improve modeling efficiency and diagnosis accuracy. Compared with ANN and SVM, RF is a more optimal machine-learning method for developing diagnosis models, because of its ability to simplify parameter optimization and its better models explanatory.

Acknowledgments

This study was supported by the China Postdoctoral Science Foundation (No. 2016M602521), by Science and Technology Bureau of Suzhou (No. SYN201309), the Scientific Research Foundation for Newly High-End Talents of Shenzhen University, the Basic Research Program of Shenzhen Science and Technology Innovation Committee (No. JCYJ20151117105543692), and Shenzhen Future Industry Development Funding Program (No. 201507211219247860).

Author Contributions

Tiezhu Shi and Guofeng Wu conceived and designed the experiments; Tiezhu Shi, Huizeng Liu and Yiyun Chen performed the experiments; Junjie Wang and Teng Fei analyzed the data; Tiezhu Shi wrote the paper. All authors conctributed, reviewed and improved this manuscript.

Conflicts of Interest

The authors declare no confict of interest.

References

  1. Shi, T.Z.; Chen, Y.Y.; Liu, Y.L.; Wu, G.F. Visible and near-infrared reflectance spectroscopy—An alternative for monitoring soil contamination by heavy metal. J. Hazard. Mater. 2014, 265, 166–176. [Google Scholar] [CrossRef] [PubMed]
  2. Viscarra Rossel, R.A.; Walvoort, D.J.J.; McBratney, A.B.; Janik, L.J.; Skjemstad, J.O. Visible, near infrared, mid infrared or combined diffuse reflectance spectroscopy for simultaneous assessment of various soil properties. Geoderma 2006, 131, 59–75. [Google Scholar] [CrossRef]
  3. Ben-Dor, E.; Irons, J.R.; Epema, G.F. Remote Sensing of the Earth Sciences: Manual of Remote Sensing; Wiley: New York, NY, USA, 1999. [Google Scholar]
  4. Kemper, T.; Sommer, S. Estimate of heavy metal contamination in soils after a mining accident using reflectance spectroscopy. Environ. Sci. Technol. 2002, 36, 2742–2747. [Google Scholar] [CrossRef] [PubMed]
  5. Chu, X.L.; Yuan, H.F.; Lu, W.Z. Progress and application of spectral data pretreatment and wavelength selection methods in nir analytical technique. Prog. Chem. 2004, 16, 528–542. (In Chinese) [Google Scholar]
  6. Stenberg, B.; Viscarra Rossel, R.A.; Mouazen, A.M.; Wetterlind, J. Visible and Near Infrared Spectroscopy in Soil Science; Agronomy, A.I., Ed.; Academic Press: Burlington, VT, USA, 2010; Volume 107, pp. 163–215. [Google Scholar]
  7. Vohland, M.; Emmerling, C. Determination of total soil organic c and hot water-extractable c from vis-nir soil reflectance with partial least squares regression and spectral feature selection techniques. Eur. J. Soil Sci. 2011, 62, 598–606. [Google Scholar] [CrossRef]
  8. Shi, T.Z.; Chen, Y.Y.; Liu, H.Z.; Wang, J.J.; Wu, G.F. Soil organic carbon content estimation with laboratory-based visible-near-infrared reflectance spectroscopy: Feature selection. Appl. Spectrosc. 2014, 68, 831–837. [Google Scholar] [CrossRef] [PubMed]
  9. Araújo, M.C.U.; Saldanha, T.C.B.; Galvão, R.K.H.; Yoneyama, T.; Chame, H.C.; Visani, V. The successive projections algorithm for variable selection in spectroscopic multicomponent analysis. Chemom. Intell. Lab. Syst. 2001, 57, 65–73. [Google Scholar] [CrossRef]
  10. Zou, X.B.; Zhao, J.W.; Malcolm, J.W.; Holmes, M.; Mao, H.P. Variables selection methods in near-infrared spectroscopy. Anal. Chim. Acta 2010, 667, 14–32. [Google Scholar]
  11. Guyon, I.; Elisseeff, A. An introduction to variable and feature selection. J. Mach. Learn. Res. 2003, 3, 1157–1182. [Google Scholar]
  12. Witten, I.H.; Frank, E. Data Mining: Practical Machine Learning Tools and Techniques; Elsevier: San Francisco, CA, USA, 2005. [Google Scholar]
  13. Wu, Y.Z.; Chen, J.; Ji, J.F.; Tian, Q.J.; Wu, X.M. Feasibility of reflectance spectroscopy for the assessment of soil mercury contamination. Environ. Sci. Technol. 2005, 39, 873–878. [Google Scholar] [CrossRef] [PubMed]
  14. Kooistra, L.; Wehrens, R.; Leuven, R.S.E.W.; Buydens, L.M.C. Possibilities of visible-near-infrared spectroscopy for the assessment of soil contamination in river floodplains. Anal. Chim. Acta 2001, 446, 97–105. [Google Scholar] [CrossRef]
  15. Wu, Y.Z.; Chen, J.; Wu, X.M.; Tian, Q.J.; Ji, J.F.; Qin, Z.H. Possibilities of reflectance spectroscopy for the assessment of contaminant elements in suburban soils. Appl. Geochem. 2005, 20, 1051–1059. [Google Scholar] [CrossRef]
  16. Chen, T.; Chang, Q.R.; Clevers, J.G.P.W.; Kooistra, L. Rapid identification of soil cadmium pollution risk at regional scale based on visible and near-infrared spectroscopy. Environ. Pollut. 2015, 206, 217–226. [Google Scholar] [CrossRef] [PubMed]
  17. Wu, Y.Z.; Zhang, X.; Liao, Q.L.; Ji, J.F. Can contaminant elements in soils be assessed by remote sensing technology: A case study with simulated data. Soil Sci. 2011, 176, 196–205. [Google Scholar] [CrossRef]
  18. Tan, K.; Ye, Y.Y.; Du, P.J.; Zhang, Q.Q. Estimation of heavy metal concentrations in reclaimed mining soils using reflectance spectroscopy. Spectrosc. Spectr. Anal. 2014, 34, 3317–3322. [Google Scholar]
  19. Lucà, F.; Conforti, M.; Castrignanò, A.M.; Matteucci, G.; Buttafuoco, G. Effect of calibration set size on prediction at local scale of soil carbon by vis-nir spectroscopy. Geoderma 2017, 288, 175–183. [Google Scholar] [CrossRef]
  20. Shi, T.Z.; Cui, L.J.; Wang, J.J.; Fei, T.; Chen, Y.Y.; Wu, G.F. Comparison of multivariate methods for estimating soil total nitrogen with visible/near-infrared spectroscopy. Plant Soil 2013, 366, 363–375. [Google Scholar] [CrossRef]
  21. Heung, B.; Ho, H.C.; Zhang, J.; Knudby, A.; Bulmer, C.E.; Schmidt, M.G. An overview and comparison of machine-learning techniques for classification purposes in digital soil mapping. Geoderma 2016, 265, 62–77. [Google Scholar] [CrossRef]
  22. Brungard, C.W.; Boettinger, J.L.; Duniway, M.C.; Wills, S.A.; Edwards, T.C. Machine learning for predicting soil classes in three semi-arid landscapes. Geoderma 2015, 239–240, 68–83. [Google Scholar] [CrossRef]
  23. Bray, J.G.P.; Viscarra Rossel, R.A.; McBratney, A.B. Diagnostic screening of urban soil contaminations using diffuse reflectance spectroscopy. Aust. J. Soil Sci. 2009, 47, 433–442. [Google Scholar] [CrossRef]
  24. Ren, H.Y.; Zhuang, D.F.; Singh, A.N.; Pan, J.J.; Qiu, D.S.; Shi, R.H. Estimation of as and cu contamination in agricultural soils around a mining area by reflectance spectroscopy: A case study. Pedosphere 2009, 19, 719–726. [Google Scholar] [CrossRef]
  25. Vohland, M.; Besold, J.; Hill, J.; Frund, H.C. Comparing different multivariate calibration methods for the determination of soil organic carbon pools with visible to near infrared spectroscopy. Geoderma 2011, 166, 198–205. [Google Scholar] [CrossRef]
  26. Huang, R.Q.; Gao, S.F.; Wang, W.L.; Staunton, S.; Wang, G. Soil arsenic availability and the transfer of soil arsenic to crops in suburban areas in fujian province, southeast China. Sci. Total Environ. 2006, 368, 531–541. [Google Scholar] [CrossRef] [PubMed]
  27. Santra, S.C.; Samal, A.C.; Bhattacharya, P.; Banerjee, S.; Biswas, A.; Majumdar, J. Arsenic in foodchain and community health risk: A study in gangetic west bengal. Procedia Environ. Sci. 2013, 18, 2–13. [Google Scholar] [CrossRef]
  28. Shi, T.Z.; Liu, H.Z.; Wang, J.J.; Chen, Y.Y.; Fei, T.; Wu, G.F. Monitoring arsenic contamination in agricultural soils with reflectance spectroscopy of rice plants. Environ. Sci. Technol. 2014, 48, 6264–6272. [Google Scholar] [CrossRef] [PubMed]
  29. Wang, J.J.; Cui, L.J.; Gao, W.X.; Shi, T.Z.; Chen, Y.Y.; Gao, Y. Prediction of low heavy metal concentrations in agricultural soils using visible and near-infrared reflectance spectroscopy. Geoderma 2014, 216, 1–9. [Google Scholar] [CrossRef]
  30. Guo, J.H.; Ma, H.; Wang, S.F. Determination of arsenic in national standard reference soil and stream sediment samples by atomic fluorescence spectrometry. Rock Miner. Anal. 2009, 28, 182–184. (In Chinese) [Google Scholar]
  31. Loska, K.; Wiechula, D.; Korus, I. Metal contamination of farming soils affected by industry. Environ. Int. 2004, 30, 159–165. [Google Scholar] [CrossRef]
  32. Kennard, R.W.; Stone, L.A. Computer aided design of experiments. Technometrics 1969, 11, 137–148. [Google Scholar] [CrossRef]
  33. Kira, K.; Rendell, L. A practical appoach to feature selection. In The Ninth International Workshop on Machine Learning; Sleeman, D., Edwards, P., Eds.; Morgan Kaufmann: Aberdeen, UK, 1992. [Google Scholar]
  34. Williams, G.J. Rattle: A data mining gui for R. R J. 2009, 1, 45–55. [Google Scholar]
  35. Breiman, L. Random forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef]
  36. Breiman, L. Bagging predictors. Mach. Learn. 1996, 24, 123–140. [Google Scholar] [CrossRef]
  37. McCulloch, W.S.; Pitts, W. A logical calculus of the ideas immanent in nervous activity. Bull. Math. Biophys. 1943, 54, 115–133. [Google Scholar] [CrossRef]
  38. Behrens, T.; Förster, H.; Scholten, T.; Steinrücken, U.; Spies, E.D.; Goldschmitt, M. Digital soil mapping using artificial neural networks. J. Plant Nutri. Soil Sci. 2005, 168, 21–33. [Google Scholar] [CrossRef]
  39. Vapnik, V. The Nature of Statistical Learning Theory; Springer: New York, NY, USA, 1995. [Google Scholar]
  40. Kampichler, C.; Wieland, R.; Calme, S.; Weissenberger, H.; Arriaga-Weiss, S. Classification in conservation biology: A comparison of five machine-learning methods. Ecol. Inf. 2010, 5, 441–450. [Google Scholar] [CrossRef]
  41. Foody, G.M. Thematic map comparison: Evaluating the statistical significance of differences in classification accuracy. Photogramm. Eng. Remote Sensing 2004, 70, 623–633. [Google Scholar] [CrossRef]
  42. Viscarra Rossel, R.; Behrens, T. Using data mining to model and interpret soil diffuse reflectance spectra. Geoderma 2010, 158, 46–54. [Google Scholar] [CrossRef]
  43. Van Groenigen, J.W.; Mutters, C.S.; Horwath, W.R.; van Kessel, C. Nir and drift-mir spectrometry of soils for predicting soil and crop parameters in a flooded field. Plant Soil 2003, 250, 155–165. [Google Scholar] [CrossRef]
  44. Vinterbo, S.A.; Kim, E.Y.; Ohno-Machado, L. Small, fuzzy and interpretable gene expression based classifiers. Bioinformatics 2005, 21, 1964–1970. [Google Scholar] [CrossRef] [PubMed]
  45. Choe, E.; van der Meer, F.; van Ruitenbeek, F.; van der Werff, H.; de Smeth, B.; Kim, K.W. Mapping of heavy metal pollution in stream sediments using combined geochemistry, field spectroscopy, and hyperspectral remote sensing: A case study of the rodalquilar mining area, se spain. Remote Sensing Environ. 2008, 112, 3222–3233. [Google Scholar] [CrossRef]
  46. Kemper, T.; Sommer, S. Use fo airborne hyperspectral data to estimate residual heavy metal contamination and acidification potential in the guadiamar floodplain andalusia, spain after the aznacollar mining accident. Proc. SPIE 2004, 5574, 224–234. [Google Scholar]
  47. Stevens, A.; Udelhoven, T.; Denis, A.; Tychon, B. Measuring soil organic carbon in croplands at regional scale using airborne imaging spectroscopy. Geoderma 2010, 158, 32–45. [Google Scholar] [CrossRef]
Figure 1. Study areas (a) and spatial distribution of soil samples in Yixing (b) and Zhongxiang (c).
Figure 1. Study areas (a) and spatial distribution of soil samples in Yixing (b) and Zhongxiang (c).
Sensors 17 01036 g001
Figure 2. The reflectance spectra and the three first principal components (PC1, PC2 and PC3) for the contaminated and uncontaminated soil samples: (a) original reflectance spectra, (b) mean centering spectra, (c) standard normal variate spectra, (d) multiplicative scatter correction spectra, (e) first derivative spectra, and (f) second derivative spectra.
Figure 2. The reflectance spectra and the three first principal components (PC1, PC2 and PC3) for the contaminated and uncontaminated soil samples: (a) original reflectance spectra, (b) mean centering spectra, (c) standard normal variate spectra, (d) multiplicative scatter correction spectra, (e) first derivative spectra, and (f) second derivative spectra.
Sensors 17 01036 g002aSensors 17 01036 g002b
Figure 3. RELIEF weights and the selected spectral features for original reflectance spectra (a), mean centering spectra (b), standard normal variate spectra (c), multiplicative scatter correction spectra (d), first derivative spectra (e), and second derivative spectra (f). The threshold of RELIEF weight was set to 0 (horizontal dashed lines).
Figure 3. RELIEF weights and the selected spectral features for original reflectance spectra (a), mean centering spectra (b), standard normal variate spectra (c), multiplicative scatter correction spectra (d), first derivative spectra (e), and second derivative spectra (f). The threshold of RELIEF weight was set to 0 (horizontal dashed lines).
Sensors 17 01036 g003aSensors 17 01036 g003b
Figure 4. Mean decrease GINI values for RELIEF-selected spectral features.
Figure 4. Mean decrease GINI values for RELIEF-selected spectral features.
Sensors 17 01036 g004
Figure 5. Values of samples predicted by using: (a) second derivative spectra (second), RELIEF and random forests; (b) first derivative spectra (first), principle component analysis and artificial neural network; (c) second, RELIEF and radial basis function-based support vector machine (SVM); and (d) first, RELIEF and linear function-based SVM. Value 1 indicates contaminated, and value 0 indicates uncontaminated. The correctly-diagnosed and misdiagnosed samples are displayed in the figures.
Figure 5. Values of samples predicted by using: (a) second derivative spectra (second), RELIEF and random forests; (b) first derivative spectra (first), principle component analysis and artificial neural network; (c) second, RELIEF and radial basis function-based support vector machine (SVM); and (d) first, RELIEF and linear function-based SVM. Value 1 indicates contaminated, and value 0 indicates uncontaminated. The correctly-diagnosed and misdiagnosed samples are displayed in the figures.
Sensors 17 01036 g005
Table 1. Confusion matrix of observed and diagnosed soil samples for calculating overall accuracy 1.
Table 1. Confusion matrix of observed and diagnosed soil samples for calculating overall accuracy 1.
AllocationObserved
Contaminated (Positive, Value = 1)Uncontaminated (Negative, Value = 0)
PredictedContaminated (positive, value = 1) ppnp
Uncontaminated (negative, value = 0)pnnn
1 pp: number of correctly diagnosed contaminated soil samples; np: number of falsely diagnosed uncontaminated soil samples; pn: number of falsely diagnosed contaminated soil samples; nn: number of correctly diagnosed uncontaminated soil samples.
Table 2. Assessment of the statistical significance of the difference between two diagnosis models using McNemar’s Test 1.
Table 2. Assessment of the statistical significance of the difference between two diagnosis models using McNemar’s Test 1.
AllocationDiagnosis Model 2
CorrectIncorrect
Diagnosis model 1Correctf11f12
Incorrectf21f22
1 f12: the test soil samples that are correctly diagnosed by diagnosis model 1 but misdiagnosed by diagnosis model 2; f21 the test soil samples that are correctly diagnosed by diagnosis model 2 but misdiagnosed by diagnosis model 1.
Table 3. Statistical descriptions for the arsenic contents (mg·kg−1) and the percent value of contaminated samples (per %) 1.
Table 3. Statistical descriptions for the arsenic contents (mg·kg−1) and the percent value of contaminated samples (per %) 1.
No.MinimumMaximumMeanStd.Per %
Total data set1951.91133.3618.1318.6727
Training data set981.91106.1012.7016.8126
Test data set974.40133.3619.0020.4329
1 No.: number of samples; Std.: standard deviation.
Table 4. The operation times, parameter setting, and overall accuracies for diagnosis models by using different pre-processing, feature selection and machine-learning methods 1.
Table 4. The operation times, parameter setting, and overall accuracies for diagnosis models by using different pre-processing, feature selection and machine-learning methods 1.
Machine-Learning MethodsPre-Processing MethodsFeature Selection Methods
No Feature SelectionPCARELIEF
Parameterstime (s)OA (%)nPCParameterstime (s)OA (%)nfeatureParameterstime (s)OA (%)
ntnvntnvntnv
RFnone7050.328056070.2282815050.0485
MC27040.2774716020.1783813030.0371
SNV29030.328472020.057066030.0382
MSC15040.257163020.037163020.0371
1st5020.257788040.0579103030.0381
2nd20020.288565040.0571125020.0586
Parameterstime (s)OA (%)nPCParameterstime (s)OA (%)nfeatureParameterstime (s)OA (%)
nlayernlayernlayer
ANNnone10.3486690.0571830.0284
MC20.4876820.04718100.0576
SNV10.2781620.0364660.0386
MSC10.2829820.0340630.0252
1st30.6787830.03891010.0381
2nd10.3082520.03621210.0375
Parameterstime (s)OA (%)nPCParameterstime (s)OA (%)nfeatureParameterstime (s)OA (%)
γCnsvγCnsvγCnsv
RBF-SVMnone0.011320.118070.041320.058580.171320.0282
MC0.011320.147070.081350.058780.381310.0376
Machine-learning methodsPre-processing methodsFeature selection methods
No feature selectionPCARELIEF
Parameterstime (s)OA (%)nPCParameterstime (s)OA (%)nfeatureParameterstime (s)OA (%)
γCnsvγCnsvγCnsv
RBF-SVMSNV0.011360.098190.041420.046660.281360.0380
MSC0.011370.087150.231380.037160.311370.0271
1st0.011460.067980.051430.0575100.091330.3382
2nd0.011530.088150.071410.0371120.061420.0589
Parameterstime (s)OA (%)nPCParameterstime (s)OA (%)nfeatureParameterstime (s)OA (%)
CnsvCnsvCnsv
LF-SVMnone1360.168471350.058181370.0580
MC1360.128571350.058581350.0379
SNV1330.118651270.065661390.0672
MSC1340.112951390.062961390.0473
1st1260.098081270.0580101290.0587
2nd1360.107641300.0663121260.0581
1 RF: random forests; ANN: artificial neural network; SVM: support vector machine; RBF: radial basis function; LF: linear function; MC: mean centering; SNV: standard normal variate; MSC: multiplicative scatter correction; 1st: first derivative; 2nd: second derivative; PCA: principle component analysis; time: operation time for calibration; OA: validated overall accuracy; nPC: number of principle components; nfeature: number of RELIEF selected features. nt: number of trees; nv: number of variables; nlayer: number of layers; nsv: number of support vectors. C: regularization parameter; γ: kernel width. The results of selected models are emphasized in bold.
Table 5. Z Values of McNemar’s test between the optimal diagnosis models.1
Table 5. Z Values of McNemar’s test between the optimal diagnosis models.1
Second + RELIEF + RFFirst + PCA + ANNSecond + RELIEF + RBF-SVM
First + PCA + ANN0.24
Second + RELIEF + RBF-SVM0.900.00
First + RELIEF + LF-SVM0.300.260.41
1 Second: second derivative spectra; First: first derivative spectra; PCA: principle component analysis; RF: random forests; ANN: artificial neural network; SVM: support vector machine; RBF: radial basis function; LF: linear-function.

Share and Cite

MDPI and ACS Style

Shi, T.; Liu, H.; Chen, Y.; Fei, T.; Wang, J.; Wu, G. Spectroscopic Diagnosis of Arsenic Contamination in Agricultural Soils. Sensors 2017, 17, 1036. https://doi.org/10.3390/s17051036

AMA Style

Shi T, Liu H, Chen Y, Fei T, Wang J, Wu G. Spectroscopic Diagnosis of Arsenic Contamination in Agricultural Soils. Sensors. 2017; 17(5):1036. https://doi.org/10.3390/s17051036

Chicago/Turabian Style

Shi, Tiezhu, Huizeng Liu, Yiyun Chen, Teng Fei, Junjie Wang, and Guofeng Wu. 2017. "Spectroscopic Diagnosis of Arsenic Contamination in Agricultural Soils" Sensors 17, no. 5: 1036. https://doi.org/10.3390/s17051036

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop