Next Article in Journal
Rice Yield and Nitrogen Use Efficiency Under Climate Change: Unraveling Key Drivers with Least Absolute Shrinkage and Selection Operator Regression
Next Article in Special Issue
Heavy Metals Distribution and Source Identification in Contaminated Agricultural Soils: Isotopic and Multi-Model Analysis
Previous Article in Journal
Foliar Application of K-Silicate and L-Cysteine Enhances Production, Quality, and Antioxidant Activities of Cape Gooseberry Fruits Under Drought Conditions
Previous Article in Special Issue
Evaluating the Level of Total Mercury Present in the Soils of a Renowned Tea Production Region
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Fusion XGBoost Approach for Large-Scale Monitoring of Soil Heavy Metal in Farmland Using Hyperspectral Imagery

1
School of Remote Sensing and Information Engineering, North China Institute of Aerospace Engineering, Langfang 065000, China
2
Agricultural Resources and Environmental Research Institute, Guangxi Academy of Agricultural Sciences/Guangxi Key Laboratory of Arable Land Conservation, Nanning 530007, China
3
State Key Laboratory of Remote Sensing Science, Beijing Normal University, Beijing 100875, China
4
School of Geosciences and Info-Physics, Central South University, Changsha 410083, China
5
School of Information Engineering, China University of Geosciences, Beijing 100083, China
*
Authors to whom correspondence should be addressed.
These authors contributed equally to this work.
Agronomy 2025, 15(3), 676; https://doi.org/10.3390/agronomy15030676
Submission received: 6 February 2025 / Revised: 28 February 2025 / Accepted: 8 March 2025 / Published: 11 March 2025
(This article belongs to the Special Issue Heavy Metal Pollution and Prevention in Agricultural Soils)

Abstract

:
Heavy metal pollution of farmland is worsened by the excessive introduction of heavy metal elements into soil systems, posing a substantial threat for global food security and human health. The traditional laboratory-based methods for monitoring soil heavy metals are limited for large-scale applications, while hyperspectral imagery data-based methods still face accuracy challenges. Therefore, a fusion XGBoost model based on the superposition of ensemble learning and packaging methods is proposed for large-scale monitoring with high accuracy of soil heavy metal using hyperspectral imagery. We took Xiong’an New Area, Hebei Province, as the study area, and acquired heavy metal content using chemical analysis. The XGB-Boruta-PCC algorithm was used for precise feature selection to obtain the final modeled spectral response features. On this basis, the performance indicators of the Optuna-optimized XGBoost model were compared with traditional linear and nonlinear models. The optimal model was extended to the entire region for drawing the spatial distribution map of soil heavy metal content. The results suggested that the XGB-Boruta-PCC method effectively achieved double dimensionality reduction of high-dimensional hyperspectral data, extracting spectral response features with a high contribution, which, combined with the XGBoost model, exhibited greater general estimation accuracies for heavy metal (Pb) in farmland (i.e., Pb: R2 = 0.82, RMSE = 11.58, MAE = 9.89). The results of the mapping indicated that there were exceedances for the southwest and parts of the west over the research region. Factories and human activities were the potential causes of heavy metal Pb contamination in farmland. In conclusion, this innovative method can quickly and accurately achieve monitoring large-scale soil heavy metal contamination in farmland, with ZY-1-02E spaceborne hyperspectral imagery proving to be a reliable tool for mapping soil heavy metal in farmland.

1. Introduction

Heavy metal pollution has seriously endangered human life, and its characteristics, such as difficult degradation, easy enrichment, and high toxicity, have a significant impact on crop growth, production, and quality [1,2]. Heavy metal pollution of farmland soil can inhibit the dominant bacterial communities in the soil environment and microbial growth, particularly with the frequent use of chemicals and fertilizers, and the problem of heavy metal contamination for farmland soils has become increasingly serious [3]. Lead (Pb) is a typical heavy metal contaminant [4]. Once it infiltrates the soil, it exhibits low mobility, long residual times, and resistance to microbial degradation, making its remediation and control challenging. Its accumulation and migration within the soil can endanger regional ecological stability and affect the growth and development of flora and fauna, posing serious risks to human health through the food chain [5,6]. Therefore, efficient monitoring of Pb content in farmland soil is essential for ensuring food security and ecological safety.
Currently, the inversion research into soil heavy metal content mainly relies on the direct monitoring of ground-measured hyperspectral data. This method meets the present demand for rapid, nondestructive, and quantitative monitoring of soil heavy metal content [7,8]. For instance, Zhang et al. [9] indirectly constructed an improved PLSR soil heavy metal Pb content inversion model with a genetic algorithm (GA) by acquiring the spectral characteristic wavelengths of iron oxides through the field-measured spectra. Wang et al. [10] obtained the measured hyperspectral curves and content using spectrometry and chemical analysis, constructing six heavy metal inversion models. However, the use of ASD spectra data and heavy metal concentrations to construct models for direct monitoring can achieve high inversion accuracy, which is too expensive in terms of instrumentation and equipment, and consumes considerable manpower and material resources. This makes the regional application costly and less scalable [11].
Fortunately, the use of remote sensing technology with relatively continuous spectral coverage of visible near-infrared reflectance (VNIR) for estimating soil heavy metal content is increasingly becoming a research focus, opening new avenues for cost-effective and large-scale monitoring of heavy metal content [12]. The ability to estimate soil heavy metal concentrations using remote sensing images from multiple sensors, such as the WorldView-3 [13], Landsat 8 [14], Sentinel-2 [15], GF-2 [16], and HJ-1A [17,18], has been documented in published research. Zhang et al. [19] used Landsat8 OLI and Sentinel-2 images to invert the Au element of the South African tailings. Wang et al. [16] utilized GF-2 multispectral and measured spectra to establish multivariable factor models. The first four satellites mentioned above belong to multispectral sensors with limited bands. However, the shortcomings of the currently available sensors were clear. They cannot detail soil responses to heavy metal stress with single bands alone, requiring supplementary auxiliary factor variables for heavy metal content estimation [20,21]. Therefore, the above satellite sensors are still deficient in estimating soil heavy metal levels.
However, following the launch of domestic satellites such as GF-5, ZY-1-02D, and ZY-1-02E, accessible hyperspectral satellite data resources are becoming increasingly abundant. The subtle spectral changes in the soil in multiple bands can be captured, which are relevant to the heavy metal content in soil. They promoted the application of hyperspectral remote sensing in this research direction. Zhang et al. [22] used reflectance of GF-5 hyperspectral images to predict the content of heavy metal Zn, Ni, and Cu in coal mines, with good inversion results. Lin et al. [23] constructed a stacking model by utilizing ZY-1-02D images and applied it to the images to obtain large-scale soil heavy metal contamination information. The satellite hyperspectral data can take advantage of its “image–spectrum integration” to enable rapid and nondestructive monitoring for soil heavy metal concentrations over large areas. Unfortunately, the GF-5 satellite is no longer in service. Compared with existing hyperspectral satellite data, ZY-1-02E AHSI carries multiple spectral band sensors, which can acquire rich spectral information and is conducive to inverting soil heavy metal content. Yet, there are fewer studies related to inversion for heavy metal content in farmland soil using ZY-1-02E AHSI hyperspectral remote sensing images. There are still challenges in monitoring the concentrations of heavy metals in farmland using hyperspectral images [24]. Consequently, there is an essential need to assess the feasibility by utilizing ZY-1-02E remotely sensed imagery for estimating heavy metal content in farmland and attempt to fill this gap.
Hyperspectral remotely sensed data with hundreds of consecutive narrow bands provide more detailed spectral information than traditional single-band remotely sensed data [25]. However, data characteristics such as high latitude, high redundancy, and low correlation might have a negative influence on the stability and accuracy for modeling. To simplify models and improve the prediction accuracy model, many scholars have introduced feature selection algorithms into the constructed inversion models [26]. Methods such as the Pearson method (PCC), genetic algorithm (GA) [27,28], competitive adaptive reweighted sampling algorithm (CARS) [29], successive projection algorithm (SPA) [30], and slime mold algorithm (SMA) [10] have been recognized for their ability to explain characteristics and their certain statistical basis [31]. In addition, the Boruta algorithm has demonstrated its effectiveness in extracting feature bands [22,32]. Nevertheless, heavy metal-contaminated soils in farmland exhibit weak signals on their spectral characteristics, which makes it difficult to determine effective spectrum response bands from soil spectral information. Meanwhile, effective spectral transforms may extract useful information from complex spectral reflectance, highlighting the absorption and reflection properties of the spectra [33,34], but some band redundancy still exists. Therefore, it is necessary to combine the advantages of both the optimized spectral index and the feature selection algorithm for hyperspectral remotely sensed monitoring of soil heavy metals in farmland.
Hyperspectral remote sensing analysis of soil heavy metals relies heavily on establishing a suitable regression model. While traditional statistical models, such as partial least squares (PLS) [35] and multiple linear regression (MLR), are commonly used, they often fail to capture the nonlinear relationships between soil heavy metal content and spectral reflectance. Using nonlinear models can yield better prediction results and significantly enhance the accuracies of hyperspectral soil heavy metal estimation [36,37]. Machine learning approaches have been widely utilized for soil heavy metal estimation, including random forest (RF), extreme learning machine (ELM), general regression neural network (GRNN) [38], and deep neural network (DNN) [39]. Compared to traditional statistical models, machine learning methods offer faster training, better suitability for small samples and high-dimensional data processing, and strong nonlinear and adaptive capabilities. Shen et al. [35] conducted a BPNN model to indirectly invert heavy metal Cu content in a mining location. The prediction accuracy was improved by 0.06 compared to a linear model. Zhou et al. [40] found that RF provided better estimation accuracies than SVM and PLSR in estimating six soil metal content. Chen et al. [41] showed that ELM, SVM, and RF performed better than PLSR in estimating Pb, Cr, and Zn in farmland soil.
Ensemble learning approaches have increasingly become an essential tool for soil heavy metal content inversion studies because of their superior stability, accuracy, and efficiency. Commonly used ensemble learning frameworks of heavy metal content inversion include RF, GBDT, AdaBoost [42], XGBoost [43], and Stacking [12]. Among them, RF is a typical representation of the bagging approach, boosting the diversity and generalization of the model by introducing randomness [44,45]. The XGBoost model can efficiently capture complex nonlinear relations from data with a certain degree of interpretability, which is important for understanding the key influencing factors in heavy metal content inversion. It has been particularly successful in handling high-dimensional remote sensing data and providing accurate predictions [43,46]. Tan et al. [42] and Sun et al. [47] have demonstrated the effectiveness of ensemble models like AdaBoost and XGBoost in estimating heavy metal concentrations, with XGBoost outperforming other methods in predicting Ni levels and other heavy metals. Despite its success in other soil heavy metals [48], XGBoost has had fewer applications for estimating Pb content in farmland soils, which remains an area for further exploration.
The aim of this study is to develop an efficient framework for estimating heavy metal content in soil over a large area using hyperspectral image data from the ZY-1-02E satellite. We tried to explore an XGBoost fusion method that combines the advantages of the ensemble learning method and the packing method. The key variables with a strong correlation with heavy metal content were identified from the high-dimensional spectral data, and the prediction performance of the XGBoost model was compared with four traditional estimation models. The best prediction model was selected to obtain the spatial distribution map of the heavy metal Pb content in farmland soil. The results of the study provide valuable insights and technical support for building a green, sustainable, and high-quality agricultural system in Xiong’an New Area.

