<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JGIS</journal-id><journal-title-group><journal-title>Journal of Geographic Information System</journal-title></journal-title-group><issn pub-type="epub">2151-1950</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jgis.2020.126035</article-id><article-id pub-id-type="publisher-id">JGIS-104280</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Earth&amp;Environmental Sciences</subject></subj-group></article-categories><title-group><article-title>
 
 
  Modeling the Spatial Distribution of Soil Heavy Metals Using Random Forest Model—A Case Study of Nairobi and Thirirka Rivers’ Confluence
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Evans</surname><given-names>Omondi</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Mark</surname><given-names>Boitt</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Department of Geomatic Engineering and Geospatial Information Systems, Jomo Kenyatta University of Agriculture and Technology, Nairobi, Kenya</addr-line></aff><pub-date pub-type="epub"><day>19</day><month>11</month><year>2020</year></pub-date><volume>12</volume><issue>06</issue><fpage>597</fpage><lpage>619</lpage><history><date date-type="received"><day>3,</day>	<month>October</month>	<year>2020</year></date><date date-type="rev-recd"><day>20,</day>	<month>November</month>	<year>2020</year>	</date><date date-type="accepted"><day>23,</day>	<month>November</month>	<year>2020</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  Modeling the spatial distribution of soil heavy metals is important in determining the safety of contaminated soils for agricultural use. This study utilized 60 topsoil samples (0 - 30 cm), multispectral images (Sentinel-2), spectral indices, and ancillary data to model the spatial distribution of heavy metals in the soils along the Nairobi River. The model was generated using the Random Forest package in R. Using R2 to assess the prediction accuracy, the Random Forest model generated satisfactory results for all the elements. It also ranked the variables in order of their importance in the overall prediction. Spectral indices were the most important variables within the rankings. From the predicted topsoil maps, there were high concentrations of Cadmium on the easterly end of the river. Cadmium is an impurity in detergents, and this section is in close proximity to the Nairobi water sewerage plant, which could be a direct source of Cadmium. Some farms had Zinc levels which were above the World Health Organization recommended limit. The Random Forest model performed satisfactorily. However, the predictions can be improved further if the spatial resolutions of the various variables are increased and through the addition of more predictor variables.
 
