scieee AI-readable full text Open interactive document viewer

Intra-Annual land cover mapping: Automatic training sample extraction from old maps for intra-annual land cover mapping at central of Portugal

Blanco, William Alexander Martínez

Abstract

Making operational e cient the production of Land Use Land cover (LULC) mapping over large areas as the consistency and accuracy keep a high quality is an essential condition for the implementation of applications that require periodic information, such as forest re propagation, crop monitoring or climate models. The increasing spatial and temporal resolution satellite images, such as those provided by Sentinel 2, open new opportunities for producing accurate datasets that can improve the lack of production of global and regional LULC maps with ne scale and up-to-date information. In this context, while this thesis aimed to make automatic the generation of intra-annual maps implementing a work ow that consists of supervised classi cation in synergy with automatic extraction of training samples from an old map, it also aimed to use singular and BAP composites. Therefore, after a preliminary selection and preprocessing of the implemented spectral bands in the classi cation both from single and BAP composites of Sentinel 2 images of 2017, a random selection of training points is extracted from an old reference map; national LULC map of Portugal, COS 2015. We performed a classi cation scheme using support vector machine (SVM) and Random forest (RF) classi ers with two datasets of six and nine di erent number of land cover classes. The out-of-date information derived from the old map led us to evaluate the viability of implementing two re ning procedures over the data to improve accuracy; one based on margins of NDVI signals and another based on an iterative learning procedure. Since the proposed methodologies did not lead to improving OA on the classi cation of any of the images of 2017, we questioned for robustness of the classi ers RF and SVM by injecting di erent levels of noise during the modeling. Finally, the free cloud and phenological maximization of the BAP composites become in a consistent and e cient input for the production of seasonal LULC mapping.

Full text

