Unsupervised Classification

Similar documents
Introduction to Filters

QGIS LAB SERIES GST 101: Introduction to Geospatial Technology Lab 6: Understanding Remote Sensing and Analysis

Assessment of Spatiotemporal Changes in Vegetation Cover using NDVI in The Dangs District, Gujarat

Module 11 Digital image processing

Satellite image classification

Land Cover Change Analysis An Introduction to Land Cover Change Analysis using the Multispectral Image Data Analysis System (MultiSpec )

Enhancement of Multispectral Images and Vegetation Indices

Remote Sensing. The following figure is grey scale display of SPOT Panchromatic without stretching.

Exercise 4-1 Image Exploration

GE 113 REMOTE SENSING

This week we will work with your Landsat images and classify them using supervised classification.

Land Remote Sensing Lab 4: Classication and Change Detection Assigned: October 15, 2017 Due: October 27, Classication

Supervised Land Cover Classification An introduction to digital image classification using the Multispectral Image Data Analysis System (MultiSpec )

8. EDITING AND VIEWING COORDINATES, CREATING SCATTERGRAMS AND PRINCIPAL COMPONENTS ANALYSIS

Raster is faster but vector is corrector

Land Cover Change Analysis An Introduction to Land Cover Change Analysis using the Multispectral Image Data Analysis System (MultiSpec )

GEOG432: Remote sensing Lab 3 Unsupervised classification

GEOG432: Remote sensing Lab 3 Unsupervised classification

GST 101: Introduction to Geospatial Technology Lab Series. Lab 6: Understanding Remote Sensing and Aerial Photography

AmericaView EOD 2016 page 1 of 16

Due Date: September 22

How to Access Imagery and Carry Out Remote Sensing Analysis Using Landsat Data in a Browser

RGB colours: Display onscreen = RGB

1. Start a bit about Linux

EXERCISE 1 - REMOTE SENSING: SENSORS WITH DIFFERENT RESOLUTION

Viewing Landsat TM images with Adobe Photoshop

GEO/EVS 425/525 Unit 9 Aerial Photograph and Satellite Image Rectification

The (False) Color World

Remote Sensing in an

Sommersemester Prof. Dr. Christoph Kleinn Institut für Waldinventur und Waldwachstum Arbeitsbereich Fernerkundung und Waldinventur.

White paper brief IdahoView Imagery Services: LISA 1 Technical Report no. 2 Setup and Use Tutorial

White Paper. Medium Resolution Images and Clutter From Landsat 7 Sources. Pierre Missud

Basic Hyperspectral Analysis Tutorial

GST 105: Introduction to Remote Sensing Lab 4: Image Rectification

F2 - Fire 2 module: Remote Sensing Data Classification

Landsat 8 Pansharpen and Mosaic Geomatica 2015 Tutorial

Land Cover Analysis to Determine Areas of Clear-cut and Forest Cover in Olney, Montana. Geob 373 Remote Sensing. Dr Andreas Varhola, Kathry De Rego

SAVING, LOADING AND REUSING LAYER STYLES

Lesson 3: Working with Landsat Data

EE/GP140-The Earth From Space- Winter 2008 Handout #16 Lab Exercise #3

Land cover change methods. Ned Horning

Lesson 9: Multitemporal Analysis

IceTrendr - Polygon. 1 contact: Peder Nelson Anne Nolin Polygon Attribution Instructions

IceTrendr - Polygon - Pixel

Interpreting land surface features. SWAC module 3

v References Nexus RS Workshop (English Version) August 2018 page 1 of 44

Urban Classification of Metro Manila for Seismic Risk Assessment using Satellite Images

Image interpretation I and II

Lab 3: Introduction to Image Analysis with ArcGIS 10

Remote Sensing in an

In late April of 1986 a nuclear accident damaged a reactor at the Chernobyl nuclear

Lab 1 Introduction to ENVI

igett Cohort 2, June 2008 Learning Unit Student Guide Template Stream_Quality_Perkins_SG_February2009

Spatial Analyst is an extension in ArcGIS specially designed for working with raster data.

Tiling. 1. Overlapping tiles with fixed number of tiles. Tutorial

Digital Image Processing

GEO/EVS 425/525 Unit 3 Composite Images and The ERDAS Imagine Map Composer

Remote Sensing in an