</p></abstract><kwd-group><kwd>Random Forest</kwd><kwd> Sentinel 2</kwd><kwd> Heavy Metals</kwd><kwd> Spectral Indices</kwd><kwd> Spatial Modeling</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Efficient waste management is essential for improving the quality of living and sustainability of a country. However, this remains a challenge to developing countries as it’s often expensive to execute. Managing an efficient waste management system requires efficient integrated systems that are sustainable and socially supported [<xref ref-type="bibr" rid="scirp.104280-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.104280-ref2">2</xref>].</p><p>In Kenya, waste disposal poses a great challenge, especially to the urban centers, including the country’s capital city Nairobi, the coastal city of Mombasa, and Kisumu. Poor waste disposal in these metropolitan areas has been attributed to urbanization, rapid population growth due to rural-urban migration, sprawling of slum areas, lack of proper dumpsite areas, and a long-term lapse in the enforcement of urban planning and environmental laws [<xref ref-type="bibr" rid="scirp.104280-ref3">3</xref>]. Nairobi records the highest tonnage of garbage generated among these cities, approximately 2977 tons daily, of which 774 t/day (26%) remains uncollected [<xref ref-type="bibr" rid="scirp.104280-ref4">4</xref>]. Some of the waste generated are significant sources of heavy metal contamination to the environment, particularly industrial and electronic wastes (17,350 tons annually) [<xref ref-type="bibr" rid="scirp.104280-ref1">1</xref>].</p><p>Heavy metals like Manganese (Mn), Zinc (Zn), Copper (Cu), and Iron (Fe) are essential micronutrients for the growth and development of plants and the human body. While other elements like Cadmium (Cd), Lead (Pb), and Chromium (Cr) have no known benefits to both human and plant physiological processes. These toxic metals have been linked to several health problems in humans, such as hallucinations, diarrhea with blood, abdominal pain, dermatitis, liver and kidney failure, lung disease, hepatic damage, mutagenic, teratogenic, and carcinogenic effects [<xref ref-type="bibr" rid="scirp.104280-ref5">5</xref>].</p><p>Studies have shown the importance of remote sensing in detecting heavy metal stress [<xref ref-type="bibr" rid="scirp.104280-ref6">6</xref>] [<xref ref-type="bibr" rid="scirp.104280-ref7">7</xref>]. Heavy metals have adverse effects on plants. They inhibit physiological and metabolic processes like photosynthesis by reducing the canopy chlorophyll content, thus affecting growth and productivity [<xref ref-type="bibr" rid="scirp.104280-ref8">8</xref>]. Therefore, chlorophyll content acts as an important bio-indicator of a plants’ health status [<xref ref-type="bibr" rid="scirp.104280-ref9">9</xref>] [<xref ref-type="bibr" rid="scirp.104280-ref10">10</xref>]. Changes in chlorophyll content can alter the spectral reflectance of both the near-infrared and visible portions of the electromagnetic spectrum. Therefore, the red-edge region is closely associated with chlorophyll content in plants [<xref ref-type="bibr" rid="scirp.104280-ref11">11</xref>] [<xref ref-type="bibr" rid="scirp.104280-ref12">12</xref>]. Additionally, some studies have shown that it can be an important indicator of heavy metal stress levels in plants [<xref ref-type="bibr" rid="scirp.104280-ref13">13</xref>] [<xref ref-type="bibr" rid="scirp.104280-ref14">14</xref>]. This can be exploited together with other variables to model heavy metal contamination in soils.</p><p>Machine learning approaches like cubist, Principle Component Analysis, and Support Vector machine have been used to map heavy metal contamination in soil, and they have performed reasonably well [<xref ref-type="bibr" rid="scirp.104280-ref15">15</xref>] [<xref ref-type="bibr" rid="scirp.104280-ref16">16</xref>] [<xref ref-type="bibr" rid="scirp.104280-ref17">17</xref>]. However, researchers are always looking for machine learning algorithms, additional variables, and sensors that can provide higher prediction accuracies [<xref ref-type="bibr" rid="scirp.104280-ref15">15</xref>] [<xref ref-type="bibr" rid="scirp.104280-ref18">18</xref>].</p><p>The random forest classifier is a combination of multiple decision trees, where each tree is built from a random vector independently sampled from the input vector, and each decision tree casts a vote to find out the most popular class to assign the input vector [<xref ref-type="bibr" rid="scirp.104280-ref19">19</xref>]. In recent years it has been used for many different applications including, image classification [<xref ref-type="bibr" rid="scirp.104280-ref20">20</xref>] [<xref ref-type="bibr" rid="scirp.104280-ref21">21</xref>] [<xref ref-type="bibr" rid="scirp.104280-ref22">22</xref>], vegetation mapping [<xref ref-type="bibr" rid="scirp.104280-ref23">23</xref>] [<xref ref-type="bibr" rid="scirp.104280-ref24">24</xref>], however very few studies have been done focusing on the use of Random forest for the spectral analysis of soil, and specifically on heavy metals in soil [<xref ref-type="bibr" rid="scirp.104280-ref25">25</xref>] [<xref ref-type="bibr" rid="scirp.104280-ref26">26</xref>] [<xref ref-type="bibr" rid="scirp.104280-ref27">27</xref>] [<xref ref-type="bibr" rid="scirp.104280-ref28">28</xref>]. Nonetheless, the studies that focused on heavy metals did not consider variables at a higher spatial resolution and additional dependent variables such as HMSSI, SAVI, and WDVI.</p><p>In Kenya, the rivers in Nairobi County are too polluted with heavy metals for human use [<xref ref-type="bibr" rid="scirp.104280-ref29">29</xref>]. Incidentally, recent google earth imagery shows the establishment of peri-urban farms on the banks of the polluted river. And to our knowledge, there is no information in existence regarding the spatial distribution of soil heavy metals in the banks along the Nairobi River. Therefore, it is paramount to establish the pollution levels of heavy metals in the soils used to grow these crops.</p><p>This study’s novelty is to utilize the red-edge and optical bands from multi-temporal Sentinel 2 satellite imageries, with a temporal resolution of 10 days, Random Forest, and ancillary data to model the distribution of heavy metals in the soils used to cultivate the peri-urban farms. Therefore, this research aims to map the distribution of toxic heavy metals (Cd, Pb, and Zn) in soils irrigated using water from the polluted Nairobi River. This is achievable by first conducting a random soil sampling and laboratory analysis for heavy metal contamination along the Nairobi River riparian, followed by determining the performance of the environmental parameters and spectral indices in the predictions. Lastly, modeling and validating the distribution of heavy metal contamination in the soils along the river.</p></sec><sec id="s2"><title>2. Materials and Methods</title><sec id="s2_1"><title>2.1. Study Area</title><p>The study area shown in <xref ref-type="fig" rid="fig1">Figure 1</xref> is located at the confluence of the Nairobi and Thiririka rivers (1˚11'57.36&quot;S - 37˚07'09.23&quot;E). It shares a border between Ruiru sub-county in Kiambu County and Kasarani sub-county in Nairobi County. It covers a total area of approximately 17 km<sup>2</sup>.</p><p>The climate is described as warm and temperate. It lies at an altitude of 1544 m above sea level and receives annual average precipitation of 752 mm.</p><p>According to the 2019 Census, Kasarani sub-county had a population of 780,656, and Ruiru sub-county had a population of 490,120 [<xref ref-type="bibr" rid="scirp.104280-ref30">30</xref>]. <xref ref-type="fig" rid="fig2">Figure 2</xref> shows the decadal increase in population around our study area.</p><p>The main socio-economic activity in the area is farming, and over the past two decades, there has been a growth of peri-urban agriculture along the river channel. Therefore, we chose an area along the river channel with a continuous and a high concentration of peri-urban farms as our study area.</p></sec><sec id="s2_2"><title>2.2. Data and Methodology</title><p><xref ref-type="fig" rid="fig3">Figure 3</xref> gives a graphical illustration of the methodology used in this study.</p><sec id="s2_2_1"><title>2.2.1. Soil Sampling and Laboratory Analysis</title><p>60 soil samples were collected from 30 cm deep holes (A horizon) along the</p><p>Nairobi River riparian at Ruai, per the European Soil sampling guidelines for pollution studies [<xref ref-type="bibr" rid="scirp.104280-ref31">31</xref>]. Sampling locations covered all the affected peri-urban farms within our study area. The collection points’ geographic coordinates were recorded using a 5 m accuracy hand-held Garmin GPS, as shown in <xref ref-type="fig" rid="fig4">Figure 4</xref>.</p><p>The samples were collected using an auger and taken to the Jomo Kenyatta University of Agriculture and Technology for analysis. They were air-dried for three days under room temperature. A 2 mm polyethylene sieve was used to sieve the soil. They were later analyzed for the concentrations of Lead, Zinc, and Cadmium.</p><p>0.5 g of each sample was added into a pre-cleaned Pyrex test-tube. 8ml of concentrated hydrochloric acid and 3 ml of concentrated perchloric acid were added. The mixture was heated in an aluminum block at 200˚C for a period of 3 hrs until it was dry. After the test-tubes cooled down, 5% HNO3 was added and then heated at 70˚C for 1 hr. with occasional mixing.</p><p>After cooling down, the mixture was decanted into a polyethylene tube and centrifuged at 3500 rpm for 10 min. All of the elements’ concentrations were determined using an inductively-coupled plasma-atomic emission spectrometry.</p></sec><sec id="s2_2_2"><title>2.2.2. Sentinel 2</title><p>Multi-temporal sentinel 2A (Level 1C) imagery from January 2019 to December 2019, with a spatial resolution of 10 m and 20 m, was acquired from the European Space Agency website (ESA https://earthexplorer.usgs.gov/).</p><p>All the products were radiometrically and geometrically corrected using the sent2cor tool in SNAP and projected to the WGS 1984/UTM zone 37˚S map projection.</p><p>In R version 3.6.1, the images were used to extract predictor variables (spectral indices, Land-use land cover map, and spectral bands) needed in the Random Forest model. <xref ref-type="table" rid="table1">Table 1</xref> describes the covariate obtained from Sentinel 2.</p></sec><sec id="s2_2_3"><title>2.2.3. ALOS PALSAR Pre-Processing</title><p>Radiometric calibration is the first important step for Alos Palsar pre-processing. It converts the signal number values to backscatter in sigma naught. Using the Lee filtering method, Speckle filtering was done to reduce the salt and pepper noise caused by speckle noise.</p><p>The speckle filtering was followed by terrain correction. Finally, geocoding of the image was done using ground control points obtained from 1:50,000 topographic maps from the Ministry of Lands and Physical Planning. This was to ensure that the image was properly georeferenced.</p></sec><sec id="s2_2_4"><title>2.2.4. Environmental Parameters</title><p>Environmental parameters have proven useful as ancillary data in improving the accuracy of predicting the distribution of pollutants and other soil attributes [<xref ref-type="bibr" rid="scirp.104280-ref15">15</xref>] [<xref ref-type="bibr" rid="scirp.104280-ref32">32</xref>] [<xref ref-type="bibr" rid="scirp.104280-ref33">33</xref>]. In this study, we utilized selected environmental parameters (Anthropogenic parameters like distance to environmental hotspots, geomorphology data like slope, and a land-use land cover map) to predict the distribution of heavy metal contamination in the soils along Nairobi River (<xref ref-type="table" rid="table2">Table 2</xref>).</p><p>The choice of these parameters was informed by our field observations and their use in other predictive models performed in almost similar environmental conditions.</p><p>1) Digital Elevation Model</p><p>An ALOS PALSAR Digital Elevation Model (D.E.M.) with a spatial resolution of 12.5 m was acquired from the Japanese Space Agency website (https://www.eorc.jaxa.jp/ALOS/en/about/palsar.htm). The tiles were merged using the Mosaic tool in ArcMap version 10.6. A map of the variations in elevation is shown in <xref ref-type="fig" rid="fig5">Figure 5</xref>. The DEM was used later used to generate the slope variable used to predict the model.</p><p>2) Distance to environmental hotspots</p><p>The distance to the closest environmental hotspots (i.e., Industries, roads, mines, dumpsites, and water treatment plants) was generated using the Euclidean distance tool and Extract multi values to points tool in ArcMap 10.6. A map showing the distance to hotspots is shown in <xref ref-type="fig" rid="fig6">Figure 6</xref>.</p><p>3) Land cover map</p><p>Land use and a land cover map (<xref ref-type="fig" rid="fig7">Figure 7</xref>) was generated from a 10 m spatial resolution Sentinel 2 A image, with a &lt;5% cloud cover. The image classification was done using the Random Forest package in R version 3.6.1 software.</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Sentinel 2 data</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Covariate</th><th align="center" valign="middle" >Representative digital data</th><th align="center" valign="middle" >Source of data</th></tr></thead><tr><td align="center" valign="middle" >Spectral Indices</td><td align="center" valign="middle" >NDVI: Bands (8 − 4)/(8 + 4) HMSSI: Bands [(7/5) − 1]/[(4 − 2)/6]</td><td align="center" valign="middle" >Sentinel 2 imagery</td></tr></tbody></table></table-wrap><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Environmental parameters used to predict the distribution of soil heavy metals along the Nairobi River</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Environmental covariates</th><th align="center" valign="middle" >Representative digital data</th><th align="center" valign="middle" >Source of data</th></tr></thead><tr><td align="center" valign="middle" >Digital Elevation Model (m)</td><td align="center" valign="middle" >Slope</td><td align="center" valign="middle" >12.5 m ALOS PALSAR</td></tr><tr><td align="center" valign="middle" >Distance to environmental hotspots (m)</td><td align="center" valign="middle" >Hotspots (Sewer treatment plants, dumpsites, Industries, and roads)</td><td align="center" valign="middle" >Google earth pro</td></tr><tr><td align="center" valign="middle" >Land-use land-cover map</td><td align="center" valign="middle" >Bands 4, 3 and 2</td><td align="center" valign="middle" >10 m Sentinel 2</td></tr></tbody></table></table-wrap></sec></sec><sec id="s2_3"><title>2.3. Spectral Indices and Remote Sensing Images</title><p>The health of vegetation can provide important ancillary information when modeling heavy metals’ spatial distribution in soil. Multi-temporal Sentinel 2 images of Nairobi County were acquired from the USGS Earth Explorer for a period ranging from January 2019 to December 2019. This study used a higher spatial resolution optical sensor, Sentinel 2 (10 m) to improve the prediction accuracy.</p><p>NDVI = NIR − R NIR + R (1)</p><p>HMSSI = CIred-edge PSRI (2)</p><p>PSRI = R 680 − R 500 R 750 (3)</p><p>CIred-edge = ( R 783 R 705 ) − 1 (4)</p><p>SAVI = ( B 8 − B 4 ) B 8 + B 4 + L &#215; ( 1 + L ) (5)</p><p>WDVI = B 8 &#215; B 4 (6)</p><p>where L = 1.</p><p>A study by [<xref ref-type="bibr" rid="scirp.104280-ref15">15</xref>] has shown that the health of vegetation can be an important indicator of heavy metal contamination in soil, and it could also improve the accuracy of a soil heavy metal prediction model. The indices used in this study were derived from Sentinel-2, and they include Normalized Difference Vegetation Index (NDVI), Soil Adjusted Vegetation Index (SAVI), Weighted Difference Vegetation Index (WDVI) [<xref ref-type="bibr" rid="scirp.104280-ref34">34</xref>] and the novel Heavy metal stress-sensitive index (HMSSI) by [<xref ref-type="bibr" rid="scirp.104280-ref35">35</xref>]. HMSSI was developed to improve the accuracy of detecting heavy metal stress in Chinese rice fields using multi-temporal sentinel-2 images.</p><p>In calculating HMSSI, two red-edge spectral indices, namely plant senescence reflectance Index (PSRI) and Red-edge chlorophyll Index (CIred-edge), were used. Low (CIred-edge) index values indicate low chlorophyll and high stress in vegetation, while an increase in PSRI indicates an increase in canopy stress [<xref ref-type="bibr" rid="scirp.104280-ref35">35</xref>].</p></sec><sec id="s2_4"><title>2.4. Spatial Modeling and Validation</title><p>This study created a prediction model for each element (Cd, Pb, and Zn) using the Random Forest package (version 4.6 - 14) in R version 3.6.1 [<xref ref-type="bibr" rid="scirp.104280-ref36">36</xref>]. Random forest operates by constructing multiple decision trees. Each tree is built from a random vector independently sampled from the input vector, and each decision tree casts a vote to find out the most popular class to assign the input vector [<xref ref-type="bibr" rid="scirp.104280-ref19">19</xref>].</p><p>The Random forest has some advantages over other classification and regression tree algorithms. In addition to eliminating bias, it reduces the variance in the predictions usually associated with tree-based approaches by growing the trees further, then averaging their predictions [<xref ref-type="bibr" rid="scirp.104280-ref37">37</xref>]. Another important advantage of Random Forest over other machine learning algorithms is when the training data is small; it has the ability to capture complex and non-linear relationships between predictors and the outcome [<xref ref-type="bibr" rid="scirp.104280-ref37">37</xref>]. It’s also important to note that with random forest, the accuracy of prediction increases with an increased number of predictor variables [<xref ref-type="bibr" rid="scirp.104280-ref38">38</xref>].</p><p>In this study, the various model outputs were validated using the “out of bag” (OOB) testing. The OOB samples are the observations not included in the model, and since they are not used to predict the model, they are used to test it.</p><p>To test prediction quality, 75% of the predictor variables were used for calibration, while the remaining 25% was used for validation. The datasets were chosen using a Latin hypercube sampling to ensure that both the validation and calibration datasets were appropriately represented.</p><p>After selecting the training and test sets, we fitted the random forest model using default parameters [<xref ref-type="bibr" rid="scirp.104280-ref36">36</xref>]. The number of trees (ntree) was set at 500. The model was then fine-tuned by changing the number of variables randomly sampled at each stage (mtry) to 13. Evaluation of the model was done using Root Mean Square Error (RMSE), Bias, and coefficient of determination (R<sup>2</sup>), which were calculated using the Out of Bag Error Estimation. In this, 25% of predictor variables were used to validate the trees.</p><p>RMSError = 1 − r 2 SDy (7)</p><p>where SDy is the standard deviation of y</p><p>Bias = E ( H ) − θ (8)</p><p>where H is the expected values of the estimator less the values θ being estimated</p><p>R 2 = MSS / TSS = ( TSS − RSS ) / TSS (9)</p><p>where MSS is the model sum of squares, and TSS is the total sum of squares associated with the outcome variable.</p></sec></sec><sec id="s3"><title>3. Results and Discussion</title><sec id="s3_1"><title>3.1. Soil Sampling and Analysis</title><p>A total of 60 samples were collected from selected points within the study area and later analyzed for heavy metals in a lab. The metals’ different concentrations are shown in <xref ref-type="fig" rid="fig8">Figure 8</xref>, <xref ref-type="fig" rid="fig9">Figure 9</xref>, and <xref ref-type="fig" rid="fig1">Figure 1</xref>0. <xref ref-type="table" rid="table3">Table 3</xref> shows the safety thresholds for heavy metals recommended by WHO, FAO, and USEPA.</p><p>The results indicate that for Zinc heavy metal, 17 out of the 60 soil samples collected exceeded the WHO/FAO permissible limits. According to [<xref ref-type="bibr" rid="scirp.104280-ref41">41</xref>], Zinc concentrations in the study area can be presented by anthropogenic activities like waste combustion at Dandora dumpsite, Steel processing activities at Nairobi Industrial area, and stone quarrying.</p><p>Additionally, 12/60 Lead samples exceeded the WHO/FAO/USEPA permissible safety limits. Lead is mainly used in the manufacture of lead storage batteries. In this case, it’s highly likely that its presence results from leachates and run-offs from electronic waste components at the Dandora dumpsite. Lead poisoning occurs when there is direct ingestion of Lead contaminated soil. Vegetables produced in soils with less than 300 ppm of Pb contamination are considered safe for consumption. The risk increases with an increase in the concentration in soil.</p><table-wrap id="table3" ><label><xref ref-type="table" rid="table3">Table 3</xref></label><caption><title> Heavy metals safety limits. World Health Organization (WHO), Food and Agriculture Organization (FAO), United States Environmental Protection Agency (USEPA) [<xref ref-type="bibr" rid="scirp.104280-ref39">39</xref>] [<xref ref-type="bibr" rid="scirp.104280-ref40">40</xref>]</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Samples</th><th align="center" valign="middle" >Standards</th><th align="center" valign="middle" >Zn</th><th align="center" valign="middle" >Pb</th><th align="center" valign="middle" >Cd</th></tr></thead><tr><td align="center" valign="middle"  rowspan="2"  >Water (mg/L)</td><td align="center" valign="middle" >WHO/FAO (2007)</td><td align="center" valign="middle" >2.0</td><td align="center" valign="middle" >5.0</td><td align="center" valign="middle" >0.01</td></tr><tr><td align="center" valign="middle" >USEPA, 2010, USEPA., 2010</td><td align="center" valign="middle" >2.00</td><td align="center" valign="middle" >0.015</td><td align="center" valign="middle" >0.005</td></tr><tr><td align="center" valign="middle"  rowspan="2"  >Soil (mg/kg)</td><td align="center" valign="middle" >WHO/FAO (2007)</td><td align="center" valign="middle" >300 - 600</td><td align="center" valign="middle" >250 - 500</td><td align="center" valign="middle" >3.0 - 6.0</td></tr><tr><td align="center" valign="middle" >USEPA, 2010, USEPA., 2010</td><td align="center" valign="middle" >200</td><td align="center" valign="middle" >300</td><td align="center" valign="middle" >3.0</td></tr><tr><td align="center" valign="middle"  rowspan="2"  >Plant (mg/kg)</td><td align="center" valign="middle" >WHO/FAO (2007)</td><td align="center" valign="middle" >60.0</td><td align="center" valign="middle" >5.0</td><td align="center" valign="middle" >0.2</td></tr><tr><td align="center" valign="middle" >USEPA, 2010, USEPA., 2010</td><td align="center" valign="middle" >–</td><td align="center" valign="middle" >–</td><td align="center" valign="middle" >–</td></tr></tbody></table></table-wrap><p>High Cadmium levels were found. However, non-exceeded the WHO/FAO/USEPA permissible limits. Cadmium pollution is linked to industrial effluents and water treatment sludge. Agricultural inputs like pesticides and fertilizers also increase their total concentration in soils [<xref ref-type="bibr" rid="scirp.104280-ref42">42</xref>].</p><p>According to [<xref ref-type="bibr" rid="scirp.104280-ref41">41</xref>], the high Cadmium concentrations can be attributed to the fact that the Nairobi river passes through several environmental hotspots, like the Dandora dumpsite, Industrial area, Nairobi sewerage treatment plant, and high traffic networks like the busy Nairobi Eastern bypass.</p><p>The distinct variation in the heavy metals results from a combination of different anthropological activities like the application of agricultural inputs, discharge of effluents from Industries and a sewerage treatment plant, leachates, and run-offs from Dandora dumpsite into the river, and mining activities.</p></sec><sec id="s3_2"><title>3.2. Statistical Analysis of Heavy Metal Data</title><p>One of the benefits of RF and other classification and regression tree algorithms is that they do not require the input data to be normalized. Therefore, no box plots and histograms were required for this study.</p><p>The general statistics for (75%) Calibration and (25%) Validation are shown in <xref ref-type="table" rid="table4">Table 4</xref> and <xref ref-type="table" rid="table5">Table 5</xref>, respectively.</p><p><xref ref-type="table" rid="table6">Table 6</xref> displays Pearson’s correlation between the three soil toxic metals. There was no significant correlation between any of the metals, implying that they possibly did not come from the same source [<xref ref-type="bibr" rid="scirp.104280-ref15">15</xref>] [<xref ref-type="bibr" rid="scirp.104280-ref42">42</xref>].</p><p>The validation results of the spatial modeling for soil heavy metals contamination are shown in <xref ref-type="table" rid="table7">Table 7</xref>. Generally, the calibration model performed well with regards to the R<sup>2</sup> and RMSE estimates.</p><p>Our validation results for both Lead and Zinc had a higher correlation coefficient than [<xref ref-type="bibr" rid="scirp.104280-ref15">15</xref>] R<sup>2</sup> (Zn = 0.51) and R<sup>2</sup> (Pb = 0.53). This improvement could be attributed to the use of finer spatial resolution (10 m) for environmental predictors and spectral images in comparison to [<xref ref-type="bibr" rid="scirp.104280-ref15">15</xref>] at 30 m and [<xref ref-type="bibr" rid="scirp.104280-ref16">16</xref>] at 1 km. Additionally, the use of a high number of evenly distributed sample points in a smaller study area (17 km<sup>2</sup>) also meant that the accuracy of prediction in our study was improved. On the other hand, the climatic difference between Kenya, Qatar [<xref ref-type="bibr" rid="scirp.104280-ref15">15</xref>], and Europe [<xref ref-type="bibr" rid="scirp.104280-ref16">16</xref>] could be a contributing factor to the difference in</p><table-wrap id="table4" ><label><xref ref-type="table" rid="table4">Table 4</xref></label><caption><title> Calibration statistics dataset. 75% of the data. (Standard Deviation) SD</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Element (mg/kg)</th><th align="center" valign="middle" >n</th><th align="center" valign="middle" >Mean</th><th align="center" valign="middle" >Median</th><th align="center" valign="middle" >SD</th><th align="center" valign="middle" >Variance</th></tr></thead><tr><td align="center" valign="middle" >Pb</td><td align="center" valign="middle" >45</td><td align="center" valign="middle" >217</td><td align="center" valign="middle" >221</td><td align="center" valign="middle" >95.82</td><td align="center" valign="middle" >9181.7</td></tr><tr><td align="center" valign="middle" >Cd</td><td align="center" valign="middle" >45</td><td align="center" valign="middle" >0.96</td><td align="center" valign="middle" >0.975</td><td align="center" valign="middle" >0.62</td><td align="center" valign="middle" >0.384</td></tr><tr><td align="center" valign="middle" >Zn</td><td align="center" valign="middle" >45</td><td align="center" valign="middle" >221</td><td align="center" valign="middle" >261</td><td align="center" valign="middle" >150</td><td align="center" valign="middle" >22,454.76</td></tr></tbody></table></table-wrap><table-wrap id="table5" ><label><xref ref-type="table" rid="table5">Table 5</xref></label><caption><title> Validation dataset statistics 25% of the data</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Element (mg/kg)</th><th align="center" valign="middle" >n</th><th align="center" valign="middle" >Mean</th><th align="center" valign="middle" >Median</th><th align="center" valign="middle" >SD</th><th align="center" valign="middle" >Variance</th></tr></thead><tr><td align="center" valign="middle" >Pb</td><td align="center" valign="middle" >15</td><td align="center" valign="middle" >229.75</td><td align="center" valign="middle" >213.5</td><td align="center" valign="middle" >64</td><td align="center" valign="middle" >4074</td></tr><tr><td align="center" valign="middle" >Cd</td><td align="center" valign="middle" >15</td><td align="center" valign="middle" >1.2</td><td align="center" valign="middle" >0.82</td><td align="center" valign="middle" >0.654</td><td align="center" valign="middle" >0.427</td></tr><tr><td align="center" valign="middle" >Zn</td><td align="center" valign="middle" >15</td><td align="center" valign="middle" >259.5</td><td align="center" valign="middle" >186</td><td align="center" valign="middle" >141</td><td align="center" valign="middle" >19,905</td></tr></tbody></table></table-wrap><table-wrap id="table6" ><label><xref ref-type="table" rid="table6">Table 6</xref></label><caption><title> Pearson correlation coefficients between Lead, Cadmium and Zinc (n = 60)</title></caption><table><tbody><thead><tr><th align="center" valign="middle" ></th><th align="center" valign="middle" >Pb</th><th align="center" valign="middle" >Zn</th><th align="center" valign="middle" >Cd</th></tr></thead><tr><td align="center" valign="middle" >Pb</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >0.39*</td><td align="center" valign="middle" >−0.15</td></tr><tr><td align="center" valign="middle" >Zn</td><td align="center" valign="middle" ></td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >−0.26</td></tr><tr><td align="center" valign="middle" >Cd</td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" >1</td></tr></tbody></table></table-wrap><p>Levels of significance *p &lt; 0.05, **p &lt; 0.01.</p><table-wrap id="table7" ><label><xref ref-type="table" rid="table7">Table 7</xref></label><caption><title> Validation results for different soil heavy metals concentration</title></caption><table><tbody><thead><tr><th align="center" valign="middle" ></th><th align="center" valign="middle" >R<sup>2</sup></th><th align="center" valign="middle" >RMSE</th><th align="center" valign="middle" >Bias</th></tr></thead><tr><td align="center" valign="middle" >Lead</td><td align="center" valign="middle" >0.8335727</td><td align="center" valign="middle" >0.4382932</td><td align="center" valign="middle" >−1.076752</td></tr><tr><td align="center" valign="middle" >Zinc</td><td align="center" valign="middle" >0.8309954</td><td align="center" valign="middle" >0.5139823</td><td align="center" valign="middle" >−3.516596</td></tr><tr><td align="center" valign="middle" >Cadmium</td><td align="center" valign="middle" >0.7882876</td><td align="center" valign="middle" >0.2719324</td><td align="center" valign="middle" >0.01085672</td></tr></tbody></table></table-wrap><p>results. Nairobi has a warm and temperate climate; Qatar is a desert while Europe is generally temperate. The soil parent rock materials and anthropogenic activities are also different. For these reasons, the choice of variables for modeling was different for the different study areas.</p></sec><sec id="s3_3"><title>3.3. Variable of Importance Usage by Random Forest</title><p>The variable of importance is measured based on the out of bag samples. These are observations not included in the Random Forest model. Also, they are based on a mean square error accuracy measure. The value is averaged over all trees [<xref ref-type="bibr" rid="scirp.104280-ref36">36</xref>].</p><p>From the output, it’s evident that the model utilized all the variables for prediction but gave more emphasis to the most important ones.</p><p>For Lead (<xref ref-type="fig" rid="fig1">Figure 1</xref>1), HMSSI and SAVI were dominant within the top ten important variables. HMSSI was the best performer while the land-use and land cover map also performed considerably well in the prediction.</p><p>For Zinc, 3 WDVI, 3 HMSSI, and 2 NDVI were selected among the top ten important predictors. At the same time, distance to environmental hotspots was in the 7<sup>th</sup> position (<xref ref-type="fig" rid="fig1">Figure 1</xref>2).</p><p>The top ten important variables for Cadmium’s prediction (<xref ref-type="fig" rid="fig1">Figure 1</xref>3) included spectral indices (3 WDVI, 3 HMSSI, and 2 NDVI). The land-use and land-cover map also performed considerably well, occupying the 5<sup>th</sup> position.</p><p>In the prediction, the random forest model included the vegetation spectral indices (NDVI, SAVI, WDVI, and HMSSI) within the top ten important variables for all the heavy metals. This indicates their importance in predicting the distribution of heavy metals, which is in line with previous studies [<xref ref-type="bibr" rid="scirp.104280-ref15">15</xref>] [<xref ref-type="bibr" rid="scirp.104280-ref16">16</xref>].</p><p>The distance to the environmental hotspots variable was high in the ranking of all the metals, implying that human activities highly influence their concentrations.</p><p>The land-use and land-cover map performed reasonably well in the predictions despite being a new additional variable absent in previous research [<xref ref-type="bibr" rid="scirp.104280-ref15">15</xref>] [<xref ref-type="bibr" rid="scirp.104280-ref16">16</xref>].</p></sec><sec id="s3_4"><title>3.4. Vegetation Indices for Toxic Metals Prediction</title><p>In order to improve the predictive capability of heavy metals in soil, spectral indices were calculated for all the Sentinel 2 images. Four spectral indices HMSSI, SAVI, WDVI, and NDVI were derived.</p><p>The four variables were present within the top ten important variables in the prediction of all the heavy metals. In the prediction of Zinc, NDVI was the dominant index, followed by SAVI and HMSSI. For Lead prediction, NDVI was the most dominant index within the top 10 important variables. Of the top 10 important variables for Cadmium prediction, NDVI and HMSSI contributed three indices, each within the top important variables, followed by SAVI and WDVI.</p></sec><sec id="s3_5"><title>3.5. Predicted Maps for Toxic Metals in Soil</title><p>Three predicted maps are shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>4, <xref ref-type="fig" rid="fig1">Figure 1</xref>5 and <xref ref-type="fig" rid="fig1">Figure 1</xref>6. With a 300 m buffer along the rivers’ riparian, we can easily tell how the three different heavy metals are distributed within the peri-urban farms.</p><p>There is a high concentration of Cadmium on the easterly end of the river. This can be linked to the study area’s proximity to the Nairobi water treatment plant at Ruai. Its abundance in the water treatment plant is because, besides other sources of Cadmium, it can also occur as an impurity in detergents [<xref ref-type="bibr" rid="scirp.104280-ref41">41</xref>]. The water treatment plant serves a population of 4,397,073 residents, which dramatically increases the probability of high Cadmium concentrations within the wastewater. There is also a possibility that the treated wastewater being discharged into the river is still toxic.</p><p>Another possible source of Cadmium in the soil is the application of phosphate fertilizers and pesticides on the peri-urban farms. Additionally, the disposal of Industrial waste upstream, as the river passes through an industrial area, also increases the total concentration of Cadmium in soil.</p><p>Some farms have a high concentration of Lead in their soil. However, these soils are safe for agricultural production because they have not exceeded the WHO/FAO/USEPA permissible limits. Additionally, plants do not uptake Lead into their system unless the concentration levels rise above 300 ppm. Further, a study done by [<xref ref-type="bibr" rid="scirp.104280-ref41">41</xref>] indicates that Lead does not readily accumulate in the fruiting parts of a plant.</p><p>Below the 300 mg/kg permissible limit, Lead poisoning can only occur through direct ingestion of contaminated soil particles.</p><p>Lead is a significant component in lead storage batteries, cable coverings, and other electronic equipment. In this regard, the probable source of Lead in the water could be leachates and run-offs from the Dandora dumpsite.</p><p>Some farms had Zinc levels, which were above the WHO/FAO/USEPA recommended limit. Zinc occurs naturally in soils in concentrations between 10 to 100 mg/kg; it’s a highly toxic heavy metal at high concentrations for both plants and animals. Anthropogenic activities such as atmospheric deposition, waste combustion, mining, steel processing, and sewage sludge application continue to enrich the topsoils with Zinc. In this study, therefore, the most likely sources of Zinc are; The Dandora dumpsite where waste combustion takes place, the Nairobi Water and sewerage plant where treated wastewater is discharged into the river, and the Nairobi Industrial area where some industries carry out metal processing.</p></sec></sec><sec id="s4"><title>4. Conclusions</title><p>From the variable rankings, it’s clear that anthropogenic activities played a significant role in the pollution levels. Additionally, the predictive maps indicate that the soils are too polluted to grow food crops, thereby posing a great risk to Nairobi’s residents. Health risks notwithstanding, the Water Resources Management Authority (WARMA) doesn’t license individuals to abstract water from the river because of its high pollution levels.</p><p>Legal enforcement of the existing land, health, and environmental laws should end the anthropogenic activities that pollute the river. However, In the short-term, phytoremediation of the soils can be done to manage soil toxicity.</p><p>The Random Forest model gave satisfactory results in predicting the distribution of heavy metals in soil. However, the model can be improved further if the spatial resolution of the various variables is increased and through the addition of more predictor variables. It would also be interesting to determine how other machine learning algorithms like PCA, cubist, and SVM compare with Random Forest in predicting soil heavy metals. Finally, more research needs to be done along the Nairobi River on the distribution of other potential heavy metals like mercury, arsenic, chromium, and copper.</p></sec><sec id="s5"><title>Acknowledgements</title><p>Foremost, I would like to extend my sincere gratitude to my supervisor Dr. Mark Boitt for his guidance. Secondly, I would also like to extend my appreciation to the GEGIS department for their support and professionalism all through my study period, and to Dr. Mercy Mwaniki for assisting me in brainstorming my problem statement when I was stuck and almost giving up.</p><p>Many thanks to Patrick from the horticulture department for the support he provided during sample collection and analysis. My friend Ian Ariko, for all the reviews he made in my document and his assistance with the statistical analysis of my soil sample results, may God bless him abundantly.</p><p>Finally, I would like to appreciate my father (John Nyagara) and my mother (Rosemary Ngere) for the unwavering support and encouragement I received through my journey.</p></sec><sec id="s6"><title>Conflicts of Interest</title><p>The authors declare no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s7"><title>Cite this paper</title><p>Omondi, E. and Boitt, M. (2020) Modeling the Spatial Distribution of Soil Heavy Metals Using Random Forest Model. Journal of Geographic Information System, 12, 597-619. https://doi.org/10.4236/jgis.2020.126035</p></sec></body><back><ref-list><title>References</title><ref id="scirp.104280-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Omari, J.N., Mutwiwa, U.N. and Mailutha, J.T. (2016) The Current Status and Handling of E-Waste in Nairobi City County of Kenya. Journal of Sustainable Research in Engineering, 3, 22-28.</mixed-citation></ref><ref id="scirp.104280-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">World Bank Group (2018) Municipal Solid Waste.</mixed-citation></ref><ref id="scirp.104280-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Bello, I.A., Norshafiq, M. and Kabbashi, N.A. (2016) Solid Waste Management in Africa: A Review. International Journal of Waste Resources, 6, 4-7.  
https://doi.org/10.4172/2252-5211.1000216</mixed-citation></ref><ref id="scirp.104280-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Takeuchi, N. (2019) Results of the SDG 11.6.1 Data Collection Exercise. Nairobi.</mixed-citation></ref><ref id="scirp.104280-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Adekunle, J., Oyekunle, O., Ogunfowokan, A.O., Olutona, G.O. and Durosinmi, M. (2012) Hydrology for Disaster Management Total and Exchangeable Metals in Groundwater of Ile-Ife, Southwestern Nigeria. Special Publication of the Nigerian Association of Hydrological Sciences, 208-223.</mixed-citation></ref><ref id="scirp.104280-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Lamine, S., Petropoulos, G.P., Brewer, P.A., Bachari, N.E., Srivastava, P.K., Manevski, K., Kalaitzidis, C. and Macklin, M.G. (2019) Heavy Metal Soil Contamination Detection Using Combined Geochemistry and Field Spectroradiometry in the United Kingdom. Sensors, 19, 762. https://doi.org/10.3390/s19040762</mixed-citation></ref><ref id="scirp.104280-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Sridhar, B.B.M., Vincent, R.K., Roberts, S.J. and Czajkowski, K. (2011) Remote Sensing of Soybean Stress as an Indicator of Chemical Concentration of Biosolid Amended Surface Soils. International Journal of Applied Earth Observation and Geoinformation, 13, 676-681. https://doi.org/10.1016/j.jag.2011.04.005</mixed-citation></ref><ref id="scirp.104280-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Ashfaque, F., Sahay, S., Islamia, J.M. and Iqbal, S. (2016) Influence of Heavy Metal Toxicity on Plant Growth, Metabolism and Its Alleviation by Phytoremediation—A Promising Technology. Journal of Agriculture and Ecology Research International, 6, 1-19. https://doi.org/10.9734/JAERI/2016/23543</mixed-citation></ref><ref id="scirp.104280-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Verrelst, J., et al. (2011) Evaluation of Sentinel-2 Red-Edge Bands for Empirical Estimation of Green LAI and Chlorophyll Content. Sensors, 11, 7063-7081.  
https://doi.org/10.3390/s110707063</mixed-citation></ref><ref id="scirp.104280-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Sampson, P.H., Zarcotejada, P.J., Mohammed, G.H., Miller, J.R. and Noland, T.L. (2002) Hyperspectral Remote Sensing of Forest Condition: Estimating Chlorophyll Content in Tolerant Hardwoods. Forest Science, 49, 381-391.</mixed-citation></ref><ref id="scirp.104280-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Liu, M., Liu, X., Zhang, B. and Ding, C. (2016) Regional Heavy Metal Pollution in Crops by Integrating Physiological Function Variability with Spatio-Temporal Stability Using Multi-Temporal Thermal Remote Sensing. International Journal of Applied Earth Observation and Geoinformation, 51, 91-102.  
https://doi.org/10.1016/j.jag.2016.05.003</mixed-citation></ref><ref id="scirp.104280-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Del, I., Sanches, A., Roberto, C., Filho, S. and Floyd, R. (2014) Spectroscopic Remote Sensing of Plant Stress at Leaf and Canopy Levels Using the Chlorophyll 680 nm Absorption Feature with Continuum Removal. ISPRS Journal of Photogrammetry and Remote Sensing, 97, 111-122.  
https://doi.org/10.1016/j.isprsjprs.2014.08.015</mixed-citation></ref><ref id="scirp.104280-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Dockray, D.N.H.H.M., Barringerj, A.R. and Barber, J. (1983) Red Edge Measurements for Remotely Sensing Plant Chlorophyll Content of Educational. Advances in Space Research, 3, 273-277. https://doi.org/10.1016/0273-1177(83)90130-8</mixed-citation></ref><ref id="scirp.104280-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Horler, D.N.H., Barber, J., Darch, J.P., Ferns, D.C. and Barringer, A.R. (1983) Approaches to Detection of Geochemical Stress in Vegetation. Advances in Space Research, 3, 175-179. https://doi.org/10.1016/0273-1177(83)90118-7</mixed-citation></ref><ref id="scirp.104280-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">Peng, Y., Kheir, R.B., Adhikari, K., Malinowski, R. and Greve, M.B. (2016) Digital Mapping of Toxic Metals in Qatari Soils Using Remote Sensing and Ancillary Data. Remote Sensing, 8, 1-19. https://doi.org/10.3390/rs8121003</mixed-citation></ref><ref id="scirp.104280-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">Luis Rodriguez Lado, H.I.R. and Hengl, T. (2008) Heavy Metals in European Soils: A Geostatistical Analysis of the FOREGS Geochemical Database. Geoderma, 148, 189-199. https://doi.org/10.1016/j.geoderma.2008.09.020</mixed-citation></ref><ref id="scirp.104280-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">Lv, J. and Yan, Z. (2014) Estimation of Pb Concentration in the Mining Tailing Areas Base on Field Spectrometry and Support Vector Machine. The Third International Conference on Agro-Geoinformatics, Beijing, 11-14 August 2014, 1-5.  
https://doi.org/10.1109/Agro-Geoinformatics.2014.6910568</mixed-citation></ref><ref id="scirp.104280-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">Grunwald, S., Vasques, G.M. and Rivero, R.G. (2014) Fusion of Soil and Remote Sensing Data to Model Soil Properties. Advances in Agronomy, 131, 1-109.  
https://doi.org/10.1016/bs.agron.2014.12.004</mixed-citation></ref><ref id="scirp.104280-ref19"><label>19</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Breiman</surname><given-names> L. </given-names></name>,<etal>et al</etal>. (<year>2001</year>)<article-title>Random Forests</article-title><source> Machine Learning</source><volume> 45</volume>,<fpage> 5</fpage>-<lpage>32</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.104280-ref20"><label>20</label><mixed-citation publication-type="other" xlink:type="simple">Pal, M. (2005) Random Forest Classifier for Remote Sensing Classification. International Journal of Remote Sensing, 26, 37-41.  
https://doi.org/10.1080/01431160412331269698</mixed-citation></ref><ref id="scirp.104280-ref21"><label>21</label><mixed-citation publication-type="other" xlink:type="simple">Xu, B. and Ye, Y. (2012) An Improved Random Forest Classifier for Image Classification. 2012 International Conference on Information and Automation, Shenyang, 6-8 June 2012, 795-800. https://doi.org/10.1109/ICInfA.2012.6246927</mixed-citation></ref><ref id="scirp.104280-ref22"><label>22</label><mixed-citation publication-type="other" xlink:type="simple">Millard, K. and Richardson, M. (2015) On the Importance of Training Data Sample Selection in Random Forest Image Classification: A Case Study in Peatland Ecosystem Mapping. Remote Sensing, 7, 8489-8515. https://doi.org/10.3390/rs70708489</mixed-citation></ref><ref id="scirp.104280-ref23"><label>23</label><mixed-citation publication-type="other" xlink:type="simple">Nguyen, U., Glenn, E.P., Duc, T. and Pham, L.T.H. (2019) Mapping Vegetation Types in Semi-Arid Riparian Regions Using Random Forest and Object-Based Image Approach: A Case Study of the Colorado River Ecosystem, Grand Canyon, Arizona. Ecological Informatics, 50, 43-50. https://doi.org/10.1016/j.ecoinf.2018.12.006</mixed-citation></ref><ref id="scirp.104280-ref24"><label>24</label><mixed-citation publication-type="other" xlink:type="simple">Bailey, B.N. (2019) Mapping Aboveground Biomass of Four Typical Vegetation Types in the Poyang Lake Wetlands Based on Random Forest Modelling and Landsat Images. Frontiers in Plant Science, 10, 1281.  
https://doi.org/10.3389/fpls.2019.01281</mixed-citation></ref><ref id="scirp.104280-ref25"><label>25</label><mixed-citation publication-type="other" xlink:type="simple">Du Kun Tan, Q., Ma, W.B. and Wu, F.Y. (2019) Random Forest—Based Estimation of Heavy Metal Concentration in Agricultural Soils with Hyperspectral Sensor Data. Environmental Monitoring and Assessment, 191, Article No. 446.</mixed-citation></ref><ref id="scirp.104280-ref26"><label>26</label><mixed-citation publication-type="other" xlink:type="simple">Mariana Belgiu, L.D. (2016) Random Forest in Remote Sensing: A Review of Applications and Future Directions. ISPRS Journal of Photogrammetry and Remote Sensing, 114, 24-31. https://doi.org/10.1016/j.isprsjprs.2016.01.011</mixed-citation></ref><ref id="scirp.104280-ref27"><label>27</label><mixed-citation publication-type="other" xlink:type="simple">Pouladi, N., Bjorn, A., Tabatabai, S. and Greve, M.H. (2019) Mapping Soil Organic Matter Contents at Field Level with Cubist, Random Forest and Kriging. Geoderma, 342, 85-92. https://doi.org/10.1016/j.geoderma.2019.02.019</mixed-citation></ref><ref id="scirp.104280-ref28"><label>28</label><mixed-citation publication-type="other" xlink:type="simple">Wang, H., Yilihamu, Q., Yuan, M., Bai, H., Xu, H. and Wu, J. (2020) Prediction Models of Soil Heavy Metal(loid)s Concentration for Agricultural Land in Dongli: A Comparison of Regression and Random Forest. Ecological Indicators, 119, Article ID: 106801. https://doi.org/10.1016/j.ecolind.2020.106801</mixed-citation></ref><ref id="scirp.104280-ref29"><label>29</label><mixed-citation publication-type="other" xlink:type="simple">Kibet, J. (2017) The State of Water Quality in Nairobi River, Kenya.</mixed-citation></ref><ref id="scirp.104280-ref30"><label>30</label><mixed-citation publication-type="other" xlink:type="simple">Kenya National Bureau of Statistics (2019) Kenya Population and Housing Census Volume I: Population by County and Sub-County, I.</mixed-citation></ref><ref id="scirp.104280-ref31"><label>31</label><mixed-citation publication-type="other" xlink:type="simple">Theocharopoulos, S.P., Wagner, G., Sprengart, J. and Mohr, M. (2001) European Soil Sampling Guidelines for Soil Pollution Studies. Science of the Total Environment, 264, 51-62. https://doi.org/10.1016/S0048-9697(00)00611-2</mixed-citation></ref><ref id="scirp.104280-ref32"><label>32</label><mixed-citation publication-type="other" xlink:type="simple">Amini, H., Schindler, C., Hosseini, V. and Yunesian, M. (2017) Land Use Regression Models for Alkylbenzenes in a Middle Eastern Megacity: Tehran Study of Exposure Prediction for Environmental Health Research (Tehran SEPEHR).  
https://doi.org/10.1289/isee.2017.2017-936</mixed-citation></ref><ref id="scirp.104280-ref33"><label>33</label><mixed-citation publication-type="other" xlink:type="simple">Peng, Y., Xiong, X., Adhikari, K., Knadel, M. and Grunwald, S. (2015) Modeling Soil Organic Carbon at Regional Scale by Combining Multi-Spectral Images with Laboratory Spectra. PLoS ONE, 10, e0142295.  
https://doi.org/10.1371/journal.pone.0142295</mixed-citation></ref><ref id="scirp.104280-ref34"><label>34</label><mixed-citation publication-type="other" xlink:type="simple">Clevers, J.G.P.W. (1991) Application of the WDVI in Estimating LAI at the Generative Stage of Barley. ISPRS Journal of Photogrammetry and Remote Sensing, 46, 37-47. https://doi.org/10.1016/0924-2716(91)90005-G</mixed-citation></ref><ref id="scirp.104280-ref35"><label>35</label><mixed-citation publication-type="other" xlink:type="simple">Zhang, Z., Liu, M., Liu, X. and Zhou, G. (2018) A New Vegetation Index Based on Multitemporal Sentinel-2 Images for Discriminating Heavy Metal Stress Levels in Rice. Sensors, 18, 2172. https://doi.org/10.3390/s18072172</mixed-citation></ref><ref id="scirp.104280-ref36"><label>36</label><mixed-citation publication-type="other" xlink:type="simple">Malone, B.P., Minasny, B. and McBratney, A.B. (2017) Using R for Digital Soil Mapping. Springer International Publishing, Sydney.  
https://doi.org/10.1007/978-3-319-44327-0</mixed-citation></ref><ref id="scirp.104280-ref37"><label>37</label><mixed-citation publication-type="other" xlink:type="simple">Brokamp, C., Jandarov, R., Rao, M.B., Lemasters, G. and Ryan, P. (2017) Exposure Assessment Models for Elemental Components of Particulate Matter in an Urban Environment: A Comparison of Regression and Random Forest Approaches. Atmospheric Environment, 151, 1-11. https://doi.org/10.1016/j.atmosenv.2016.11.066</mixed-citation></ref><ref id="scirp.104280-ref38"><label>38</label><mixed-citation publication-type="other" xlink:type="simple">Liaw, A. and Wiener, M. (2002) Classification and Regression by Random Forest.</mixed-citation></ref><ref id="scirp.104280-ref39"><label>39</label><mixed-citation publication-type="other" xlink:type="simple">FAO and WHO (2019) Discussion Paper on the Development of a Code of Practice for the Prevention and Reduction of Cadmium Contamination in Cocoa. Joint FAO/WHO Food Standards Programme Codex Committee on Contaminants in Foods 13th Session, No. Appendix I.</mixed-citation></ref><ref id="scirp.104280-ref40"><label>40</label><mixed-citation publication-type="other" xlink:type="simple">United States Environmental Protection Agency (2007) Framework for Metals Risk Assessment Framework for Metals Risk Assessment.</mixed-citation></ref><ref id="scirp.104280-ref41"><label>41</label><mixed-citation publication-type="other" xlink:type="simple">Wuana, R.A. and Okieimen, F.E. (2011) Heavy Metals in Contaminated Soils: A Review of Sources, Chemistry, Risks and Best Available Strategies for Remediation. International Scholarly Research Notices, 2011, Article ID: 402647.  
https://doi.org/10.5402/2011/402647</mixed-citation></ref><ref id="scirp.104280-ref42"><label>42</label><mixed-citation publication-type="other" xlink:type="simple">Xu, X., Zhao, Y., Zhao, X., Wang, Y. and Deng, W. (2014) Sources of Heavy Metal Pollution in Agricultural Soils of a Rapidly Industrializing Area in the Yangtze Delta of China. Ecotoxicology and Environmental Safety, 108, 161-167.  
https://doi.org/10.1016/j.ecoenv.2014.07.001</mixed-citation></ref></ref-list></back></article>