scieee AI-readable full text Open interactive document viewer

Palm tree image classification : a convolutional and machine learning approach

Olivares, Roberto Jose Luna

Abstract

Convolutional neural networks have proven to excel at image classification tasks, do to this they have being incorporated into the remote sensing field, initial hurdles in their application like the need for large data sets or heavy computational burden, have being solve with several approaches. In this paper the transfer learning approach is tested for classification of a very high resolution images of a palm oil plantation. This approach uses a pre trained convolutional neural network to extract features from an image, and label them with the aid of machine learning models. The results presented in this study show that the features extracted are a viable option for image classification with the aid of machine learning models. An overall accuracy of 97% in image classification was obtained with the support vector machine model.

Full text

Roberto Jose Luna Olivares PALM TREE IMAGE CLASSIFICATION A convolutional and machine learning approach PALM TREE IMAGE CLASSIFICATION A convolutional neural network and machine learning approach Dissertation supervised by Joel Dinis Baptista Ferreira da Silva, PhD Instituto Superior de Estatística e Gestão de Informação, Universidade Nova de Lisboa Lisbon, Portugal Dissertation co-supervised by Pedro da Costa Brito Cabral, PhD Instituto Superior de Estatística e Gestão de Informação, Universidade Nova de Lisboa Lisbon, Portugal Dissertation co-supervised by Ignacio Guerrero, PhD Institute of New Imaging Technologies, Universitat Jaume I Castellón de la Plana, Spain February 2019 i Acknowledgements I would like to thanks my supervisor Joel Silva, for sharing his knowledge, encouragement and guidance, made this research project enjoyable and fulfilling. To my co - supervisors Pedro Cabral and Ignacio Guerrero for their feedback and constructive criticism. Thanks for the effort to all the professor that helped through the master programs. Special thanks to professors Marco Painho and Christoph Brox for their guidance and advice for the duration of the program.To all my classmate that became my family during this period. To the Erasmus Mundus program for giving me the opportunity to complete this master programs and have an unforgettable experience. To my family for always supporting me and showing me to believe in myself. ii I don’t believe it. Prove it to me and I still won’t believe it Douglas Adams PALM TREE IMAGE CLASSIFICATION A convolutional and machine learning approach Abstract Convolutional neural networks have proven to excel at image classification tasks, do to this they have being incorporated into the remote sensing field, initial hurdles in their application like the need for large data sets or heavy computational burden, have being solve with several approaches. In this paper the transfer learning approach is tested for classification of a very high resolution images of a palm oil plantation. This approach uses a pre trained convolutional neural network to extract features from an image, and label them with the aid of machine learning models. The results presented in this study show that the features extracted are a viable option for image classification with the aid of machine learning models. An overall accuracy of 97% in image classification was obtained with the support vector machine model. iv KEYWORDS Convolutional Neural Network Machine Learning Unnamed Aerial Vehicle Image Classification Transfer Learning OverFeat v ACRONYMS GIS - Geographical Information Systems GEOBIA - Geographic Object-Based Image Analysis CNN - Convolutional Neural Network UAV - Unmanned Aerial Vehicle FVP - First Person View RC - Remote Control CMOS - Complementary Metal-Oxide Semiconductor CHDK - Canon Hack Development Kit RF - Random Forest LR - Logistic Regression DT - Decision Tree GBC - Gradient Boost Classifier KNN - K nearest neighbor SVM - Support Vector Machine TP - True Positives TN - True Negatives FP - False Positives FN - False Negatives vi INDEX OF THE TEXT INDEX OF FIGURES x INDEX OF TABLES xi 1 Introduction 1 1.1 An overview of the work .......................... 1 1.2 Aim and Objectives ............................. 3 1.3 Document organization ........................... 3 2 Literature review 4 2.1 Remote sensing and UAV applications .................. 4 2.1.1 Remote sensing ........................... 4 2.1.2 UAV applications .......................... 5 2.2 Machine learning techniques in Remote Sensing ............. 6 2.3 Convolutional neural-networks ...................... 7 2.4 Application of CNN in Remote Sensing .................. 9 2.5 Fundamentals of CNN ........................... 10 2.6 OverFeat .................................. 11 3 Data and Methods 13 3.1 Description of study area .......................... 13 3.2 UAV System ................................. 13 3.3 Aerial survey ................................. 15 3.4 Data set .................................... 15 3.5 Methodology ................................. 17 3.5.1 Tools ................................. 17 3.6 Data Preprocessing ............................. 18 3.7 OverFeat and Feature Extraction .................... 19 3.8 Machine Learning Models ......................... 19 3.9 Visualization ................................. 20 3.10 Accuracy assessment ............................ 20 4 Results 21 vii INDEX OF THE TEXT 4.1 Result overview ............................... 21 4.2 Image preprocessing ............................ 21 4.3 Feature extraction with OverFeat .................... 22 4.4 Machine learning models classification results .............. 23 4.4.1 SVM classification results ..................... 25 4.5 Image Classification ............................. 26 5 Discussion and Conclusion 31 5.1 Discussion .................................. 31 5.2 Conclusion .................................. 34 Bibliographic References 35 I Annex 42 I.1 Example of features extracted using OverFeat .............. 42 I.2 Image classification results ......................... 42 I.3 ROC graphs ................................. 43 I.4 Confusion matrix .............................. 45 II Annex 2 47 II.1 Cropping Images .............................. 48 II.2 Extracting features with Overfeat ..................... 48 II.3 Machine learning Models .......................... 50 II.4 Fine tuning Machine learning Models ................... 51 II.4.1 Support Vector Machine ...................... 51 viii 2.1. REMOTE SENSING AND UAV APPLICATIONS equipment to small radio control aircraft, therefore this review will focus on the definition proposed by Watts et al. (2012), as it fits into the type of system that was used for collecting the data for this study. Watts proposed definition considers three main parameters: altitude, endurance and flight capabilities, depending on these characteristics a UAV can fit into an specific category, such as Low Altitude Short-Endurance (LASE) systems. These platforms typically have a payload in the range of 2-5 kg, with a wingspan smaller than 3 meters, up to 2 hours of flight time and can operate in a range of 5 km with a ground station. In other words, this would be considered a “small UAV", and are the systems most commonly used and widespread in research projects Zecha et al. (2013). Several factors can be attributed to the UAV thriving in remote sensing, technology has played a prominent role with breakthrough in positional and navigation systems Zecha et al. (2013), miniaturization of hardware and sensors Casagrande et al. (2018) and Salamí et al. (2014), that made it technically and economically feasible to create systems capable of autonomously following a flight path and gather remote sensed data. This trend also spread to data processing hardware and software, extracting information became efficient, relatively cheap and accessible to the general public. Other important factors to be considered are the flexibility a UAV provides regarding temporal, spatial and spectral resolution. The modular nature of these systems allows for seamlessly interchangeable sensors Zecha et al. (2013), as well as the possibility for selecting the best condition and time for surveying an area Salamí et al. (2014). This characteristics and flexibility allows this systems to serves as a complement or even substitute to traditional platforms like space borne or piloted air crafts Salamí et al. (2014). In some cases UAV is the only viable option for accessing or obtaining information of remote and dangerous areas for humans Bollard-Breen et al. (2015) and Everaerts (2008) and finally, depending on the context and scale of the application, they can be a cheaper alterntive to traditional methods Iizuka et al. (2018) and Watts et al. (2012). In conclusion technological advancement made it so, that it’s no longer necessary to have highly trained personnel and equipment to build a UAV, obtain data, process it and extract useful information. 2.1.2 UAV applications There are many applications for UAV data in remote sensing, cartography production is one of the principle examples, Berteška and Ruzgien ˙ e (2013) obtained images and produced digital elevations models (DEM), that fulfill the requirements of topographical and GIS applications. Researched done by Mesas-Carrascosa et al. (2014) assessed the quality of orthophotos generated by UAV, the spatial accuracy was evaluated using techniques employed by mapping agencies, with positive results. A new field where UAVs are gaining traction is air quality measurement, as the review by 5 CHAPTER 2. LITERATURE REVIEW Villa et al. (2016) shows a growing interest and applications for measuring air quality, atmospheric composition and air pollutant monitoring. Geomorphology survey are also being done with the help of UAVs, as proved by Wang et al. (2016), with soil erosion monitoring in Sancha river basin in Northeast China. Eltner et al. (2016) presents an overview in the use of high resolution UAV images for recreating physical objects, this methods have being used in the reconstruction of 3 dimensional objects in various context and research projects. Vegetation studies have been one of the prominent focus of remote sensing, be it for agricultural or forestry applications. In the field of forest management Mikita et al. (2016) used aerial and ground photogrammetry for estimating height and diameter at breast height(DBH), Yuan and Hu (2016) applied random forest models and objectbased classification for identifying pest and monitoring health of forest. Very high resolution data can be used for single weed mapping, for site specific plant protection in wheat fields Pflanz et al. (2018), Luna and Lobo (2016) identified and mapped gaps in sugarcane plantations for optimizing replanting methods, Gago et al. (2015) analyzed the benefits and gaps of water stress monitoring. Most of the applications listed above rely on identifying objects, defining their features and boundaries. Many methods have being developed for this purpose, with most of them focused on automating this task. In early stages the focus was on identifying large objects do to resolution restrains of sensors. Most of the methods develop where based on statistical analysis of pixels but this meant that underlying spatial patterns where not considered Casagrande et al. (2018). With the increasing quality of sensors and the widespread use of UAVs identifying smaller objects became feasible, the availability of new data paved the way for a paradigm shift. The core analysis based on statistics were complemented with object classification, this led to the creation of new concepts, relationships between the data and methods of analysis. For this concepts Hay and Castilla (2008) proposed the term geographic object-based image analysis (GEOBIA), they considered to be a a subdiscipline of geographic information science, that focus is creating automated methods for segmenting remotely sensed images into meaningful objects and analyzing their spatial, spectral and temporal characteristics, to create new geographic information in GIS-ready format Hay and Castilla (2008). This field has benefited from the development and advancement of machine learning methods and specially convolutional neural networks (CNN), due to their capacity to solve complex image classification problems Chen et al. (2018). 2.2 Machine learning techniques in Remote Sensing Machine learning (ML) techniques are approaches to solving classification and regression problems, they are considered "universal approximators", they can learn the inner workings of a system from a large set of data without prior knowledge Lary et al. 6 2.3. CONVOLUTIONAL NEURAL-NETWORKS (2016). Being able to model complex systems, capacity of using a wide range of input and not assuming normal distribution of the data are some of the main reason they have become popular. These characteristics are also common among remote sensed data Maxwell et al. (2018), therefore this methods have being widely used and applied by researchers and specialist in the field. Some of the most common ML algorithms are decision trees (DT), sel-organizing map (SOM), random forests (RF), support vector machines (SVM) and artificial neural networks (ANN), the latter two have being widely applied in the field of geoscience Lary (2010). Selecting the best algorithm can be a challenging task, as proven by the comparison done by Maxwell et al. (2018), in which there’s no clear algorithm that constantly outperforms the rest. This might be caused by deferring methodological approaches and specific characteristics of the data, therefore the best algorithm is case specific and thus it’s recommended that the analysis should include multiple classifiers Lawrence and Moran (2015). The scientific literature regarding the use of these methods has being steadily increasing, Belgiu and Drăguţ(2016) provides and overview of studies using RF classifier, Mountrakis et al. (2011) presents a similar review but for SVM and Maxwell et al. (2018) compares the accuracy of algorithms in a remote sensing context. Recently interest and innovation has gravitated towards the development for deep neural network, a form of artificial neural network, that outperform traditional methods Zhang et al. (2016). Figure 2.2 exemplifies a basic artificial neural network architecture, it has three neurons in the input layer, that feed neurons into a hidden layer, which in terms activate the output layer. Deep neural networks are several neural networks stacked together, researches found that adding more layers to the network would increase the accuracy of the model. This has being proven in several studies where convolutional neiral networks perform image classification task, section 2.3 will focus on this models and their use in remote sensing context. 2.3 Convolutional neural-networks The first instance of a convolutional neural network is usually credited to the research paper Neocognitron: A Self-organizing Neural Network Model for a Mechanism of Pattern Recognition Unaffected by Shift in Position Fukushima and Miyake (1982), this was a system designed for visual patter recognition and was inspired on the findings of Hubel and Wiesel (1962), on how a cat’s visual cortex is structured and how it works to identify objects. LeCun et al. (1998) method for recognizing hand written digits was also an early application of CNN and served as basis for other research and models. The year 2012 is a benchmark year, as Krizhesvky, Sutskever and Hitton published ImageNet Classification with Deep Convolutional Neural Networks Krizhevsky et al. 7 CHAPTER 2. LITERATURE REVIEW Figure 2.1: Artificial neural network architecture Image Source: Glosser.ca (2013) (2012). Considered to be a seminal work in the field of deep learning, it was the first instance that a CNN was used for winning the LSVRC (ImageNet Large-Scale Visual Recognition Challenge), a yearly competition in the computer vision field, which requires the competitors to develop algorithms that can automatically annotated images from a data set Russakovsky et al. (2015). The model proposed by Krizhevsky et al. (2012) called AlexNet, had the lowest error rate in the history of the competition until that point. The authors explained that the limitations in their model was due to technological constrains as well as amount of data available, and predicted that with more data and technological advancement this type of models would increase in accuracy. From that point on CNN, were a mainstay in computer vision competitions and their popularity started to permeate into other fields. In the coming years modifications where made to the original model, from fine tuning it’s parameters Zeiler and Fergus (2013), to simplifying the structure or architecture Simonyan and Zisserman (2014), to creating new and complex model Szegedy et al. (2015). A tendency was established, each new iteration of the CNN model surpassed its predecessor in accuracy. The fully convolutional network work Long et al. (2015) was another important benchmark in semantic segmentation, it achieved the goal of assigning each pixel in an image to a class. Parallel to the adjustment made to the CNN architecture and accuracy, other steps were taken into making the process faster and adding features, such as defining the boundaries of objects Girshick et al. (2014), this method combined image classification and detection and started a new trend in the field. Subsequent improvements were made to this approach, in its speed and accuracy Girshick (2015) and simplifying its structure Ren et al. (2015). As these methods matured and proved successful, they became the model of choice 8 2.4. APPLICATION OF CNN IN REMOTE SENSING for many applications, including remote sensing. Nevertheless, remote sensed data in general presents some particularities that need to be considered: • At its core remote sensed data has an important geospatial component that needs to be consider, harnessing these characteristics can led to better analysis. • In general, remotely sensed data comes from wide range of sensors, with different spectral and spatial resolution, as well as different types of data. • The large amount of data produced with high temporal resolution is creating a shift towards analysis of time series instead of single scene. • Remote sensing has traditional approach of detecting and quantifying a phenomenon, using models and expert knowledge. On the other hand, deep learning approaches focus on fully automated expert-free knowledge solutions. 2.4 Application of CNN in Remote Sensing Despite this context remote sensing scientist, have manage to exploit the potential of deep learning for a varying range of applications. Salberg (2015) proposed a method for detecting seal pups, from aerial remotely sensed images. The method uses a pretrained deep convolutional neural network for feature extraction and support vector machine for classification. Results show the method was successful and implies that the methodolgy can be generalized and applied to object recognition in different scenarios, but requires further improvements and fine tuning. Chen et al. (2017), used deep learning techniques to count fruits in a tree, first identifying potential regions of interest (the location of the fruits), then comparing it to ground truth data and finally applying linear regression for estimating a final count, the authors propose using this methodology for plant phenotype identification, counting plants and monitor plant disease that present visual symptoms. Hung et al. (2014), proposed a method for obtaining the best flight altitude for a UAV, for achiving the best classifying performance for detecting weeds in crop fields, Zhu et al. (2017) provides a review of applications of CNN, showcasing state of the art methods. A specific deep learning workflow for detecting and counting palm tree was proposed by Li et al. (2017) their method was tested against manually labeled trees, showing good results, a limitation they encounter, was the size of their data set. Other method tried to generalize the classification process for different forest types, using a cascade neural network, it showed promising results, but the authors intend to better their method applying a convolutional neural network architecture Tianyang et al. (2018). 9 CHAPTER 2. LITERATURE REVIEW 2.5 Fundamentals of CNN A CNN, is a machine learning algorithm, that can learn by analyzing large quantities of data. Its origin stems from artificial neural network models, which are mathematical approximation to how a human brain works. Their general process includes analyzing inputs trough a “neuron” or a layer of mathematical operations and classifying the output depending on its value. This process is achieved by an activation fucntion, this function serves as a threshold for defining the class of the output. For image recognition tasks the input are pixel values. This models particularity good for image analysis, because they can deal with the large amount of data by reducing their dimension, thus easing the processing burden. They have proven to excel at extracting features from images, performing classification Krizhevsky et al. (2012) and Szegedy et al. (2015), semantic segmentation Long et al. (2015) and object detection Girshick et al. (2014), Ren et al. (2015), and Zhu et al. (2017). CNN follow a basic structure and its main components can be classified depending on their functions, next a description of the main components is described. This section is based the lecture notes from Karpathy (2016). • Convolution layer: This layer receives the input as an array of pixels, each one has three values associated with them, they are width, height and depth, which relates to the number of bands that the image has. This layer transfoms all this information into a function that will describe the pixel, in mathematical terms this is called convolution, thus the name. This operation is performed on the whole image by sliding a filter or kernel. The outputs are values from that summarize each pixel. • Pooling layer: this part is responsible for reducing the dimension of the convolved layer, one of the most common methods of doing this is called max pooling, which consist on returning the maximum value from each of the convolution operations within a defined window. • Activation layer: They are in charge of defining which neurons or layers from the network should be activated. • Fully connected layer: is the layer that is in charge of classifying the features extracted from the previous layers and generates an output. As the name suggest this layers connect all the input layers to the outputs. In summary when an image is fed to a CNN, the convolutional and pooling layers transform the pixel data, this phase is also called feature extraction, this is when the CNN will recognize geometries in an image, for example identify the structure of a palm tree of a dirt road. The classification of the image is done by the fully connected 10 2.6. OVERFEAT layers, their output is usually a probability score of what the image is. Figure 2.2 shows the architecture of Alexnet Krizhevsky et al. (2012), its structure serve as foundation to many other models Sermanet et al. (2013) and Zeiler and Fergus (2014). Figure 2.2: Architecture of a Convolutional Neural Nework Image Source: Krizhevsky et al. (2012) Despite excelling in image classification tasks, these models have some drawbacks such as the need for large data sets of labeled images as well the time it takes to train a model from scratch, nonetheless there are experience of using pre trained models as feature extractor with positive results Marmanis et al. (2016), Nogueira et al. (2017), and Othman et al. (2016). This approach is called transfer learning, it relies on using a pre trained CNN and removing the fully connected layer (layer that provide classification results), and extracting features using the rest of the architecture Karpathy (2016). This method provides the mathematical description of geometries such as edges, curves, size, shapes and angles found in the image. This description are the features from the image and they can be used to train a liner classifier like SVM Zhang et al. (2015). This approach was also applied in this study, using OverFeat Sermanet et al. (2013), which is a pre trained CNN that was used as a feature extractor, this features were later used to train several machine learning classifiers. 2.6 OverFeat The OverFeat network is based on Alexnet Krizhevsky et al. (2012) with some minor modifications. It has 6 convolutional layers, they have a varying number of neurons from 96 to 1024, the kernel in these layers vary in size from 3x3 to 7x7 and a max pooling layer with kernel size ranging from 3x3 and 5x5, rounded up by 3 fully connected layers. This model introduced a novel way of increasing classification accuracy by training a CNN to classify and detect objects simultaneously. This framework achieved the best result in the localization task of the 2013 ImageNet Large Scale Visual Recognition Challenge (ILSVRC) and 4th place in the classification task. OverFeat was trained 11 CHAPTER 2. LITERATURE REVIEW using ImageNet 2012 training set, which has over a million images spread out in 1000 classes Deng et al. (2009). This data set contains images that are mainly centered and free from image occlusion and clutter Sharif Razavian et al. (2014). The best iteration of this model served as base for, OverFeat feature extractor, that was used in this study. There are several instances of the use of OverFeat , Nogueira et al. (2017) compared three different approaches to using CNN in remote sensing. In the study they built and train from scratch a CNN, fine tune a pre-trained CNN and use OverFeat to extract features and classify images. Marmanis et al. (2016) proposed a two step classification process where they used the pre-trained OverFeat model coupled with another CNN in charge of classifying the features extracted. Sharif Razavian et al. (2014) used OverFeat for various image recognition task, with different data set obtaining results that compete with highly sophisticated and highly tuned state of the art methods. In this study the OverFeat network was used as it has yield good results for classification task, also the author provide a version of this model as a ready to use software (https://github.com/sermanet/OverFeat) that can perform feature extraction on our data set with out the need of high computational cost. 12 C h a p t e r 3 Data and Methods This section will describe the context of the study area, how the data was gather and the most important characteristics. 3.1 Description of study area The data was gather on September 27 2014, near Loma de Mico village 12 ° 11’ 45.54" N, 83 ° 49’ 48.04"W in the Municipality of Kukra Hill, which is part of the Autonomous region of the Caribbean south coast (RACCs) of Nicaragua (Figure 3.1). Loma de Mico is considered to have a tropical monsoon weather, wet season extends for 10 months, this translates to 2000 - 3000 mm of rain fall. Average temperature ranges from 24 - 27 ° C. Rolling hills with slopes between 20 - 30% are staples of the relief, with the highest point rising 192 meter above sea level. The aerial survey was done over a palm tree (Elaeis guineensis) plantation with an area of 45 ha. In it several types of land cover could be distinguished, most prominently present were mature palm trees, palm trees in developing stages, dirt roads, patches of natural forest, grasslands and scatter infrastructure. 3.2 UAV System The system used for the aerial survey was a fixed wing glider UAV (Figure 3.2). The airplane is a skywalker model 1800 from 2014, which is originally manufactured as a remote control plane with focus on providing the users first person view (FPV) capabilities. The RC airplane was modified to fit larger payloads (camera, batteries) and with an autopilot, sensors and navigation system making it capable of autonomous 13 CHAPTER 3. DATA AND METHODS Figure 3.1: Study area in Loma de Mico, East Nicaragua flight, this was done by the consulting firm EVOLO. Next a detailed description of the model is given. The air frame or body was made from EPO (Expanded PolyOlefin) foam, had a total weight of 5 kg, a wingspan of 1800 mm and an endurance of 35 minutes at a speed of 40 km/h. The system used an ArduPilot Mega autopilot APM 2.5, capable of autonomous stabilization and way point navigation, coupled with compass, GPS, barometric pressure sensor and telemetry communication, the system as a whole is capable of completing a pre loaded flight plan autonomously. The ground control station was a laptop running Mission Planner software version 1.3.10 connected to a radio receiver, this allowed real time communication with the UAV, during the mission it transmitted position (X,Y), height above ground level, yaw, pitch, roll angles, speed and battery levels. Images were collected using a Canon PowerShot S100 camera (Canon Inc., Tokyo, Japan) this model has a complementary metal-oxide semiconductor (CMOS) sensor size 7.53 x 5.64 mm and an approximate area of 42.5 mm which fits 12,100,000 pixels. Custom firmware CHDK version 1.2 (Canon Hack Development Kit) was setup on the camera. This free software was developed by Canon PoweShot users with the purpose of adding features and enhancing the capabilities of the "point and shoot" camera. In this study it was used to program the camera to take pictures every second by increasing the shutter speed, this would not be possible using the default software provided by the manufacturer. 14 C h a p t e r 4 Results 4.1 Result overview Results are presented in this chapter, very high resolution images were used as input for extracting features using a pre trained CNN, the features were used to train machine learning models and to classify the images, the best model (SVM) achieved a accuracy of 97%. 4.2 Image preprocessing The cropping process for each image produced 192 tiles, generating a total of 2112 tiles. Each tile was given a name based on the number of the image and the number of tile. The list with names was used for labeling each tile depending on the presence or absence of palms, in total tiles labeled as "1" were 1001, meaning tiles with palms. The remaining 1111 were labeled as "0" meaning no palms. Table 4.1 provides an example of the name given to a tile, the image it belongs to, the number of the tile under "crop" column and the label given. This table contains six records as an example of the results from the cropping process and the nomenclature used for each tile. name number crop label IMG_2361_250x250_000.jpg 2631 0 1 IMG_2367_250x250_100.jpg 2367 100 0 IMG_2371_250x250_021.jpg 2371 21 1 IMG_2374_250x250_029.jpg 2374 29 0 IMG_2376_250x250_031.jpg 2376 31 0 IMG_2392_250x250_020.jpg 2392 20 1 Table 4.1: Cropped tiles and labels given based on presence of palms 21 CHAPTER 4. RESULTS A detailed look of the objects present in the tiles is presented in Figure 4.1, it shows examples of the most representative objects of the study area, such as palm in development stages and mature, dirt road, forest, human made infrastructure and grassland. Items (a), (b) and (c) are tiles classified as 1, on the other hand items (d), (e) and (f) are classified as 0. (a) (b) (c) (d) (e) (f) Figure 4.1: Examples of objects in the tiles (a) Mature Palms (b) Palms in development stages (c) Dirt road (d) Infrastructure (e) Grassland (f) Forest 4.3 Feature extraction with OverFeat The cropped images were processed with OverFeat , the output of this process was a file containing features from each tile. This is a vector of 4096 dimensions also called CNN codes Karpathy (2016), specifically its a text file containing a list of values that represent in a mathematical form the geometries found in the tiles. This data was merged with the file generated in section 4.2 and made it possible to relate labels to the extracted features file. Examples of the extracted features for tiles labeled as "1" and "0" can be found in Annex I. 22 4.4. MACHINE LEARNING MODELS CLASSIFICATION RESULTS 4.4 Machine learning models classification results The data set generate in section 4.3 was used as input for training machine learning models, the data was randomly split 70% for training and 30% testing, the models were fine tuned and the best parameters were selected and then tested. Figure 4.2 summarizes the overall accuracy for each model, DT model achieved the lowest accuracy with 86.88%±1.11% , the second lowest was RF model with 90.50%±0.71% , the next three models had similar performance, GBC 92.66%±0.79% , KNN 94.18%±0.63% and LR 95.88%±0.60% , finally the SVM model had the highest accuracy with 97.73%±0.51% . Figure 4.2: Overall accuracy and standard deviation of models Table 4.2 provides a similar description of the performance from the classifiers, but also includes values of sensitivity, specificity and precision. With regards to sensitivity the top three values follows the same order as observed in the overall accuracy, the forth highest value correspond to the RF model followed by GBC, this is the inverse order compared to overall accuracy. The lowest value corresponds to DT model, as is the case with overall accuracy. Values for specificity follow the same pattern as the overall accuracy, while the precision mirrors the order found in the sensitivity. Generally there’s a tendency that the DT model provides the lowest values regardless if is sensitivity, specificity, precision and therefore overall accuracy, random forest 23 CHAPTER 4. RESULTS performance better than DT, but not as good as the cluster form by GBC, KNN and LR, these three models have a similar performance but from the three GBC performs worst and LR achieving the best performance. Finally the SVM has the general highest performance from all the models. Classifier Sensitivity Specificity Precision OA STD SVM 97.30 98.11 97.89 97.73 0.51% LR 96.30 95.50 96.88 95.88 0.60% KNN 95.80 92.71 96.38 94.18 0.63% GBC 93.31 92.08 93.87 92.66 0.79% RF 94.71 86.68 95.28 90.48 0.71% DT 85.61 88.03 86.13 86.88 1.11% Table 4.2: Accuracy assessment of Classification models Performance of the models are presented in a more tangible matter in Table 4.3, Table 4.4 and Table 4.5. These confusion matrices represent the classification results of DT, GBC and SVM models, these three were compared because they represent the range of performances, the models presents the lowest and highest accuracy (DT, SVM) as well a model which performed in the middle ground between the to extremes (GBC). The tables have two rows and two columns, the header of the columns are "0" and "1" each representing the labels. The combination of rows and columns produce the values for true positives (TP) "1 1", tiles with palms correctly classified, true negatives (TN) "0 0", tiles with no palms correctly classified, false positives (FP)"0 1", tiles with no palms classified as having palms and "1 0" false negatives (FN), tiles with palms, that were not recognized by the model. Reference DT 0 1 Total Result Predicted 0 978 144 1122 1 133 857 990 Total Result 1111 1001 2112 Table 4.3: Confusion matrix DT Table 4.3 presents the results for DT, the model with the lowest performance. Tiles classified as true positives amount 857 and true negatives 978, leaving a total of false positives of 144 and false negatives of 133. Reference GBC 0 1 Total Result Predicted 0 1023 67 1090 1 88 934 1022 Total Result 1111 1001 2112 Table 4.4: Confusion matrix GBC 24 4.4. MACHINE LEARNING MODELS CLASSIFICATION RESULTS Table 4.4 details the results of from gradient boost classifier, it represents the middle ground of performance, it correctly classified 934 tiles with palms (true positives) and 1023 without palms (true negatives). False positives tiles sum a total of 67 and false negatives 88. Reference SVM 0 1 Total Result Predicted 0 1090 27 1117 1 21 974 995 Total Result 1111 1001 2112 Table 4.5: Confusion matrix SVM Table 4.5 is focus on SVM, it classified correctly 974 from 1001 (True Positives) tiles with palm trees, in the case of tiles with no palm it classified correctly 1090 from 1111 (True Negatives). It classified 21 tiles as false negatives and 27 as false positives. The results presented in this section points to the SVM as being the best model, considering this tendency the image classification results will focus on the output provided by the SVM model. 4.4.1 SVM classification results The SVM model used a linear kernel and the cost parameter was set to "C=1000". The linear kernel is recommend for data sets that can be linearly separated, also is less complex compared to the radial base kernel, thus it has less parameters that need fine tuning. The cost parameter was obtained during the fine tuning process. In Table 4.6 a breakdown of the classification results per image, for example images 2376 and 2377 have no false negatives, this is in accordance to the description given in section 3.4, as both this images contain a low percentage of palms, 22% and 1% respectively. Images 2371 and 2378 each have one tile classified as false negative. The image with the most FN tiles is 2395 with 6 followed by 2389 with 5 and 2367 with 4, in these images palm represents at least 60% of the image, mixed with other features and land cover types such as forest and grasslands, dirt roads The case with more FP tiles correspond to image 2371 with 5 cases, this image is composed by mature palm plantation, grassland and forest. Images 2376 and 2389 have 4 cases each of FP, this images are contrasting, as the first one is mainly natural forest and palm only represents 22% of the image and the lather is mainly palm tree plantation mix with forest, grassland and infrastructure. Is important to notice that image 2389 presents the most tiles wrongly classified with a total of 11, on the contrary image 2377 has no wrongly classified tiles. These two images are very different from each other, the description provided in section 3.4 shows that 2389 contains, several land cover types, while image 2377 is mainly one land cover type corresponding to natural forest. 25 CHAPTER 4. RESULTS image Name TP TN FP FN 2361 171 19 0 2 2367 85 102 1 4 2371 109 77 5 1 2374 43 145 1 3 2376 9 179 4 0 2377 7 185 0 0 2378 27 162 2 1 2389 118 65 4 5 2392 170 19 0 3 2395 172 13 1 6 2402 63 124 3 2 Total 974 1090 21 27 Table 4.6: Classification results from SVM model for each image Adding to the performance analysis, Figure 4.3 shows the receiver operating characteristics (ROC) curve. This analysis provides an insight into how well the model separates data into tiles containing palm and no palm. The horizontal axis contains the values of the false positive rate and in the vertical axis the true positive rate, this values are closely linked to the specificity and sensitivity respectively. The curve has an upward trend and levels out, near the top of graph, where the values of true positive rate is close to 1. The curve produces a high value for the metric area under the curve, in this case 95 % of the area of the graph is under the curve, this means that the model is good a separating the classes. As a reference the red dotted line that transverse the graph represents a 50% probability of correctly classifying the data or random chance. The further away the blue curve is from the red dotted line means that the model is better classifier compared to random chance. 4.5 Image Classification Following the results from section 4.4, classification of the images was done based on the SVM model. Predictions were made on the data extracted in section 4.3, and compared to the labels manually given. A shape file with the classification results was created and used to aid visualization. This was done by stacking the shape file over the image file and categorizing the tiles by color. FP and FN tiles were given magenta and cyan respectively and a wider border to make then stand out. TP and TN negatives were given blue and red colors, less focused was given to this tiles as they were correctly classified. An example of the classification is presented in Figure 4.4, emphasis is given to this sub set of images as the contain most of miss classified tiles. The complete results for all the images are presented in Annex I. Item (a) is the classification results for image 2367, its a mix of palms and natural forest, it presents 4 cases of FP and 1 of FN. Item 26 4.5. IMAGE CLASSIFICATION Figure 4.3: SVM classifier ROC curve (b) corresponds to image 2371 which is a mix between palms and grasslands,it has the most cases of FN tiles from this sub set with 5 and only 1 case of FP. Image 2374 is showed in item (c) is similar in content to item (a) it presents 3 cases of FP and 1 of FN, item (d) is image 2378 is manly natural forest and a small patch of palms it has 2 cases of FN and 1 FP. Image 2389 corresponds to item (e) it has the most cases of miss classification, 4 FN and 5 FP, the image has a patch of natural forest palms, dirt roads and human made infrastructure. Item (f) is mainly palm trees and a bit of natural forest, it represents image 2395 and has 1 case of FN but the most FP cases from this sub set with 6. Item (g) is image 2402, it has a similar structure to item (a) and has 3 FN and 2 FP. In general features presented in this figure share the characteristics of of having several land cover types, meaning that the images contain transitions areas, where is not clearly Figure 4.5 presents examples of FP tiles, they were given label "0" but the model gave it a incorrect label of "1". In general this tiles can be found in transitions regions, for example item (a) is the transition zone between a patch of forest and palm plantation. Items (b) and (d) are grasslands but that have bush like plants that share resemblance with palm in developing stages, item (c) is forest land cover with several types of trees, it presents a complex structure that confused the classifier. To have a closer look and analyze tiles classified as FN Figure 4.6 was created. Examples in the figure show palms that were not recognized by the model, item (a) contains mature palms and a dirt road intersection, item (b) is showing some scatter palms not yet fully develop, item (c) are palms near the beginning of a patch of forest and item (e) are several mature palms and one small palm. In general this tiles show 27 CHAPTER 4. RESULTS (a) (b) (c) (d) (e) (f) (g) (h) (a) image 2367 (b) image 2371 (c) image 2374 (d) image 2378 (e) image 2389 (f) image 2395 (g) image 2402 (h) Legend Figure 4.4: Image classification results 28 4.5. IMAGE CLASSIFICATION (a) (b) (c) (d) Figure 4.5: Examples of tiles classified as False Positives (a) image 2389 (b) image 2371 (c) image 2374 (d) image 2389 palms mixed with other objects, close to transition zones, grainy images or with motion blur and palms with different development stages in the same tile. The results presented in Figure 4.5 and Figure 4.6 paint a general picture of where the model has problems with classification. In general terms this are areas with a lot of different objects such as palms with dirt roads or forest. Figure 4.5 is a close up to examples of images classified as false positives. The figure present some common characteristics as they are low quality images, where detecting palms can be difficult even for humans, also some palms are in developing stages and as such don’t have the characteristic mature palm shape, other examples include isolated palms and transitions zones where the land cover changes from plantation to something different. A brief description of the tiles is presented next: (a), image 2389, there’s a small bush that resembles a palm, (b) image 2371, grassland with and bushes, (c) image 2374, several trees forming a complex structure and (d) image 2389, the image is blurry and has plants that are difficult to distinguish or confidently classify as palms. Figure 4.6 29 CHAPTER 4. RESULTS share some of the same characteristics, errors where located near transitions zones, near the boundaries of the plantation or tiles with different land covers. It was also noted that tiles where there is a mix of palms in different development stages are problematic, palms in developing stage have a tone of color that makes then similar to bushes, thus making them difficult to detect even to the human eye. The tiles presented in the figure belong to (a) image 2392, it has mature palms and a dirt road, (b) image 2389, small palms and grassland,(c) image 2374, small palms next to forest and (d) image 2395, mature palms mixed with small palms. (a) (b) (c) (d) Figure 4.6: Examples of tiles classified as False Negatives (a) image 2392 (b) image 2389 (c) image 2374 (d) image 2395 30 BIBLIOGRAPHIC REFERENCES Hubel, D. H. and T. N. Wiesel (1962). “Receptive fields, binocular interaction and functional architecture in the cat’s visual cortex.” In: The Journal of physiology 160.1, pp. 106–154. Hung, C., Z. Xu, and S. Sukkarieh (2014). “Feature learning based approach for weed classification using high resolution aerial images from a digital camera mounted on a UAV.” In: Remote Sensing 6.12, pp. 12037–12054. Iizuka, K., M. Itoh, S. Shiodera, T. Matsubara, M. Dohar, and K. Watanabe (2018). “Advantages of unmanned aerial vehicle (UAV) photogrammetry for landscape analysis compared with satellite data: A case study of postmining sites in Indonesia.” In: Cogent Geoscience 4.1, pp. 1–15. International Civil Aviation Organization (2011). Unmanned Aircraft Systems (UAS). 1, pp. 1–54. Karpathy, A. (2016). Lecture notes Convolutional Neural Networks for Visual Recognition. Krizhevsky, A., I. Sutskever, and G. E. Hinton (2012). “ImageNet Classification with Deep Convolutional Neural Networks.” In: Advances in Neural Information Processing Systems 25. Ed. by F. Pereira, C. J. C. Burges, L. Bottou, and K. Q. Weinberger. Curran Associates, Inc., pp. 1097–1105. url:http://papers.nips.cc/paper/4824- imagenet-classification-with-deep-convolutional-neural-networks.pdf. Lary, D. J., A. H. Alavi, A. H. Gandomi, and A. L. Walker (2016). “Machine learning in geosciences and remote sensing.” In: Geoscience Frontiers 7.1, pp. 3–10. Lary, D. J. (2010). “Artificial intelligence in geoscience and remote sensing.” In: Geoscience and Remote Sensing New Achievements. InTech. Lawrence, R. L. and C. J. Moran (2015). “The AmericaView classification methods accuracy comparison project: A rigorous approach for model selection.” In: LeCun, Y., L. Bottou, Y. Bengio, and P. Haffner (1998). “Gradient-based learning applied to document recognition.” In: Proceedings of the IEEE 86.11, pp. 2278–2324. Li, W., H. Fu, L. Yu, and A. Cracknell (2017). “Deep Learning Based Oil Palm Tree Detection and Counting for High-Resolution Remote Sensing Images.” In: Remote Sensing 9.1. issn: 2072-4292. doi:10.3390/rs9010022.url:http://www.mdpi. com/2072-4292/9/1/22. Lillesand, T., R. W. Kiefer, and J. Chipman (2014). Remote sensing and image interpretation. John Wiley & Sons. Long, J., E. Shelhamer, and T. Darrell (2015). “Fully convolutional networks for semantic segmentation.” In: Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3431–3440. Luna, I. and A. Lobo (2016). “Mapping crop planting quality in sugarcane from UAV imagery: a pilot study in Nicaragua.” In: Remote Sensing 8.6, p. 500. Marmanis, D., M. Datcu, T. Esch, and U. Stilla (2016). “Deep learning earth observation classification using ImageNet pretrained networks.” In: IEEE Geoscience and Remote Sensing Letters 13.1, pp. 105–109. 37 BIBLIOGRAPHIC REFERENCES Masini, N., F. Gizzi, M. Biscione, V. Fundone, M. Sedile, M. Sileo, A. Pecci, B. Lacovara, and R. Lasaponara (2018). “Medieval Archaeology Under the Canopy with LiDAR. The (Re) Discovery of a Medieval Fortified Settlement in Southern Italy.” In: Remote Sensing 10.10, p. 1598. Maxwell, A. E., T. A. Warner, and F. Fang (2018). “Implementation of machine-learning classification in remote sensing: An applied review.” In: International journal of remote sensing 39.9, pp. 2784–2817. Megahed, Y., P. Cabral, J. Silva, and M. Caetano (2015). “Land cover mapping analysis and urban growth modelling using remote sensing techniques in greater Cairo region—Egypt.” In: ISPRS International Journal of Geo-Information 4.3, pp. 1750– 1769. Mesas-Carrascosa, F. J., I. C. Rumbao, J. A. B. Berrocal, and A. G.-F. Porras (2014). “Positional quality assessment of orthophotos obtained from sensors onboard multirotor UAV platforms.” In: Sensors 14.12, pp. 22394–22407. Mikita, T., P. Janata, and P. Surov ` y (2016). “Forest stand inventory based on combined aerial and terrestrial close-range photogrammetry.” In: Forests 7.8, p. 165. Mountrakis, G., J. Im, and C. Ogole (2011). “Support vector machines in remote sensing: A review.” In: ISPRS Journal of Photogrammetry and Remote Sensing 66.3, pp. 247–259. Navalgund, R. R., V Jayaraman, and P. Roy (2007). “Remote sensing applications: An overview.” In: Current Science (00113891) 93.12. Nogueira, K., O. A. Penatti, and J. A. dos Santos (2017). “Towards better exploiting convolutional neural networks for remote sensing scene classification.” In: Pattern Recognition 61, pp. 539–556. Othman, E., Y. Bazi, N. Alajlan, H. Alhichri, and F. Melgani (2016). “Using convolutional features and a sparse autoencoder for land-use scene classification.” In: International Journal of Remote Sensing 37.10, pp. 2149–2167. Pajares, G. (2015). “Overview and current status of remote sensing applications based on unmanned aerial vehicles (UAVs).” In: Photogrammetric Engineering & Remote Sensing 81.4, pp. 281–330. Pal, M. and P. M. Mather (2003). “An assessment of the effectiveness of decision tree methods for land cover classification.” In: Remote sensing of environment 86.4, pp. 554–565. Pedregosa, F., G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and E. Duchesnay (2011). “Scikit-learn: Machine Learning in Python.” In: Journal of Machine Learning Research 12, pp. 2825–2830. Penatti, O. A. B., K. Nogueira, and J. A. dos Santos (2015). “Do Deep Features Generalize From Everyday Objects to Remote Sensing and Aerial Scenes Domains?” In: The IEEE Conference on Computer Vision and Pattern Recognition (CVPR) Workshops. 38 BIBLIOGRAPHIC REFERENCES Petropoulos, G. P., C. Kalaitzidis, and K. P. Vadrevu (2012). “Support vector machines and object-based classification for obtaining land-use/cover cartography from Hyperion hyperspectral imagery.” In: Computers & Geosciences 41, pp. 99–107. Pflanz, M., H. Nordmeyer, and M. Schirrmann (2018). “Weed Mapping with UAS Imagery and a Bag of Visual Words Based Image Classifier.” In: Remote Sensing 10.10, p. 1530. Ren, S., K. He, R. Girshick, and J. Sun (2015). “Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks.” In: Advances in Neural Information Processing Systems 28. Ed. by C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett. Curran Associates, Inc., pp. 91–99. url:http://papers.nips. cc/paper/5638-faster-r-cnn-towards-real-time-object-detection-with-region- proposal-networks.pdf. Richter, G. M., F. Agostini, A. Barker, D. Costomiris, and A. Qi (2016). “Assessing onfarm productivity of Miscanthus crops by combining soil mapping, yield modelling and remote sensing.” In: Biomass and Bioenergy 85, pp. 252–261. Rogan, J., J. Franklin, D. Stow, J. Miller, C. Woodcock, and D. Roberts (2008). “Mapping land-cover modifications over large areas: A comparison of machine learning algorithms.” In: Remote Sensing of Environment 112.5, pp. 2272–2283. Russakovsky, O., J. Deng, H. Su, J. Krause, S. Satheesh, S. Ma, Z. Huang, A. Karpathy, A. Khosla, M. Bernstein, et al. (2015). “Imagenet large scale visual recognition challenge.” In: International Journal of Computer Vision 115.3, pp. 211–252. Salamí, E., C. Barrado, and E. Pastor (2014). “UAV flight experiments applied to the remote sensing of vegetated areas.” In: Remote Sensing 6.11, pp. 11051–11081. Salberg, A.-B. (2015). “Detection of seals in remote sensing images using features extracted from deep convolutional neural networks.” In: Geoscience and Remote Sensing Symposium (IGARSS), 2015 IEEE International. IEEE, pp. 1893–1896. Sermanet, P., D. Eigen, X. Zhang, M. Mathieu, R. Fergus, and Y. LeCun (2013). “Overfeat: Integrated recognition, localization and detection using convolutional networks.” In: arXiv preprint arXiv:1312.6229. Sharif Razavian, A., H. Azizpour, J. Sullivan, and S. Carlsson (2014). “CNN features off-the-shelf: an astounding baseline for recognition.” In: Proceedings of the IEEE conference on computer vision and pattern recognition workshops, pp. 806–813. Silva, J. D.B. F. da (2016). “Contributions for the improvement of specific class mapping.” Doctoral dissertation. Universidade Nova de Lisboa Information Management School. Simonyan, K. and A. Zisserman (2014). Very Deep Convolutional Networks for Large- Scale Image Recognition. arXiv: 1409.1556 [cs.CV]. Sumathi, S, S. Chai, and A. Mohamed (2008). “Utilization of oil palm as a source of renewable energy in Malaysia.” In: Renewable and Sustainable Energy Reviews 12.9, pp. 2404–2421. 39 BIBLIOGRAPHIC REFERENCES Szegedy, C., W. Liu, Y. Jia, P. Sermanet, S. Reed, D. Anguelov, D. Erhan, V. Vanhoucke, and A. Rabinovich (2015). “Going Deeper With Convolutions.” In: The IEEE Conference on Computer Vision and Pattern Recognition (CVPR). Tianyang, D., Z. Jian, G. Sibin, S. Ying, and F. Jing (2018). “Single-Tree Detection in High-Resolution Remote-Sensing Images Based on a Cascade Neural Network.” In: ISPRS International Journal of Geo-Information 7.9, p. 367. Villa, T. F., F. Gonzalez, B. Miljievic, Z. D. Ristovski, and L. Morawska (2016). “An overview of small unmanned aerial vehicles for air quality measurements: Present applications and future prospectives.” In: Sensors 16.7, p. 1072. Wang, R., S. Zhang, L. Pu, J. Yang, C. Yang, J. Chen, C. Guan, Q. Wang, D. Chen, B. Fu, et al. (2016). “Gully erosion mapping and monitoring at multiple scales based on multi-source remote sensing data of the Sancha River Catchment, Northeast China.” In: ISPRS International Journal of Geo-Information 5.11, p. 200. Waske, B., J. A. Benediktsson, and J. R. Sveinsson (2009). “Classifying remote sensing data with support vector machines and imbalanced training data.” In: International Workshop on Multiple Classifier Systems. Springer, pp. 375–384. Watts, A. C., V. G. Ambrosia, and E. A. Hinkley (2012). “Unmanned aircraft systems in remote sensing and scientific research: Classification and considerations of use.” In: Remote Sensing 4.6, pp. 1671–1692. Yuan, Y. and X. Hu (2016). “Random forest and objected-based classification for forest pest extraction from UAV aerial imagery.” In: The International Archives of Photogrammetry, Remote Sensing and Spatial Information Sciences 41, p. 1093. Zecha, C., J Link, and W Claupein (2013). “Mobile sensor platforms: Categorisation and research applications in precision farming.” In: Journal of Sensors and Sensor Systems 2.1, pp. 51–72. Zeiler, M. D. and R. Fergus (2013). Stochastic Pooling for Regularization of Deep Convolutional Neural Networks. arXiv: 1301.3557 [cs.LG]. Zeiler, M. D. and R. Fergus (2014). “Visualizing and understanding convolutional networks.” In: European conference on computer vision. Springer, pp. 818–833. Zhang, L., L. Zhang, and B. Du (2016). “Deep learning for remote sensing data: A technical tutorial on the state of the art.” In: IEEE Geoscience and Remote Sensing Magazine 4.2, pp. 22–40. Zhang, L., Z. Shi, and J. Wu (2015). “A hierarchical oil tank detector with deep surrounding features for high-resolution optical satellite imagery.” In: IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing 8.10, pp. 4895– 4909. Zhou, P., G. Cheng, Z. Liu, S. Bu, and X. Hu (2016). “Weakly supervised target detection in remote sensing images based on transferred deep features and negative bootstrapping.” In: Multidimensional Systems and Signal Processing 27.4, pp. 925– 944. 40 BIBLIOGRAPHIC REFERENCES Zhu, X. X., D. Tuia, L. Mou, G.-S. Xia, L. Zhang, F. Xu, and F. Fraundorfer (2017). “Deep learning in remote sensing: a comprehensive review and list of resources.” In: IEEE Geoscience and Remote Sensing Magazine 5.4, pp. 8–36. Zortea, M., M. Nery, B. Ruga, L. B. Carvalho, and A. C. Bastos (2018). “Oil-Palm Tree Detection in Aerial Images Combining Deep Learning Classifiers.” In: IGARSS 2018-2018 IEEE International Geoscience and Remote Sensing Symposium. IEEE, pp. 657–660. 41 A n n e x I Annex This section contains information and results that were not presented in the main text but are complementary to the results I.1 Example of features extracted using OverFeat Only a portion of the features are presented since each feature has 4096 variables. The first number indicates the label, followed by the values of the features. • Example of feature extracted with OverFeat for a tile label as "1" 1 -0.977721 -0.254899 -0.350732 -2.20161 0.167981 0.032499 -1.24036 -0.368897 0.0988937 -0.26209 -0.931044 0.121792 -0.182609 -1.45426 -1.85707 -0.254737 -1.17318 -0.861829 -2.39979 -2.0163 -0.294961 • Example of feature extracted with OverFeat for a tile label as "0" 0 -2.67815 -1.83985 -0.732881 -3.21898 -1.22884 -1.39543 -2.83617 -1.52186 -2.04997 -0.404118 -1.40013 -1.29628 -0.978714 -2.79572 -0.372814 -1.82225 -1.96431 -1.44416 -3.20762 -2.65322 -0.602951 -2.64013 I.2 Image classification results Image classification results from SVM model, all the image are presented. 42 I.3. ROC GRAPHS Figure I.1: Image classification results (a) (b) (c) (d) (e) (f) (g) (h) (i) (j) (k) (a) Image 2389 (b) Image 2402 (c) Image 2395 (d) Image 2367 (e) Image 2361 (f) Image 2371 (g) Image 2374 (h) Image 2376 (i) Image 2377 (j) Image 2378 (k) Image 2392 I.3 ROC graphs ROC and area under the curve graphs for each model. 43 ANNEX I. ANNEX Figure I.2: ROC results for ML models (a) (b) (c) (d) (c) (d) (a) DT (b) LR (c) SVM (d) KNN (e) RF (e) GBC 44 I.4. CONFUSION MATRIX I.4 Confusion matrix Confusion matrices for the classifiers used in the study Table I.1: Confusion matrix SVM Reference SVM 0 1 Total Result Predicted 0 978 144 1117 1 133 857 995 Total Result 1111 1001 2112 Table I.2: Confusion matrix DT Reference DT 0 1 Total Result Predicted 0 978 144 1122 1 133 857 990 Total Result 1111 1001 2112 Table I.3: Confusion matrix LR Reference LR 0 1 Total Result Predicted 0 1061 37 1098 1 50 964 1014 Total Result 1111 1001 2112 Table I.4: Confusion matrix GBC Reference GBC 0 1 Total Result Predicted 0 1023 67 1090 1 88 934 1022 Total Result 1111 1001 2112 45 ANNEX I. ANNEX Table I.5: Confusion matrix KNN Reference KNN 0 1 Total Result Predicted 0 1030 42 1072 1 81 959 1040 Total Result 1111 1001 2112 Table I.6: Confusion matrix RF Reference RF 0 1 Total Result Predicted 0 963 53 1016 1 148 948 1096 Total Result 1111 1001 2112 46 II.4. FINE TUNING MACHINE LEARNING MODELS 13 y = data[:, 0] 14 X = data[:, 1:] 15 16 kernels = [’linear’,’rbf’,’poly’] 17 for kernel in kernels: 18 svc = svm.SVC(kernel=kernel).fit(X,y) 19 plotSVC(’kernel=’ +str(kernel)) 20 21 def plotSVC(title): 22 #create a mesh to plot in‘ 23 x_min, x_max = X[:,0].min() −1, X[:,0].max() + 1 24 y_min, y_max = X[:,1].min() −1, X[:,1].max() + 1 25 h = (x_max / x_min)/100 26 xx,yy = np.meshgrid(np.arange(x_min, x_max, h), np.arange(y_min, y_max, h)) 27 plt.subplot(1, 1, 1) 28 Z = svc.predict(np.c_[xx.ravel(), yy.ravel()]) 29 Z = Z.reshape(xx.shape) 30 plt.contourf(xx, yy, z, cmap=plt.cm.Paired, alpha=0.8) 31 plt.scatter(X[:, 1:], c=y, cmap=plt.cm.Paired) 32 plt.xlabel(’vector’) 33 plt.ylabel(’label’) 34 plt.xlim(xx.min(), xx.max()) 35 plt.title(title) 36 plt.show() Listing II.5: SVM Fine Tuning 53 dateyear UNDEFINED title UNDEFINED authorshortname UNDEFINED PhD