Aim of Lesson. Objectives. Background Information

REMOTE SENSING. Topic 10 Fundamentals of Digital Multispectral Remote Sensing MULTISPECTRAL SCANNERS MULTISPECTRAL SCANNERS

8th ESA ADVANCED TRAINING COURSE ON LAND REMOTE SENSING

Remote Sensing in an

Important Missions. weather forecasting and monitoring communication navigation military earth resource observation LANDSAT SEASAT SPOT IRS

Terrain Modeling with ArcView GIS

ArcGIS Tutorial: Geocoding Addresses

Downloading and formatting remote sensing imagery using GLOVIS

Term Definition Introduced in:

Stratigraphy Modeling Boreholes and Cross. Become familiar with boreholes and borehole cross sections in GMS

Using the Chip Database

Land Cover Type Changes Related to. Oil and Natural Gas Drill Sites in a. Selected Area of Williams County, ND

TimeSync V3 User Manual. January Introduction

Quantifying Land Cover Changes in Maine

Objectives Learn how to import and display shapefiles in GMS. Learn how to convert the shapefiles to GMS feature objects. Required Components

Importing and processing gel images

Land use in my neighborhood Part I.

Adobe Photoshop CS5 Layers and Masks

Cosmic Color Ribbon CR150D. Cosmic Color Bulbs CB100D. RGB, Macro & Color Effect Programming Guide for the. February 2, 2012 V1.1

Tutorial Three: Categorising ideas using the SuperGrouper tool In Kidspiration there are two basic ways to organise ideas in Picture View: links and

LAB 2: Sampling & aliasing; quantization & false contouring

User s Guide. Windows Lucis Pro Plug-in for Photoshop and Photoshop Elements

NCSS Statistical Software

Downloading Imagery & LIDAR

COMPUTING CURRICULUM TOOLKIT

Variance and Anomaly Analysis with WIM/WAM Mati Kahru

Transforming Your Photographs with Photoshop

366 Glossary. Popular method for scale drawings in a computer similar to GIS but without the necessity for spatial referencing CEP

Using Soil Productivity to Assess Agricultural Land Values in North Dakota

Stone Creek Textiles. Layers! part 1

House Design Tutorial

Present and future of marine production in Boka Kotorska

Exploring Photoshop Tutorial

Excel Lab 2: Plots of Data Sets

Annex IV - Stencyl Tutorial

Estimated Time Required to Complete: 45 minutes

House Design Tutorial

Preparing Remote Sensing Data for Natural Resources Mapping (image enhancement, rectifications )

for Adobe Photoshop Tutorial Guide

Sheet Metal Punch ifeatures

v WMS 10.0 Tutorial Introduction Images Read images in a variety of formats and register the images to a coordinate projection

Digital Design and Communication Teaching (DiDACT) University of Sheffield Department of Landscape. Adobe Photoshop CS5 INTRODUCTION WORKSHOPS

Transcription:

Unsupervised Classification Using SAGA Tutorial ID: IGET_RS_007 This tutorial has been developed by BVIEER as part of the IGET web portal intended to provide easy access to geospatial education. This tutorial is released under the Creative Commons license. Your support will help our team to improve the content and to continue to offer high quality geospatial educational resources. For suggestions and feedback please visit www.iget.in.

Objective: To create a land use and land cover map of a region by the unsupervised classification method using SAGA. Software: SAGA GIS, Spread Sheet software (MS Excel) Level: Intermediate Time required: 4 Hours Prerequisites and Geospatial Skills 1. SAGA should be installed on the computer 2. Student must have completed the exercises IGET_RS_001, IGET_RS_002 and IGET_RS_003. Reading 1. Tempfli, K. (editor), Huurneman, G.C. (editor), Bakker, W.H. (editor), Janssen, L.L.F. (editor), Bakker, W.H., Feringa, W.F., Gieske, A.S.M., Grabmaier, K.A., Hecker, C.A., Horn, J.A., Huurneman, G.C., Kerle, N., van der Meer, F.D., Parodi, G.N., Pohl, C., Reeves, C.V., van Ruitenbeek, F.J.A., Schetselaar, E.M., Weir, M.J.C., Westinga, E. and Woldai, T. (2009) Principles of remote sensing : an introductory textbook. Enschede, ITC, 2009. ITC Educational Textbook Series 2, ISBN: 978-90-6164-270-1. pp. 280-312. Full text 2. Everitt, B. S., Landau, S., Leese, M., & Stahl, D. (2011). Cluster Analysis. John Wiley & Sons. Tutorial Data: The LandSat TM image required for this exercise may be downloaded from this link: SAGA 2.08 can be downloaded from this location: http://sourceforge.net/projects/saga-gis/files/saga - 2.0/SAGA 2.0.8/saga_2.0.8_bin_msw_win32.zip/download After downloading the file, unzip it to a convenient location. 2