2. Materials and Methods

2.1. Research Region

Xiong’an New Area (115°38′ ~ 116°20′ E, 38°43′ ~ 39°10′ N) is located in Baoding City in the central hinterland of Hebei Province, covering Xiong County, Rongcheng County, Anxin County, and parts of the surrounding areas, with a flat terrain and four distinct seasons [49]. The sampling area of the study covers the entire Xiong’an New Area, with abundant water resources, including Baiyangdian Lake and Caogou Canal (Figure 1). It is crossed by tributaries such as the Tanghe River, Fuhe River, Qingshuihe River, and Caohe River in the area. The sample area is mainly selected around potentially polluting enterprises and locations where major pollution events have occurred. Among these, Laohetou Town and Anzhou Town in Anxin County are sites for non-ferrous metal production and processing. Parts of the Fuhu River and the Tang River watersheds were sites of enterprise and residential wastewater discharge. Rongcheng County is the gathering place of the paper and fleece industries. Unlike Xiong County, Anxin and Rongcheng counties primarily practiced agriculture reliant on polluted irrigation methods. Crops are predominantly grown in the southwest and northwest of Xiong’an New Area, with winter wheat and corn being primary crops, supplemented by soybean and sweet potato.

2.2. Soil Sample Collection and Testing

We collected soil samples in late October 2022, after the sowing of winter wheats. The region in farmland was without crops and weeds, making it appropriate for sampling. Following the standards of the “Technical Specification for Soil Environment Monitoring” (HJ/T 166-2004) [50], the sample sites were set up using the uniform distribution method to target soil pollution plots caused by irrigation water and solid waste pollutants (see Figure 1). The preset positions for the sampling points, along with sampling sequences and routes, were adjusted through field surveys. During the sampling process, all sampling points were located at distances greater than 100 m from other features to guarantee the validity of the pixel values for each sample point. The soil sampling method used was diagonal five-point sampling (Figure 2, ABCDO). Samples of soil were obtained at a surface depth of 5 cm, mixed homogeneously from five sampling points, and placed in sealed plastic bags. We took 80 valid soil samples, and the latitude and longitude coordinates of the sampling sites were recorded utilizing GPS positioning technology, along with the sample names, surrounding conditions of the sample area, and other relevant details. Following collection, the soil samples were dried in a desiccator, and stones, grassroots, metal fragments, and other impurities were removed to minimize the effect of moisture and other contaminants. Ultimately, the soil samples were dissolved firstly with HCl, followed by HClO4, HF, and HNO3, to determine heavy metal Pb levels in the agricultural soil with an atomic absorption spectrophotometer (AA-6880, Spread Strom Technology Co., Ltd., Nanning, China).

2.3. Remote Sensing Image Data

The ZY-1-02E AHSI imagery produced on 23 October 2022 was chosen as the hyperspectral data for this study, with cloud coverage of 0%, which was quasi-synchronous with the field sampling time. The ZY-1-02E remote sensing images were obtained from the website ”https://data.cresda.cn/#/home” (accessed on 10 April 2023). Compared with the ZY-1-02D satellite, the ZY-1-02E satellite is provided with a visible near-infrared (VNIR) camera with a resolution of 2.5 m. Additionally, the ZY-1-02E AHSI satellite continues to acquire 166 spectral wavebands with the hyperspectral camera, with a spatial resolution of 30 m and a wavelength range of 0.4 to 2.5 μm. The image is highly current and accessible, providing more detailed information on spectral features. For regional studies, a spatial resolution of 30 m can balance image detail with the efficiency of data processing, avoiding the problem of mixed pixels that may be caused by too low a resolution. It provides sufficient spatial information for the estimation of soil Pb concentration. Table 1 shows parameters of the ZY-1-02E hyperspectral satellite data.
Addressing the attribute complexity of remote sensing image data, combined with the characteristics of hyperspectral image band range and resolution, the ZY-1-02E satellite remote sensing imagery was used as the data source, from which the required band information was extracted. Due to electromagnetic wave interference caused by atmospheric conditions and errors of the sensor itself, the spectral information for the features and corresponding geometrical information may become aberrant. The complexity of remote sensing image data affects the spectral reflectance for image pixels, which impacts the heavy metal inversion accuracy in farmland. Therefore, in this research, ENVI5.3 software was utilized to conduct systematic radiometric calibration and atmospheric correction of the ZY-1-02E AHSI imagery for the study area. Then, the original reflectance data were obtained by orthorectifying the atmospheric correction results and the 30 m digital elevation model data. The spectral curves of atmospheric correction exhibited several “broken” bands because the atmospheric correction identified certain bands affected by air and water vapor as “bad bands.” The actual pixel value of these bands in the original image was zero. Therefore, severely influenced wavelengths (1.36–1.45 μm, 1.82–1.95 μm) were excluded from this study. Meanwhile, given the latitude and longitude coordinates from the soil sample points collected, we extracted the spectra information for the sampling points from hyperspectral images preprocessed by ArcGIS10.8 software.

2.4. XGB–Boruta Screening Algorithm

