Research Article  Open Access
Jinman Wang, Zhongke Bai, Peiling Yang, "Simulation and Prediction of Ion Transport in the Reclamation of Sodic Soils with Gypsum Based on the Support Vector Machine", The Scientific World Journal, vol. 2014, Article ID 805342, 9 pages, 2014. https://doi.org/10.1155/2014/805342
Simulation and Prediction of Ion Transport in the Reclamation of Sodic Soils with Gypsum Based on the Support Vector Machine
Abstract
The effect of gypsum on the physical and chemical characteristics of sodic soils is nonlinear and controlled by multiple factors. The support vector machine (SVM) is able to solve practical problems such as small samples, nonlinearity, high dimensions, and local minima points. This paper reports the use of the SVM regression method to predict changes in the chemical properties of sodic soils under different gypsum application rates in a soil column experiment and to evaluate the effect of gypsum reclamation on sodic soils. The research results show that (1) the SVM soil solute transport model using the Matlab toolbox represents the change in Ca^{2+} and Na^{+} in the soil solution and leachate well, with a high prediction accuracy. (2) Using the SVM model to predict the spatial and temporal variations in the soil solute content is feasible and does not require a specific mathematical model. The SVM model can take full advantage of the distribution characteristics of the training sample. (3) The workload of the soil solute transport prediction model based on the SVM is greatly reduced by not having to determine the hydrodynamic dispersion coefficient and retardation coefficient, and the model is thus highly practical.
1. Introduction
The support vector machine (SVM) method was developed based on the Vapnik statistical learning theory and in particular the statistical VapnikChervonenkis Dimension theory and the Structural Risk Minimization Inductive Principle [1]. The basic principle of SVM is to solve the classification problem. Its guiding ideology is to map nonlinear separable sample data to a higher dimensional linear separable space through a kernel function and then to solve the partition hyperplane using an optimization method to determine the parameters of the decisionmaking function and minimize its structural risk [2]. Theory and practice have proved that the SVM can solve the practical problems of a small sample, nonlinearity, high dimensionality, and local minima points and has good generalizability [3]. The SVM has become a hot topic in machine learning research and has been successfully applied in pattern recognition, data mining, regression, and approximation [4–6]. In the field of agriculture, the problem of reclaiming sodic soils has attracted much attention. Many studies have proved that the effect of the desulfurization byproducts used in the reclamation process on the physical and chemical properties of soil is nonlinear and multifactorial [6–11]. Šimůnek et al. constructed a multicomponent solute transport model of sodic soil reclamation and predicted the solute transport by using the UNSATCHEM and HYDRUS models [12–14]. However, the models use the major ion chemistry module, which have a relatively complex code and require a large number of input parameters that are not always readily available [15–17]. The SVM regression method is applied here to overcome these issues and determine the variation in the chemical properties of sodic soils with reclaimed time and different application levels of a flue gas desulfurization byproduct (or gypsum) and to evaluate the effect on sodic soils of reclamation with gypsum.
2. Materials and Methods
2.1. Physical and Chemical Properties of Soils and CaSO_{4}
The soil was sampled from the Changsheng Experimental Station of the Bayannur League Institute of Water Resources in the northwest of China. The soil had typical sodic soil characteristics, that is, a high pH and exchangeable sodium percentage and low hydraulic conductivity. The soil texture was clay and its physical and chemical properties are listed in Table 1. The soil was airdried, crushed, and passed through a 2 mm sieve before the experiments. The pure CaSO_{4} (molecular weight 136) was purchased from the Tianjin Wendaxigui Chemical Reagent Factory.
(a)  
 
(b)  
 
(c)  

2.2. Ca^{2+} Penetration Experiment
The experimental device (Figure 1) was a 25cmhigh Plexiglass column with a 5 cm inside diameter (the soil height was 10 cm), and a Mariotte bottle was used to supply the water. The experiment consisted of four treatments (Table 2) with different CaSO_{4} rates (0.5, 1, 1.5, and 2 g·L^{−1}). The pure CaSO_{4} was selected as the reagent and distilled water was used as the solvent to configure the solution.