Introduction To create a land use and land cover map of an area, we have to assign corresponding land use and land cover type to every pixel in the satellite imagery that exist at the time of acquisition. This is done based on the Digital Number (DN) values of the pixel which in turn represent the spectral properties of the ground surface. This assigning of classes to pixels in an image is called Image classification. More technically, it is an aspect of image processing in which quantitative decisions are made on the basis of the data present in the image, grouping pixels or regions of the image into classes representing different ground-cover types. The output of the classification stage may be regarded as a thematic map rather than an image (Rees, 1999). There are two broad types of image classification exists Supervised classification and Unsupervised classification. In this tutorial we will learn how to classify an image using the unsupervised method. In unsupervised classification, the algorithm analyzes all the bands of the image and pick out the clusters of pixels having similar values without the user intervention. The clusters are then assigned to their classes at the user s discretion. Therefore, this method generally applied to the regions, where we don t have any knowledge and information about land cover type. In this tutorial, we will use a 7-band LandSat Thematic Mapper (TM) image to create a land cover map of Pune and its surrounding region. This LandSat TM imagery is downloaded from USGS earth explorer website: http://earthexplorer.usgs.gov/ 1. Load the LandSat images into SAGA by clicking on the Load File button or via File Grid Load. Select the Subset_LandsatTM_8feb2011.tif image. This will import the image into SAGA. 2. The LandSat TM bands with their wavelengths and names are given below. Band Number Wavelength Range Name Band 1 0.45-0.52 Blue Band 2 0.52-0.60 Green Band 3 0.63-0.69 Red Band 4 0.76-0.90 Near Infra-Red Band 5 1.55-1.75 Short Wave Infra-Red Band 6 10.40-12.50 Thermal Infra-Red Band 7 2.08-2.35 Mid Infra-Red 3. We will first create a True Colour Composite using the RGB Composite module. Open it via Modules Grid Visualisation RGB Composite. 3

3 4 4. In the RGB Composite module window, specify the Grid System option as that of the satellite image using the dropdown menu on the right. Set the Red, Green and Blue Inputs as Band 3, Band 2, and Band 1 respectively. Click Okay. The composited image will appear in the satellite image grid list as Composite. 5. Change the name of the composite to True Colour Composite via the Name option of the tab (If the Apply button is grayed out press Enter after typing the name). This image simulates the natural look of the earth. Changing the name will make easier to distinguish it from any other composites we might make later on. Double click on the true colour composite to view in a map window. 5 6. Next, create another RGB composite of bands 4, 5 and 2 and append 452 to its name. While creating the new composite, remember to change the field to [create] otherwise it will overwrite the previous composite. We will use this false colour image to aid in identifying different land cover types. Overlay it on the True Colour Composite by double clicking on it and then adding it to the map window of true colour image. 4

6 7 7. In the Maps tab the images will be listed in the same map viewer. The visibility of layers depends on their viewing order. Drag the interested layer to top to view it in the map window. Alternately, you can double click on a layer to make it visible or invisible. Yet another way is to right-click uncheck Show Layer. Use these options to draw relations between the colors of the two images. 8. You will see that the water of the lake appears black since it gives very little spectral returns in any of the bands. The open scrub land appears light green in this colour combination because of the high reflectance in the Short Wave infra-red wavelengths. Urban areas appear blue due to their high reflectance in the green wavelength. 9. Now we will classify the image using Modules Imagery Classification Cluster Analysis for Grids. The module window options are explained below. Grid System: This is grid system of the image to be classified. Select it from the drop down menu. >>Grids: These are the input grid layers that will be used in the classification. Click on the button and select all the LandSat layers and click on the button. <<Clusters: This is the output option for the clustered image. To create a new image we keep it as [create]. If we are running the cluster analysis for the second time and want to overwrite an image then select the image to be overwritten from the dropdown menu. <<Statistics: This creates a table with the statistics of the band layers and the clusters. By default it is set as [create] but we can overwrite an existing table by selecting it from the dropdown menu. 5