The Boruta is a feature selection algorithm on account of random forests, comparing the importance of initial features and shadow features to obtain the optimal combination of features. This method screens out all sets of features that have a correlation with the dependent variable and is a type of greedy algorithm. The approach comprehensively explains the effect of the independent variables on the dependent variables, improving the global search ability for spectral features. However, it has problems such as high sample complexity and slow iterative computation time.
Therefore, the study utilized the improved XGB–Boruta algorithm to select features of hyperspectral data using the XGBoost model instead of the original RF training model. It used a combination of ensemble learning and packaging methods to improve the robustness of feature selection. The method of superior judgment and identification capabilities can better handle the problem of high dimensionality and covariance between variables, improving the model’s prediction performance. The main ideas are follows: (1) The raw spectral reflectance matrix (N) is read, a new shadow soil spectral matrix (S) is generated by randomly disrupting the order of matrix columns, and the original spectral matrix (N) is combined with the shadow matrix (S) based on the sampling point identifiers (ID) to form a new feature combination matrix (P). (2) Multiple iterations of the XGBoost model are performed to calculate feature importance using the XGBoost importance score formula. The feature importance is determined based on the construction of K classification trees. The importance scores (Z-scores) for N and S are obtained from the frequency of split points used in each tree. (3) The max value for the Z-score of the shadow feature (S) is defined as max_S, and the feature wavebands in N for Z-scores higher than max_S are marked as important. Conversely, those with lower Z-score are marked as unimportant and eliminated. (4) All the above processes are repeated until all feature bands are marked. These results obtain a combination of feature bands with high modeling contribution, providing the optimal solution. This algorithm has excellent optimization capabilities and a fast convergence rate.

2.5. Pearson Correlation Coefficient (PCC)

The PCC is a method used to measure the level of linear relationship between two variables. The coefficient takes values between −1 and 1, with higher absolute values indicating a stronger correlation. This method quantifies and assesses the strength of the relationship between two variables, determining whether a change in one variable can predict the direction and magnitude of change in the other. The formula is as follows:
ρ x , y = C o v ( x , y ) σ X σ Y = n i = 1 n X i Y i i = 1 n X i i = 1 n Y i n i = 1 1 X i 2 ( i = 1 n X i ) 2 n i = 1 1 Y i 2 ( i = 1 n Y i ) 2
In this equation, C o v x , y represents the covariance; when the trend of x and y changes are consistent, the C o v x , y is positive, and conversely, C o v x , y is negative. σ X and σ Y indicate the standard deviations of x and y , reflecting the volatility of the values.

2.6. Research Workflow

To overcome the challenges posed by the high dimensionality, high redundancy, and low correlation inherent in hyperspectral data, which can severely impact the accuracy and stability for hyperspectral modeling, and to effectively monitor heavy metal content in farmland soil at a large scale, in this paper, a method called XGB–Boruta–PCC combined with extreme gradient boosting (XGBoost) is proposed to monitor heavy metal content over a large-scale region using hyperspectral remote sensing image data in farmland soil. The fusion model combines an overlay strategy of ensemble learning and packaging methods to improve the accuracy and robustness with the prediction performance for heavy metal concentrations of farmland soils over large-scale areas. The XGB–Boruta–PCC algorithm was first applied to screen for optimal spectral response features. Five machine learning methods, PLSR, RF, ELM, GBDT, and XGBoost, were selected to build models and assess their accuracies in heavy metal Pb estimation. This evaluation led to the identification of XGBoost for the ultimate modeling. The XGB–Boruta–PCC method consists of XGB–Boruta and PCC. Firstly, the extracted hyperspectral image bands are preliminarily chosen by XGB–Boruta. Then, the correlation of the spectral response features is enhanced using continuum removal (CR) and its first-order derivatives (CR–FD). Finally, a collection of feature bands with the most sensitivity for the heavy metal Pb is selected by the PCC for modelling. To reach the optimal model performance, the hyperparameters of every machine learning model were optimized using the Optuna optimization method during the model building process.
However, the experiment in this study reveals that, although the XGB–Boruta algorithm successfully screens feature bands with high contributions to modeling, these bands still exhibit data redundancy and low correlation with the measured heavy metal Pb content. To solve the problems above, this work efficiently combined XGB–Boruta with the PCC algorithm, where appropriate spectral transformations effectively highlighted the spectrum feature information for soil, enabling the absorption valleys and reflectance peaks of spectrum curves to be more prominent. Overall, these spectral variables highlight the absorption and reflection features for the spectra by continuum removal and background noise being removed by the first-order derivative again, contributing to the enhancement in spectral information for soil heavy metal response. The method addresses the inherent flaws of the above feature screening algorithms and improves the correlation of the spectral response features, realizing the optimal feature selection of soil heavy metal Pb hyperspectral bands. The spectral transformation formulas are as follows:
C R λ j = R ( λ j ) / R c ( λ j )
R λ j = R λ j + 1 R λ j 1 / λ j + 1 λ j 1
where λ j represents the wavelength at band j , R ( λ j ) represents the reflectance at wavelength λ j ,   R c ( λ j ) represents the continuum value at wavelength λ j , C R ( λ j ) represents the reflectance after continuum removal, and R λ j represents the first-order derivative spectral reflectance at wavelength λ j .
In the modeling process, the obtained multiple spectral feature variables and the measured heavy metal Pb content as the dependent variable were utilized to build the inversion models of heavy metal Pb for agricultural soils with strong explanatory power. The training and validation sets were split in a proportion of 3:1. Ultimately, a training set of 60 samples and a validation set of 20 samples were acquired. The methodology of this study accomplished the following: (1) The heavy metal Pb content was determined through field sampling, and the raw spectral reflectance for each sampling point was extracted from hyperspectral images, followed by preprocessing of the anomalous spectra. (2) The preselected feature bands were obtained by preselecting the preprocessed raw spectral bands using XGB–Boruta. (3) Correlation analysis was performed on preselected bands and utilizing the CR and CR–FD transformations to enhance the differences in spectral features between samples. (4) The Pearson method (PCC) was utilized to assess the relevance between lead (Pb) levels and the transformed spectrum indices, including CR and CR–FD transformations. The correlation coefficients were tested for significance at a stringent threshold of p < 0.01. (5) The outcomes were amalgamated to quantify the number of spectral bands exhibiting a highly significant correlation (p < 0.01), with the correlation coefficient threshold established at ±0.4. For the same bands, the spectral data associated with the spectral transformations exhibiting the highest correlation were identified and subsequently selected. They were used as spectral input variables to participate in the modeling. (6) The final optimal spectral response features were incorporated into five estimation models, including extreme gradient boosting (XGBoost), gradient boosting decision tree (GBDT), extreme learning machine (ELM), random forest (RF), and partial least squares regression (PLSR), for modeling soil heavy metal Pb content. The Optuna optimization method was adopted to perform the optimization of hyperparameters for each model. Subsequently, the effectiveness of these models in forecasting Pb concentrations within the research area was determined by assessing their performance. (7) The spatial distributions for soil heavy metal Pb levels within the research area were mapped using the determined optimal estimation model, and its potential sources of contamination and distribution pattern were analyzed. Figure 3 shows the steps.

2.7. Estimation Models

2.7.1. PLSR

The PLSR is a statistical approach for multiple regression analysis, offering significant advantages in handling multiple independent and dependent variables. PLSR is suitable for addressing multicollinearity and high-dimensional datasets. When datasets contain many independent variables (features), traditional multiple linear regression models may suffer from multidimensionality. PLSR alleviates this issue by reducing data dimensionality, enabling more effective predictive models.

2.7.2. RF

The RF is based on decision trees and the classification of the ensemble algorithm, commonly applied to both regression and classification problems [51]. RF is suitable for handling complex, high-dimensional, and large-scale datasets, providing robust predictive results. For regression problems, the RF can capture non-linear relationships in data and deal with outliers and noise. In this study, the RF model was trained multiple times by Optuna optimization to determine the optimal values for hyperparameters such as max_features, min_samples_split, max_depth, and n_estimators.

2.7.3. ELM

The ELM represents a novel approach to training single-hidden-layer feedforward networks. This algorithm is distinguished by its random initialization of input-layer weights and the hidden-layer neurons of threshold values. These weights and thresholds remain constant throughout the training process, eliminating the need for iterative adjustments. The sole parameter to be determined is the size of neurons in the hidden layer, which ensures a unique optimal solution is obtained. Beyond the predefined network configuration, there is no requirement for manual parameter adjustments [52]. Based on previous studies, this study utilized the sigmoid function as the activation function for ELM. The optimal hidden-layer node size was turned from 50 to 200, with each ELM iteration running for 600 cycles [22].

