Canadian Wetland Inventory using Google Earth Engine : The First Map and Preliminary Results

Although wetlands provide valuable services to humans and the environment and cover a large portion of Canada, there is currently no Canada-wide wetland inventory based on the specifications defined by the Canadian Wetland Classification System (CWCS). The most practical approach for creating the Canadian Wetland Inventory (CWI) is to develop a remote sensing method feasible for large areas with the potential to be updated within certain time intervals to monitor dynamic wetland landscapes. Thus, this study aimed to create the first Canada-wide wetland inventory using Landsat-8 imagery and innovative image processing techniques available within Google Earth Engine (GEE). For this purpose, a large amount of field samples and approximately 30,000 Landsat-8 surface reflectance images were initially processed using several advanced algorithms within GEE. Then, the random forest (RF) algorithm was applied to classify the entire country. The final step was an original CWI map considering the five wetland classes defined by the CWCS (i.e., bog, fen, marsh, swamp, and shallow water) and providing updated and comprehensive information regarding the location and spatial extent of wetlands in Canada. The map had reasonable accuracy in terms of both visual and statistical analyses considering the large area of country that was classified (9.985 million km2). The overall classification accuracy and the average producer and user accuracies for wetland classes exclusively were 71%, 66%, and 63%, respectively. Additionally, based on the final classification map, it was estimated that 36% of Canada is covered by wetlands.