9 Method: This indicates which algorithm of cluster detection will be used for classification of imagery. There are three methods available, each with its own advantages and disadvantages. o Hill-Climbing (Rubin 1967): The hill climbing algorithm is an iterative local search partitioning algorithm. It designed to search for optimum value of clustering criterion by rearranging existing partitions and keeping the new one only if it provides improvement (Everitt, Landau, Leese, & Stahl, 2011). o Iterative Minimum Distance (Forgy 1965): The Iterative Minimum Distance algorithm searches for clusters whose seeds (centroids) are initially randomly distributed. It divides the pixel population according to the nearest cluster seed. Each cluster is characterized by the mean distance of its points to the seed. The algorithm then adjusts the position of the seeds to decrease this mean distance. o Combined Minimum Distance /Hill Climbing: This serves as a combination of the above two algorithms. For our analysis we will use the default Hill Climbing algorithm. Clusters: This specifies the number of clusters to be created. Our image will be split into pixel clusters, with each cluster representing pixels with similar spectral properties. The default value is 10. For more accurate classification procedure initially one could classify the image into 100 or more classes, these classes are further merged into the minimum number of classes by examining these cluster using visual interpretation of the satellite imagery or by field verification methods. However to shorten our exercise we will use just create 50 clusters and then merged into 6 common land use and land cover classes. 6

Normalize: When this option is checked, the module will normalize the pixel values within each band before doing the cluster detection. This will slow down computing time. Update View: When checked this will display the current classification of the image for the most recent iteration of the cluster detection. It will appear like an animated image. On a fast computer, the cluster image may appear black. This is because the analysis takes place very fast leaving little time for the image rendering between iterations. To slow this down put a check on the Older Version box. 10. On clicking Okay, the cluster analysis will start and will keep reiterating the search. You can see the progress on the left side of the status bar located at the bottom of SAGA GUI. Stop the module once the change parameter reaches nearby zero by unchecking the module via Modules uncheck Cluster Analysis for Grids. Click Yes in Model Execution window. This will finish the current iteration and then create the clustered map. 10 11. The classified image titled Clusters is placed in the LandSat image grid system. Double click on it to open in the True Colour Composite map list. 12. This newly created cluster map splits the image area into homogenous land cover segments. We now have to assign each cluster to its land cover class. 12 13. Before doing that we have to assign a unique number to each land cover class. We will use a simple 6 class classification. You may use the ones below or select your own. Class Number Builtup 1 Agriculture 2 Scrub 3 Open Scrub/Barren 4 Water 5 7

Forest 6 14. Now turn on and off the cluster layer in the Map window (See Step 7). You will see that the clusters take the shape of some land features. This way we can identify the clusters based on their shape, location and image pixel values. 15 15. Select the Cluster layer from the data list and click on the tab. This will display the different class numbers and their associated colour. To check which cluster a pixel belongs to, just mouse over the pixel and look at the Status Bar at the bottom of the SAGA window. This displays the Z value of the pixel. In this case the Z value is the class number. 16. We will start assigning class numbers to the clusters by selecting the layer and then accessing the tab. Click the button under Lookup Table to open the lookup table. This will give the clusters information with five fields: COLOUR, NAME, DESCRIPTION, MINIMUM and MAXIMUM. 16 17. The color of a cluster can be changed by clicking on it and choosing a color from the palette. The MINIMUM and MAXIMUM fields indicate the cluster number and will have the same value in this table. The numbering of the clusters starts from 0. Therefore, Class 1 would be numbered 0, Class 2 would be numbered 1, and so on till we reach Class 50 numbered 49. 8

16 17 18. Identifying classes and the land cover they represent can become difficult when looking at the cluster map with all its classes. To make it easier, we will handle them one at a time. 19. Change the MINIMUM and MAXIMUM field values of all the rows by clicking on the cells and replacing them with the value -1. Mark the first MINIMUM and MAXIMUM value as 0 and click Okay. Click on Apply below. This will make the classes marked with -1 invisible. 19 20. Now look at the map of the clusters. You will see only the pixels of the first class (the 0 cluster ). To make the pixels easier to distinguish, go back to Lookup Table and change the colour of this class to Yellow. 21. Turn the cluster layer off to view the satellite image below it. Identify the type of land covered by this cluster using the false colour and true colour composites. Feel free to create and use more band composites to aid in the land cover identification. For example, let s look at the first cluster. 9