2.7.4. GBDT

The GBDT is an iterative decision tree algorithm that belongs to the category of boosting in integrated learning, and it improves the overall predictive performance by iteratively constructing several decision trees to correct the previous models of errors. Based on the principle of gradient boosting, in each iteration, GBDT trains new decision trees by fitting the negative gradient of the loss function, which are combined for updating this model, reducing overall loss and enhancing prediction performance [53]. For the research, we set the optimization ranges of hyperparameters such as max_depth, learning_rate, and n_estimators. The GBDT model was trained 600 times by Optuna optimization to select the parameter combination with the lowest RMSE and construct the optimal model.

2.7.5. XGBoost

XGBoost is an improved machine learning algorithm for gradient boosting decision trees (GBDTs), and is commonly used in regression, classification, and sorting problems. XGBoost performs well on structured data, high-dimensional data, nonlinear relational data, and unbalanced data. The fundamental principle involves aggregating the outcomes of multiple decision trees (weak learners) to form a final output (strong learners) [54]. It supports parallel processing and distributed computing, allowing for effective control of model complexity. We set the optimization ranges of hyperparameters such as colsample_bytree, min_child_weight, max_depth, learning_rate, and n_estimators by Optuna optimization. The parameter settings for the XGBoost model were tested cyclically for different values. The optimal model hyperparameters at the minimum RMSE were determined.

2.7.6. Model Comparison

Selection of a suitable model for soil heavy metal estimation is essential. To ensure rationality, the advantages and disadvantages of PLSR, RF, ELM, GBDT, and XGBoost used in this study are presented, as shown in Table 2. R2 was used to assess the accuracy of the soil heavy metal estimation models.

2.8. Algorithm Assessment Approach

The assessment indicators include the coefficient of determination (R2), root mean square error (RMSE), and mean absolute error (MAE) to assess the stability and prediction accuracies of prediction models in this study. The formulas are as follows:
R 2 = 1 i = 1 n Z i Y ¯ 2 i = 1 n Z i Y ¯ 2
R M S E = i = i n Y i Z i 2 n
M A E = i = 1 n Y i Z i n
Here, Y ¯ denotes the mean of the true values; Y i , Z i , and n represent the true values, forecasted values, and number of samples.
R2 is one of the common measures for regression model fit, and it ranges between 0 and 1. It indicates how well the model explains variations in the dependent variable. The closer R2 is to 1, the better the model is in terms of explanatory power; the closer it is to 0, the weaker the explanatory power. The MAE reflects the average level of the model’s prediction error and directly indicates model performance; lower values typically signify better prediction accuracy. The RMSE indicates the average deviation between predicted and true values. Compared to the MAE, the RMSE is more sensitive to significant differences between predicted and real values. For model validation, a higher R2 and a lower RMSE and MAE indicate higher modeling reliability and stability, demonstrating good predictive ability and reliability.

3. Results and Discussion

3.1. Measured Data of Heavy Metal Pb

The measured values of heavy metal Pb content in farmland soils at the sample sites from the Xiong’an New Area were calculated by SPSS27 software. The obtained values were compared against the risk control values for soil heavy metal. The results of the analysis are listed in Table 3. The criterion is based on the national standard (GB15618-2018) in China (Regulation 2018) [55]. The highest level of heavy metal Pb significantly exceeded its lowest level, with the maximum value reaching 164.12 mg/kg. Some soil samples exceeded the risk screening value for soil Pb contamination, posing a potential risk of crop contamination, with the coefficient of variation serving as a metric to characterize the sample data distribution. This table shows that the Pb element belonged to strong variability, indicating high dispersion of the heavy metal Pb, and the soil samples generally displayed an imbalance, with inhomogeneous enrichment. Therefore, it is necessary to monitor heavy metal Pb content by remote sensing in the farmland of the study area to obtain the distribution situation in a timely and rapid manner.

3.2. Spectral Response Feature Selection

In this study, the XGB–Boruta algorithm was utilized during the characteristic preselection step to identify and preselect relevant characteristic bands for the ZY-1-02E hyperspectral imagery. The outcomes of this preselection process are detailed in Table 4. Table 4 shows that 28 bands were retained after feature preselection, accounting for approximately 18.54% of the total number of bands. Numerous bands not sensitive to heavy metals were excluded.
Despite the application of the XGB–Boruta algorithm for initial spectral band selection, it was observed that the selected bands exhibited a weak correlation with the heavy metal Pb (Figure 4). Most of the correlation coefficients for these bands fell within the range of 0.2 to 0.3, predominantly showing negative trends. This weak relevance could have potentially compromised the precision of subsequent modeling efforts, necessitating further processing of the spectral features to enhance the sensitivity of the characteristic spectra for heavy metal Pb.
Therefore, we utilized the combined spectral transformation methods using continuum removal (CR) and first-order derivative based on continuum removal (CR–FD) to improve the correlation of the preselected results. Figure 5 shows that the relevance of spectral indices with heavy metal Pb improved to varying degrees after spectral transformations. The correlation coefficients with Pb contents, after the first-order derivative spectral transformation, exhibited alternately positive and negative changes, with more pronounced valleys. However, not all bands treated with feature enhancement made a large contribution to the modeling. Therefore, the PCC correlation coefficients of spectral indices and heavy metal Pb using CR and CR–FD spectral transformations were calculated separately. The characteristic bands exhibiting correlation coefficients with absolute values larger than 0.4 (the extremely significant level) were selected, and all results were combined to construct feature bands for modeling. This method combines the advantages of feature screening algorithms and optimized spectral indices, effectively highlighting the spectral response information for heavy metal Pb.
Table 5 presents the optimal set for heavy metal Pb of the feature bands screened by the XGB–Boruta–PCC method. The feature selection process, specifically through PCC, reduced the number of feature bands to 13, accounting for approximately 8.61% of the total band count.
The results indicate that the wavelength ranges selected for modeling estimation of heavy metal Pb were primarily clustered around 800–1000, 1100–1200, 1700, and 2087–2400 nm. Specifically, the core bands for estimating Pb content in farmland soils were distributed within the range of wavelengths related to iron oxides and clay minerals of absorption, with strong absorption of iron oxides in the range of 800–1000 nm, and clay minerals being more pronounced in the range of 1100–2500 nm [26,46]. It is shown that the spectral response features of soil active components (iron oxides and clay minerals) demonstrated strong adsorption of heavy metal Pb, thereby confirming the validity of the characteristic spectral bands obtained through the XGB–Boruta–PCC algorithm, which provides a more mechanistic understanding. This reduction significantly minimizes redundant information and computation for the later estimation modeling.
This effectively indicates the spectrum characteristic regions for soil, highlighting the practicality and effectiveness of the proposed method. The XGB–Boruta–PCC hyperspectral feature screening algorithm proposed in this paper not only eliminates a certain amount of redundancy in spectral information, reduces computation, and iterates quickly, but also effectively retains the integrity and the original physical explanatory power of the spectral data, meeting the desired goals. Compared to approaches with inherent randomness, the XGB–Boruta–PCC algorithm is more explanatory. Future research could consider integrating it with other regressor models, making it compatible with different modeling methods. According to specific problem needs, combining feature selection with subsequent prediction models can improve overall prediction performance and accomplish the goals of streamlining models and raising modeling accuracy.

3.3. Model Evaluation