The experimental procedure was as follows. The tested soil samples were poured homogeneously into the Plexiglass column at a dry soil bulk density of 1.45 g·cm^{−3} to a depth of 10 cm. The soil columns were saturated with distilled water from the bottom up at a saturation rate of 2 cm per hour. Once the soils were saturated, the surface water was quickly drained with a vacuum pump and the Ca^{2+} solution that had been configured in the Mariotte bottle was immediately supplied. The Ca^{2+} and Na^{+} concentrations of the leachate were measured once every 24 hours. The Ca^{2+} and Na^{+} concentrations in the soil solution and soil colloid were measured after the penetration experiment.
2.3. Analytical Methods and Statistical Analyses
The soil samples were airdried and passed through a 1 mm sieve. The EC, pH, soluble anions, and soluble cations were measured using 1 : 5 water extracts. The soluble cations were measured using an atomic absorption spectrophotometer (AAS3620); soluble anions were determined by anion chromatography (ICS900); soil pH was determined with the glass electrode method. The salt content was measured using a 1 cm conductivity cell, diptype probe. Exchangeable cations were determined in a 1 M ammonium acetate (pH = 7) extract. Following this extraction and washing with 96% alcohol, the cation exchange capacity was determined by the removal of ammonium ions by distillation. Na^{+} and K^{+} were determined by flame emission spectroscopy (FP6400) in the extract, and Ca^{2+} and Mg^{2+} were determined by atomic absorption spectrophotometer (AAS3620). Particle size distribution was determined with the hydrometer method. The concentrations of Na^{+} and Ca^{2+} in the leachate were measured using an atomic absorption spectrophotometer (AAS3620).
2.4. SVM Theory
The SVM method was initially introduced to solve classification problems but can be extended to deal with regression problems [6, 11].
A linear and separable sample set () is defined, and the hyperplane is constructed and divided. The two types of sample points must be correctly divided to achieve , but the largest spacing of classifications needs to be achieved, where is the maximum or is minimum. and give the optimal solution to the following optimization problem:
This is the decisionmaking function .
Equation (1) can be transformed into the dual problem based on duality theory [6]: where is a Lagrange multiplier. The following relationship exists among the optimal solutions in (2) and and in (1):
Consider the following linear regression problem.
The regression hyperplane is obtained for the sample set, . Intuitively, the difference between the hyperplane value at and the actual input value should be as small as possible. A parameter is introduced which requires
Equation (4) now needs to be converted into a classification problem. It can be envisaged that all of the sample points in the sample set are, respectively, moved up and moved down along the direction, so that the sample set obtained after the upward movement is above the regression hyperplane (positive class) and the sample set obtained after the downward movement is below the regression hyperplane (negative class point). The regression hyperplane is thus transformed into a partition hyperplane, and the regression problem is converted into a classification problem.
This problem can be solved by modifying (1): where is the weight vector corresponding to the component of the sample points:
The partition hyperplane can be obtained according to the optimal solution to (5), which corresponds to the regression function , where and .
Letting , (5) is then equivalent to the following:
The algorithm is further improved by allowing fitting error through the introduction of slack variables and a penalty parameter , which modifies (5) as follows:
Provided that the optimal solution to (8) is , then and (8) is equivalent to
In the objective function of (9), minimizing renders the regression function flat and increases the generalizability. is the total error of the regression function and should be minimized.
Setting the solution to (9) as , the regression function is then
The dual problem is then written as follows:
The solution to (11) is derived as . In general, the solutions to (9) and (11) have the following relationship: where is the sample index of the corresponding multiplier (when it is positive) or the sample index of corresponding multiplier (when it is negative).
As is a constant that is known in advance in the actual process, simplifying will not have any effect in (9), (11), and (12), and after this replacement the linear SVM machine of the insensitive loss function can be obtained.
For a wide range of nonlinear problems, the SVM maps samples to the highdimensional Hilbert space by skillfully using nuclear transform methods and processing using linear methods. If the mapping is , then it can be seen that (11) and (12) are only relevant to the inner product (dot product) of the sample points. Given this characteristic, the actual mapping function need not be known: only the functional relationship of the sample points in the original space in the dot product of the highdimensional space after mapping needs to be determined, which is represented by the fact that is a kernel function. The Gauss radial basis kernel, polynomial kernel, Bspline kernel, Fourier kernel, and Sigmoid kernel are commonly used kernel functions.
The complete algorithm of the SVM for dealing with nonlinear regression problems is as follows.(1)Select parameters and and the appropriate kernel .(2)Construct the following optimization problem: Find the optimal solution .(3)Construct the decision function where ; the positive sign is selected when , and the negative sign is selected when .
2.5. Construction of the SVM Regulation Model
The SVM method is applied to predict the reclamation effect of a desulfurization byproduct (gypsum) on sodic soils. The main factors influencing the reclamation process must first be determined, and then the sample datasets of observations are selected for training the SVM. Predictions can then be made according to the parameters obtained from the training.
Determination of the Factors of Influence. The reclamation of sodic soils with desulfurization byproducts is a multiion transportation and transformation process that is accompanied by ion exchangeadsorption and precipitationdissolution reactions. Under onedimensional vertical infiltration conditions, the factors that affect the soil solute transport include transport time, transport distance, soil texture, soil bulk density, soil moisture, ion concentration in the soil solution, ion concentration in the supply solution, and ion concentration in the solid exchange phase. When the ion concentration in the soil solution, ion concentration in the solid exchange phase, soil texture, soil bulk density, and soil texture are definite, the ion concentration in the supply solution, transport time, and transport distance can be used as the basis for predicting the soil solute transport. After determining the soil solution concentration in multiple profiles in a onedimensional vertical transport experiment and training the model in terms of the transport time, transport distance, and corresponding soil solute content, the soil solute transport SVM control model can be established to simulate the spatial and temporal variations of the soil solute transport.
Construction of the Sample Dataset. To eliminate the effect of each factor caused by differences in dimension and units, the input and output parameters of the sample are normalized using the following equation: where and are the variables before and after normalization, respectively, and and are the maximum and minimum values, respectively, of the sample data .
Learning and Training the SVM. The Matlab SVM toolbox is used to build and train the model. The main steps in this process include inputting the input and output parameter files, selecting the kernel function and kernel parameter, and data training and testing.
3. Results
3.1. Ca^{2+} and Na^{+} Concentration in the Leachate
The measured values for the Ca^{2+} concentrations in the leachate are shown in Figure 2. When the Ca^{2+} concentrations in the supply water were 14.71, 22.06, and 29.41 mmol·L^{−1}, Ca^{2+} penetration was realized. When the Ca^{2+} concentration in the supply water was higher, Ca^{2+} penetration was faster. Ca^{2+} did not penetrate when the Ca^{2+} concentration was 7.35 mmol·L^{−1}. In the initial stage, because the soil solution itself contained a certain amount of soluble Ca^{2+}, the Ca^{2+} in the supply water first reacted with the sodic salts and exchangeable Na^{+} in the soil colloid in the top soil. Before the Ca^{2+} reached the bottom of the soil column, the Ca^{2+} in the soil solution was constantly leached from the soil column and the Ca^{2+} concentration in the leachate gradually decreased. However, as the Ca^{2+} gradually reached the bottom of the soil column, the Ca^{2+} concentration in the leachate gradually increased until it reached the Ca^{2+} concentration in the supply water, at which point it stabilized and realized penetration.
(a)
(b)
(c)
(d)
The measured values for the Na^{+} concentrations in the leachate are shown in Figure 3. Because there was no Na^{+} in the supply water, the Na^{+} concentration in the leachate gradually decreased. Under higher leachate concentrations, the decrease in Na^{+} was faster due to the increase in the soil’s hydraulic conductivity capacity.
(a)
(b)
(c)
(d)
3.2. Prediction of the Ca^{2+} Concentration in a Penetration Experiment
An SVM model of the variations in Ca^{2+} concentration in sodic soils in a penetration test was constructed and used for data prediction. The training process and analytical results are as follows.
The measured Ca^{2+} concentrations of the soil leachate from 0 h to 480 h in 0.5 g·L^{−1}, 1.0 g·L^{−1}, and 2.0 g·L^{−1} treatments of gypsum and from 240 h to 480 h in a 1.5 g·L^{−1} treatment of gypsum were used as the input data. The measured Ca^{2+} concentrations of the leachate from 0 h to 240 h in a 1.5 g·L^{−1} gypsum treatment were used as the inspection data. The data were normalized, and the prediction model based on the SVM was constructed in Matlab with the following parameters: kernel function rbf (shaped as in (16)), , , , and
The SVM model was applied to predict the data. The prediction results and measured data are shown in Figure 4. The results of a regression analysis of the measured data and prediction data are shown in Figure 5. The results show the measured data and prediction data to be strongly correlated. Clearly, the SVM model is able to correctly represent the changes in the Ca^{2+} concentration of the soil leachate in the reclamation process.
3.3. Prediction of the Na^{+} Concentration in a Penetration Experiment
The measured Na^{+} concentrations of the soil leachate from 0 h to 480 h in 0.5 g·L^{−1}, 1.0 g·L^{−1}, and 2.0 g·L^{−1} treatments of gypsum and from 240 h to 480 h in a 1.5 g·L^{−1 }treatment of gypsum were used as the input data. The measured Na^{+} concentrations of the leachate from 0 h to 240 h in a 1.5 g·L^{−1} gypsum treatment were used as the inspection data. The data were normalized, and the prediction model based on the SVM was constructed in Matlab with the following parameters: kernel function rbf (shaped as in (16)), , , and .
The SVM model was applied to predict the data. The prediction results and measured data are shown in Figure 6. The results of a regression analysis of the measured data and prediction data are shown in Figure 7. The results show the measured data and prediction data to be strongly correlated. Clearly, the SVM model is able to correctly represent the changes in the Na^{+} concentration of the soil leachate in the reclamation process.
4. Discussion
4.1. Validation of the SVM Model
The SVM method is a type of lumped parameter prediction method and has broad applicability in determining small changes in a parameter system [11, 18]. In situations where there is a lack of experimental data and system structure, such models are often able to make acceptable simulations and predictions of ion concentrations [6]. This study introduces the SVM to the complex ion change process that occurs during the application of desulfurization byproducts such as gypsum to improve sodic soils and achieves good prediction and simulation results. In addition to a visual check, measured values of Ca^{2+ } and Na^{+} were compared with the results of SVM model prediction using the mean absolute error and the root mean square error. The mean absolute error (MAE) given by [19]
describes the difference between the measured values () and prediction results () in the units of a particular variable, with being the number of measurement of Ca^{2+} and Na^{+}. The root mean square error (RMSE) given by [19] is the square root of the mean square error, also given in the units of a particular variable. In general, RMSE ≥ MAE. The degree in which the RMSE value exceeds MAE is usually a good indicator of the presence and extent of outliers, or the variance of the differences between the predicted and observed values [19]. The RMSE between the measured values and prediction results of Ca^{2+} in leachate were 0.27 mmol·L^{−1} and 15.91 mmol·L^{−1} for Na^{+}. All the RMSE were more than MAE in different degrees, but the degree in which the RMSE value exceeds MAE is low. So, the use of SVM model for prediction of ion transport in sodic soils reclaimed by CaSO_{4} was reasonable.
4.2. Comparison with ANN Model
The application presented in the current paper was compared to a very wellknown machine learning tool, the artificial neural network (ANN) model. The SVM can take full advantage of the distribution characteristics of the training sample, constructs a discriminant function according to the training sample, and does not need much prior information, which favors it over other nonlinear methods [18, 20]. The SVM finds the best compromise between model complexity and learning ability where sample information is limited and is highly generalizable. The ANN model uses a least squares loss function unlike SVMs which use εinsensitive loss function as a fitness measure [6]. ANN method is more like an art and needs significant skill to obtain a relatively satisfactory result [21, 22]. ANN predictions are not stable and depend on the averages from various network initializations, which may yield a different result each time a model is trained. Converting the SVM algorithm into a quadratic optimization problem should in theory result in a globally optimal solution being obtained [18]. This effectively prevents the local minima problem that neural networks easily fall into, cleverly solves highdimensional problems by nonlinear transforms and nuclear functions, makes the complexity of the algorithm independent of the sample dimension, and speeds up the training and learning. By contrast, the SVM results are stable and unique. Table 3 shows the results of the comparison between the SVM and ANN methods based on simulated and predicted data. The RMSE using the SVM method was 0.27 mmol·L^{−1} and 15.91 mmol·L^{−1} for Ca^{2+} and Na^{+}, respectively, but those of ANN were 0.52 mmol·L^{−1} and 26.15 mmol·L^{−1}, indicating that SVM predicted better results than ANN. The maximum error, minimum error, and average error of the SVM results are smaller than those of the ANN [19]. Therefore, the SVM method has better capability to predict ion transport in sodic soils reclaimed by CaSO_{4}.