21 We see that the cluster covers the shadowed area of the hill ranges. Considering the land cover type it would probably fall under the Scrub category. So we mark in the NAME column 3 and DESCRIPTION as Scrub. 22. Let s take the Class 2. In Lookup Table change the MINIMUM and MAXIMUM field values to its original value, i.e., 1 and for Class 1 to -1. This will made only Class 2 is visible. Now we turn on Composite 452 as background image for identification. 22 From the above figure, it is clear that this cluster covers the roads and other parts of the city, so in its NAME column we ll assign the value 1 and DESCRIPTION as builtup 22 23 23. Go to the next cluster below and change its MINIMUM and MAXIMUM value to its original value (this will make it visible). Change its colour to Yellow or some other bright colour. Click Okay and then Apply. The next cluster will now be visible. 10

24. Repeat the steps 21, 22 and 23 till all the clusters have been assigned a class number. 25. Once we are done with this, make sure that the MINIMUM and MAXIMUM columns have the original values instead of -1. Click on the Save button in the lookup table and save this table as a text file in a convenient location. Use an explicit name like Lookup_Table which can be easily identified. 25 26. Open the Change Grid Values module via Modules Grid Tools Values Change Grid Values and click on the field Lookup Table. The description as seen below, states that the lookup table should have 3 columns, all of them in 8 byte float point number format, and their order must be as is specified. The first and second columns describe the cluster range and the third specifies the new class number. We must change the format of the Lookup Table which we just saved in step 25 for recoding purpose. 26 27. Close this window and navigate to the Lookup_Table.txt text file in Windows Explorer (or via My Computer). Right-click on it and select Open with Microsoft Excel. You can also load it by opening Excel first and then dragging and dropping it in the Excel sheet. The five columns will be as seen in the Lookup Table in SAGA. 11

27 28. Create a new column to the right of MAXIMUM and call it NEW. Copy the contents of the NAME column and paste it in the NEW column. 28 29. Select the contents of the first 3 columns and right-click Delete it. If a pop up window appears, select Shift Cells Left. 30. Now select the entire NEW column and click on the Number dropdown menu in the Home toolbar. Change the format from General to Number. 12

30 31. Click the Save button or press CTRL + S. If it asks if you d like to keep the format, click Yes. 32. Go back to the Change Grid Values module in SAGA. In the dialogue window, set the Grid system as the LandSat image grid system using the drop down menu. In the Grid field select the Clusters layer. Change the value of the Changed Grid entry to [create] and leave the Replace Condition as Grid Value equals low value. 32 33 33. In the Lookup Table entry click the button and click Load in the dialogue window. Navigate to the 13

Lookup_Table.txt file we saved earlier in step 31, select it and click Open. 34. The table will open in the window. They will be in the order, MINIMUM, MAXIMUM and NEW. In case it is needed, it is possible to edit this table here. However, we will leave it as it is and click Okay. Click Okay in the module window as well. 34 35. The recoded image will now be loaded into the data list as Changed Grid. Double-click on it and load it into composite map window. This way we can assess how well the classification has been done. 35 36. For a more descriptive thematic image use indicative colors in the map palette via the lookup table. To do this select the Lookup table in Type under Colors in Settings tab of Changed Grid. Navigate to the Lookup Table by clicking on button. Use Add button to add new classes and change the NAME, COLOR, MINIMUM AND MAXIMUM as specified below (See Step 13). Now click on Okay in the Table and click on Apply in the Settings Tab of Changed Grid file. 14

36 37. Click on Save in the Setting tab of Changed Grid to save the SAGA parameter file. Now you will be presented with Save Setting window, navigate to the project folder and give an appropriate name. You can load this file by Load button in the setting tab whenever necessary. 38 38. Change the Name of Changed Grid to Unsupervised_ Pune_L5TM_8feb2011, Save As the project with proper name and save other changed datasets before closing the SAGA GIS. 15