In this section, the spectral response characteristics chosen by the XGB–Boruta–PCC algorithm served as independent variables, while heavy metal Pb concentrations acted as dependent variables. The training dataset was utilized for model construction and parameter optimization, whereas the validation dataset was applied for assessing model accuracy and generalization. In addition, we utilized PLSR, RF, ELM, GBDT, and XGBoost to estimate soil heavy metal Pb concentration within the research region. The comparative accuracies of these models are detailed in Table 6.
Under the premise of XGB–Boruta–PCC, the five inversion models developed were compared, and we observed that the PLSR exhibited a higher estimation accuracy (R2) when dealing with the training data, while the R2 of the estimation accuracy for the testing data decreased significantly, indicating its weak prediction ability for unknown data. This implies that the linear PLSR model was prone to overfitting for the estimation of heavy metal Pb content in this research, and the generalization ability was reduced, leading to poor model prediction. In contrast, RF, ELM, GBDT and XGBoost exhibited better estimation accuracy R2 (R2 > 0.6) for heavy metal Pb content prediction on the training and validation sets, as well as having recognized RMSE and MAE indicators. Their advantages in terms of accuracy and robustness were further validated, showing that these models are more reliable tools for predicting heavy metal Pb levels. Second, this reflects that, compared to the PLSR linear regression method, GBDT and XGBoost, as nonlinear algorithms, can better describe complex nonlinear relationships through parameter optimization and decision tree composition adjustments, resulting in improved prediction accuracy. While RF and ELM can also handle nonlinear problems, their nonlinear modeling ability is usually inferior to that of GBDT and XGBoost; thus, their prediction accuracy is not optimal.
To further evaluate the predictive capabilities for the XGBoost model in comparison to conventional machine learning models under the XGB–Boruta–PCC algorithm, the models constructed by RF, ELM, and GBDT using the same training and validation sets were selected for estimating heavy metal Pb concentration in farmland soil within the research region. Their inversion scatter plots are presented in Figure 6. The constructed ELM model showed a more dispersed distribution, resulting in a large deviation between predicted and measured values. The RF and GBDT models tended to underestimate Pb content, performing better at low values but showing greater dispersion at high values, thus contributing to the high RMSE, though within an acceptable range. Compared to the other three models, the XGBoost model exhibited more concentrated distributions of estimated and measured values towards the 1:1 line, indicating a good model fit. Therefore, this study demonstrates that the abilities of modeling and estimation for the XGBoost regression model were significantly better than those of the other three traditional models, as it reached the maximum value of R2 ( R v 2 = 0.82) and the minimum values of RMSE and MAE ( R M S E v = 11.58, M A E v = 9.89), indicating that the XGB–Boruta–PCC algorithm effectively obtained the characteristic spectral indices with high contributions for the XGBoost modeling. They were applied to the XGBoost model, and it was found that the estimation accuracy was better than that of other traditional machine learning models, with rapid computation speed and stronger generalization ability, which can achieve the effective prediction of heavy metal Pb concentration in farmland soil.
To further assess the stability and generalization ability of the XGBoost model, a four-fold cross-validation was conducted. The results are presented in Figure 7. The R2 values were relatively high, ranging approximately from 0.75 to 0.85, indicating that the XGBoost model could effectively explain the variability in the data. The median value was close to 0.80, demonstrating a good fit. The distribution of RMSE was relatively stable, with some fluctuations; however, these variations remained within a reasonable range. Despite this, there is still potential for further improvement of the model.
Overall, the accuracy evaluation for the existing models shows that XGB–Boruta–PCC effectively screened characteristic spectral indices and integrated them with the XGBoost regression model, increasing the predictive ability of the original inversion model and enhancing the algorithm robustness. Additionally, the viability and stability of utilizing ZY-1-02E hyperspectral imageries for heavy metal content estimation were confirmed, which provides an important reference value for subsequent related research and applications.

3.4. Mapping Heavy Metal from ZY-1-02E Hyperspectral Satellite Data

To estimate heavy metal Pb content for farmland soil over large-scale areas, the RF classification method was used in this study to obtain the distribution of soil pixels for farmland from remotely sensed images. Meanwhile, based on the selected spectral feature indices using XGB–Boruta–PCC and the extracted soil pixels in farmland, the best prediction model was employed to invert the farmland for the study area. This model utilized ZY-1-02E hyperspectral imagery information as input for mapping the spatial distribution of heavy metal Pb in farmland soil in Xiong’an New Area (Figure 8).
The estimated outcomes of the XGBoost estimation model applied to the ZY-1-02E hyperspectral imagery indicate that the spatial distribution of Pb content was mostly low. However, areas within the southwest and parts of the west of the research area, primarily concentrated in Laohetou Town, the Tanghe River, and near the factories, exceeded the soil pollution risk screening value and the heavy metal standard.
To assess the stability of the spatial predictions made by the XGBoost model, this study performed spatial predictions for each of the four result models and visualized the standard deviation based on the pixels (Figure 9). Overall, most regions with Pb prediction values exhibited low standard deviation values, as low as 0.042 mg/kg, indicating that the variation in Pb content was minimal and the distribution was relatively stable. Regions with higher standard deviations were primarily located in the southwestern part, where Pb content exhibited greater variation and higher spatial heterogeneity, though still within a reasonable range. These areas were generally characterized by higher soil heavy metal content, which may be attributed to insufficient training on the limited high-value data within the sample. Future studies will collect more data from regions with high levels of heavy metals to expand the sample database and enhance the prediction ability for high-value areas.
The results indicate that heavy metal content estimated by the XGBoost model adequately represented the inhomogeneity and complexity of the spatial distribution for heavy metal Pb content. The estimation is more continuous and aggregated, providing an effective and feasible large-scale technical method for monitoring heavy metal Pb contamination in the farmland of Xiong’an New Area.
As shown in the landscape in Figure 10, Laohetou Town previously housed numerous non-ferrous metal processing factories and recycling plants. Industrial solid waste pollutants from long-term metal smelting and other industrial activities may have affected the surrounding farmland with dry and wet atmospheric deposition, industrial sewage irrigation, and biological enrichment, posing the potential risk of heavy metal Pb pollution for soil and crops (areas C and F). Meanwhile, there were enrichment phenomena with high concentrations of heavy metal Pb in the surrounding farmland in densely populated areas, where human activities such as vehicle emissions from residential areas, improper waste disposal, and pesticide and fertilizer application can lead to high levels of heavy metals (areas B and D). This finding is consistent with the reality. We also found that the closer the distances of roads, the higher the levels of heavy metals, probably caused by incomplete treatment for heavy metal pollution on both sides of the road (area A). Parts of the Tanghe River watershed demonstrated heavy metal Pb pollution, as it was previously a site for enterprise and residential wastewater discharge (area E). Field investigations revealed that crops (mainly wheat) grown in the river channel have curled leaves and short plants, and soils in agricultural fields along the watershed are prone to heavy metal element enrichment [56]. The polluted area in the southwest is primarily distributed in the farmland around the non-ferrous metal processing plant, where crop growth is poor, and the heavy metal surface pollution will not degrade and disappear in a short time.
Based on the analysis of heavy metal Pb content distribution for the research region in Figure 8 and Figure 10, it is possible to infer that industries and human activities are a potential source of heavy metal Pb contamination in farmland soil from Xiong’an New Area. This study further supports the idea of direct industrial pollution. The massive expansion of factories and the occupation of large amounts of agricultural land have led to increasingly severe crop contamination, with direct irrigation of sewage being one of the causes of heavy metal contamination. Meanwhile, when heavy metal concentrations accumulated within the soil exceed the limit of its natural capacity to contain and purify, it will lead to increasingly serious soil pollution problems. Therefore, the local government needs to focus on heavy metal Pb contamination in farmland surrounding factory areas to prevent further expansion of contamination within Xiong’an New Area and effectively control the potential contamination of farmland and irrigation water from factory discharge to promote the sustainability and green management of agriculture in Xiong’an New Area.

4. Conclusions

In this paper, we discussed the methodology and feasibility of utilizing ZY-1-02E hyperspectral imagery to estimate heavy metal concentration in farmland. The XGB–Boruta–PCC algorithm integrated with the XGBoost model performed well on datasets with high variability and uneven spatial distribution. The XGB–Boruta–PCC algorithm achieved double dimensionality reduction of the hyperspectral data, effectively preserving the integrity and original physical explanatory power of the hyperspectral data. We utilized the XGB–Boruta–PCC algorithm with PLSR, RF, ELM, GBDT, and XGBoost models to analyze and model the relationship with heavy metal Pb and characteristic spectrum indices in farmland. Among these, the Optuna-optimized XGBoost model demonstrated optimal accuracy and stability, which demonstrates its strong representation learning ability in addressing typical problems such as small sample data, information redundancy, and nonlinearity. Furthermore, it compensates for the limitations of traditional contamination investigation methods, making it highly operable. This provides an effective approach to estimating heavy metal levels for farmland based on ZY-1-02E AHSI images and offers real-time, accurate, and large-scale information on Pb contamination status in the farmland soil of Xiong’an New Area.
In addition, the spatial distribution for heavy metal Pb content from Xiong’an New Area was analyzed utilizing the estimation results. In the southwest and parts of the west of the research region, there were areas exceeding the screening value for soil contamination risk, with block distribution and enrichment phenomena, indicating that the soil–crop system might have been contaminated. Upon analyzing the sources of contamination, it was found that the production activities of heavy metal factories might be the direct cause of heavy metal Pb soil contamination in the surrounding farmland. Human activities, including the use of pesticides, sewage irrigation, and waste disposal, may be additional causes of heavy metal Pb contamination in farmland. Therefore, policymakers need to focus on the pollution of agricultural land areas around processing plants such as those for metal smelting, wool spinning, and building materials in the study area. This includes rationalizing the use of fertilizers and pesticides, strengthening the regulations for pollution sources, and encouraging green production and development to protect the agroecological environment and ensure food security.