5. Conclusion
The simulation and prediction model of solute transport was constructed using Matlab toolbox based on nonlinear SVM theory, and the transport and transformation law of Ca^{2+} and Na^{+} in Ca^{2+} penetration process was carried out to simulate and predict. The following conclusions can be drawn from our findings.(1)The change of Ca^{2+} and Na^{+} in leachate can be reflected by SVM soil solute transport model by using Matlab toolbox, and the prediction accuracy is high.(2)Using SVM model to predict the spatial and temporal variations of soil solute content is feasible, and it does not require a specific mathematical model. SVM model can take full advantage of the distribution characteristics of training samples and does not require too much of a priori information and use skills.(3)The workload of soil solute transport prediction model based on SVM was greatly reduced without determination of the hydrodynamic dispersion coefficient and retardation coefficient, and the SVM model has a strong practicality.
Conflict of Interests
The authors declare that there is no conflict of interests regarding the publication of this paper.
Acknowledgments
This research was supported by the National Natural Science Foundation of China (50749032), Beijing Higher Education Young Elite Teacher Project, and the Fundamental Research Funds for the Central Universities, China (2652012072).
References
 S.M. Cai, R.Q. Zhang, L.M. Liu, and D. Zhou, “A method of saltaffected soil information extraction based on a support vector machine with texture features,” Mathematical and Computer Modelling, vol. 51, no. 1112, pp. 1319–1325, 2010. View at: Publisher Site  Google Scholar
 K. Lamorski, Y. Pachepsky, C. Sławiński, and R. T. Walczak, “Using support vector machines to develop pedotransfer functions for water retention of soils in Poland,” Soil Science Society of America Journal, vol. 72, no. 5, pp. 1243–1247, 2008. View at: Publisher Site  Google Scholar
 M. K. Gill, T. Asefa, M. W. Kemblowski, and M. McKee, “Soil moisture prediction using support vector machines,” Journal of the American Water Resources Association, vol. 42, no. 4, pp. 1033–1046, 2006. View at: Publisher Site  Google Scholar
 M. Khatibinia, M. J. Fadaee, J. Salajegheh, and E. Salajegheh, “Seismic reliability assessment of RC structures including soilstructure interaction using wavelet weighted least squares support vector machine,” Reliability Engineering & System Safety, vol. 110, pp. 22–33, 2013. View at: Publisher Site  Google Scholar
 N. K. C. Twarakavi, J. Šimůnek, and M. G. Schaap, “Development of pedotransfer functions for estimation of soil hydraulic parameters using support vector machines,” Soil Science Society of America Journal, vol. 73, no. 5, pp. 1443–1452, 2009. View at: Publisher Site  Google Scholar
 C. Ballabio, “Spatial prediction of soil properties in temperate mountain regions using support vector regression,” Geoderma, vol. 151, no. 34, pp. 338–350, 2009. View at: Publisher Site  Google Scholar
 J. M. Wang, Z. K. Bai, and P. L. Yang, “Sodic soil properties and sunflower growth as affected by byproducts of flue gas desulfurization,” PloS ONE, vol. 7, Article ID e52437, 2012. View at: Publisher Site  Google Scholar
 J. M. Wang, Z. K. Bai, and P. L. Yang, “Effect of byproducts of flue gas desulfurization on the soluble salts composition and chemical properties of sodic soils,” PloS ONE, vol. 8, Article ID e71011, 2013. View at: Publisher Site  Google Scholar
 S. Chun, M. Nishiyama, and S. Matsumoto, “Sodic soils reclaimed with byproduct from flue gas desulfurization: corn production and soil quality,” Environmental Pollution, vol. 114, no. 3, pp. 453–459, 2001. View at: Publisher Site  Google Scholar
 U. Sahin, S. Eroğlu, and F. Sahin, “Microbial application with gypsum increases the saturated hydraulic conductivity of salinesodic soils,” Applied Soil Ecology, vol. 48, no. 2, pp. 247–250, 2011. View at: Publisher Site  Google Scholar
 X.Y. Guan, S.L. Wang, Z.Y. Gao, and Y. Lv, “Dynamic prediction of soil salinization in an irrigation district based on the support vector machine,” Mathematical and Computer Modelling, vol. 58, no. 34, pp. 719–724, 2013. View at: Publisher Site  Google Scholar
 M. C. Gonçalves, J. Šimůnek, T. B. Ramos, J. C. Martins, M. J. Neves, and F. P. Pires, “Multicomponent solute transport in soil lysimeters irrigated with waters of different quality,” Water Resources Research, vol. 42, no. 8, 2006. View at: Publisher Site  Google Scholar
 T. B. Ramos, J. Šimůnek, M. C. Gonçalves et al., “Field evaluation of a multicomponent solute transport model in soils irrigated with saline waters,” Journal of Hydrology, vol. 407, no. 1–4, pp. 129–144, 2011. View at: Publisher Site  Google Scholar
 J. Simunek and D. L. Suarez, “Sodic soil reclamation using multicomponent transport modeling,” Journal of Irrigation and Drainage Engineering, vol. 123, no. 5, pp. 367–376, 1997. View at: Publisher Site  Google Scholar
 L. P. Reading, T. Baumgartl, K. L. Bristow, and D. A. Lockington, “Applying HYDRUS to flow in a sodic clay soil with solution compositiondependent hydraulic conductivity,” Vadose Zone Journal, vol. 11, no. 2, 2012. View at: Publisher Site  Google Scholar
 J. C. Seaman, H. Chang, S. Goldberg, and J. Simunek, “Reactive transport modeling,” Vadose Zone Journal, vol. 11, no. 2, 2012. View at: Publisher Site  Google Scholar
 J. Simunek, M. T. van Genuchten, and M. Sejna, “HYDRUS: model use, calibration, and validation,” Transactions of the Asabe, vol. 55, no. 4, pp. 1261–1274, 2012. View at: Google Scholar
 M. Kovačević, B. Bajat, and B. Gajić, “Soil type classification and estimation of soil properties using support vector machines,” Geoderma, vol. 154, no. 34, pp. 340–347, 2010. View at: Publisher Site  Google Scholar
 J.D. Wang, S.H. Gong, D. Xu, S. Juan, and J.X. Mu, “Numerical simulations and validations of water flow and heat transport in a subsurface drip irrigation system using HYDRUS2D,” Irrigation and Drainage, vol. 62, no. 1, pp. 97–106, 2013. View at: Publisher Site  Google Scholar
 R. M. Patel, S. O. Prasher, P. K. Goel, and R. Bassi, “Soil salinity prediction using artificial neural networks,” Journal of the American Water Resources Association, vol. 38, no. 1, pp. 91–100, 2002. View at: Publisher Site  Google Scholar
 A. Sarangi, M. Singh, A. K. Bhattacharya, and A. K. Singh, “Subsurface drainage performance study using SALTMOD and ANN models,” Agricultural Water Management, vol. 84, no. 3, pp. 240–248, 2006. View at: Publisher Site  Google Scholar
 S. Kanzari, M. Hachicha, R. Bouhlila, and J. BattleSales, “Characterization and modeling of water movement and salts transfer in a semiarid region of Tunisia (Bou Hajla, Kairouan)—salinization risk of soils and aquifers,” Computers and Electronics in Agriculture, vol. 86, pp. 34–42, 2012. View at: Publisher Site  Google Scholar
Copyright
Copyright © 2014 Jinman Wang et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.