Introduction
Wetlands provide many ecosystem services to the environment, including water purification, protection from natural hazards, soil and water conservation, and shoreline protection [1].These benefits result from the natural hydrological and biogeochemical processes that occur within wetlands [2].Hydraulically, wetlands are capable of significant water storage [3] and can serve as a form of natural flood control [1].Biogeochemically, wetlands can transform and retain several environmental toxins.For example, reactive nitrogen, which has adverse impacts on climate, water ecosystems, and human health, can be managed by wetlands through the transformation of nitrogen via microbial denitrification [4,5].Wetlands also support levels of biodiversity at rates disproportionate to their area by providing a habitat for numerous species of plants and animals [6].In recent years, these valuable natural resources have been rapidly degraded by human activities worldwide, such as urbanization and increased agricultural production [7].Additionally, wetlands are currently being negatively influenced by climate change [1].Thus, it is important to protect these valuable resources using realistically implemented managerial plans and the establishment of well-defined policies and laws.
The desire to alleviate wetland losses has manifested in an international treaty (Reference [8]), various governmental policies, and inventory initiatives around the globe [1,9,10].To do this, remote sensing methods are necessary because field-based techniques are both too expensive and too labor intensive.Remote sensing satellites that acquire medium to high spatial resolution and multi-channel imagery over a large area can be effectively applied to classify wetlands.Moreover, multi-temporal satellite images are helpful for improving the classification accuracy of these dynamic landscapes and monitoring their changes over time [11][12][13][14].Satellite data have been applied to create wetland inventory systems in different countries.As an example, Fournier et al. [15] suggested that the Canadian Wetland Inventory (CWI) should be completed using satellite imagery, specifically RADARSAT and Landsat.Since the CWI was proposed, most provinces have contributed at least partial wetland inventories to the effort, following the guidance of the Canadian Wetland Classification System (CWCS, Reference [16]).The CWCS categorizes Canadian wetlands into five classes, bog, fen, marsh, swamp, and shallow water.The functions and ecological characteristics of wetlands (e.g., soil, water source, water table, vegetation, pH, and nutrition conditions) were considered in these classifications.Based on the CWI regulations, all wetland classification activities should be based on the specifications defined in the CWCS.These studies were mostly conducted using different types of satellite data over relatively small areas [7,11,[17][18][19][20].
Processing big data is the biggest challenge when implementing a wetland inventory system at provincial or national scales, especially when it is the wetlands of the second largest country in the world requiring classification.To this end, numerous satellite images should be processed and classified over a large area, which is not efficient via common image classification software packages.To tackle this issue, Google has developed a cloud-based platform, Google Earth Engine (GEE).One of its key advantages is the ability to process large geospatial datasets and classify land covers over large areas [21].Users can access free satellite datasets, such as those acquired by Landsat-8, Sentinel-1 and -2, and MODIS.There is no need to download these terabyte-scale, large size datasets to local computers since they can be directly and efficiently processed within GEE.Many products have also been preprocessed and can be easily inserted into user-defined algorithms.In addition, many algorithms, such as image classifiers and cloud masking methods, have been previously implemented and can be imported and modified by users [21,22].To date, researchers from different countries have utilized GEE for a variety of large-scale applications.For instance, Dong et al. [23] applied multi-temporal Landsat-8 data to map paddy rice in northeastern Asia annually and analyzed the changes within GEE.They reported that GEE along with their proposed phenology-and pixel-based paddy rice mapping (PPPM) method had a high potential to map paddy rice over large areas with the user and producer accuracies of 92% and 73%, respectively.Moreover, Chen et al. [24] mapped mangrove forests all over China using GEE and a combination of Landsat-7 and -8, and Sentinel-1 images.Their results showed that the normalized difference vegetation index (NDVI), modified normalized difference water index (MNDWI), and Vertical transmit and Horizontal receive (VH) polarization had the highest potential for identifying mangrove forests.Finally, Xiong et al. [25] integrated pixel-and object-based methods in GEE to classify crops over the African continent using a combination of Landsat-8 and Sentinel-2 images acquired between 2015 and 2016.They obtained an overall accuracy of 94% and reported that the total net cropland area over Africa was 313 Mha in 2015.
It is estimated that Canada contains circa 25% of global wetlands and that circa 13% of Canada's terrestrial area (1.3 million km 2 ) is covered by wetlands [16,26].Thus, it is pivotal to identify the location and extent of wetlands throughout Canada and to monitor their changes, including gains and losses over time.The first study addressing large-scale wetland mapping in Canada was reported by Wulder et al. [10].These authors mapped non-treed and treed wetlands (two wetland classes) plus several non-wetland classes over Canada's forested ecosystems (>6.5 million km 2 : 65% of Canada's total area) using 33 years of Landsat data and several preprocessing and classification algorithms.More recently, Amani [27] used Landsat-8 imagery to classify wetlands in one of the Canadian provinces (Newfoundland and Labrador).All the classification steps were processed within GEE and they proposed that their method could be efficiently used to produce wetland inventory systems for other Canadian provinces and for all of Canada.
As discussed above, most of the previous studies about wetland classification in Canada have been conducted over relatively small areas and many of them are also not based on the CWCS specifications.Therefore, in this study, we addressed the limitations of previous studies and extended the work conducted by Amani [27] by proposing a more efficient approach to produce the first Canada-wide wetland map.The structure of the manuscript can be summarized by the following: (1) All of Canada is classified; (2) the classification is based on the guidelines provided by the CWCS (five classes) to create the CWI; (3) the major non-wetland classes found in Canada are considered in the final map to obtain more reliable information about the location and extent of wetlands throughout the country; (4) a composite of Landsat-8 imagery collected from 2016 to 2018 is used to generate classifier inputs, thus, enabling the production of a Canada-wide wetland map every three years, and the ability to monitor changes; (5) using GEE, the most time-and cost-efficient approach for creating a CWI is proposed.

Study Area
The study area was all of Canada, with an area of 9.985 million km 2 (Figure 1) extending from the Pacific Ocean in the west to the Atlantic Ocean in the east.Canada has different climate types (e.g., tundra, subarctic, and humid continental) due to its size.Most areas of the Canadian territories (i.e., the Northwest Territories, Nunavut, and Yukon) are covered by rock, ice, and permafrost, as well as wetlands.However, the Canadian provinces (i.e., Newfoundland and Labrador, Prince Edward Island, Nova Scotia, New Brunswick, Quebec, Ontario, Manitoba, Saskatchewan, Alberta, and British Columbia) are mostly dominated by forests, croplands, and wetlands.Although the number and type of wetlands varies within the different provinces and territories of Canada most of the wetland classes specified by CWCS can be found in all Canadian provinces [10,16,28].

Field Data
Field data were collected and provided by different organizations from the provinces of Newfoundland and Labrador, Quebec, Ontario, Manitoba, and Alberta.As is shown in Figure 1, most of the field samples, especially those of wetlands, were collected from the temperate continental climate region.Additionally, there were several samples collected from the cool continental climate region.The field data were not in a consistent format, and some of the field work was not conducted in accordance with the CWCS guidelines.Therefore, all the field data (polygons) were initially preprocessed to ensure consistency.Several of the datasets were also point-based and, thus, were converted to polygons by visual analyses of high spatial resolution imagery available in ArcGIS TM and Google Earth TM .Table 1 describes all wetland and non-wetland classes considered in this study and Table 2 demonstrates the number and area of field samples (polygons) for each of these classes.Field data from five non-wetland classes were also used in this study along with the five wetland categories.This was important for reducing the misclassification of non-wetland categories as wetland classes and for obtaining a more accurate and reliable wetland map.As demonstrated in Table 1, most of the wetland field samples were from Manitoba, Quebec, and Newfoundland and Labrador, respectively.The total area of all wetland and non-wetland field samples, including the samples created for the barren class from other regions (see the notes in Table 2) were approximately 52,691 km 2 , covering about 0.0053% of the entire area of Canada.

Field Data
Field data were collected and provided by different organizations from the provinces of Newfoundland and Labrador, Quebec, Ontario, Manitoba, and Alberta.As is shown in Figure 1, most of the field samples, especially those of wetlands, were collected from the temperate continental climate region.Additionally, there were several samples collected from the cool continental climate region.The field data were not in a consistent format, and some of the field work was not conducted in accordance with the CWCS guidelines.Therefore, all the field data (polygons) were initially pre-processed to ensure consistency.Several of the datasets were also point-based and, thus, were converted to polygons by visual analyses of high spatial resolution imagery available in ArcGIS TM and Google Earth TM .Table 1 describes all wetland and non-wetland classes considered in this study and Table 2 demonstrates the number and area of field samples (polygons) for each of these classes.Field data from five non-wetland classes were also used in this study along with the five wetland categories.This was important for reducing the misclassification of non-wetland categories as wetland classes and for obtaining a more accurate and reliable wetland map.As demonstrated in Table 1, most of the wetland field samples were from Manitoba, Quebec, and Newfoundland and Labrador, respectively.The total area of all wetland and non-wetland field samples, including the samples created for the barren class from other regions (see the notes in Table 2) were approximately 52,691 km 2 , covering about 0.0053% of the entire area of Canada.NL-Newfoundland and Labrador; QC-Quebec; ON-Ontario; MB-Manitoba; AB-Alberta.* Five polygons of the barren class with a total area of 42.81 km 2 were also created from the Northwest Territories.By doing this, the total number and area of field samples for the barren class was 322 and 96.57km 2 , respectively.

Satellite Data
Multi-temporal Landsat-8 data collected between 1 May and 30 November in 2016, 2017, and 2018 were used in this study.Since wetlands are dynamic, multi-temporal images improve classification accuracy.In fact, using multi-date optical data, it is possible to find imagery by which various wetland types are distinguishable.For instance, there is no vegetation within the shallow water areas in early spring (e.g.April).Hence, this class could most likely be confused with the deep water class in terms of the spectral response at that time of year.However, in late summer (e.g.August), when the vegetation in shallow water areas reaches peak biomass, its spectral characteristics differ from those of deep water.In this study, the visible, near infrared (NIR), and shortwave infrared (SWIR) bands of Landsat-8 (six bands in total) with a spatial resolution of 30 meters were employed as inputs to the classifier.A total of 29,456 Landsat-8 images were preprocessed and classified simultaneously in the classification procedure.

Methodology
All the steps for producing the CWI map, including preprocessing, classification, and accuracy assessment were performed within the GEE platform.Preprocessing included cloud/snow masking and median imagery generation, classification was based on the random forest (RF) algorithm, and accuracy assessment was performed both visually and statistically.
Studies related to satellite image classification have often used the data representing digital number (DN) values without applying any atmospheric correction, which is only suitable for small areas over which the weather is consistent.It is essential to employ surface reflectance values to achieve accurate and reliable classification results for large-scale applications over which the weather conditions can change significantly.This is especially relevant when considering the entire country of Canada, for which climate conditions vary significantly through space and time.Thus, the atmospherically corrected surface reflectance products of Landsat-8 (Tier 1 level, ee.ImageCollection ("LANDSAT/LC08/C01/T1_SR")), prepared by the United States Geological Survey (USGS) and available in GEE, were used in this study.Moreover, cloud and snow masking from optical satellite data are relatively important in areas such as Canada due to the predominantly unfavorable weather conditions.Cloud cover is frequent over Canada and efficiently removing all clouds from Landsat-8 images is challenging.Additionally, a large portion of Canada, especially in the north, is covered by snow most of the year.Both cloud and snow are considered serious challenges in various applications, including the use of optical satellite data over Canada.However, since multi-temporal optical satellite data were adopted in this study, cloud and snow were efficiently masked in GEE.To this end, a GEE JavaScript code using a median ee.Reducer function was applied to all optical imagery to downscale each tile to a single image representing the median of the pixel values with no/least possible cloud and snow covers.A threshold of <20% was considered for excluding the images to produce the cloud-and snow-free composite.This approach also removed dark pixels from shadow and very bright pixels from factors such as haze.
The six spectral bands of Landsat-8 (i.e., visible, NIR, and SWIR) were inserted into an RF algorithm to classify wetlands in Canada.RF was employed in this study due to its high potential for mapping land covers such as wetlands [7,11].RF is a non-parametric machine learning classifier that contains an ensemble of decision trees, each of which possess several nodes that divide the input pixels into mutually exclusive groups.The division continues until each node is representative of one of the final classes [31].RF contains several tuning parameters that should be carefully selected based on several factors, such as the number of training samples, to obtain a high classification accuracy.In this study, the optimum values for these parameters were selected by trial and error and by considering the computational efficiency of the method (see Table 3).It is also worth noting that 50% of the field samples were randomly used for training the RF algorithm and the other 50% were retained for accuracy assessment.Two types of accuracy assessments were conducted for the final Canada-wide wetland map.First, the map was analyzed and interpreted visually using the World Imagery Basemap available in ArcMap, multi-temporal imagery provided in Google Earth, previous wetland classification maps from different provinces, as well as Canada-wide land cover maps and statistics [10,32] to see if the classes visually corresponded to real-world objects.Second, statistical accuracy assessments were performed using the test data (i.e., 50% of the ground truth data) to obtain indicators of classifier performance via confusion matrices, including independent overall accuracy, kappa coefficient, and producer and user accuracies.

Results
Figure 2 illustrates the classified wetland map of Canada with a spatial resolution of 30 m, obtained using multi-temporal Landsat-8 data within the GEE platform.The provincial wetland inventory maps for all provinces can also be extracted based on these results.For instance, Figure 3a,b illustrates the full Newfoundland and Labrador and Ontario wetland maps, respectively.Two zoomed areas of these maps along with the corresponding high-resolution images are also provided in Figure 3 for visual comparison.Visually, most of the classified areas appear to be realistic representations and are supported by the known physical geography of Canada.For instance, by visual comparison of the produced map with Figure 1 and the high-resolution World Imagery Basemap available in ArcMap, it was observed that the water bodies were mapped with reasonable accuracy.In this regard, small water bodies and the regions surrounding large water reservoirs, which are expected to have a shallow depth, were generally correctly classified as shallow water (e.g., compare Figure 3e,f).In the current classifications, the barren class includes rock, sand, gravel, and built-up areas (see Table 1).The territories in Northern Canada are mostly covered with rocks that were correctly classified as barren in Figure 2.There were also other correctly classified barren regions in Figure 2 demonstrating urban areas in the south of the BC, AB, SK, MB provinces, which are among the most populated areas in Canada according to existing statistics [33].For example, the urban areas in Ottawa (Figure 3d) and St. John's (Figure 3f) were correctly classified as Barren (Figure 3c,e, respectively).The croplands, which can be identified by their regular shape in aerial imagery, are also mostly found in the south of BC, AB, SK, MB, ON, and QC in the produced Canada-wide wetland map and correspond to statistics of Canadian maps of agricultural operations [34].For instance, the agricultural areas in the south of Ottawa were mostly identified correctly in the produced wetland map for Ontario (see Figure 3).Furthermore, based on Natural Resources Canada [35], which demonstrates the approximate location of different forests in Canada, forests mostly exist all over NB, the southern part of QC and ON, sparsely in MB, SK, and AB, and most parts of BC.The same forest pattern was also observed in the produced Canada-wide wetland map (Figure 2).Table 4 demonstrates the area of Canada occupied by different wetland and non-wetland classes.It was estimated in this study that 36% and 64% of the total area of Canada (3,650,798 km 2 and 6,459,990 km 2 , respectively) are covered by wetlands and non-wetlands, respectively.The most dominant wetland classes were marsh and swamp covering approximately 12% and 8% of Canada, respectively.Peatlands (i.e., bog and fen), which are important for carbon storage, also cover a large It was challenging to visually assess the accuracy of wetland identification in the produced CWI map because a comprehensive wetland inventory map for the entire country is not currently available.However, the produced Canada-wide wetland map corresponds well to several older studies (e.g., The Royal Canadian Geographical Society [36] and Environment and Climate Change Canada [26], which were first conducted in 1987 and 2000, respectively) and a recent study [10], which identified Remote Sens. 2019, 11, 842 9 of 20 the location of treed and non-treed wetlands in most parts of Canada.For instance, based on these previous studies, Northern ON is covered by wetlands, which was also reported in this study (see Figure 3b).This portion of ON was classified as marsh in the produced map and corresponds well with Reference [10], which identified this area as mostly non-treed wetlands.It was also estimated that many wetlands are located in Northern AB and Central NT, which is consistent with previous studies [10,28,36].
Table 4 demonstrates the area of Canada occupied by different wetland and non-wetland classes.It was estimated in this study that 36% and 64% of the total area of Canada (3,650,798 km 2 and 6,459,990 km 2 , respectively) are covered by wetlands and non-wetlands, respectively.The most dominant wetland classes were marsh and swamp covering approximately 12% and 8% of Canada, respectively.Peatlands (i.e., bog and fen), which are important for carbon storage, also cover a large portion of Canada (about 10%).Regarding non-wetland classes, barren (22%), forest (15%), and grassland (11%) cover most parts of Canada.Figure 4 illustrates the percentage of wetlands versus non-wetlands in all Canadian provinces and territories.A large portion of each province is covered by wetlands.For example, it was estimated in this study that more than half of NL, NS, ON, and MB are covered by wetlands.In terms of percentage, NU, BC, and SK had the smallest wetland areas, respectively.This illustrates the importance of wetland conservation in Canadian provinces via practical polices.
Table 5 demonstrates the accuracy of wetland classification in the Canada-wide map (Figure 2).The overall accuracy and kappa coefficient for this classification were 71% and 0.67, respectively.Moreover, the average producer and user accuracies for wetland classes exclusively were 66% and 63%, respectively.This level of accuracy is reasonable considering the immense area classified in this study, the low cost of the study, and the computational efficiency of the proposed method.As is clear, the accuracies for the non-wetland classes were generally higher than those of wetland classes, with average producer and user accuracies of 78% and 81%, respectively.This was because non-wetland classes are more spectrally distinguishable than wetland classes.In this regard, the classification of deep water and barren had the highest accuracies.
Figure 4 illustrates the percentage of wetlands versus non-wetlands in all Canadian provinces and territories.A large portion of each province is covered by wetlands.For example, it was estimated in this study that more than half of NL, NS, ON, and MB are covered by wetlands.In terms of percentage, NU, BC, and SK had the smallest wetland areas, respectively.This illustrates the importance of wetland conservation in Canadian provinces via practical polices.Table 5.The producer and user accuracies of wetland and non-wetland classes obtained from the Canada-wide wetland map.The overall accuracy and kappa coefficient for this classification were 70.6% and 0.67, respectively.The classification accuracy is based on the pixels in the classified map, indicating that 70.6% of all ground truth pixels were correctly identified in the final CWI map.

Discussion
There are several factors affecting the accuracy of the produced CWI map; they are discussed in the following section.

Wetland Complexity
Wetlands are inherently complex environments that hinder the achievement of higher classification accuracies using satellite imagery compared to other land covers regardless of the data used.The main complexities of wetland environments are discussed below.
First, wetland plant species have several spectral similarities due to their biophysical and biochemical characteristics [30,37,38].Therefore, when analyzing the values of field samples for different wetland classes, similar trends are observed.For example, Figure 5 illustrates the distribution of the values of field samples for five wetland classes obtained from the NIR band of Landsat-8 using violin plots.Clearly, wetlands have similar values especially for vegetated wetland classes.As another example, the Bog and Fen classes share several ecological similarities (see Table 1).They have similar vegetation and soil types, but they are slightly different in terms of saturation and hydrological characteristics.These two types of wetlands are often visually similar, making it difficult to distinguish them in the field (Figure 6a) and, in turn, to use remote sensing analysis (Figure 6b).Consequently, they have sometimes been classified as one wetland class (i.e.peatlands) in previous studies.Based on the information provided in Table 1, these two wetland species contain similar spectral characteristics.Second, even a single wetland class can be classified into several subclasses [16].For instance, the Enhanced Wetland Classification System (EWCS) [37] divides the five main wetland classes  Second, even a single wetland class can be classified into several subclasses [16].For instance, the Enhanced Wetland Classification System (EWCS) [37] divides the five main wetland classes specified by the CWCS, into 19 subclasses.Thus, when analyzing the spectral signature of a particular Second, even a single wetland class can be classified into several subclasses [16].For instance, the Enhanced Wetland Classification System (EWCS) [37] divides the five main wetland classes specified by the CWCS, into 19 subclasses.Thus, when analyzing the spectral signature of a particular wetland class, the spectral information of different field samples from that wetland class can vary considerably and sometimes follow a multimodal shape [30].For example, the marsh class is divided into two subclasses in the EWCS (Figure 7a): (1) meadow marsh, which is mostly out of water and dominated by sedges and grasses, and (2) emergent marsh, which is mostly inundated and dominated by flood tolerant hydrophytic vegetation such as cattail and rushes.Consequently, a bimodal signature was observed when analyzing the spectral characteristics of the field samples of the marsh class (Figure 7b).Therefore, an important step prior to performing separability analyses and wetland classification is to analyze the variation of field samples within each wetland class.When the variance of field samples obtained for a class in a spectral band decreases, the wetland classification is more reliable [30].Third, because of the dynamic nature of wetlands, they can change significantly over time [39].Therefore, their spectral characteristics differ as their vegetation cycles.For instance, a wetland in August (a dryer month) appears different from a that in June (a wetter month) in both field and satellite imagery, particularly in the case of highly saturated wetlands, such as marsh or shallow water.For example, marsh is brown in spring, while it is green and elevated in summer (Figure 8).

Field Data
Although the optimum number of field samples for training machine learning algorithms and accuracy assessment is dependent on several factors, including the number and distribution of classes [40], more field samples result in higher and more reliable classifications [12].In the present study, Third, because of the dynamic nature of wetlands, they can change significantly over time [39].Therefore, their spectral characteristics differ as their vegetation cycles.For instance, a wetland in August (a dryer month) appears different from a that in June (a wetter month) in both field and satellite imagery, particularly in the case of highly saturated wetlands, such as marsh or shallow water.For example, marsh is brown in spring, while it is green and elevated in summer (Figure 8).Third, because of the dynamic nature of wetlands, they can change significantly over time [39].Therefore, their spectral characteristics differ as their vegetation cycles.For instance, a wetland in August (a dryer month) appears different from a that in June (a wetter month) in both field and satellite imagery, particularly in the case of highly saturated wetlands, such as marsh or shallow water.For example, marsh is brown in spring, while it is green and elevated in summer (Figure 8).

Field Data
Although the optimum number of field samples for training machine learning algorithms and accuracy assessment is dependent on several factors, including the number and distribution of classes [40], more field samples result in higher and more reliable classifications [12].In the present study, the number of field data were considerably low compared to the total area of Canada (i.e., 0.0053%

Field Data
Although the optimum number of field samples for training machine learning algorithms and accuracy assessment is dependent on several factors, including the number and distribution of classes [40], more field samples result in higher and more reliable classifications [12].In the present study, the number of field data were considerably low compared to the total area of Canada (i.e., 0.0053% of the entire area of Canada, see Table 1).To obtain a higher classification accuracy, more wetland field data are required.In addition, more field samples of non-wetland classes are required to obtain a more reliable map of wetlands.These field data should be collected from different provinces and various climate zones to represent the characteristics of wetland and non-wetland classes across Canada.For example, as is clear from Figure 1, most of the field samples in this study were collected from mid and eastern Canada (a temperate continental climate region).It is necessary to apply field data collected from other areas to improve the accuracy of the CWI map.However, it should be noted that field data collection is time consuming and costly, especially in the case of wetlands because they are generally located in remote locations.
Furthermore, the field data in this study were collected in different years, ranging from 2000 to 2017.This temporal disparity across the field data collections as well as between the data collection and image acquisition could also cause uncertainty in the classification.This temporal difference is more important for the field samples near the urban areas because many nearby wetlands are gradually replaced or fragmented by man-made land covers, such as croplands, buildings, and roadways.
Moreover, boundary delineation for each field sample is an important step in the preparation of field samples and can increase uncertainty due to unclear and fuzzy wetland boundaries [41].Therefore, the boundaries should be conservatively determined around wetlands to avoid transitional areas.The boundary delineation was conducted by several operators in this study, who may have used different measures for this purpose.This was more important for some classes, such as shallow water, the discrimination of which from deep water is challenging.The best solution for reducing the uncertainty in boundaries for these two classes is collecting the bathymetric data during the field surveys and selecting the water bodies with less than 2 m as shallow water and the rest as deep water based on the CWCS.However, this requires extensive field works and, consequently, the delineation between these two classes is usually performed by visual analysis and the ancillary information collected during field surveys.Finally, it should be noted that the uncertainty in the boundaries of the samples could also have affected the classification accuracy in this study.
In summary, it should be noted that the quantity, quality, and geographic sampling distribution of field data affects the classification accuracy considerably.The reason for the low accuracy of some classes in this study was directly related to the number of training data available for those classes and, thus, more field data should be included in future studies.For example, it was observed that most field samples for the marsh class were emergent marshes that have a spectral signature similar to that of the shallow water class.This caused many shallow water areas to be incorrectly classified as marsh.Moreover, it was observed that several deep water regions were misclassified as shallow water.For example, Lake Winnipeg and Cedar Lake in Manitoba, which are deep water bodies, were wrongly classified as shallow water (see Figure 2).Finally, there was confusion between forest and swamp, and due to uncertainty in several field samples of the swamp class, it is expected that many forests were incorrectly identified as swamp.For instance, it was observed that a large area of NS and NB were incorrectly classified as swamp when they were expected to be forest.

Satellite Data
In this study, only images captured by Landsat-8 were used to produce the first Canada-wide wetland map.However, it is accepted that a combination of optical, SAR, and high-resolution DEM data (e.g., produced from LiDAR data) is the optimal scenario for the delineation of wetland classes to produce the highest possible classification accuracy [7,13,42,43].Therefore, future studies should combine free Landsat-8, Sentinel-1, Sentinel-2, and appropriate DEM data available in GEE to improve the classification accuracy of the current CWI map.Finally, it is worth noting that the Canadian RADARSAT Constellation Mission (RCM) will be launched in 2019 and the corresponding data will help to improve the accuracy of wetland mapping and monitoring.RCM will offer different beam modes with various spatial resolutions ranging from 3 m to 100 m.Specifically, the circular-linear compact polarimetry mode of RCM will enable users to extract and apply different decomposition methods for wetland mapping.Moreover, this satellite offers a better temporal resolution (4 day revisit time) compared to the two previous Canadian SAR systems (i.e., RADARSAT-1 and -2) and, therefore, will facilitate the monitoring of wetlands [44].

Input Features
A common approach for increasing image classification accuracy is extracting more features from the satellite data and including the optimal features in the classification.For instance, the NDVI and NDWI have been extensively used to improve the accuracy of wetland classification [9,30].Moreover, the high potential of the red edge band for wetland discrimination has been extensively discussed [1,9,30,39].Based on the availability of the surface reflectance data of Sentinel-2 in GEE in the near future, this band can be incorporated in large-scale classifications to improve the accuracy.In addition, various SAR features, especially ratio features can be helpful in wetland classification.For example, co-polarizations are important for the detection of flooded wetlands and cross-polarization is useful for the separation of woody and herbaceous wetlands (e.g., swamp and marsh, respectively, Reference [1]).Finally, it has been extensively reported that textural features are valuable in terms of increasing wetland classification accuracy [1,45].These texture features can be extracted from both optical and SAR data.Therefore, future studies should consider including these features in subsequent classification projects.

Classification Method
A pixel-based RF algorithm was used in this study to produce the preliminary CWI map.Recent studies on satellite image classification suggest that pixel-based approaches have several disadvantages when using high and medium spatial resolution data [11,20,25,42].However, for these types of images, object-based classification methods enable the use of spatial information, the extraction of additional features (e.g., mean, variance), and the reduction of the dataset.Thus, object-based methods may result in more accurate wetland classification compared to pixel-based techniques.However, the segmentation should be carefully performed during an object-based method to produce objects with appropriate size for classification.For example, the minimum mapping unit for the CWI is 1 ha (approximately 9 pixels of Landsat-8) and, therefore, if the objects generated by an object-based method do not have the proper size, many small wetlands will be missed through the classification procedure.Although the segmentation methods within GEE have not yet been developed, there are a few simple segmentation algorithms, such as simple non-iterative clustering (SNIC), which can be employed for object-based classifications.The efficiency and accuracy of the object-based methods available within GEE for mapping significantly large areas like Canada should be investigated in future studies.Additionally, it was suggested to develop more advanced classification algorithms to achieve a higher accuracy.For instance, Amani et al. [20] developed a multiple classifier system (MCS), combining various machine learning algorithms, to improve classification accuracy compared to using a single classifier, such as RF.However, the computational complicity of the proposed methods should always be considered prior to selecting a classification method.

Merging/Splitting Non-Wetland Classes
It was observed that several cropland areas were confused with grassland and barren areas in this study.This was because the cropland class can have spectral similarities with the grassland and barren classes, especially during growing and harvesting seasons, respectively.Thus, it has been suggested that merging some of these classes in future CWI maps could produce a more accurate classification result.On the other hand, based on the notes provided in Table 1, several non-wetland classes were merged prior to classification in this study.For instance, the three forest types of deciduous, coniferous, and mixed wood were considered one class-forest.However, based on various applications, the non-wetland classes considered in this study can be further subdivided.For example, the urban and barren classes, which were combined in this study, comprise different land uses and could be separated in future studies.Finally, it should be noted that merging or splitting non-wetland classes will add to the confusion between wetland and non-wetland classes, which in turn influences the accuracy of the wetland classes.For instance, if barren is considered one single class, it might be confused with some of the wetland classes especially non-growing seasons when there is no or sparse vegetation.This will result in similarities between the spectral characteristics of some wetlands and barren areas.

Estimated Wetland Areas
Table 2 and Figure 4 provide the estimated wetland areas in Canada and each of the provinces.Previous statistics, such as those provided by the Royal Geological Society of Canada [36], conducted first in 1987, stated that about 1,270,000 km 2 (about 13%) of Canada is covered by wetlands.(It is worth noting that shallow water was not considered part of wetlands in these studies).However, it was estimated in the present study that 36% of Canada is covered by the five wetland classes specified by the CWCS (see Table 2).The discrepancy between these two statistics demonstrates that, assuming the previous reports were correct, an overestimation occurred in the wetland map produced in this study.This overestimation may be true to some extent.For example, the marsh and swamp areas in the produced CWI map were approximately 12% and 8% of the country, respectively, which is possibly too much for the entire country.One reason could be the accuracy of field samples, as discussed in Section 5.2.Conversely, the non-wetland classes were underestimated in the produced map.For example, although the approximate locations of forests were correct, as discussed in Section 4, the area of forests seems to be significantly underestimated.It has been reported that the total area of forests in Canada is approximately 40% [46], while the forest class occupies only 15% of the produced map in this study.This potentially demonstrates a considerable confusion between wetlands and forests in the produced map.For example, swamps could be incorrectly identified as forests in this research.However, it is worth noting that swamps, treed bogs, and treed fens might have been also incorrectly classified as forest in the Canada-wide forest maps and, thus, the coverage of forests in Canada might have originally been overestimated.As another example, the statistics show that agricultural lands cover about 7.3% of Canada [34], while croplands comprise only 5.6% of the produced map.This could also be because of confusion between cropland/grassland and cropland/barren classes as discussed in Section 5.6.Finally, it should be noted that the existing discrepancies are not only due to errors in the produced map in this study, but may also be partially attributed to flaws in the existing reports as well, namely because they have not been updated and have been mostly produced using methods other than advanced remote sensing techniques.Moreover, shallow water was not considered in their estimation (circa 5-9%).For instance, based on this report, only 18% of NL is covered by wetlands while recent studies conducted by advanced remote sensing methods confirm that more than 40% of this province is covered by wetlands [27].Consequently, although wetland areas in Canada are probably less than 36%, these natural resources are expected to cover more than 13% of the total area of this country.In summary, future studies should aim to improve the current preliminary CWI map using the approaches discussed in the six aforementioned subsections.By doing this, it will be possible to investigate how much overestimation and underestimation exists in the current study and previous reports, respectively.

Wetland Change Detection
Although the produced CWI map provides valuable information about the location and extent of wetlands, it can also contribute to understandings of the amount of loss and gain in wetland areas over time.By visually comparing the old field data collected before 2010 and the current satellite imagery, it was observed that several wetlands have degraded or been replaced by other land covers mostly due to human activities.For instance, when visually analyzing the field samples collected in 2001 near Winnipeg in Manitoba, it was observed that many wetlands were converted to croplands over time.Therefore, it will be helpful to produce change detection maps indicating the location and extent of wetland degradation or expansion.In this regard, it should be noted that it is not practical produce wetland maps of the entire country for analyzing wetland changes annually using optical satellite data due to the frequent cloud and snow cover in Canada.Consequently, it is essential to use multi-year optical images to produce a snow-and cloud-free wetland map.For instance, using the Landsat-8 imagery collected over three years yielded a cloud and snow free map in this study.Thus, in Canada, it is practical to monitor wetland changes approximately every three years using Landsat-8 data.To monitor wetland changes annually, another approach could be using SAR data (e.g., Sentinel-1) for the cloudy areas and using a combination of optical and SAR satellite data for non-cloudy areas.Finally, it should be noted that the accuracy of the present map is not considerably high for monitoring the changes in wetland areas.Therefore, the classification method should be initially improved based on several suggestions provided in the above subsection and, then, this improved method can be used for operational wetland monitoring with proper accuracy.

GEE Limitations
Several methods, including using more satellite data and input features, as well as using more advanced classification methods were suggested in the above subsections to improve the classification accuracy for the CWI map in future studies.However, it should be noted that not all remote sensing algorithms could be implemented in the GEE platform.Three examples in this regard are discussed in the following: (1) one of the approaches to improving the accuracy of the RF algorithm is using optimum values for the tuning parameters, such as the number of trees.However, it is not possible to increase the values of these tuning parameters within GEE, because this is not computationally possible when a large amounts of field samples are used.Thus, this partially causes a limitation in increasing the accuracy; (2) implementing a segmentation algorithm for the entire country may not be possible due to the high computation associated with this.Thus, using an object-based classification method might not be practical for the production of the Canada-wide wetland map; and (3) users are limited to specific numbers of field samples and input features.For instance, the maximum number of training points in GEE should be approximately less than one million.In fact, adding more datasets reduces the efficiency of the method, and is sometimes not possible.Consequently, a trade-off should always be considered between the efficiency of the method and level of accuracy of large-scale applications.This could partially hinder improvement of the accuracy of the wetland classification for the entire country.

Contribution in Other Fields
The final CWI map was produced solely using satellite data.To make better use of this map, the results should be incorporated into various applications, such as the modeling of important environmental variables and wetland services, the assessment and development of wetland conservation and managerial policies, and the estimation of wetland conditions.For example, wetland maps are often among important input data for modeling carbon storage and methane emissions at a regional and national scale [47,48], with both carbon and methane playing important roles in discussions of climate change.Accurate wetland maps are also necessary for quantifying and qualifying the baseline of and changes to important wetland services [49], such as water quality treatment, water flow moderation, and biological productivity, in which different wetland classes have numerous roles [50].Swamps, for example, have a high potential for providing water quality treatments compared to that of bogs [50].Additionally, the produced wetland map can be used to establish baseline information for the current extent of wetlands in Canada, trends in wetland status, the relative extents of differing wetland classes and to establish which wetlands are the rarest versus the most common, all of which can then be used to improve or alter current and future wetland policies [50,51].Finally, this map can be used as an input for assessing wetland conditions [52].The national wetland condition assessment in the United States, for example, applies the use of the National Wetlands Inventory to examine the condition of the nation's wetlands [53], and a similar approach can be adopted in Canada using the map produced from the current study.

Global Wetland Mapping
In this study, an efficient approach was proposed to create the CWI.The proposed approach should be investigated further to produce a global wetland map.This requires collaboration between various organizations from all countries.Free satellite images with appropriate characteristics for wetland classification, such as those acquired by Lnadsat-8, are available for the entire globe and can be used for this purpose.Moreover, the available algorithms within GEE can be effectively used for worldwide wetland classification.However, there are several limitations in regard which should be addressed properly.For example, a unique system cannot be applied for wetland classification in all countries because each country/region has specific land cover and wetlands.One solution would be applying the proposed method in different countries considering the specific landscape of that area and mosaicking the results to create a global wetland map.Another limitation is the immense amount of field data which is required for this purpose.This amount of field data cannot be provided without the active collaboration of environmental organization all over the world.

Conclusions
Wetlands occupy a large portion of Canada and, thus, there is significant national interest in identifying their location and extent across the country and monitoring their changes over time.Although most provinces within Canada have made at the minimum small contributions to create the CWI, there is not currently a Canada-wide wetland inventory system based on the specifications of the CWCS.Therefore, in this study, a method was proposed and implemented within the GEE platform to create a CWI following the CWCS specifications.The CWI map was assessed both visually and statistically.In terms of the visual assessment, several features of the presented map corresponded to the existing reports and statistics, although several differences were also identified and discussed.In terms of the statistical assessment, an overall accuracy of 71% was reported.This level of accuracy is reasonable considering the immensity of the study area, low cost of the study, and the computational efficiency of the proposed method.Importantly, it was estimated that about 36% of Canada is covered by wetlands, though this estimation is likely to be high.Additionally, several limitations of the study, including wetland complexity, field data flaws, the classification method, the effects of non-wetland classes, and GEE restrictions were discussed.However, several suggestions to improve the accuracy of the classification in future studies, including using more field data over larger and more diverse geographic regions, as well as using a combination of SAR, optical, and high-resolution DEM data were also provided.The benefits of this study for various fields, including the monitoring of wetland change overtime for the development of protection policies, were also explored.Overall, it was concluded that employing GEE, which can preprocess and classify large amounts of satellite images, is a considerably efficient approach for operational Canada-wide wetland mapping and monitoring.

Figure 1 .
Figure 1.Map of Canada based on the Koppen climate classification [29] and the distribution of field samples.The wetland and non-wetland samples are represented by the yellow and red dots, respectively (NL-Newfoundland and Labrador; PE-Prince Edward Island; NS-Nova Scotia; NB-New Brunswick; QC-Quebec; ON-Ontario; MB-Manitoba; SK-Saskatchewan; AB-Alberta; BC-British Columbia; YT-Yukon Territory; NT-Northwest Territories; and NU-Nunavut).

Figure 1 .
Figure 1.Map of Canada based on the Koppen climate classification [29] and the distribution of field samples.The wetland and non-wetland samples are represented by the yellow and red dots, respectively (NL-Newfoundland and Labrador; PE-Prince Edward Island; NS-Nova Scotia; NB-New Brunswick; QC-Quebec; ON-Ontario; MB-Manitoba; SK-Saskatchewan; AB-Alberta; BC-British Columbia; YT-Yukon Territory; NT-Northwest Territories; and NU-Nunavut).

Figure 3 .
Figure 3. Provincial wetland inventory maps and zoomed images from two provinces: (a) Newfoundland and Labrador and (b) Ontario.(c) and (d) from Ontario and (e) and (f) from Newfoundland and Labrador demonstrate their visual accuracies.

Figure 3 .
Figure 3. Provincial wetland inventory maps and zoomed images from two provinces: (a) Newfoundland and Labrador and (b) Ontario.(c) and (d) from Ontario and (e) and (f) from Newfoundland and Labrador demonstrate their visual accuracies.

Figure 4 .
Figure 4. Percentage of wetland and non-wetland areas in different Canadian provinces.Figure 4. Percentage of wetland and non-wetland areas in different Canadian provinces.

Figure 4 .
Figure 4. Percentage of wetland and non-wetland areas in different Canadian provinces.Figure 4. Percentage of wetland and non-wetland areas in different Canadian provinces.

21 Figure 5 .
Figure 5. Violin plots of the wetland classes from the Landsat-8 Near Infrared (NIR) band.The white dot, thick black bar in the center and thin black line indicate the median value, interquartile range, and 95% confidence interval, respectively.

Figure 6 .
Figure 6.(a) Bog and fen classes, (b) spectral signature of the bog and fen classes, obtained from the field samples and Landsat-8 images.This illustrates how the spectral signatures of these two classes are superimposed and difficult to discriminate using the spectral bands of Landsat-8 imagery.

Figure 5 . 21 Figure 5 .
Figure 5. Violin plots of the wetland classes from the Landsat-8 Near Infrared (NIR) band.The white dot, thick black bar in the center and thin black line indicate the median value, interquartile range, and 95% confidence interval, respectively.

Figure 6 .
Figure 6.(a) Bog and fen classes, (b) spectral signature of the bog and fen classes, obtained from the field samples and Landsat-8 images.This illustrates how the spectral signatures of these two classes are superimposed and difficult to discriminate using the spectral bands of Landsat-8 imagery.

Figure 6 .
Figure 6.(a) Bog and fen classes, (b) spectral signature of the bog and fen classes, obtained from the field samples and Landsat-8 images.This illustrates how the spectral signatures of these two classes are superimposed and difficult to discriminate using the spectral bands of Landsat-8 imagery.

21 Figure 7 .
Figure 7. (a) Two subclasses of the marsh class, (b) spectral values of the field samples of the marsh class obtained from the Landsat-8 NIR band.

Figure 8 .
Figure 8.A marsh in (a) spring and (b) summer.In spring, vegetation is dry, while it is fully grown and elevated in summer.The images were produced using three visible bands of Landsat-8 (Band 2: blue, Band 3: green, Band 4: red).

Figure 7 .
Figure 7. (a) Two subclasses of the marsh class, (b) spectral values of the field samples of the marsh class obtained from the Landsat-8 NIR band.

21 Figure 7 .
Figure 7. (a) Two subclasses of the marsh class, (b) spectral values of the field samples of the marsh class obtained from the Landsat-8 NIR band.

Figure 8 .
Figure 8.A marsh in (a) spring and (b) summer.In spring, vegetation is dry, while it is fully grown and elevated in summer.The images were produced using three visible bands of Landsat-8 (Band 2: blue, Band 3: green, Band 4: red).

Figure 8 .
Figure 8.A marsh in (a) spring and (b) summer.In spring, vegetation is dry, while it is fully grown and elevated in summer.The images were produced using three visible bands of Landsat-8 (Band 2: blue, Band 3: green, Band 4: red).

Table 1 .
The characteristics of wetland and non-wetland classes classified in this study.

Table 1 .
The characteristics of wetland and non-wetland classes classified in this study.
[30]e Reference[30]for a detailed description of different wetland classes.

Table 2 .
Field samples (polygons) from different Canadian provinces.

Table 3 .
The optimal values for the tuning parameters of the Random Forest (RF) classifier.

Table 4 .
Area of each wetland and non-wetland class in Canada based on the CWI map produced in this study.