Author Contributions

X.L. (Xuqing Li) and H.G. contributed equally to this work and should be considered co-first authors. Conceptualization, X.L. (Xuqing Li), X.L. (Xiangnan Liu), B.Z. and H.G.; methodology, H.G. and X.L. (Xuqing Li); validation, H.G., R.T., Y.S. and W.L.; investigation, H.G., X.L. (Xuqing Li) and B.W.; resources, R.T.; writing—original draft preparation, H.G.; writing—review and editing, H.G., X.L. (Xuqing Li), B.Z. and W.L.; visualization, H.G. and X.C.; supervision, X.L. (Xuqing Li); project administration, X.L. (Xuqing Li), R.T. and H.O.; funding acquisition, X.L. (Xuqing Li), R.T. and H.O. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by the government’s central guidance for local science and technology development funds project for the science and technology innovation base project (246Z7401G), the Fund of Guangxi Key Laboratory of Arable Land Conservation (23-026-12-24KF7), the Open Fund of the State Key Laboratory of Remote Sensing Science (OFSLRSS202303), and the Hebei Provincial Natural Science Foundation Project (D2021409003).

Data Availability Statement

Data will be made available on request.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Rehman, I.U.; Ishaq, M.; Ali, L.; Muhammad, S.; Din, I.U.; Yaseen, M.; Ullah, H. Potentially toxic elements’ occurrence and risk assessment through water and soil of Chitral urban environment, Pakistan: A case study. Environ. Geochem. Health 2020, 42, 4355–4368. [Google Scholar] [CrossRef] [PubMed]
  2. Zhao, D.; Xie, D.; Yin, F.; Liu, L.; Feng, J.; Ashraf, T. Estimation of Pb content using reflectance spectroscopy in farmland soil near metal mines, central China. Remote Sens. 2022, 14, 2420. [Google Scholar] [CrossRef]
  3. Wang, J.; Hu, X.; Shi, T.; He, L.; Hu, W.; Wu, G. Assessing toxic metal chromium in the soil in coal mining areas via proximal sensing: Prerequisites for land rehabilitation and sustainable development. Geoderma 2022, 405, 115399. [Google Scholar] [CrossRef]
  4. Ding, S.; Zhang, X.; Sun, W.; Shang, K.; Wang, Y. Estimation of soil lead content based on GF-5 hyperspectral images, considering the influence of soil environmental factors. J. Soils Sediments 2022, 22, 1431–1445. [Google Scholar] [CrossRef]
  5. Gmochowska, W.; Pietranik, A.; Tyszka, R.; Ettler, V.; Mihaljevič, M.; Długosz, M.; Walenczak, K. Sources of pollution and distribution of Pb, Cd and Hg in Wrocław soils: Insight from chemical and Pb isotope composition. Geochemistry 2019, 79, 434–445. [Google Scholar] [CrossRef]
  6. Xiang, M.; Ma, J.; Cheng, J.; Lei, K.; Li, F.; Shi, Z.; Li, Y. Collaborative evaluation of heavy metal pollution of soil-crop system in the southeast of Yangtze River Delta, China. Ecol. Indic. 2022, 143, 109412. [Google Scholar] [CrossRef]
  7. Kastner, F.; Sut-Lohmann, M.; Ramezany, S.; Raab, T.; Feilhauer, H.; Chabrillat, S. Estimating heavy metal concentrations in Technosols with reflectance spectroscopy. Geoderma 2022, 406, 115512. [Google Scholar] [CrossRef]
  8. Zhong, L.; Yang, S.; Chu, X.; Sun, Z.; Li, J. Inversion of heavy metal copper content in soil-wheat systems using hyperspectral techniques and enrichment characteristics. Sci. Total Environ. 2024, 907, 168104. [Google Scholar] [CrossRef]
  9. Zhang, X.; Wang, Y.; Sun, W.; Huang, C.; Zhang, M. Inversion of Pb content in soil based on iron oxide characteristic spectrum and improved genetic algorithm. Trans. Chin. Soc. Agric. Eng. 2020, 36, 103–109. [Google Scholar]
  10. Wang, Y.; Niu, R.; Hao, M.; Lin, G.; Xiao, Y.; Zhang, H.; Fu, B. A method for heavy metal estimation in mining regions based on SMA-PCC-RF and reflectance spectroscopy. Ecol. Indic. 2023, 154, 110476. [Google Scholar] [CrossRef]
  11. Zhang, X.; Wang, W.; Sun, W.; Ding, S.; Wang, Y. Soil Zn content inversion by hyperspectral remote sensing data and considering soil types. Spectrosc. Spectr. Anal. 2023, 43, 2019–2026. [Google Scholar]
  12. Tan, K.; Ma, W.; Chen, L.; Wang, H.; Du, Q.; Du, P.; Yan, B.; Liu, R.; Li, H. Estimating the distribution trend of soil heavy metals in mining area from HyMap airborne hyperspectral imagery based on ensemble learning. J. Hazard. Mater. 2021, 401, 123288. [Google Scholar] [CrossRef] [PubMed]
  13. Li, G.; Geng, J.; Xu, X.; Tan, Q.; Guo, Y.; Fang, H. Inversion of soil Cd content using WorldView-3 multispectral and key environmental variables. Trans. Chin. Soc. Agric. Eng. 2022, 38, 224–232. [Google Scholar]
  14. Yang, N.; Han, L.; Liu, M. Inversion of soil heavy metals in metal tailings area based on different spectral transformation and modeling methods. Heliyon 2023, 9, e19782. [Google Scholar] [CrossRef]
  15. Wang, L.; Zhou, Y.; Liu, J.; Liu, Y.; Zuo, Q.; Li, Q. Exploring the potential of multispectral satellite images for estimating the contents of cadmium and lead in cropland: The effect of the dimidiate pixel model and random forest. J. Clean. Prod. 2022, 367, 132922. [Google Scholar] [CrossRef]
  16. Wang, R.; Wu, S.; Wu, K.; Huang, S.; Wu, R.; Liu, B.; Li, M.; Li, L.; Zhou, D.; Diao, X. Estimation and spatial analysis of heavy metals in metal tailing pond based on improved PLS with multiple factors. IEEE Access 2021, 9, 64880–64894. [Google Scholar]
  17. Liu, Z.; Lu, Y.; Peng, Y.; Zhao, L.; Wang, G.; Hu, Y. Estimation of soil heavy metal content using hyperspectral data. Remote Sens. 2019, 11, 1464. [Google Scholar] [CrossRef]
  18. Zhong, L.; Chu, X.; Qian, J.; Li, J.; Sun, Z. Multi-Scale Stereoscopic Hyperspectral Remote Sensing Estimation of Heavy Metal Contamination in Wheat Soil over a Large Area of Farmland. Agronomy 2023, 13, 2396. [Google Scholar] [CrossRef]
  19. Zhang, S.; Nwaila, G.; Bourdeau, J.; Ghorbani, Y.; Carranza, E. Deriving big geochemical data from high-resolution remote sensing data via machine learning: Application to a tailing storage facility in the Witwatersrand goldfields. Artif. Intell. Geosci. 2023, 4, 9–21. [Google Scholar] [CrossRef]
  20. Liu, G.; Zhou, X.; Li, Q.; Shi, Y.; Guo, G.; Zhao, L.; Wang, J.; Su, Y.; Zhang, C. Spatial distribution prediction of soil As in a large-scale arsenic slag contaminated site based on an integrated model and multi-source environmental data. Environ. Pollut. 2020, 267, 115631. [Google Scholar] [CrossRef]
  21. Yu, H.; Xie, S.; Liu, P.; Hua, Z.; Song, C.; Jing, P. Estimation of Pb and Cd Content in Soil Using Sentinel-2A Multispectral Images Based on Ensemble Learning. Remote Sens. 2023, 15, 2299. [Google Scholar] [CrossRef]
  22. Zhang, B.; Guo, B.; Zou, B.; Wei, W.; Lei, Y.; Li, T. Retrieving soil heavy metals concentrations based on GaoFen-5 hyperspectral satellite image at an opencast coal mine, Inner Mongolia, China. Environ. Pollut. 2022, 300, 118981. [Google Scholar] [CrossRef] [PubMed]
  23. Lin, N.; Jiang, R.; Li, G.; Yang, Q.; Li, D.; Yang, X. Estimating the heavy metal contents in farmland soil from hyperspectral images based on Stacked AdaBoost ensemble learning. Ecol. Indic. 2022, 143, 109330. [Google Scholar] [CrossRef]
  24. Wang, F.; Gao, J.; Zha, Y. Hyperspectral sensing of heavy metals in soil and vegetation: Feasibility and challenges. ISPRS J. Photogramm. Remote Sens. 2018, 136, 73–84. [Google Scholar] [CrossRef]
  25. Cui, S.; Zhou, K.; Ding, R.; Cheng, Y.; Jiang, G. Estimation of soil copper content based on fractional-order derivative spectroscopy and spectral characteristic band selection. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2022, 275, 121190. [Google Scholar] [CrossRef]
  26. Cheng, Y.; Zhou, Y. Research progress and trend of quantitative monitoring of hyperspectral remote sensing for heavy metals in soil. Chin. J. Nonferrous Met. 2021, 31, 3450–3467. [Google Scholar]
  27. Sun, W.; Zhang, X. Estimating soil zinc concentrations using reflectance spectroscopy. Int. J. Appl. Earth Obs. Geoinf. 2017, 58, 126–133. [Google Scholar] [CrossRef]
  28. Khosravi, V.; Ardejani, F.D.; Gholizadeh, A.; Saberioon, M. Satellite imagery for monitoring and mapping soil chromium pollution in a mine waste dump. Remote Sens. 2021, 13, 1277. [Google Scholar] [CrossRef]
  29. Tan, K.; Wang, H.; Zhang, Q.; Jia, X. An improved estimation model for soil heavy metal (loid) concentration retrieval in mining areas using reflectance spectroscopy. J. Soils Sediments. 2018, 18, 2008–2022. [Google Scholar] [CrossRef]
  30. Wei, L.; Yuan, Z.; Zhong, Y.; Yang, L.; Hu, X.; Zhang, Y. An improved gradient boosting regression tree estimation model for soil heavy metal (Arsenic) pollution monitoring using hyperspectral remote sensing. Appl. Sci. 2019, 9, 1943. [Google Scholar] [CrossRef]
  31. Ma, W.; Tan, K.; Li, H.; Yan, Q. Hyperspectral inversion of heavy metals in soil of a mining area using extreme learning machine. J. Ecol. Rural Environ. 2016, 32, 213–218. [Google Scholar]
  32. Degenhardt, F.; Seifert, S.; Szymczak, S. Evaluation of variable selection methods for random forests and omics data sets. Brief. Bioinform. 2019, 20, 492–503. [Google Scholar] [CrossRef] [PubMed]
  33. Lu, Q.; Wang, S.; Bai, X.; Liu, F.; Wang, M.; Wang, J.; Tian, S. Rapid inversion of heavy metal concentration in karst grain producing areas based on hyperspectral bands associated with soil components. Microchem. J. 2019, 148, 404–411. [Google Scholar] [CrossRef]
  34. Mohammadnezhad, K.; Sahebi, M.R.; Alatab, S.; Sajadi, A. Investigating heavy metal soil contamination state on the rate of stomach cancer using remote sensing spectral features. Environ. Monit. Assess. 2023, 195, 583. [Google Scholar] [CrossRef]
  35. Shen, Q.; Xia, K.; Zhang, S.; Kong, C.; Hu, Q.; Yang, S. Hyperspectral indirect inversion of heavy-metal copper in reclaimed soil of iron ore area. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2019, 222, 117191. [Google Scholar] [CrossRef]
  36. Ma, W.; Tan, K.; Du, P. Predicting soil heavy metal based on Random Forest model. In Proceedings of the 2016 IEEE International Geoscience and Remote Sensing Symposium (IGARSS), Beijing, China, 10–15 July 2016; 4331–4334. [Google Scholar]
  37. Pyo, J.; Hong, S.M.; Kwon, Y.S.; Kim, M.S.; Cho, K.H. Estimation of heavy metals using deep neural network with visible and infrared spectroscopy of soil. Sci. Total Environ. 2020, 741, 140162. [Google Scholar] [CrossRef]
  38. Xu, X.; Chen, S.; Ren, L.; Han, C.; Lv, D.; Zhang, Y.; Ai, F. Estimation of heavy metals in agricultural soils using vis-NIR spectroscopy with fractional-order derivative and generalized regression neural network. Remote Sens. 2021, 13, 2718. [Google Scholar] [CrossRef]
  39. Wang, M.; Wang, C.; Ruan, J.; Liu, W.; Huang, Z.; Chen, M.; Ni, B. Pollution level mapping of heavy metal in soil for ground-airborne hyperspectral data with support vector machine and deep neural network: A case study of Southwestern Xiong’an, China. Environ. Pollut. 2023, 321, 121132. [Google Scholar] [CrossRef]
  40. Zhou, W.; Yang, H.; Xie, L.; Li, H.; Huang, L.; Zhao, Y.; Yue, T. Hyperspectral inversion of soil heavy metals in Three-River Source Region based on random forest model. Catena 2021, 202, 105222. [Google Scholar] [CrossRef]
  41. Chen, L.; Lai, J.; Tan, K.; Wang, X.; Chen, Y.; Ding, J. Development of a soil heavy metal estimation method based on a spectral index: Combining fractional-order derivative pretreatment and the absorption mechanism. Sci. Total Environ. 2022, 813, 151882. [Google Scholar] [CrossRef]
  42. Tan, K.; Chen, L.; Wang, H.; Liu, Z.; Ding, J.; Wang, X. Estimation of the distribution patterns of heavy metal in soil from airborne hyperspectral imagery based on spectral absorption characteristics. J. Environ. Manag. 2023, 347, 119196. [Google Scholar] [CrossRef] [PubMed]
  43. Ye, M.; Zhu, L.; Li, X.; Ke, Y.; Huang, Y.; Chen, B.; Yu, H.; Li, H.; Feng, H. Estimation of the soil arsenic concentration using a geographically weighted XGBoost model based on hyperspectral data. Sci. Total Environ. 2023, 858, 159798. [Google Scholar] [CrossRef] [PubMed]
  44. Breiman, L. Random forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef]
  45. Guo, B.; Bai, H.; Zhang, B.; Peng, L.; Zhao, Y.; Lei, Y.; Yuan, R. Inversion of soil zinc contents using hyperspectral remote sensing based on random forest and continuous wavelet transform in an opencast coal mine. Trans. Chin. Soc. Agric. Eng. 2022, 38, 138–147. [Google Scholar]
  46. Ma, M.; Zhao, G.; He, B.; Li, Q.; Wang, Z. XGBoost-based method for flash flood risk assessment. J. Hydrol. 2021, 598, 126382. [Google Scholar] [CrossRef]
  47. Sun, Y.; Chen, S.; Dai, X.; Li, D.; Jiang, H.; Jia, K. Coupled retrieval of heavy metal nickel concentration in agricultural soil from spaceborne hyperspectral imagery. J. Hazard. Mater. 2023, 446, 130722. [Google Scholar] [CrossRef]
  48. Wang, Y.; Zou, B.; Chai, L.; Lin, Z.; Feng, H.; Tang, Y.; Tian, R.; Tu, Y.; Zhang, B.; Zou, H. Monitoring of soil heavy metals based on hyperspectral remote sensing: A review. Earth-Sci. Rev. 2024, 254, 104814. [Google Scholar] [CrossRef]
  49. Gao, X.; Chen, J.; Liu, L.; Han, F.; Nie, C.; Liu, D. Spatial distribution characteristics and construction occupancy zoning of cultivated land quality in Xiong’an New Area. Trans. Chin. Soc. Agric. Eng. 2018, 34, 1–7. [Google Scholar]
  50. HJ/T 166-2004; Technical Specification for Soil Environmental Monitoring. China Standards Press: Beijing, China, 2004.
  51. Douglas, R.K.; Nawar, S.; Cipullo, S.; Alamar, M.C.; Coulon, F.; Mouazen, A.M. Evaluation of vis-NIR reflectance spectroscopy sensitivity to weathering for enhanced assessment of oil contaminated soils. Sci. Total Environ. 2018, 626, 1108–1120. [Google Scholar] [CrossRef]
  52. Khosravi, V.; Ardejani, F.D.; Yousefi, S.; Aryafar, A. Monitoring soil lead and zinc contents via combination of spectroscopy with extreme learning machine and other data mining methods. Geoderma 2018, 318, 29–41. [Google Scholar] [CrossRef]
  53. Guo, F.; Xu, Z.; Ma, H.; Liu, X.; Tang, S.; Yang, Z.; Zhang, L.; Liu, F.; Peng, M.; Li, K. Estimating chromium concentration in arable soil based on the optimal principal components by hyperspectral data. Ecol. Indic. 2021, 133, 108400. [Google Scholar] [CrossRef]
  54. Chen, T.; Guestrin, C. XGBoost: A Scalable Tree Boosting System; ACM: New York, NY, USA, 2016; pp. 785–794. [Google Scholar]
  55. GB 15618-2018; Soil Environmental Quality: Risk Control Standard for Soil Contamination of Agricultural Land. China Environmental Science Press: Beijing, China, 2018.
  56. Liu, J.; Li, H.; Li, J.; Zhai, W.; Wu, X.; Wang, Q. Geochemistry and pollution assessment of heavy metals in topsoil of the Southwest Xiong’an New Area. Contrib. Geol. Min. Res. Res. 2022, 37, 235–243. [Google Scholar]