1 William Alexander Martínez Blanco INTRA-ANNUAL LAND COVER MAPPING AUTOMATIC TRAINING SAMPLE EXTRACTION FROM OLD MAPS FOR INTRA-ANNUAL LAND COVER MAPPING AT CENTRAL OF PORTUGAL Automatic Training Sample extraction From Old Maps for Intra-annual Land Cover Mapping at Central of Portugal William Alexander Martínez Blanco Intra-annual land cover mapping Automatic Training Sample Extraction From Old Maps for Intra-annual Land Cover Mapping at Central of Portugal. Dissertation supervised by Dr. Mario Caetano Professor, Nova Information Management School University of Nova Lisbon, Portugal Dr. Edzer Pebesma Professor, Institute for Geoinformatics University of M¨unster, Germany Dr. Jorge Mateu Professor, Department of Mathematics University of Jaume I Castell´on, Spain February 24, 2019 i Acknowledgment I want to thank the three supervisors for their contributions which have greatly improved the original version of this thesis. Moreover, I must express my especial gratitude to professor Mario Caetano, for the patient guidance, encouragement and advice he has provided throughout the time frame of this thesis. His office was always open whenever I had a question about my research or writing. I would also like to thank all the members of staff at DGT and Professors at Nova IMS who helped me in my supervisor’s absence. Especially, I would like to thank Daria Ludtke, Inˆes Gir˜ao and Hugo Costa, and professors Marco Painho and Joel Silva for the suggestions they made in reference to Chapter 4 of this work. I also leave my most sincere gratitude to the Erasmus Mundus Master program Science in Geospatial technologies, headed by the professors Marco Painho, Christoph Brox, Christian Kray, Joaqun Huerta and Michael Gould. I am very honored for having been one of the recipients of this Erasmus scholarship. Last but not least, I want to thank all my family who has always supported me unconditionally in every endeavor that I have undertaken in my life. With seven and a half thousand of kilometers away from them, I do not imagine this journey without their calls and constant motivation. iii Abstract Automatic Training Sample extraction From Old Maps for Intra-annual Land Cover Mapping at Central of Portugal. Making operational efficient the production of Land Use Land cover (LULC) mapping over large areas as the consistency and accuracy keep a high quality is an essential condition for the implementation of applications that require periodic information, such as forest fire propagation, crop monitoring or climate models. The increasing spatial and temporal resolution satellite images, such as those provided by Sentinel 2, open new opportunities for producing accurate datasets that can improve the lack of production of global and regional LULC maps with fine scale and up-to-date information. In this context, while this thesis aimed to make automatic the generation of intra-annual maps implementing a workflow that consists of supervised classification in synergy with automatic extraction of training samples from an old map, it also aimed to use singular and BAP composites. Therefore, after a preliminary selection and preprocessing of the implemented spectral bands in the classification both from single and BAP composites of Sentinel 2 images of 2017, a random selection of training points is extracted from an old reference map; national LULC map of Portugal, COS 2015. We performed a classification scheme using support vector machine (SVM) and Random forest (RF) classifiers with two datasets of six and nine different number of land cover classes. The out-of-date information derived from the old map led us to evaluate the viability of implementing two refining procedures over the data v Abstract to improve accuracy; one based on margins of NDVI signals and another based on an iterative learning procedure. Since the proposed methodologies did not lead to improving OA on the classification of any of the images of 2017, we questioned for robustness of the classifiers RF and SVM by injecting different levels of noise during the modeling. Finally, the free cloud and phenological maximization of the BAP composites become in a consistent and efficient input for the production of seasonal LULC mapping. vi Keywords Best available pixel Intra-annual Land Use Land Cover Support vector machine and random forest Geographical information systems vii Index Of The Text Acknowledgment iii Abstract v Keywords vii Acronyms ix 1 Introduction 1 1.1 Problem statement and Motivation ................. 1 1.2 Objectives ............................... 4 1.2.1 Research question ....................... 4 1.2.2 Aim .............................. 4 1.2.3 Objectives ........................... 4 2 Literature Review 7 2.1 Land cover mapping and image classification ............ 7 2.2 Best pixel available .......................... 8 2.3 Automatic selection and refinement of training data ........ 9 2.4 Classification algorithms and tunning parameters ......... 10 2.4.1 Support vector machines ................... 11 2.4.2 Random forest ........................ 12 2.5 Accuracy assessment in land cover classification .......... 12 3 Data and study area 15 3.1 Study area ............................... 15 3.2 Sentinel 2 Imagery .......................... 15 xv Index Of The Text 3.3 COS map ............................... 17 3.4 External dataset ........................... 19 4 Methodology 23 4.1 Image preprocessing ......................... 23 4.2 Seasonal Composites ......................... 25 4.3 Automatic training data from a old map .............. 26 4.4 Classification schema ......................... 27 4.5 Filtering training data ........................ 28 4.5.1 Trimming NDVI signals ................... 29 4.5.2 Filtering training data based on a iterative learning procedure 30 4.6 Evaluation of the robustness of the classifiers ............ 30 5 Results 33 5.1 Automatic training selection from COS map ............ 33 5.2 Classification ............................. 34 5.2.1 Baseline ............................ 35 5.2.2 Classification using RF and SVM (images 2017) ...... 36 5.3 Single maps vs seasonal maps .................... 37 5.4 Filtering training data ........................ 42 5.4.1 Trimming NDVI signals ................... 42 5.4.2 Filtering training data using a iterative learning procedure 46 5.5 Robustness of SVM and RF ..................... 50 5.5.1 Effect estimation of the hyper-parameters with Noise in the train data ........................... 51 6 Conclusions 55 6.1 Recommendations ........................... 56 Bibliographic References 57 Annexes 63 xvi 1 Introduction 1.1 Problem statement and Motivation Characterizing land use land cover (LULC) over large areas is a fundamental task in any environmental, cultural and political study since it provides a baseline for governments to undertake and monitor policies that look for sustainable livelihoods in harmony with the ecosystems. Remote sensing in synergy with image processing makes possible the identification and mapping of the land cover system, and then, the assessment and monitoring of the resources at different temporal and spatial scales (Rogan and Chen,2004). After almost four decades of earth observation and development of powerful algorithms in mapping LULC, the research continues adapting new approaches that lead to its update to be operationally efficient and benefit from the massive data available through new technology with open data policy (G´omez et al.,2016). The recent operation of the satellites Sentinel 2A and 2B of the European Union’s Earth observation program Copernicus can play a crucial role in the new and future generation of LULC maps (G´omez et al.,2016). With an increase of the revisit frequency and better spatial resolution imagery -as never beforethe research can improve the lack of production of global and regional LULC maps with a fine scale and up-to-date information. In this context, the availability of intra-annual maps can be central in a broad spectrum of applications such as forest fire propagation (Navarro et al.,2017), crop monitoring (Vuolo et al.,2018), inundation mapping (Kordelas et al.,2018), and climate change models(Radoux et al.,2014). However, increasing the continuity in time of the characterization of the land cover system over large areas by using this new technology can also 1 1 Introduction lead to new operational challenges. Specifically, in making operationally efficient its production while its consistency and accuracy keeps high quality. (Radoux et al. (2014),Bontemps et al. (2016)). Traditionally, remote sensing image classification is an automatic approach of making LULC mapping where the level of human intervention may vary depending on the classification procedure (Rogan and Chen (2004),Inglada et al. (2017)). In this context, unsupervised procedures (K means, SOM) are attractive for an automatic definition of classes boundaries in comparison with supervised classifiers (RF, SVM, Maximum likelihood) that require the construction of training data (Mather and Tso,2016). However, in the context of classification over large areas, high dimensionality and fast reproduction, unsupervised methods can lose effectiveness due to the time-consuming post-processing and complexity in the interpretation of clusters (Chen and Gong,2013). Therefore, the better experience with supervised classification over large areas with high dimensionality (Khatami et al. (2016), Colditz et al. (2011)) raise the question if an automatic collection of training labels can overcome its drawback of needing reference data for its implementation. The availability of previous maps in the study area represents an essential reference (Colditz et al.,2011), and therefore an effective method for automation of collecting training data. However, even though they can represent a rich source of information, this data may contain no informative labels that can hinder the results in the classification (Pelletier et al.,2017b). In this context, predefined labels by the old maps can be contributive to the classification of one recent image or not depending on different factors. For example, point random extraction can intersect complexities of a wide diversity of classes that were simplified in one class in the map or intersect outdated labels. Support Vector Machine (SVM) and Random Forest (RF) represent state of the art algorithms for its application in the production of LULC (Thanh Noi and Kappas,2018); important for their ability to handle high dimensionality, being superior to unsupervised approaches and being insensitive to overfitting (Bishop, 2006). Although these methods are also known for being resistant to anomaly 2 1.1 Problem statement and Motivation data, a classifier trained in a set of large amount of wrong labels can turn out in a wrong model (Pelletier et al.,2017a). Therefore, this thesis aims to refine the sampling by exploring the viability of implementing two cleaning procedures; one based on margins of NDVI signal and other based on an iterative learning procedure that uses boosting and the measurement of information entropy to control quality data. While exploring the advantages to work with old maps as reference data for the classification of Sentinel 2 imagery, this thesis also aims to evaluate the consistency and effectiveness of the production of BAP composites as input in the production on intra -annual LULC mapping over large areas. Since the high revisit frequency of Sentinel 2 does not guarantee free-cloud imagery, BAP approach can reproduce imagery without cloud contamination (White et al.,2014). BAP composites have been developed by using different kind of protocols, which mainly depend on the use of NDVI values and distances to the masked clouds (Hermosilla et al.,2015). In this context, based on experiments of Holben (1986) with VHRR time series. That is, making composites by maximizing the NDVI per pixel in an arrange of several scenes in order to capture the state of the vegetation when is more photosynthetically active, we propose to make seasonal composites as a case of study. Therefore, the proposed classification procedures are tested on Sentinel-2 images acquired in 2017. The training data is extracted from COS map of Portugal 2015 (Caetano et al.,2015) (Uso e Ocupa¸c˜ao do Solo), whereas the validation corresponds to two datasets, one out-of-date that corresponds to a fraction of the dataset 2015 and another constructed using satellite image interpretation in 2017. 3 1 Introduction 1.2 Objectives 1.2.1 Research question This thesis formulated the following research question: •How useful is the integration of training sampling extracted from old maps for an automatic production of intra-annual land cover mapping? 1.2.2 Aim To answer the research question we defined that the main objective of this thesis is: •To evaluate the performance of the integration of training samples extracted from old maps in a supervised classification schema for the production of intra-annual mapping. 1.2.3 Objectives In order to achieve the formulated general aim, this thesis proposed the following specific objectives: •To evaluate the performance of RF and SVM in the classification of Sentinel 2 images 2017 using training data extracted from the national LULC map of Portugal COS 2015? •To evaluate the usability of COS map 2015 in the automation of the classification of Sentinel 2 imagery in 2017. •To explore the viability of implementing a refining procedure of mislabeled data from ol maps based on margins of NDVI signals, and an iterative batch learning procedure that can lead to an improvement of the performance of image classification. •To evaluate the consistent and efficiency of the BAP composites in the production of intra-annual LULC mapping over large areas? 4 1.2 Objectives Finally, this thesis had a focus on processing Sentinel 2 data products in Python and R. Readers interested in the used scripts to achieve the above objectives can visit the following link in GitHub . 5 2 Literature Review This Chapter will provide an overview of the literature relevant for the study. The topics covered are land cover mapping and image classification in Chapter 2.1, Best pixel available composites in Chapter 2.2, automatic selection and refinement of training data for supervised classification in Chapter 2.3, and the basis of the implemented classification algorithms in this study in Chapter 2.4. 2.1 Land cover mapping and image classification The synergy of earth observation and image processing has made possible the monitoring and identification of the land cover system at a global and regional scale (Rogan and Chen,2004). Despite the early experience of thematic mapping with Sentinel 2 imagery (data from 2015), it has shown potential in a different number of applications. Specifically, in the production of a new generation of land cover maps that consider fine regional scale and up to date information (Kordelas et al. (2018), Vuolo et al. (2018), Navarro et al. (2017)). Traditionally, global and regional LULC mapping uses image classification to identify and monitor the land cover system automatically (Rogan and Chen, 2004). From this angle, the task of image classification can be seen from the perspective of clustering cases by their relative spectral similarity (i.e., unsupervised) or in the localization of cases that match predefined classes that have been characterized spectrally (i.e., supervised). Unsupervised algorithms (SOM, K-means) uses the spectral information derived by the satellite to define clusters. Since the clusters do not necessarily reflect the data classes under analysis, the product pass by post-processing in order to merge the clusters with specific homogeneous 7 3 Data and study area In this chapter, we introduce the study area and the data to conduct this research. Therefore, In Chapter3.1, we start with the location of the images to classify and the discussion of the interest of developing the methodology in this region. In Chapter 3.2, we introduce relevant technical specifications of the available images during the period of analysis for the classification. To conduct the automatic selection of training data we introduce in Chapter 3.3 the old map COS 2015. Finally, in Chapter 3.4, we introduce an external and updated dataset developed by DGT in order to test the results of the proposed methodology. 3.1 Study area We conducted LULC mapping using classification of a series of tiles of Sentinel 2 located at central of Portugal. Figure 3.1 shows the location of the study area in red color with a dimension of 100km by 100km. The tiles intersected Tagus river in the region of Santar´em and Vila Franca de Xira at the head of the long narrow estuary. 3.2 Sentinel 2 Imagery This thesis used Sentinel-2 image time series acquired in 2017. The instruments considers 13 spectral channels in the visible/near infrared (VNIR) and short wave infrared spectral range (SWIR); bands came in 10, 20 and 60 meters resolution. The images were downloaded by using the online system Copernicus Open Access Hub developed by ESA. The imagery was utterly free. An overview of the images 15 3 Data and study area Sources: Esri, HERE, Garmin, Intermap, increment P Corp., GEBCO, USGS, FAO, NPS, NRCAN, GeoBase, IGN, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), swisstopo, © OpenStreetMap contributors, and the GIS User Community; Sources: Esri, Garmin, USGS, NPS Atlantic Ocean Legend Study Area Limit Portugal Figure 3.1: Study area under study, the percentage of clouds and the level of the available images are shown in figure 3.2. Data is derived from the S2A and S2B sentinel missions. The lower amount of imagery at the beginning of the year obeys to the release of images from only the first mission; having images every five days was only possible until the second mission S2B was launched on March 2017. Moreover, we distinguish in four colors the imagery used to develop every seasonal composite and in gray color the excluded images; the exclusion of images obeyed to the high cloud contamination of the image (see the percentage of clouds). The products of Sentinel 2 came in two different levels 1C and 2A. L1C corresponds to an orthorectification of data using as reference the digital elevation model (PlanetDEM 90). Consequently, a preprocessing is carried to offer measurements of reflectance on the top of the atmosphere. Instead, L2A consist of postprocessing of L1C product to provide reflectance measurements on the bottom of the atmosphere. In this context, products that came in level 1C ware 16 3.3 COS map Day Level Clouds Day Level Clouds Day Level Clouds Day Level Clouds Day Level Clouds 1Jan 51C 60,90% 15 1C 0% 25 1C 28,95% 3 2Feb 24 1C 21,72% 1 3Mar 16 1C 54,02% 1 4Apr 5 2A 0% 15 2A 11,37% 2 5May 25 2A 2,10% 1 6Jun 4 2A 0,48% 14 1C/2A 0,30% 2 7Jul 4 2A 0,22% 9 1C 7,20% 14 2A 0,25% 24 2A 0,25% 29 1C 0,08% 5 8Aug 3 2A 0,24% 8 1C 0% 13 1C 0% 18 2A 0,13% 23 1C 41,74% 5 9Sep 2 2A 0% 71C 0% 12 2A 0,21% 22 2A 1,65% 27 2A 0% 5 10 Oct 2 2A 0,21% 12 2A 0,19% 22 2A 0,84% 27 2A 0,84% 4 11 Nov 11 2A 0,24% 16 1C 0% 21 2A 0,25% 3 12 Dec 1 2A 2,08% 11 2A 46,31% 16 1C 0,09% 21 2A 0,33% 4 36 Number Total Number of images Spring Composite Summer Composite Autumn Composite Winter Composite Figure 3.2: Available images Sentinel 2, 2017 subject of preprocessing using the Sen2Cor processor developed by ESA. Specifically, the bands used for this project were the following: 10m spatial resolution bands B2 (490nm), B3 (560nm), B4 (665nm), and B8-NIR (842nm), and the 20 m spatial resolution bands B5 (705 nm), B6 (740 nm), B7 (783 nm), B8a (865nm), B11-SWIR (1610nm), and B12-SWIR (2190nm) (ESA, 2017b). The bands Band 9 Water vapour and Band 10 SWIR Cirrus are not part of this study. In this context, the spectral information is mainly characterized by channels in the visible/near-infrared (VNIR) and short wave infrared spectral range (SWIR). Finally, the 30 meters resolution of the global digital elevation model (DEM) developed by The National Aeronautics and Space Administration (NASA) was used to create the layer of Slope. Therefore, besides of the spectral data provided by Sentinel 2, we also consider the DEM and Slope after considering resampling to the minimum mapping unit (MMU) of analysis. 3.3 COS map COS map is a national product describing LULC of Portugal with a MMU of 1 Ha and produced using aerial image interpretation. COS map has 5 levels and the level with more detail comprises 48 different classes. DGT is the institute in charge of producing this map and has available four versions (1995, 2007,2010 17 3 Data and study area and 2015). Moreover, COS is a composition of polygons, where each polygon represents a homogeneous unity of use and occupation of the soil. Each polygon represents an area of land greater than or equal to the defined MMU of 1 ha, with a maximum distance between lines or equal to 20 m and which percentage of a given class is equal or greater than 75% of the total area. According to COS 2015, the study area covered a wide variety of land cover types, such as urban fabric (10.1%), agricultural areas (50.1%), water-bodies (1.4%), wetlands (0.1%), forest and semi-natural areas (38%). The landscape shaped by the river and thus an emerge of fertile lands leads to the neighbor communities to set agricultural practices. Therefore, the wide diversity in the agricultural practices and phenology activity corresponded to an desirable scenario for conducting this thesis (see figure 3.3). 8°0'0"W 8°0'0"W 8°30'0"W 8°30'0"W 9°0'0"W 9°0'0"W 39°30'0"N 39°30'0"N 39°0'0"N 39°0'0"N Artificial surfaces Agricultural areas Forest and seminatural areas Water bodies Wetlands Study A rea Legend 1.4% 38% 50.1% 10.1% 0.1% Figure 3.3: COS Map 2015, Nomenclature Level 1 Consequently, the intersection also resulted in 21 different classes with Level 5. This first inspection led to construct table 3.4. According to COS nomenclature (pink color), the categories diversifies depending on their level of description. For 18 3.4 External dataset example, the agricultural areas comprise 2 categories for level 2: periodic and permanent crops; in this sense, periodic: diversifies in irrigated and not irrigated crops, and permanent: in rice fields, grasslands, vineyard, and olive trees. Automation of the classification process requires the production of LULC maps with simple nomenclature that allows both an operational replication and a high quality production. Therefore, this thesis proposed to follow recent recommendation of European Environmental Agency on Copernicus land monitoring in the future generation of Corine land cover maps (EEA,2018). In this context, we undertook its relation with COS map nomenclature having as a result the gray section in again table 3.4. On the one hand, nomenclature of Dataset 1 matches with the level 1 of nomenclature COS 2015 for the categories of Herbaceous (Agricultural areas), sealed surface (Artificial surfaces), water surfaces (water bodies), non vegetation and wetlands (see Figure 2in Annexes). However, for the specific case of forest and semi-natural areas, dataset 2 diversify the category in 4 subgroups: non-vegetated, shrubs, Coniferous, Eucalyptuses and Holm and Cork trees (see Figure 3in Annexes). Even though Vinhas and Olivais classes are also part of the intersection of classes in the study area, this thesis do not consider them. Generally, vineyard and olive classes are plantations with fruits. These herbaceous categories have a specific case of sowing in furrows, where the space between them lead to having a mixture of not vegetated and vegetated classes in the pixel. Therefore, since the rest of the categories cover extensively herbaceous class, we did not consider to use them as training data of our models. 3.4 External dataset Since the presence of anomaly data may be general, both in training and testing, and the cleaning processing is only done over the training, the use of a external dataset may be fundamental to compare the predictive power of the trained models against test data that reflect correctly the class variation without the exposition to mislabel data due to phenology. In this case, in collaboration with 19 3 Data and study area Level 1 Level 2 Level 3 Level 4 Level 5 Shrubs Vegetação arbustiva e herbácea Matos Matos Matos Florestas de pinheiro bravo Florestas de pinheiro manso Eucalyptus trees Florestas de eucalipto Florestas de sobreiro Florestas de azinheira Arrozais Arrozais Arrozais Pastagens permanentes Pastagens permanentes Pastagens permanentes Vinhas Vinhas Vinhas Olivais Olivais Olivais Planos de água Planos de água Planos de água Planos de água Águas marinhas e costeiras Desembocaduras fluviais Desembocaduras fluviais Desembocaduras fluviais Nomenclature COS 2015 Dataset 2Dataset 1 HerbaceousHerbaceous Zonas húmidas Zonas húmidas Zonas húmidas Zonas húmidas Zonas húmidas Planos de águaPlanos de águaPlanos de água Cursos de água Cursos de águaCursos de água Planos de água Corpos de água Indústria, comércio e equipamentos gerais Redes viárias e ferroviárias e espaços Tecido urbano contínuo Tecido urbano contínuo Tecido urbano descontínuo Tecido urbano descontínuo Tecido urbano Indústria, comércio e equipamentos gerais Indústria, comércio e equipamentos gerais Redes viárias e ferroviárias e espaços Redes viárias e ferroviárias e Indústria, comércio e transportes Zonas descobertas e com Florestas e meios naturais e semi-naturais Tecido urbano contínuo Tecido urbano descontínuo Territórios artificializados Culturas permanentes Áreas agrícolas e agroflorestais Culturas temporárias de sequeiro e de Culturas temporárias de sequeiro e de Espaços descobertos ou com pouca vegetação Espaços descobertos ou com pouca vegetação Zonas descobertas e com pouca vegetação ou com Florestas Culturas temporárias Culturas temporárias de Florestas de resinosas Florestas de resinosas Florestas de folhosas Florestas de folhosas Water surfaces Water surfaces Wetlands Wetlands Woody Sealed surface Coniferous trees Holm and Cork Trees Non vegetated Non vegetated Sealed surface Figure 3.4: Class definition of the two datasets and COS nomenclature 2015 DGT, we had access to an external dataset that corresponds to a satellite image interpretation of 557 random samples using the image of 29 of July of 2017. The distribution of samples is the following: Shrubs: 61, Coniferous trees:35, Eucalyptus trees: 55, Herbaceous: 217, Holm and cork trees: 38, Non vegetated:69, Sealed: 11, Water:55, Wetlands:16. 20 3.4 External dataset Shrubs 11% Coniferous trees 6% Eucalyptus trees 10% Herbaceous 39% Holm and cork trees 7% Non vegetated 12% Sealed 2% Water 10% Wetlands 3% Figure 3.5: Distribution of the number of samples of the external dataset per percentage 21 4 Methodology While this thesis aimed to make automatic the production of intra-annual maps implementing a workflow that consisted of supervised classification in synergy with automatic extraction of training samples from an old map, it also aimed to use singular and BAP composites (see Figure 4.1). In this context, after a preliminary selection and preprocessing of the implemented features in the classification (Chapter 4.1) both from single images and BAP composites (Chapter 4.2), a random selection of training points is extracted from an old map and intersected with the spectral information of the images (Chapter 4.3). We performed a classification scheme using SVM and RF classifiers using two datasets with six and nine different number of land cover classes (Chapter 4.4). The out-of-date information derived from the old map led us to evaluate the viability of implementing two refining procedures over the data in order to improve accuracy (Chapter 4.5); one based on margins of NDVI signals and another based on an iterative learning procedure. Besides that, the possible inconsistencies of the labeled data led us to evaluate also the robustness of classifiers RF and SVM by injecting different levels of noise (Chapter 4.6). 4.1 Image preprocessing The preprocessing started with the use of Sen2Cor toolbox allowing the conversion of radiance into reflectance. Specifically, this tool provided a product L2A that considered the atmospheric, terrain and cirrus correction of Top-Of- Atmosphere of Level 1C imagery (ESA,2017). Moreover, the process included the correction of also bands of 60 and 20 meters resolution. However, the objective of this thesis 23 4 Methodology the length of the whiskers (see Figure 4.7). 4.5.2 Filtering training data based on a iterative learning procedure The second strategy for removing possible anomaly data hindering the results of the classification was based on iterative learning procedure. That is, before the learning step, all the train set (80%) is subject to a quality evaluation in order to define the level of contribution of each point in the classification. Using multiple splits of the training dataset (55% train, 25% validation), we recreated multiple models in order to classify itself. After that, we evaluated the level of uncertainty in every prediction using the measurement of information entropy (see Equation 4.2). S= n X i pilog(pi) (4.2) If a point was informative for the classification, that is, a point correctly predicted over different splits, then the point depicted low entropies values. After that, we normalized and inverted the entropies values in order to define a score of informativeness per point (see figure 4.8). As lower the score, the larger the chance of the point to be removed from the training for a specific iteration. Each iteration removed 2.5% of points from the train set, so that, we repeated the process of calculating informativeness and took out points up to the specific definition of points in the train set led to stop a possible increase in the overall accuracy and reduce the predictive power of the classifier. 4.6 Evaluation of the robustness of the classifiers To asses the classification results, we proposed to add noise to the COS dataset. Independently of the inherent noise of the out-up-date data, we decided to inject in the train set different levels of noise to evaluate their impact in the overall accuracy. 30 4.6 Evaluation of the robustness of the classifiers ... Model 1 Model n 80% Train 20% Test COS dataset t1 Boosting Cycle 1 55% Entropies Entropies ... Prediction Median Level of informativeness of training data Cycle n 55% Figure 4.8: Iterative learning procedure to define informativeness based on boosting and the measurement of information entropy The random and systematic injection of noise consist of selecting a set of points and change their original labels for one of the rest of the classes. Each injection covered 5% of the train. We performed classification using both RF and SVM considering a tune of parameters per injection. 31 5 Results While this thesis aimed to make automatic the production of intra-annual maps implementing a workflow that consisted of supervised classification in synergy with automatic extraction of training samples from an old map, it also aimed to use singular and BAP composites. In this context after selecting the training data from COS 2015 automatically (Chapter 5.1), we defined a baseline to compare the classification results both using imagery that matches the year of production of the map, and imagery for the date of analysis 2017 (Chapter 5.2). After that, we set out the classification both the seasonal composites and the singular imagery; we performed an accuracy assessment based on the confusion matrix and OA (Chapter 5.3). The obtained results questioned if quality control over the training data can result in better accuracy (Chapter 5.4), and how robust are the classifiers in the presence of several levels of noise in the training data during the modeling (Chapter 5.5). We implemented the methodology using scripts written in Python and R languages. Readers interested in the application of these procedures can visit the following link in GitHub . 5.1 Automatic training selection from COS map Figure 5.1 shows the spatial distribution of the equalized random sampling done over the study area. For the first dataset composed of nine classes, we selected 1000 samples per class for the categories of Shrubs, Coniferous trees, Eucalyptus trees, Holm and cork trees, Herbaceous, no vegetated areas, sealed surface, water surfaces, and wetlands. Instead, the second dataset composed of six classes, it 33 5 Results comprised 1000 samples per class samples for the categories of Woody, Herbaceous, no vegetated areas, sealed surface, water surfaces, and wetlands. Figure 5.1: Spatial distribution of the training data In this context, after the atmospheric and radiometric correction of the imagery, we extracted the spectral information per sample using imagery that came from 2015 and 2017. 5.2 Classification Generally, classification accuracy depends on multiple factors, where the nature of the training samples, the number of features (bands and ancillary data), the number of classes to be discriminated, the spatial resolution of the images and the properties of the classifier are the most important. From this angle, we set out the evaluation of the accuracy of the classification influenced by the previous factors for one image in 2015 in order to use it as a baseline to judge the results over 2017. 34 5.2 Classification 5.2.1 Baseline Figure 5.2 shows a comparison of OA in the classifications of one image on July 25 of 2015 using two different number of classes and two different number of bands(features). On the one hand, from the number of bands, we evaluated the adding value in the OA after including ancillary data in addition to the spectral information that came from Sentinel 2. The three additional features corresponded to NDVI, DEM, and Slope. The addition implied a significant increase in accuracy for the discrimination of classes in both dataset of six and nine classes; 5.0 scores and 3.0 scores respectively. On the other hand, the predictive power of RF increased after merging shrubs and trees variability in only one class called Woody. Therefore, the implementation of updated reference data extracted from COS map in a supervised classification of one image in July 2015 using 13 bands resulted in accuracies of 0.61 and 0.73 for the datasets of six and nine classes respectively. 0.68 0.73 0.58 0.61 6 Classes 9 Classes 10 13 10 13 0.00 0.25 0.50 0.75 1.00 Number of Features Accuracy Classes aa 6 Classes 9 Classes Figure 5.2: Baseline July 25 2015, RF classifier Even though machine learning algorithms can be considered methods based on a black-box supervised learning, they can also give an intuitive explanation about the predictive power of the features in the classification. According to the documentation of Sklearn (library Python), RF offers a score that measures the 35 5 Results importance of the study variables based on the mechanism of out-of-bag-sample error. In figure 5.3, we show scores of the variables after implementing RF (results were the same for all the imagery). As higher the score, higher the predictive power of the variable. Notably, in terms of spectral information, the bands NDVI, B11-SWIR, and B12-SWIR, showed the highest scores. This pattern may obey to the fact that the dataset was mainly composed of classes with vegetation. Moreover, the DEM also was a good predictor, determining that the elevation fractionally characterizes the land cover system in the region. Figure 5.3: Level of importance variables random forest 5.2.2 Classification using RF and SVM (images 2017) Figure 5.4 shows a general evaluation of the classification of images in 2017 using as reference the training data selected from COS map 2015; classification per image considered a careful sensitive analysis of the parameters of the classifiers. In summary, the implementation of SVM with a RBF kernel outperformed the results obtained with RF over all the imagery of 2017 with average differences of 2 scores. In practice, the selection of the images are conditioned for the level of cloud contamination, and therefore best images are selected from the time of the year less affected by cloud cover like those from Summer. According to the technical 36 5.3 Single maps vs seasonal maps 0.75 0.72 0.75 0.74 0.74 0.72 0.75 0.73 0.76 0.74 0.75 0.74 0.74 0.73 0.74 0.73 0.72 0.7 0.73 0.71 0.62 0.59 0.62 0.6 0.62 0.6 0.62 0.61 0.64 0.62 0.63 0.6 0.62 0.61 0.63 0.61 0.61 0.6 0.62 0.6 6 Classes 9 Classes Jan.15 Apr.05 May.25 Jun.14 Jul.29 Aug.13 Sep.12 Oct.12 Nov.16 Dec.16 0.00 0.25 0.50 0.75 1.00 0.00 0.25 0.50 0.75 1.00 Singular Images 2017 Accuracy Model aa RF SVM Figure 5.4: Perfomance classifiers RF and SVM, scene-based composites 2017 report of COS map, the Aereo-photographies were taken during April, May, and June of 2015. The match in season between image acquisition and the date of the images of reference for the production of COS map can be one of the reasons by which around these dates we had slight better results. Generally, the results ranged between the same range of accuracies than for 2015. We highlighted the OA of July 29 where the score was slightly higher respect to the rest of the images: 0.76 and 0.64, dataset with 6 and 9 classes respectively. This scenario showed first insight into the robustness of the classifiers in the presence of possible changes in the reflectance during the year due to phenology. 5.3 Single maps vs seasonal maps We proposed two examples of intra-annual mapping, one using single images and other using seasonal composites. Regarding the construction of the composites, the computational performance of a methodology based on maximum NDVI for their construction was quite fast. Depending on the number of spectral bands and images per date to consider, the scripts developed on Python could create 37 5 Results composites with Sentinel 2 imagery in terms of few minutes. Figure 5.5 shows one example of how the composites combated the cloud contamination of some images during the production of one composite in Spring. Clouds tend to depict red reflectance somehow larger than the near infrared. This slight difference turns out in low positive or negative values of NDVI. When the clouds passed over land covers such as vegetation, the maximization of NDVI was a simple mechanism that allows to retrieve the best pixels associated to high values of NDVI, and therefore, the construction of artificial images free of clouds. The production of BAP composites raised the curiosity for comparison in the classification performance between single images and composites. In the case of classification of a dataset with six categories, Figure 5.6 shows the classification evaluation using OA for the best singular images per season vs. the BAP composites. The results showed equivalent OA for all the images based in the same range of variation of the OA after cross-validation. Moreover, with the same above specifications we compared the accuracies of the dataset with nine classes (see Figure 5.7 ). In summary, composites seem to give the same valuable information than pure single images for the discrimination of land cover classes. Unlike, single images, BAP composites per season are cloudfree and phenomenologically more consistent for the production of seasonal LULC mapping. To describe the performance of the classification models per classes we created the normalized confusion matrix (see Figure 5.8). Particularly, this matrix represented the predictive power of the classifier SVM with RBF kernel in the discrimination of nine classes using an image of July 29 of 2017. From this angle, the values of the diagonal elements represented the degree of correctly predicted classes. The confusion is expressed by the false classified off-diagonal elements, since they may be mistakenly confused with the rest of classes. We warn the readers for possible underestimation on accuracy since the validation of these results are based on a test set that also contains samples from an old map. Besides that, we calculated the kappa index and accuracies for omission and commission (see table 5.1). The accuracies in the diagonal of the confusion matrix corresponded 38 5.3 Single maps vs seasonal maps 8°54'0"W8°57'0"W 39°21'0"N39°18'0"N 8°54'0"W 8°54'0"W 8°57'0"W 8°57'0"W 39°21'0"N39°18'0"N 8°54'0"W 8°54'0"W 8°57'0"W 8°57'0"W 39°21'0"N39°18'0"N 8°54'0"W8°57'0"W NDVI High : 1 Low : -1 8°54'0"W8°57'0"W 39°21'0"N39°18'0"N 8°54'0"W8°57'0"W 8°54'0"W8°57'0"W 39°21'0"N39°18'0"N 8°54'0"W8°57'0"W 39°21'0"N39°18'0"N April 5 April 15 May 25 SPRING COMPOSITE Figure 5.5: pixel-based composite Spring to the producer accuracy. The proximity of Cohen’s kappa and OA statistics explained a high agreement between the user and producer accuracy. That is, classification accuracies both for omission and commission have similar results. Regarding the classification of the dataset with nine classes, We could divide the predictive power of the model in three categories. Firstly, classes that contained woody such as Shrubs and Trees are showing a low predictive power 39 5 Results 0.61 0.62 0.61 0.63 0.6 0.62 0.58 0.62 0.58 0.64 0.56 0.63 0.56 0.62 0.56 0.63 0.58 0.61 0.61 0.62 0.41 0.43 0.41 0.47 0.38 0.4 0.43 0.4 0.43 0.47 0.43 0.48 0.44 0.47 0.42 0.44 0.41 0.45 0.39 0.43 TA TB Jan.15 Apr.05 May.25 Jun.14 Jul.29 Aug.13 Sep.12 Oct.12 Nov.16 Dec.16 0.00 0.25 0.50 0.75 1.00 0.00 0.25 0.50 0.75 1.00 Singular Image Accuracy Status aa Raw data With cleaning Figure 5.12: Cleaning processing NDVI, Performance over scene-based composites 2017 These results were fundamental to undertake a more sophisticated strategy during the development of this thesis. 5.4.2 Filtering training data using a iterative learning procedure In figure 5.13, we show a normalization of the level of informativeness for the training data associated with herbaceous under different seasons. The change in the level of informativeness of the samples depends on how representative they are from one scene to another. For example, assume a label of herbaceous is representing a rice field. Depending on its state of production, the crop can be flooded during the Spring, vegetated during the Summer and Autumn, or not vegetated during the Winter; when there is not production (see rice production in Portugal USDA (2019)). The dynamic of this kind of crops led to define different states of the label, and therefore raise the question of whether removing mislabeled data by this effect could have implied an improvement in accuracy 46 5.4 Filtering training data classification on an image of a specific time. Spring Summer Autumn Winter 0,42 - 0,53 0,53 - 0.64 0,65 - 0,76 0,77 - 0,88 0,89 - 1 Figure 5.13: Informativeness score for herbaceous Another example derived from the spatial continuity of the land cover system in the production of the reference data, so random samples can fall over complexities of a wide diversity of classes that were simplified in one class in the map. According to this example, we can have two scenarios, one where the sample falls over a pixel that spectrally differs completely of the label, and another one where the pixel overlap a mixture of different classes 5.14. We expected that labels misrepresenting the pixel produced the lowest values of informativeness. However, concerning the mixture of classes in one pixel, this turned out in one constraint of the proposed methodology since it did not consider fractional proportions of classes per pixel. Sealed P(E: 574935, N: 4397424.8) Google Imagery May 13 2018 (4 11 12) Sentinel 2 Spring 2017 Coniferous trees P(E: 597905.0, 4291214.8) Google Imagery August 5 2017 843 Sentinel 2 Summer 2017 Figure 5.14: Example of low informative sample for sealed 47 5 Results In the previous chapter, we used a fractional part of the COS dataset to test the results. However, the presence of anomaly data may be general, both in training and testing. Since the cleaning processing is done over the training, the use of an external dataset led us to see the results over data that suppose to be representative for a specific date. Therefore, in collaboration with DGT, we had access to an external dataset (TB). This dataset corresponds to a visual interpretation of 557 samples for the image of 29 of July. In this sense, the second strategy was evaluated making particular emphasis on this date. Figure 5.15 shows the implementation of the iterative learning procedure for the refinement of training data using the datasets with 6 and 9 classes in one image of July 29 of 2017. It shows in x-axis from left to right the percentage of data removed according with their level of informativeness and in the y-axis their correspond OA for validation (blue), TA(red) and TB(green). The box-plot are a demonstration of the stability of the results of classifications under different number of observations of the training data. a. 9 Classes SVM 2017-07-29 b. 6 Classes SVM 2017-07-29 Figure 5.15: Cleaning preprocessing using batch learning, Image July 29 2017 While the results of the cross-validation (blue margin) increased after every iteration since the model was validated using less noisy data, the OA of both test datasets kept constant over a specific range of reduction of samples. After a reduction of 20% of samples, we could appreciate that the classifier started losing the ability to generalize and predict the test datasets accurately. Even though 48 5.4 Filtering training data the filter did not lead to a better performance of the classification for this date, the graphics show how the methodology can define a fraction of samples as not informative for the classification either because they may be redundant or they did not continue representing the class on the ground (This was also verified by visual inspection). Further inspection of the methodology performance was done over the accuracies per class. Figure 5.16) shows the producer accuracy for the nine classes of dataset one using as reference the image of July 29 of 2017 and TB. The number over each line correspond to the accuracy per class at a specific percentage of data removed. For example, the class water that on average had a producer accuracy of 0.87 benefited in 3 scores with a reduction of 15% of samples. However, this did not happen with the class sealed, since a reduction of 8% of the lowest informative samples for this class ended up decreasing the predictive power of the model to classify it. In general, classes with vegetation are highly impacted in number for the refinement procedure; it should be noted, the predictive power for classes with vegetation is affected negatively y the methodology after removing 20% of the total information. These results questioned if the implementation of the iterative learning procedure was not viable for any data, or the results corresponded to a particular scenario where the methodology was not necessary. To conduct this question, we decided to inject a specific level of noise in addition to the inherent error associated with the automatic selection of labels using an old map. With 30% of noise over each class, we performed the same above process. After new iterations, the strategy for refining data started benefiting the classification. According to Figure 5.17, the OA for the margins of TA and TB started increasing gradually as we approached to the 30% of data removed. The overall accuracy for TA increased on average from 0.7 to 0.73. Similarly, for TB the OA increased from 0.55 to 0.58. After the 30% of removed samples, our model started losing the ability to generalize, and therefore produce results with lower accuracies. 49 5 Results 0,54(100) 0,54(85) 0,54(75) 0,54(64) 0,54(52) 0,57(52) 0,43(100) 0,44(87) 0,44(74) 0,47(61) 0,5(46) 0,52(46) 0,51(100) 0,53(89) 0,54(75) 0,53(63) 0,51(47) 0,47(47) 0,69(100) 0,69(89) 0,68(78) 0,68(67) 0,65(56) 0,65(56) 0,55(100) 0,53(94) 0,52(81) 0,48(65) 0,45(53) 0,44(53) 0,64(100) 0,64(87) 0,64(74) 0,62(65) 0,61(57) 0,55(57) 0,71(100) 0,67(92) 0,63(82) 0,61(71) 0,58(61) 0,59(61) 0,87(100) 0,88(90) 0,9(85) 0,91(81) 0,92(77) 0,93(77) 0,83(100) 0,81(98) 0,79(96) 0,78(93) 0,74(91) 0,73(91) 0.4 0.5 0.6 0.7 0.8 0.9 0 10 20 30 40 50 Iter Accuracy Class Bushes_and_shrubs Coniferous_trees Eucalyptus_trees Herbaceous Holm_and_Cork_Trees Non_vegetated Sealed Water Figure 5.16: Cleaning preprocessing using batch learning per class, Image July 29 2017 a. Original data 6 Classes SVM b. Noise 30% 6 Classes SVM Figure 5.17: Performance of the proposed methodology over a traning data with 30% of noise, scene-based composite July 29 5.5 Robustness of SVM and RF The previous example was indicative of raising the question of how robust the classifier could be in the presence of different levels of noise in the training data. 50 5.5 Robustness of SVM and RF Therefore, random level class noise influence is evaluated using the dataset with six and nine classes, and test TA. Figure 5.18 shows the average OA over several levels of noise. OA start being highly impacted after the level of noise overcome the 20% of the total data. After that threshold, the models start losing the ability to generalize and therefore predict correctly. 6 9 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 0.2 0.4 0.6 0.8 Noise_level Accuracy Model RF SVM Figure 5.18: Performance random forest vs SVM using COS data under different levels of noise, scene-based composite July 29 5.5.1 Effect estimation of the hyper-parameters with Noise in the train data While a sensitivity analysis of the parameters leads essentially to optimize the performance of an algorithm, their estimations may vary from one level of noise to another. To evaluate how stable or similar is the parametrization in the scenario of noise data, we recreated a sensitivity analysis over different levels of noise and two different number of classes for each classifier in the classification of the image of July 29. On the one hand, in the context of random forest, the figure 5.19 shows that the optimal values found by two-folds cross-validation kept constant over 0%, 30% and 50% percentage of noise. Besides that, we implemented the same study over 51 5 Results the dataset with six classes. The result is that the number of trees parameter equal or larger than 100 is a good estimation, no matter how noisy the data can be as a product of the natural changes of land cover over the year or types of misregistrations. However, regarding mtree, there was not a definite value to pick up. The default parameter of mtree equal to the square of the number of variables, in this case, mtree between 3 and 4, does not lead to better or worst results. 6 CLASSES 9 CLASSES 0% 30% 50% Figure 5.19: Sensitivy analysis parameters random forest On the other hand, in the same study frame of random forest, we made a sensitive analysis of the parameters for SVM with a kernel RBF. Figure 5.20 shows that high values of Ctested similar best overall accuracies under several levels of noise. A large value for Cimplied a lower chance for misclassifying the training 52 5.5 Robustness of SVM and RF data; however, this could have resulted in bias in the modeling, and therefore possible the wrong prediction of the unseen test data. Therefore, we made sure of selecting a joint estimation of low values of Cparameter under different levels of noise that at the same time guarantee good performance. Moreover, regarding γ, its estimates seem to be also limited for the three levels of noise and also for the number of classes in each prediction. 6 CLASSES 9 CLASSES 0% 30% 50% Figure 5.20: Sensitivy analysis parameters SVM with RBF kernel 53 6 Conclusions This thesis aimed to answer one research question about the benefit of the integration of training samples extracted from old maps for automatic production of intra-annual land cover mapping. To do so, we proposed to explore the usability of training samples obtained from the LULC national map of Portugal (COS) to automatize the construction of training data, that usually is collected manually, in the supervised classification of singular and BAP composites of Sentinel 2. In this context, this thesis implemented different strategies to evaluate the use of the training data with version 2015 in the classification of images of 2017. Generally, the performance of image classification depended on multiple factors, where the nature of the training samples, the classification performance, the properties of the classifiers and quality of the composites were conducted in this thesis. Firstly, after attempts for a refinement of the training data without positive impact in the increase of the OA of the classification of singular and seasonal composites of 2017, a simulation of the classification performance under different levels of noise in Cos map allowed us to infer that Cos map is a good source where to extract training data for classification. The still poor accuracy in the results and overestimation of herbaceous in the LULC maps may be related to other factors such as representativeness of the sampling per class, the number of classes to discriminate, the pixel-based approach and the spectral features that we used for the classification of images where the woody class was dominant. Secondly, the application of RF and SVM was crucial in the image classification using training data extracted from old maps due to their desirable properties of robustness in the presence of mislabeled data. Moreover, the stability in the estimation of the parameters of both classifiers after different levels of noise also 55 Annexes Sep Oct Nov Dec May Jun Jul Aug Jan Feb Mar Apr −10 −9 −8 −7 −6−10 −9 −8 −7 −6−10 −9 −8 −7 −6−10 −9 −8 −7 −6 38 40 42 38 40 42 38 40 42 lon lat 0 50 100 150 200 value Figure 1: accumulative values of precipitation per month, 2015. Source data: netCDF files NOAA 63 Annexes 8°0'0"W 8°0'0"W 8°30'0"W 8°30'0"W 9°0'0"W 9°0'0"W 39°30'0"N 39°30'0"N 39°0'0"N 39°0'0"N Legend Herbaceous Non vegetated Sealed surface Water surfaces Wetlands Woody Figure 2: Intersection of the classes of COS map 2015 with the study area, Nomenclature based on recent recommendation from EEA on Copernicus land monitoring services 64 8°0'0"W 8°0'0"W 8°30'0"W 8°30'0"W 9°0'0"W 9°0'0"W 39°30'0"N 39°30'0"N 39°0'0"N 39°0'0"N Legend Herbaceous Non vegetated Sealed surface Water surfaces Wetlands Coniferous trees Eucalyptus trees Holm and Cork Trees Shrubs Figure 3: Intersection of nine classes of COS map 2015 with the study area, Nomenclature based on recent recommendation from EEA on Copernicus land monitoring services 65 Guia para a formatação de teses Versão 4.0 Janeiro 2006