A Fully Automatic and High Accuracy Surface Water Mapping Framework On Google Earth Engine Using Landsat Time Series
A Fully Automatic and High Accuracy Surface Water Mapping Framework On Google Earth Engine Using Landsat Time Series
A Fully Automatic and High Accuracy Surface Water Mapping Framework On Google Earth Engine Using Landsat Time Series
Linwei Yue, Baoguang Li, Shuang Zhu, Qiangqiang Yuan & Huanfeng Shen
To cite this article: Linwei Yue, Baoguang Li, Shuang Zhu, Qiangqiang Yuan & Huanfeng Shen
(2023) A fully automatic and high-accuracy surface water mapping framework on Google Earth
Engine using Landsat time-series, International Journal of Digital Earth, 16:1, 210-233, DOI:
10.1080/17538947.2023.2166606
RESEARCH ARTICLE
a
School of Geography and Information Engineering, China University of Geosciences, Wuhan, People’s Republic of
China; bNational Engineering Research Center of Geographic Information System, China University of Geosciences,
Wuhan, People’s Republic of China; cSchool of Geodesy and Geomatics, Wuhan University, Wuhan, People’s
Republic of China; dSchool of Resources and Environmental Science, Wuhan University, Wuhan, People’s Republic
of China
1. Introduction
Surface water resources play a significant role in the sustainable development of aquatic and terres-
trial ecosystems, and also human society (Vörösmarty et al. 2010; Wood et al. 2011). With the
ongoing global climate change and intensified human activities, the spatial and temporal distri-
bution of surface water has undergone drastic changes (Xu, Cheng, and Gun 2022). As a result,
the efficient and continuous monitoring of surface water dynamics has become essential for
water resource management and protection.
Satellite remote sensing has been the most popular technique for open surface water extraction,
especially at national and global scales. In terms of water detection methods, most of the existing
CONTACT Shuang Zhu zhushuang@cug.edu.cn School of Geography and Information Engineering, China University of
Geosciences, Wuhan, Hubei 430074, People’s Republic of China; National Engineering Research Center of Geographic Information
System, China University of Geosciences, Wuhan, Hubei 430074, People’s Republic of China
Supplemental data for this article can be accessed online at https://doi.org/10.1080/17538947.2023.2166606.
© 2023 The Author(s). Published by Informa UK Limited, trading as Taylor & Francis Group
This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/4.0/),
which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
INTERNATIONAL JOURNAL OF DIGITAL EARTH 211
studies have used optical images as the data source and exploited the distinguishing optical prop-
erties of water pixels in the sensor wavebands (Bukata et al. 2018). This can be generally
implemented in either an unsupervised or supervised manner. The unsupervised methods are
widely used, given their easy implementation and computational efficiency. However, they always
require thresholds, for which the optimal values can vary in different regions. Moreover, the choice
among the different water extraction indices is another challenge (Fisher, Flood, and Danaher 2016;
Zou et al. 2018). The supervised classification methods use labeled water and non-water samples to
train a classifier (e.g. random forest (RF)), and generate the classification results using the trained
model. The supervised methods can achieve a relatively high accuracy in surface mapping appli-
cations and have good adaptability (Li and Xu 2021; Mueller et al. 2016). However, the accuracy
of the supervised classification relies on the quality of the training sample sets. In most of the exist-
ing works, the researchers have used manually collected samples for training the classifiers. How-
ever, the labeling process is labor-intensive and subjective, and the spatial and temporal distribution
of the training samples can introduce uncertainty into the classification results.
Along with the many water detection methods, researchers have also generated surface water
mapping products for the analysis of long-term changes. The Google Earth Engine cloud comput-
ing platform combines a multi-petabyte catalog of satellite imagery and geospatial datasets with pla-
netary-scale analysis capabilities (Wu 2020; Amani et al. 2019; Markos, Sims, and Giuliani 2022),
which promoted the possibility of generating global-scale and high-resolution water dynamics data-
sets (Gorelick et al. 2017). For example, Pekel et al. (2016) produced the 30-m Global Surface Water
Dataset (GSWD) from 1984 to 2020, which documents the distribution and changes in global sur-
face water. The other representative surface water product is the 30-m global inland water dynamics
maps for 1999–2021 released by the Global Land Analysis and Discovery (GLAD) laboratory
(referred to as the GLAD product hereafter) (Pickens et al. 2020). However, both studies involved
the collection of large amounts of manually labeled training samples for the classification. Further-
more, open access to the data and codes used in these works is not yet available.
Based on these facts, a cost-effective and high-accuracy surface water extraction framework is
still necessary for the large-scale monitoring of surface water extent and changes. For large-scale
applications, there are two major issues that need to be addressed. Firstly, it is necessary to collect
enough samples representing the diverse water properties. With the effort made in the previous
studies, the multi-source surface water mapping products with long time series can provide
some useful information. Recently, Li and Xu (2021) attempted to automatically select training
samples from the GSWD dataset for surface water mapping. However, the training samples in
this work were collected from a single dataset, while the random selection and outlier removal pro-
cessing can fail in areas with poor-quality source data. Moreover, the water pixels with different
temporal characteristics were treated equally. Among the water pixels, the reflection spectrum of
seasonal water pixels distributed within shallow inundated areas can be partly affected by the
reflected signals from the underlying/neighboring land or a high concentration of suspended matter
and phytoplankton in the water (Campos, Sillero, and Brito 2012), which are easily misclassified.
Therefore, for the extraction of water samples, the key issue is to consider the dynamic variations
of the water areas and spectral properties. Furthermore, the statistics of water area (e.g. the water
occurrence) are highly sensitive to the observation quality of the satellite remote sensing images,
which can be easily contaminated by cloud and shadow. This leads to inconsistency among the stat-
istics of the multiple water datasets for different periods. Moreover, cloud contamination could lead
to underestimated water surface areas, even that monthly averaging operation was conducted (Zhao
and Gao 2018; Zhang et al. 2020).
To address the above two issues, we aimed to develop a fully automatic GEE-based surface water
mapping framework based on a supervised RF classifier. Firstly, we built a robust scheme to auto-
matically construct training samples by merging the information among the multi-source water
occurrence products. The samples for potentially permanent and seasonal water were mapped
and collected separately, so that the supplement of seasonal samples can increase the spectral
212 L. YUE ET AL.
diversity of the sample space. The obtained training samples were then fed into the RF classifier to
obtain the water mapping results. Secondly, to reduce the influence of the invalid observations, an
automatic correction method for the contaminated images was introduced into the proposed fra-
mework, to repair the classification results (Zhao and Gao 2018). The idea behind the correction
method is to combine the uncontaminated part of the water area in the images and the temporal
water occurrence statistics, to infer the distribution of the contaminated water pixels. Lastly, this
study provides an open-access, fully automatic, and scale-adaptive GEE-based monitoring tool
for the tracking of highly dynamic water information.
2.2. Data
2.2.1. Landsat archives
In this study, we incorporated the Landsat 5 Thematic Mapper (TM), Landsat 7 Enhanced The-
matic Mapper Plus (ETM+), and Landsat 8 Operational Land Imager (OLI) surface reflectance pro-
ducts from 1 January 1999 to 31 December 2020 covering the five study sites. All the available image
scenes were used for the surface water mapping and occurrence statistics, regardless of the contami-
nation by cloud, shadow, and data voids. The use of the contaminated images can increase the
potential information for water mapping (Yao et al. 2019), while the processing of the contaminated
pixels was further implemented with quality assessment (Section 3.1) and a temporal correction
algorithm (Section 3.4). All the data were accessed and processed using the GEE platform.
pixels distributed along the borders of water bodies, and non-water pixels belonging to different
land-cover types. In Table S2, we also showed the seasonal characteristics of water samples,
where the extent of permanent and seasonal water area was determined based on the GSWD-
YWH data.
3. Method
The automatic processing flow for the surface water mapping in this study was shown in Figure 2.
Firstly, the available images were preprocessed with the invalid pixels masked (Section 3.1). The
water and non-water samples were then automatically selected from the image archives, integrating
information from the GSWD and GLAD water occurrence datasets, to construct the training sets
(Section 3.2). The masked images and the labeled training samples were used to train the RF clas-
sifier for surface water extraction in a supervised manner (Section 3.3). To deal with the potential
invalid pixels, the per-scene classification results obtained by the trained RF model were repaired
based on the temporal information inferred from the GSWD-SWO statistics (Sections 3.4). The
water occurrence maps can be then derived (Section 3.5).
the criteria used to define the seasonal characteristics are different for the GSWD and GLAD data-
sets. This is because the JRC use the monthly composite water map to generate the GSWD-YWH
dataset, where seasonal water is defined as being covered by water for 1–11 months of the year. In
contrast, the GLAD-AWP dataset denotes the seasonally normalized percentage of water obser-
vations among all the clear observations each year. The statistics are difficult to be treated identically
due to their different temporal scales. However, our aim here is to determine a pixel set where high-
accuracy training samples can be selected from, rather than extracting the complete extent of water
dynamics. Therefore, the intersection of these two datasets corresponding to the three water types
were generated as the source of training samples. This meant that the pixels could be indicated as
being potential samples of permanent water/non-water only if the pixels were identified as perma-
nent water/non-water for both the GSWD-YWH and GLAD-AWP datasets. In this way, samples
for permanent water and non-water could be generated with random selection from the yearly
image sets masked by the combination map. About 500 potentially permanent water and 3000
non-water pixels were randomly selected for each year, and the initial training datasets were con-
structed at a five-year interval for 1999–2020.
For the seasonal water, the yearly merged masks were overlaid on the collected image archives
for each year. For each year, 500 multi-temporal samples were then randomly selected from the
masked seasonal water areas. Due to the seasonal dynamics, these samples needed to be classified
216 L. YUE ET AL.
Figure 3. Automatic construction of training samples based on the multiple water occurrence products.
as either water or non-water pixels depending on the specific spectral shape. Therefore, we used a k-
means clustering algorithm constrained by the preliminary sample sets for the permanent water and
non-water areas, to classify the seasonal samples. It means that the clustering centers for k-means
algorithm were initialized by the samples for the permanent water and non-water types, respect-
ively. In this way, the seasonal samples were finally clustered into water and non-water categories,
based on the spectral similarities. To ensure the accuracy of the sample sets, the k-means clustering
algorithm was again applied to the whole sample set, and two clusters (i.e. water and non-water
type) were obtained with randomly assigned initial clustering centers. The results obtained in
these two different ways were compared with each other, and the points with inconsistent categories
were labeled as potential outliers. The outliers were then removed, and the final sample set was gen-
erated. The goal of clustering process is to incorporate an additional proportion of potentially sea-
sonal water samples with diverse spectral properties of surface water in the model training process.
To better separate the spectral characteristics, 13 variables related to spectral properties of water
and vegetation cover were selected as feature bands for training the RF classifier in this study: six
spectral bands (blue, green, red, NIR, SWIR-1, SWIR-2) and seven spectral indices (Table S3) (i.e.
Normalized Difference Water Index (NDWI) (McFeeters 1996), Modified Normalized Difference
Water Index (mNDWI) (H. Xu 2006), Automatic Water Extraction Index (AWEI) (Feyisa et al.
2014), Enhanced Water Index (EWI) (Yan, Zhang, and Zhang 2007), City Water Index (CWI)
(Yang et al. 2018), Normalized Difference Vegetation Index (NDVI) (Tucker 1979) and Enhanced
Vegetation Index (EVI)) (Huete et al. 1997; Huete et al. 2002). The input sets to the RF model were
made up of all the feature variables, and the model was trained with the automatically constructed
samples as the labels. The well-trained RF model was then used to classify each Landsat image. With
the fully automatic processing flow of the sample reconstruction, the classifier can be flexibly
trained on either a regional or global scale. In this study, we performed the training and testing pro-
cess for each region (approximately 1° × 1° tile). The number of trees for RF model was set as 150
empirically.
4. Results
4.1. Accuracy evaluation of the automatically constructed training samples
To validate the accuracy of the training samples, 250 randomly selected training samples collected
in 1999, 2004, 2009, 2014, and 2019 within Regions A–E are visually examined. The spatial distri-
bution of the sampling points for validation and the associated errors for the five study regions in
2019 is shown in Figure 4. The confusion matrix is given in Table 1, where the OA is used to quan-
tify the evaluation results.
INTERNATIONAL JOURNAL OF DIGITAL EARTH 219
The validation results show that the OA for the training sample sets is 98.7%, over all the study
sites. Region B and Region E achieve the equally high precision (OA: 99.0%). For Region B, the high
precision is likely because surface water is relatively sparse in the northern part of China. In terms of
Region E, the water bodies in this region are mainly large lakes with clear boundaries. Compara-
tively, the accuracy of the sample sets in Region A (OA: 98.7%), Region C (OA: 98.6%) and Region
D (OA: 98.4%) is relatively lower. This is mainly because the water types in these urban regions are
complicated and contain large numbers of urban targets that are difficult to recognize. Similar
trends can be found in analyzing the precision of water and non-water samples, which can be
derived with the cell entries in Table 1. Moreover, as shown in Figure 4, the yellow and red dots
indicate the spatial distribution of water samples with omission and commission errors in 2019,
respectively. The results show that errors mainly occur in the minor water bodies, and along the
border of rivers and lakes. However, the number of those incorrectly classified samples is small,
which demonstrate that the automatically constructed training sample sets are of high quality
and can be considered as reliable for the subsequent surface water mapping. Considering the vari-
ations of the spectral properties of water, the automatically constructed training samples were com-
posed of both permanent water/non-water samples and seasonal samples. To interpret the
distribution of the training samples in the spectral feature space, please refer to Figure S1. Given
that the amount of incorrectly classified water samples is rather small, we did not calculate extra
accuracy indexes judged by seasonal class.
Figure 4. The spatial distribution of the sample points for validation and errors within Regions A–E (2019).
220
L. YUE ET AL.
Table 1. The error matrix of the training sample set in the study areas.
1999 2004 2009 2014 2019 Total
Region NW* W* OA NW* W* OA NW* W* OA NW* W* OA NW* W* OA OA
A NW 122 3 98.4% 135 0 99.1% 122 1 98.8% 132 3 98.5% 124 2 98.8% 98.7%
W 1 124 2 133 2 125 1 114 1 123
B NW 117 0 98.9% 100 0 99.3% 116 1 99.2% 123 2 98.8% 122 2 98.8% 99.0%
W 3 130 2 148 1 132 1 124 1 125
C NW 125 1 98.8% 137 2 99.3% 127 1 98.4% 135 2 98.4% 118 4 98.0% 98.6%
W 2 122 0 111 3 119 2 111 1 127
D NW 115 3 98.3% 132 1 98.8% 128 2 98.8% 136 5 98.2% 129 5 98.1% 98.4%
W 1 131 2 115 1 119 0 109 0 116
E NW 124 2 98.8% 128 0 99.2% 133 3 98.9% 118 2 99.2% 120 2 98.8% 99.0%
W 1 123 2 120 0 114 0 130 1 127
Overall / / / 98.6% / / 99.1% / / 98.8% / / 98.6% / / 98.5% 98.7%
* NW: predicted non-water; W: predicted water; NW*: labeled non-water; W*: labeled water.
Cell entries are presented in terms of the number of samples, and the derived accuracy indices are calculated in terms of proportion of area in Tables S4 and S5.
INTERNATIONAL JOURNAL OF DIGITAL EARTH 221
Figure 5. Spatial distribution of the manually labeled sample points and errors within Regions A–E (2020).
using the samples and water mapping results for the corresponding images are shown in Table 2.
Furthermore, the accuracy results for permanent and seasonal water are given in Table 3.
The average OA of the surface water maps for the five study areas is 98.5%, which indicates that
the mapping results have been validated to be of high accuracy using the 25,000 random samples
distributed across spatial and temporal scales. Specifically, the non-water category generally has a
higher UA and PA than the water class. Moreover, the accuracy of the water maps varies for the
different regions. Region E has the highest accuracy (OA: 99.5%), which is consistent with the accu-
racy evaluation results for the sample sets in Table 1. As for Regions C and D, the accuracies are
relatively lower. The complex drainage systems within those two humid urban regions might be
the main reason for this result. For Regions A and B, we noticed that the PA values are higher
than the UAs for the water class, which indicate that the commission errors are the major factors
influencing the overall accuracies. The distribution of erroneous points presented in Figure 5 also
agree well with the quantitative accuracy evaluation results. In terms of the accuracies judged by
seasonality class given in Table 3, the accuracy of permanent water mapping (average PA:
99.8%) is higher than that of seasonal water (average PA: 93.6%). Among the study regions, Region
E has the highest accuracy of extracting seasonal water pixels (PA: 97.3%), and Region D (PA:
89.7%) has the lowest accuracy.
Although the accuracy of the surface maps differs slightly between the study sites, the results
indicate that the proposed method shows a robust performance in surface water mapping with
the training sample sets automatically constructed at a regional scale.
Table 3. Accuracy for seasonal and permanent water samples among the validation sets in the study areas.
Region Water types Misclassified as non-water Correctly classified as water Product’s accuracy
Region A Seasonal water 4 104 96.3%
Permanent water 0 981 100%
Overall water 4 1085 99.6%
Region B Seasonal water 7 241 97.2%
Permanent water 0 240 100%
Overall water 7 481 98.6%
Region C Seasonal water 21 206 90.7%
Permanent water 1 975 99.9%
Overall water 22 1181 98.2%
Region D Seasonal water 17 148 89.7%
Permanent water 2 1113 99.8%
Overall water 19 1261 98.5%
Region E Seasonal water 1 36 97.3%
Permanent water 5 754 99.4%
Overall water 6 790 99.2%
Total Seasonal water 50 735 93.6%
Permanent water 8 4063 99.8%
Overall water 58 4798 98.8%
The seasonality of pixels was determined based on the GSWD-YWH data.
Among the four methods, the NDWI algorithm obtains the worst results, where a substantial
number of non-water pixels are misclassified as water, and the complete shape of the water bodies
is frequently omitted. The commission errors mainly come from the man-made targets in the
urban areas with confusable spectral features in the visible bands, which can be clearly observed
in Figures 6 and 7(c). Comparatively, the other three methods obtain similar mapping results. All
the methods are influenced by the shadow and dark targets, to different extents. However, the
mNDWI and AWEI indices tend to produce more noisy outputs, as shown in the highlighted
regions in Figure 7(b) and (c). Furthermore, both the mNDWI and AWEI can hardly distinguish
accurate boundaries among the small ponds and paddy fields, which are commonly found in the
southern part of China (as shown in Figure 7(d)). With the distinctive spectral reflectance of clear
water and few building shadows, the results for Region E (Figures 6 and 7(e)) show the best accu-
racy, with only marginal differences between the classification methods. Overall, the proposed
method obtains promising water mapping results in all the cases, and can extract the seasonal
water pixels along the borders of water bodies well. Through the tests conducted for the five
study sites with varied land-cover patterns, terrain conditions, and image qualities, the proposed
water mapping method showed a robust performance in large-scale water mapping. Furthermore,
the fully automatic processing pipeline is superior to the other index-based methods as no extra
manual labor is required.
Figure 6. Comparative performance in water mapping. The first column is the raw image, and the successive columns indicate
the results obtained by the proposed method and the NDWI, mNDWI, and AWEI indices, respectively. The rows from top to bot-
tom represent the results for Regions A–E. T is the manually adjusted threshold for the water indices. The clouds are masked as
white pixels. Zoomed-in views of the corresponding highlighted regions marked by the rectangular boxes are presented in
Figure 7.
In Figures 9 and 10, the zoomed-in visual inspection for the highlighted subregions in Figure 8
provides more detailed information, where the annual water mapping results for 2000–2020 at a
five-year interval are provided for comparison. In Figure 9, the GSWD product fails to extract the
complete boundary of the small-size lake, with the central regions within the lake polygon cate-
gorized as seasonal water. This is likely caused by the terms used for distinguishing annual sea-
sonal water by the GSWD product, in that a pixel would be excluded from the permanent water
category if it was classified as a non-water type in any one of the valid monthly water maps. In this
way, the water mapping results can be sensitive to the accuracy of the monthly composite imagery
and the derived classification results. Figure 10 shows another featured case, where the water
mapping results for Lake Ulan Ula in Qinghai, China, are presented. This is a natural salt lake
INTERNATIONAL JOURNAL OF DIGITAL EARTH 225
Figure 7. Zoomed-in views of the corresponding highlighted rectangular regions in Figure 6. The regions with distinctive per-
formance in the figures are highlighted with the rectangular boxes.
with marshlands distributed along the lakeshore, where the lake surface can be frozen for as long
as six months within a year. In this case, there are enormous differences in the water area statistics
between the GLAD product and the other two datasets (Figure 8(e)). Similar to the processing
flow of the GSWD product, the GLAD product regards the ice and snow-covered water area as
invalid pixels and excludes them from the calculation of the water occurrence. However, a
large area of ice-covered water is wrongly classified as non-water pixels in the monthly water
map for 2020 (Figure S2). As a result, the water occurrence is underestimated, and this large
area of permanent water is wrongly classified as seasonal water. The GSWD product’s monthly
water maps are also presented in Figure S3. There is obvious inconsistency between the two
open-access datasets, which is probably caused by the different detection algorithms for water
and invalid pixels. Compared with the GLAD and GSWD products, the proposed method calcu-
lates the water occurrence based on the images throughout a year. Moreover, some of the
226 L. YUE ET AL.
Figure 8. The permanent and seasonal water mapping results derived from the water occurrence for 2020 for the different water
datasets in the five study sites. From top to bottom, each row indicates the results for the proposed method, GSWD, and GLAD,
respectively. Moreover, columns (a)–(e) show the corresponding results for Regions A–E.
Figure 9. Annual water mapping results for the highlighted region in Figure 8(a). The second row indicates the results obtained
by the proposed method without temporal correction.
contaminated information can be repaired through the temporal correction of invalid pixels, pro-
ducing more robust water mapping results. The temporal correction causes various degrees of
change in different areas, as shown in Figures 9 and 10. More details about the effectiveness of
the temporal correction are provided in Section 5.2.
INTERNATIONAL JOURNAL OF DIGITAL EARTH 227
Figure 10. Annual water mapping results for the highlighted region in Figure 8(e). The second row indicates the results obtained
by the proposed method without temporal correction.
5. Discussions
5.1. Commission and omission error sources
The experiments presented in Section 4 showed that the proposed method achieved generally good
results in the five study sites with varied hydrological conditions. However, some potential limit-
ations should be considered. It was found that shadow pixels are one of the commission error
sources for water detection in urban areas and rugged terrain regions. With the similar low reflected
spectral signals for the visible and infrared bands, shadow pixels are easily misclassified as water
(Figure 7(b) and (c)). For the areas with rugged terrain, the incorporation of DEM data can exclude
most of the topographic shadows from the extracted water areas. However, the accurate identifi-
cation of building shadows is still challenging. Visual inspection of Figure 7(c) shows that the pro-
posed method suppresses the urban shadowed areas effectively, and results in smaller commission
errors than the water indices. This can be attributed to the proposed method benefiting from the
diverse spectral features contained in the randomly selected sample sets covering various land
types in the training process.
Moreover, the pixels distributed near the edge of water bodies are often characterized by mixed
spectral features from both water and land, making them difficult to be accurately recognized
(Huang et al. 2018; Li and Xu 2021). By incorporating seasonal water samples in the training set,
which typically reflect the diverse spectral properties of shallow water pixels, the proposed method
performs better in extracting the complete boundaries of water bodies. However, the spatial resol-
ution of Landsat images is only 30 m, and thus some narrow channels and edge pixels with a small
fraction of water among the mixed pixels can still be missed. This is reflected in the results where
some drainage and lake polygons are discontinuous (e.g. Figure 7(b) and (d)). In this study, we did
not pay much attention to sub-pixel accuracy assessment for the edge pixels. This was since it is
difficult to define whether a mixed pixel should be classified as water or non-water without prior
knowledge of the accurate sub-pixel water percentage. This information can be acquired with
the aid of high-resolution images, but the precise registration between 30-m Landsat images and
228 L. YUE ET AL.
Figure 11. Water mapping results before and after temporal correction. The first column is the raw imagery, and the second
column is the preliminary classification results of the random forest classifier. The third column is the mapping results after tem-
poral correction for invalid pixels, while the last column is the reference image without cloud cover.
meter-level images is challenging. Therefore, we focused on the pixel-level accuracy assessment for
the water mapping task.
Figure 12. Water mapping results for Region E after temporal correction referenced by water occurrence data with different
temporal scales. (a) The raw image for interpretation. (b) The reference image. (c)–(f) The corrected results corresponding to
four occurrence datasets with different temporal windows, i.e. 1984–2020, 2001–2020, 2011–2020, and 2016–2020. A
zoomed-in view of the highlighted region is shown in Figure S4.
statistically significant occurrence histogram, the correction process would be terminated as the
occurrence threshold would be out of the range of 5–75% (see Section 3.4). For Region E, this
area is characterized by low precipitation, and thus the cloud coverage is also relatively low.
Figure 13. Water mapping results for Region D after temporal correction referenced by water occurrence data with different
temporal scales. (a) The raw image for interpretation. (b) The reference image. (c)–(f) The corrected results corresponding to
four occurrence datasets with different temporal windows, i.e. 1984–2020, 2001–2020, 2011–2020, and 2016–2020. A
zoomed-in view of the highlighted region is shown in Figure S5.
230 L. YUE ET AL.
However, as the high-latitude lakes are frozen for much of the year, there are still a large number of
contaminated images to be corrected. The waterbodies in Region E are mainly composed of large-
and medium-size lakes. Therefore, the temporal correction method shows an excellent performance
in repairing the contaminated scenes in this region. For Regions C and D with more humid climate
conditions, the ratio of images with extreme cloud pollution is high, which were hardly effectively
corrected. Overall, the temporal correction is effective in cases where sufficient water information is
available to infer the regional water distribution. The temporal correction shows a robust perform-
ance for the partly contaminated images, and significantly improves the number of effective images
for the temporal analysis.
Taking Figures 12 and 13 as examples, we evaluated the effectiveness of the temporal correction
by analyzing the scene-based correction results, and tested the impact of the temporal scale of the
water occurrence data used as a reference. The GSWD-SWO data corresponding to four different
temporal windows were tested, i.e. 1984–2020, 2001–2020, 2011–2020, and 2016–2020. The results
indicate that, for some large lakes occupied by permanent water, the correction process is generally
satisfactory, regardless of the reference used. In this case, the long-term occurrence information can
help to prevent the results being contaminated by noise, as shown in Figure S4. However, surface
water is highly dynamic, especially in the context of global warming and accelerated urbanization.
For the water areas with abrupt changes in recent years, such as the expanded lakes and newly built
reservoirs, a derived water occurrence close to the acquisition time of the imagery can better reflect
the real distribution of the water. This can be observed in Figure 13 and Figure S5, where the paddy
fields and aquaculture area occurring after 2010 are easily missed based on the long-term water
occurrence. Based on these results, we suggest using five-year or ten-year composite water occur-
rence data for the temporal correction in the regions with recent changes. For some highly dynamic
regions, short-period water occurrence data close to the image acquisition time should be used as
the reference.
6. Conclusions
In this paper, we have proposed a fully automatic surface water mapping framework on the GEE
platform. Firstly, we built a robust scheme to automatically construct training samples by integrat-
ing information from the GSWD and GLAD products. Secondly, the classified water maps with
invalid observations were repaired using a temporal correction method, obtaining more accurate
water occurrence statistics.
The proposed method was employed to produce surface water maps and water occurrence
maps and was evaluated in five representative regions in China. The accuracy assessment and
visual evaluation indicated that the proposed method could generate good-quality samples
(OA: 98.7%), and the accuracy of the mapping results was generally high across the different
regions. Comparative tests confirmed that the proposed method can produce better water
maps than the index-based water mapping algorithms (including NDWI, mNDWI, and
AWEI), as well as the GSWD and GLAD products. The errors mainly come from the shadow
areas and pixels distributed along the edge of water bodies with mixed spectral characteristics.
Furthermore, the temporal correction is an effective way to increase the valid observations for
the temporal analysis. However, attention should be paid to the regions with recent changes,
where short-period water occurrence data close to the image acquisition time should be used
as the reference. Moreover, seasonal pixels with low water occurrence values might be missed
in the reconstruction process. Overall, with the open-access code package, the fully automatic
processing pipeline on the GEE platform enables the proposed framework to be used to conduct
monitoring and analysis of surface water dynamics at different spatial and temporal scales. We
believe that the water datasets derived using the proposed framework can provide extra infor-
mation for further tasks.
INTERNATIONAL JOURNAL OF DIGITAL EARTH 231
Acknowledgements
We would like to acknowledge Prof. Qiusheng Wu for developing geemap python package, and acknowledge Google
for providing free access to the Google Earth Engine platform. We also thank anonymous reviewers and the editors
for their constructive comments that helped improve the manuscript.
Disclosure statement
No potential conflict of interest was reported by the author(s).
Funding
This work was supported by the National Natural Science Foundation of China [grants numbers 42171375 and
41801263].
ORCID
Huanfeng Shen http://orcid.org/0000-0002-4140-1869
References
Amani, Meisam, Brian Brisco, Majid Afshar, S. Mohammad Mirmazloumi, Sahel Mahdavi, Sayyed Mohammad Javad
Mirzadeh, Weimin Huang, and Jean Granger. 2019. “A Generalized Supervised Classification Scheme to Produce
Provincial Wetland Inventory Maps: An Application of Google Earth Engine for Big Geo Data Processing.” Big
Earth Data 3 (4): 378–394. doi:10.1080/20964471.2019.1690404.
Breiman, Leo. 2001. “Random Forests.” Machine Learning 45 (1): 5–32. doi:10.1023/A:1010933404324.
Bukata, Robert P., John H. Jerome, Kirill Ya Kondratyev, and Dimitry V. Pozdnyakov. 2018. Optical Properties and
Remote Sensing of Inland and Coastal Waters. CRC Press. doi:10.1201/9780203744956
Campos, João C., Neftalí Sillero, and José C. Brito. 2012. “Normalized Difference Water Indexes Have Dissimilar
Performances in Detecting Seasonal and Permanent Water in the Sahara–Sahel Transition Zone.” Journal of
Hydrology 464: 438–446. doi:10.1016/j.jhydrol.2012.07.042.
Feyisa, Gudina L., Henrik Meilby, Rasmus Fensholt, and Simon R. Proud. 2014. “Automated Water Extraction Index:
A New Technique for Surface Water Mapping Using Landsat Imagery.” Remote Sensing of Environment 140: 23–
35. doi:10.1016/j.rse.2013.08.029.
Fisher, Adrian, Neil Flood, and Tim Danaher. 2016. “Comparing Landsat Water Index Methods for Automated
Water Classification in Eastern Australia.” Remote Sensing of Environment 175: 167–182. doi:10.1016/j.rse.2015.
12.055.
Gorelick, N., M. Hancher, M. Dixon, S. Ilyushchenko, and R. Moore. 2017. “Google Earth Engine: Planetary-Scale
Geospatial Analysis for Everyone.” Remote Sensing of Environment 202. doi:https://doi.org/10.1016/j.rse.2017.
06.031.
Huang, Chang, Yun Chen, Shiqiang Zhang, and Jianping Wu. 2018. “Detecting, Extracting, and Monitoring Surface
Water from Space Using Optical Sensors: A Review.” Reviews of Geophysics 56 (2): 333–360. doi:10.1029/
2018RG000598.
Huete, Alfredo, Kamel Didan, Tomoaki Miura, E. Patricia Rodriguez, Xiang Gao, and Laerte G. Ferreira. 2002.
“Overview of the Radiometric and Biophysical Performance of the MODIS Vegetation Indices.” Remote
Sensing of Environment 83 (1–2): 195–213. doi:10.1016/S0034-4257(02)00096-2.
Huete, A. R., H. Q. Liu, K. V. Batchily, and W. J. D. A. Van Leeuwen. 1997. “A Comparison of Vegetation Indices
Over a Global Set of TM Images for EOS-MODIS.” Remote Sensing of Environment 59 (3): 440–451. doi:10.1016/
S0034-4257(96)00112-5.
Li, Kewei, and Erqi Xu. 2021. “High-Accuracy Continuous Mapping of Surface Water Dynamics Using Automatic
Update of Training Samples and Temporal Consistency Modification Based on Google Earth Engine: A Case
Study from Huizhou, China.” ISPRS Journal of Photogrammetry and Remote Sensing 179: 66–80. doi:10.1016/j.
isprsjprs.2021.07.009.
232 L. YUE ET AL.
Markos, Andrea, Neil Sims, and Gregory Giuliani. 2022. “Beyond the SDG 15.3. 1 Good Practice Guidance 1.0 Using
the Google Earth Engine Platform: Developing a Self-Adjusting Algorithm to Detect Significant Changes in Water
Use Efficiency and Net Primary Production.” Big Earth Data, 1–22. doi:10.1080/20964471.2022.2076375.
McFeeters, Stuart K. 1996. “The Use of the Normalized Difference Water Index (NDWI) in the Delineation of Open
Water Features.” International Journal of Remote Sensing 17 (7): 1425–1432. doi:10.1080/01431169608948714.
Mueller, Norman, Adam Lewis, Dale Roberts, Steven Ring, R. Melrose, J. Sixsmith, Leo Lymburner, A. McIntyre, P.
Tan, and S. Curnow. 2016. “Water Observations from Space: Mapping Surface Water from 25 Years of Landsat
Imagery Across Australia.” Remote Sensing of Environment 174: 341–352. doi:10.1016/j.rse.2015.11.003.
Olofsson, Pontus, Giles M. Foody, Martin Herold, Stephen V. Stehman, Curtis E. Woodcock, and Michael A. Wulder.
2014. “Good Practices for Estimating Area and Assessing Accuracy of Land Change.” Remote Sensing of
Environment 148: 42–57. doi:10.1016/j.rse.2014.02.015.
Pekel, Jean-François, Andrew Cottam, Noel Gorelick, and Alan S. Belward. 2016. “High-Resolution Mapping of
Global Surface Water and Its Long-Term Changes.” Nature 540 (7633): 418–422. doi:10.1038/nature20584.
Pickens, Amy H., Matthew C. Hansen, Matthew Hancher, Stephen V. Stehman, Alexandra Tyukavina, Peter Potapov,
Byron Marroquin, and Zainab Sherani. 2020. “Mapping and Sampling to Characterize Global Inland Water
Dynamics From 1999 to 2018 with Full Landsat Time-Series.” Remote Sensing of Environment 243: 111792.
doi:10.1016/j.rse.2020.111792.
Rodriguez-Galiano, Victor Francisco, Bardan Ghimire, John Rogan, Mario Chica-Olmo, and Juan Pedro Rigol-
Sanchez. 2012. “An Assessment of the Effectiveness of a Random Forest Classifier for Land-Cover
Classification.” ISPRS Journal of Photogrammetry and Remote Sensing 67: 93–104. doi:10.1016/j.isprsjprs.2011.
11.002.
Stehman, Stephen V., and Giles M. Foody. 2019. “Key Issues in Rigorous Accuracy Assessment of Land Cover
Products.” Remote Sensing of Environment 231: 111199. doi:10.1016/j.rse.2019.05.018.
Tucker, Compton J. 1979. “Red and Photographic Infrared Linear Combinations for Monitoring Vegetation.” Remote
Sensing of Environment 8 (2): 127–150. doi:10.1016/0034-4257(79)90013-0.
Tulbure, Mirela G., Mark Broich, Stephen V. Stehman, and Anil Kommareddy. 2016. “Surface Water Extent
Dynamics from Three Decades of Seasonally Continuous Landsat Time Series at Subcontinental Scale in a
Semi-Arid Region.” Remote Sensing of Environment 178: 142–157. doi:10.1016/j.rse.2016.02.034.
Vörösmarty, Charles J., Peter B. McIntyre, Mark O. Gessner, David Dudgeon, Alexander Prusevich, Pamela Green,
Stanley Glidden, Stuart E. Bunn, Caroline A. Sullivan, and C. Reidy Liermann. 2010. “Global Threats to Human
Water Security and River Biodiversity.” Nature 467 (7315): 555–561. doi:10.1038/nature09440.
Wood, Eric F., Joshua K. Roundy, Tara J. Troy, L. P. H. Van Beek, Marc FP Bierkens, Eleanor Blyth, Ad de Roo, Petra
Döll, Mike Ek, and James Famiglietti. 2011. “Hyperresolution Global Land Surface Modeling: Meeting a Grand
Challenge for Monitoring Earth’s Terrestrial Water.” Water Resources Research 47 (5), doi:10.1029/
2010WR010090.
Wu, Qiusheng. 2020. “Geemap: A Python Package for Interactive Mapping with Google Earth Engine.” Journal of
Open Source Software 5 (51): 2305. doi:10.21105/joss.02305.
Xu, Hanqiu. 2006. “Modification of Normalised Difference Water Index (NDWI) to Enhance Open Water Features
in Remotely Sensed Imagery.” International Journal of Remote Sensing 27 (14): 3025–3033. doi:10.1080/
01431160600589179.
Xu, Yuyue, Xing Cheng, and Zhao Gun. 2022. “What Drive Regional Changes in the Number and Surface Area of
Lakes Across the Yangtze River Basin During 2000–2019: Human or Climatic Factors?” Water Resources Research
58 (2): e2021WR030616. doi:10.1029/2021WR030616.
Yan, Pei, Youjing Zhang, and Yuan Zhang. 2007. “Extraction of Water System Information in Semi-Arid Regions
Using Enhanced Water Index (EWI) and GIS de-Noising Techniques.” Remote Sensing Information 6: 62–67.
doi:10.3969/j.issn.1000-3177.2007.06.015.
Yang, Ji, Liusheng Han, Shuishen Chen, and Yong Li. 2018. “A Method for Extracting Water Bodies from OLI
Remote Sensing Images Based on Urban Water Body Index and Fractal Geometry Algorithm.” Bulletin of
Surveying and Mapping 4: 44–49. doi:10.13474/j.cnki.11-2246.2018.0108.
Yao, Fangfang, Jida Wang, Chao Wang, and Jean-François Crétaux. 2019. “Constructing Long-Term High-
Frequency Time Series of Global Lake and Reservoir Areas Using Landsat Imagery.” Remote Sensing of
Environment 232: 111210. doi:10.1016/j.rse.2019.111210.
Zhang, Chong, Qingyun Duan, Pat J.-F. Yeh, Yun Pan, Huili Gong, Wei Gong, Zhenhua Di, Xiaohui Lei, Weihong
Liao, and Zhiyong Huang. 2020. “The Effectiveness of the South-to-North Water Diversion Middle Route Project
on Water Delivery and Groundwater Recovery in North China Plain.” Water Resources Research 56 (10):
e2019WR026759. doi:10.1029/2019WR026759.
Zhao, Gang, and Huilin Gao. 2018. “Automatic Correction of Contaminated Images for Assessment of Reservoir
Surface Area Dynamics.” Geophysical Research Letters 45 (12): 6092–6099. doi:10.1029/2018GL078343.
Zhu, Zhe, Shixiong Wang, and Curtis E. Woodcock. 2015. “Improvement and Expansion of the Fmask Algorithm:
Cloud, Cloud Shadow, and Snow Detection for Landsats 4–7, 8, and Sentinel 2 Images.” Remote Sensing of
Environment 159: 269–277. doi:10.1016/j.rse.2014.12.014.
INTERNATIONAL JOURNAL OF DIGITAL EARTH 233
Zou, Zhenhua, Jinwei Dong, Michael A. Menarguez, Xiangming Xiao, Yuanwei Qin, Russell B. Doughty, Katherine
V. Hooker, and K. David Hambright. 2017. “Continued Decrease of Open Surface Water Body Area in Oklahoma
During 1984–2015.” Science of the Total Environment 595: 451–460. doi:10.1016/j.scitotenv.2017.03.259.
Zou, Zhenhua, Xiangming Xiao, Jinwei Dong, Yuanwei Qin, Russell B. Doughty, Michael A. Menarguez, Geli Zhang,
and Jie Wang. 2018. “Divergent Trends of Open-Surface Water Body Area in the Contiguous United States from
1984 to 2016.” Proceedings of the National Academy of Sciences 115 (15): 3810–3815. doi:10.1073/pnas.
1719275115.