Figure 1. The distribution of soil sample points in the study area.
Figure 1. The distribution of soil sample points in the study area.
Agronomy 15 00676 g001
Figure 2. Location of each sample point for the five-point sampling method.
Figure 2. Location of each sample point for the five-point sampling method.
Agronomy 15 00676 g002
Figure 3. Flowchart of estimating soil heavy metal contents in farmland.
Figure 3. Flowchart of estimating soil heavy metal contents in farmland.
Agronomy 15 00676 g003
Figure 4. Correlation of heavy metal Pb concentration with characteristic bands preselected using XGB–Boruta.
Figure 4. Correlation of heavy metal Pb concentration with characteristic bands preselected using XGB–Boruta.
Agronomy 15 00676 g004
Figure 5. Correlation of spectral transformations with heavy metal Pb concentration based on preselected results: (a) CR; (b) CR–FD.
Figure 5. Correlation of spectral transformations with heavy metal Pb concentration based on preselected results: (a) CR; (b) CR–FD.
Agronomy 15 00676 g005
Figure 6. Scatter plots of heavy metal Pb concentration estimation with four models. (a) ELM; (b) RF; (c) GBDT; (d) XGBoost.
Figure 6. Scatter plots of heavy metal Pb concentration estimation with four models. (a) ELM; (b) RF; (c) GBDT; (d) XGBoost.
Agronomy 15 00676 g006
Figure 7. Cross-validation of the results.
Figure 7. Cross-validation of the results.
Agronomy 15 00676 g007
Figure 8. Spatial distribution pattern of heavy metal Pb content in the study area.
Figure 8. Spatial distribution pattern of heavy metal Pb content in the study area.
Agronomy 15 00676 g008
Figure 9. Standard deviation of predicted Pb content.
Figure 9. Standard deviation of predicted Pb content.
Agronomy 15 00676 g009
Figure 10. Field landscape analysis of the research area.
Figure 10. Field landscape analysis of the research area.
Agronomy 15 00676 g010
Table 1. Parameters of the ZY-1-02E hyperspectral satellite data.
Table 1. Parameters of the ZY-1-02E hyperspectral satellite data.
ItemsParameters
Wavelength range
Spectral bands
Spectral resolution (VNIR)
Spectral resolution (SWIR)
Width
Spatial resolution
Lateral swing capacity
Return cycle
0.4–2.5 μm
166
10 nm
20 nm
≥60 km
≤30 m
±16°
3 days
Table 2. Comparison of modeling methods.
Table 2. Comparison of modeling methods.
MethodAdvantagesDisadvantagesR2Reference
PLSRGood at handling multicollinear dataPoorly interpreted, not suitable for non-linear relationships0.52–0.90[9,12]
RFHigh accuracy, strong interpretabilityNot applicable to small samples0.69–0.91[40,45,46]
ELMFast training speed, suitable for small sample dataNot suitable for complex datasets0.56–0.87[41,42]
GBDTStrong ability to handle non-linearitiesHigh risk of overfitting0.76–0.80[30]
XGBoostStrong robustness, handing of missing valuesComplexity of parameter adjustment0.73–0.90[43,47,48]
Table 3. Statistical characteristics of Pb concentration (unit: mg/kg).
Table 3. Statistical characteristics of Pb concentration (unit: mg/kg).
MetalMaxMinMeanStdCVSkewnessKurtosisRisk Value
Pb164.129.1938.3938.901.011.691.92120
Table 4. Feature band statistics of preselected results.
Table 4. Feature band statistics of preselected results.
ElementWavelength (Unit: nm)TotalPercentage of Total
Pb558, 696, 713, 756, 850, 859, 893, 902, ……, 1734, 1784, 2088, 2357, 2391, 24412818.54%
Table 5. Statistics of modeling features selected using XGB–Boruta–PCC.
Table 5. Statistics of modeling features selected using XGB–Boruta–PCC.
ElementWavelength (Unit: nm)TotalPercentage of Total
Pb893, 910, 919, 996, 1009, 1043, 1178, 1195, 1717, 1734, 2087, 2357, 2391138.61%
Table 6. Estimation results for PLSR, RF, ELM, GBDT, and XGBoost (Contributors 0.70).
Table 6. Estimation results for PLSR, RF, ELM, GBDT, and XGBoost (Contributors 0.70).
ElementMethod R c 2 R M S E c M A E c R v 2 R M S E v M A E v
PbPLSR0.7315.6712.350.4827.2815.71
RF0.7618.6113.490.6820.4114.80
ELM0.7517.8213.580.6425.8517.31
GBDT0.8813.559.340.7915.0512.72
XGBoost 0.927.295.680.8211.589.89
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Li, X.; Gu, H.; Tang, R.; Zou, B.; Liu, X.; Ou, H.; Chen, X.; Song, Y.; Luo, W.; Wen, B. A Fusion XGBoost Approach for Large-Scale Monitoring of Soil Heavy Metal in Farmland Using Hyperspectral Imagery. Agronomy 2025, 15, 676. https://doi.org/10.3390/agronomy15030676

AMA Style

Li X, Gu H, Tang R, Zou B, Liu X, Ou H, Chen X, Song Y, Luo W, Wen B. A Fusion XGBoost Approach for Large-Scale Monitoring of Soil Heavy Metal in Farmland Using Hyperspectral Imagery. Agronomy. 2025; 15(3):676. https://doi.org/10.3390/agronomy15030676

Chicago/Turabian Style

Li, Xuqing, Huitao Gu, Ruiyin Tang, Bin Zou, Xiangnan Liu, Huiping Ou, Xuying Chen, Yubin Song, Wei Luo, and Bin Wen. 2025. "A Fusion XGBoost Approach for Large-Scale Monitoring of Soil Heavy Metal in Farmland Using Hyperspectral Imagery" Agronomy 15, no. 3: 676. https://doi.org/10.3390/agronomy15030676

APA Style

Li, X., Gu, H., Tang, R., Zou, B., Liu, X., Ou, H., Chen, X., Song, Y., Luo, W., & Wen, B. (2025). A Fusion XGBoost Approach for Large-Scale Monitoring of Soil Heavy Metal in Farmland Using Hyperspectral Imagery. Agronomy, 15(3), 676. https://doi.org/10.3390/agronomy15030676

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