scieee AI-readable full text Open interactive document viewer

Deforestation monitoring based on machine learning techniques

Manresa Román, María-Isabel

Abstract

Machine Learning (ML) represents one of the most dynamical fields in contemporary technology. In conjunction with remote sensing for Earth observation data, it enables groundbreaking advancements in areas like environmental monitoring and disaster response, revolutionizing the analysis and use of this data. This project has been carried out at UPC and Tracks CO2, a startup company specialized in Artificial Intelligence (AI) and using remote sensing for Earth observation data to monitor forests. In this case, the project proposal is to build a change detection system that focuses on classifying types of changes in forests during different instances of time with the final objective of monitoring deforestation. For this project, we have built the databases, and trained random forest, XGBoost and Multilayer Perceptron \ac{MLP} models to reach a 0,486 accuracy in validation and test when using specific classes. The accuracy goes up to 0,705 when merging classes to detect Forest growth or forest shrinkage.

Full text

Deforestation monitoring based on machine learning techniques Master’s Thesis submitted to the Faculty of the Escola T`ecnica d’Enginyeria de Telecomunicaci´o de Barcelona Universitat Polit`ecnica de Catalunya by Mar´ıa Isabel Manresa Rom´an In partial fulfillment of the requirements for the Master’s degree in Advanced Telecommunication Technologies Advisors: Javier Ruiz Hidalgo, Carlos L´opez Mart´ınez, Teresa Dom`enech Abell´o Barcelona, 17/05/2024 Contents List of Figures 4 List of Tables 4 1 Introduction 10 1.1 Project Overview and Statement of purpose . . . . . . . . . . . . . . . . . 10 1.2 Objectives.................................... 11 1.3 Workplan .................................... 11 2 State of the Art and Fundamentals 14 2.1 ForestTypes .................................. 14 2.2 SatelliteData.................................. 15 2.2.1 Sentinel-2 ................................ 15 2.3 Models...................................... 17 2.3.1 RandomForest ............................. 17 2.3.2 XGBoost................................. 18 2.3.3 MLP................................... 19 2.4 ChangeDetection................................ 20 3 Methodology 23 3.1 Database..................................... 23 3.1.1 GroundTruth.............................. 23 3.1.2 Regions of Interest . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 3.1.3 Database Construction . . . . . . . . . . . . . . . . . . . . . . . . . 27 3.2 Models...................................... 29 3.2.1 RandomForest ............................. 30 3.2.2 XGBoost................................. 32 3.2.3 MLP................................... 32 4 Results 36 4.1 Database..................................... 36 4.2 RandomForest ................................. 40 4.3 XGBoost..................................... 41 4.4 MLP....................................... 42 4.5 Summary .................................... 46 5 Budget 48 5.1 Material..................................... 48 5.2 Salaries ..................................... 48 5.3 TotalCosts ................................... 48 6 Environmental Impact 50 6.1 EnvironmentalImpact ............................. 50 6.2 EconomicImpact................................ 50 6.3 SocialImpact .................................. 50 2 7 Conclusions 52 8 Future Work 52 References 54 Appendices 56 A Work Plan 56 3 List of Figures 1 Inputandoutputscheme............................ 10 2 Gantt(1) .................................... 11 3 Gantt(2) .................................... 12 4 Gantt(3) .................................... 12 5 Gantt(4) .................................... 12 6 Gantt(5) .................................... 12 7 Gantt(6) .................................... 13 8 Foresttypes................................... 14 9 Architecture of a random forest model. . . . . . . . . . . . . . . . . . . . . 18 10 ForestCoverChangemap ........................... 21 11 Spatial and temporal availability of cloud free optical observations . . . . . 21 12 Methodologyworkflow ............................. 23 13 Tasks definition and classes . . . . . . . . . . . . . . . . . . . . . . . . . . 25 14 Workflow of the ground truth . . . . . . . . . . . . . . . . . . . . . . . . . 25 15 Datatimeline .................................. 26 16 Database construction workflow . . . . . . . . . . . . . . . . . . . . . . . . 27 17 Incomplete Sentinel-2 Image . . . . . . . . . . . . . . . . . . . . . . . . . . 27 18 Example of the georeferenciation of a band . . . . . . . . . . . . . . . . . . 28 19 FinalMLParchitecture............................. 34 20 Regionsofinterest ............................... 36 21 Justification of the discard of Bolivia . . . . . . . . . . . . . . . . . . . . . 37 22 FNF maps of the regions of interest . . . . . . . . . . . . . . . . . . . . . . 38 23 Unbalancedhistograms............................. 39 24 Learning curves best MLP . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 25 Learning curves high capacity MLP . . . . . . . . . . . . . . . . . . . . . . 45 Listings List of Tables 1 List of Sentinel-2 Bands with Spectral Region, Spatial Resolution and CentralWavelength. ................................ 16 2 Description of Level-1C and Level-2A Sentinel-2 products [1]. . . . . . . . . 17 3 Classes of the Forest-Non Forest maps [2]. . . . . . . . . . . . . . . . . . . 24 4 Classes of the ground truth of the change detection model with their analysis. 24 5 Bands and their order for each product. . . . . . . . . . . . . . . . . . . . . 29 6 Parameters used for training Random Forest models. . . . . . . . . . . . . 31 7 Parameters used for training XGBoost models. . . . . . . . . . . . . . . . . 32 8 Examples of Hidden sizes and Batch sizes for 3 hidden layer MLP experiments. 33 9 Final number of Sentinel-2 products for the selected regions of interest. . . 38 10 Confusion Matrix generated using Random Forest with the Complete Database ofthetropicalregion............................... 40 4 11 Confusion Matrix using best values for XGBoost model using the tropical Change class Database astraining. ...................... 41 12 Inferencetestsresults. ............................. 42 13 Reinterpretation of the Confusion Matrix of XGBoost in Madagascar by joining forest growth and forest shrinkage classes . . . . . . . . . . . . . . . 42 14 Confusion Matrix using best values for MLP model using tropical change dataastraining.................................. 45 15 Inferencetestsresults. ............................. 46 16 Reinterpretation of the Confusion Matrix of MLP in Madagascar joining forest growth and forest shrinkage classes. . . . . . . . . . . . . . . . . . . 46 17 Summary of the tasks: Change detection,No-change classification and Binary change detection where only Random Forest was used. . . . . . . . . 46 18 Summary of the results of all the models for the Change classification task. 47 19 Summary of the results obtained when merging classes to obtain Forest growth and Forest shrinkage. . . . . . . . . . . . . . . . . . . . . . . . . . . 47 20 Table of the Material costs . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 21 TableoftheSalaries .............................. 48 22 TableofTotalcosts............................... 49 23 WP1....................................... 56 24 WP2....................................... 57 25 WP3....................................... 58 26 WP4....................................... 58 27 WP5....................................... 59 28 WP6....................................... 59 30 WP8....................................... 60 29 WP7....................................... 60 5 Abbreviations AI Artificial Intelligence ALOS Advanced Land Observing Satellite ANN Artificial Neural Network ESA European Space Agency EVI Enhanced Vegetation Index FNF Forest/Non-Forest Map ML Machine Learning MLP MultiLayer Perceptron MSE Mean Square error MSI MultiSpectral Instrument NASA National Aeronautics and Space Administration NBR Normalized Burn Ratio NDMI Normalized Difference Moisture Index NDVI Normalized Difference Vegetation Index SR Surface Reflectance SWIR Short-wave Infra-Red TOA Top Of Atmosphere UTM Universal Transverse Mercator VNIR Visible and Near Infra-Red XGBoost eXtreme Gradient Boosting 6 Abstract Machine Learning (ML) represents one of the most dynamical fields in contemporary technology. In conjunction with remote sensing for Earth observation data, it enables groundbreaking advancements in areas like environmental monitoring and disaster response, revolutionizing the analysis and use of this data. This project has been carried out at UPC and Tracks CO2, a startup company specialized in Artificial Intelligence AI and using remote sensing for Earth observation data to monitor forests. In this case, the project proposal is to build a change detection system that focuses on classifying types of changes in forests during different instances of time with the final objective of monitoring deforestation. For this project, we have built the databases, and trained random forest, XGBoost and Multilayer Perceptron MLP models to reach a 0,486 accuracy in validation and test when using specific classes. The accuracy goes up to 0,705 when merging classes to detect Forest growth or forest shrinkage. 7 Acknowledgements First of all, I would like to thank Javier Ruiz Hidalgo and Carlos L´opez Mart´ınez, for their supervision and help during the whole project and its development. Also, I would like to thank Teresa Dom`enech as well as all the Tracks CO2 team for their help and support during the months I have been working on this project. To my parents, for their unconditional support and for believing in me. And finally, to my partner, for the patience and for being by my side despite the stress and difficulties. 8 Revision history and approval record Revision Date Purpose 0 06/01/2024 Document creation 1 13/05/2024 Document revision DOCUMENT DISTRIBUTION LIST Name e-mail Mar´ıa Isabel Manresa Roman [email protected] Javier Ruiz Hidalgo [email protected] Carlos L´opez Mart´ınez [email protected] Teresa Dom`enech Abell´o [email protected] Written by: Reviewed and approved by: Date 12/05/2024 Date 16/05/2024 Name Mar´ıa Isabel Manresa Rom´an Name Javier Ruiz Hidalgo Position Project Author Position Project Supervisor 9 The MultiSpectral Instrument (MSI) works passively, by collecting sunlight reflected from the Earth and new data is acquired by the instrument as the satellite moves along its orbital path. The incoming light beam is split via a beam-splitter and focused onto two separate focal plane assemblies within the instrument [7]; one for Visible and Near-Infra- Red (VNIR) bands and the other one for Short Wave Infra-Red (SWIR) bands. The spatial resolutions are four bands at 10 meters, six bands at 20 meters and three bands at 60 meters spatial resolution, all shown in Table 1. The spectral separation of each band into individual wavelengths is accomplished by stripe filters mounted on top of the detectors. Band Spectral Region Spatial Resolution Central Wavelength B1 Aerosol 60 m 443 nm B2 Blue 10 m 490 nm B3 Green 10 m 560 nm B4 Red 10 m 665 nm B5 VNIR 20 m 705 nm B6 VNIR 20 m 740 nm B7 VNIR 20 m 783 nm B8 Near Infra-Red 10 m 842 nm B8a VNIR 20 m 865 nm B9 Water Vapour 60 m 940 nm B10 Cirrus detection 60 m 1375 nm B11 SWIR1 20 m 1610 nm B12 SWIR2 20 m 2190 nm Table 1: List of Sentinel-2 Bands with Spectral Region, Spatial Resolution and Central Wavelength. Also there is the possibility to obtain different spectral indices such as the Normalized Difference Vegetation Index (NDVI), the Enhanced Vegetation Index (EVI), the Normalized Burn Ratio (NBR), or the Normalized Difference Moisture Index (NDMI), among others. They are easily obtained for each pixel from the combination of different bands. [8] The data is organised in products which are a processed and packaged dataset derived from satellite observations. It includes data from multiple spectral bands and typically covers a specific geographic area and time period. Products are a compilation of elementary granules of fixed size, along with a single orbit. A granule is the minimum indivisible partition of a product containing all possible spectral bands [9]. Earth is subdivided on a predefined set of tiles, defined in UTM/WGS84 projection. The subdivision in tiles is done using a 100 km step. However, each tile has a surface of 110x110km²in order to provide large overlap with the neighbouring. Orthorectified products follow this predefined set of tiles and have been geometrically corrected to remove distortions caused, for example, by the sensor angle or the Earth’s curvature. This is done 16 to ensure that the scale is uniform and the image can be accurately overlaid with maps or other geographic data. There are different types of processing levels, for orthorectified products, Level-1C and Level-2A, that are made available to Users. Level-1C products provide Top Of Atmosphere (TOA) reflectance images and additionally they include quality information like Cloud Masks. The Level-2A products provide atmospherically corrected Surface Reflectance (SR) products from Level-1C products. This can be seen in Table 2. Type Code Description Users Production & Distribution Level-1B Top-Of-Atmosphere radiances in sensor geometry Expert Users Systematic generation and online distribution Level-1C Top-Of-Atmosphere reflectances in cartographic geometry User Product Level-2A Atmospherically corrected Surface Reflectances in cartographic geometry All Users Systematic generation and online distribution Table 2: Description of Level-1C and Level-2A Sentinel-2 products [1]. 2.3 Models In this part there is a brief explanation of three well known Machine Learning models such as Random Forest, XGBoost and MLP. 2.3.1 Random Forest Random forests are a combination of tree predictors such that each tree depends on the values of a random vector sampled independently and with the same distribution for all trees in the forest [10]. This algorithm is a powerful machine learning tool renowned for its versatility in both classification and regression tasks. It operates by creating an ensemble of decision trees during training. Decision trees start with a basic query, from there, more queries are generated. These queries make up the decision nodes in the tree, acting as a means to split the data. Each query helps an individual sample to arrive at a final decision, which would be denoted by the leaf node. Observations that fit the criteria will follow the “True” branch and those that don’t will follow the alternate path, since they are boolean. Decision trees seek to find the best split to subset the data. Metrics, such as Gini impurity, information gain, or mean square error (MSE), can be used to evaluate the quality of the split. A single decision tree may overfit the data and it is known that significant improvements in classification accuracy have resulted from growing an ensemble of trees and letting them 17 vote for the most popular class. In order to grow these ensembles, often random vectors are generated to govern the growth of each tree in the ensemble. Random Forest mitigates this risk by constructing multiple trees with different subsets of the training data and features and it utilizes both bagging and feature randomness to create an uncorrelated forest of decision trees. Each tree ”votes” for the predicted class (in classification) or provides a prediction (in regression), and the final output is determined by aggregating these individual predictions. This is shown in Figure 9. Figure 9: Architecture of the random forest model [11]. To determine the number of parameters of the model and to avoid overfitting, there are several hyperparameters that can be tuned such as the n estimators, max depth, min samples split and min samples leaf. Here are their definitions according to Scikit Learn [12]: •n estimators: The number of trees in the forest. •max depth: The maximum depth of the tree. If None, then nodes are expanded until all leaves are pure or until all leaves contain less than min samples split samples. •min samples split: The minimum number of samples required to split an internal node. •min samples leaf: The minimum number of samples required to be at a leaf node. A split point at any depth will only be considered if it leaves at least min samples leaf training samples in each of the left and right branches. This may have the effect of smoothing the model, especially in regression. 2.3.2 XGBoost XGBoost, short for eXtreme Gradient Boosting, is another popular Machine Learning algorithm for tree boosting. The most important factor behind the success of XGBoost is its scalability in all scenarios.[13]. Like Random Forest, is widely used for both regression and classification tasks and it operates by constructing an ensemble of decision trees, but there are key differences in how they builds and combine these trees. 18 It is a highly efficient and flexible gradient boosting algorithm that has gained popularity due to its speed and performance, especially in structured or tabular data. XGBoost builds trees sequentially, with each new tree corrects errors made by the previous ones, incrementally improving the predictions of the model. It incorporates a number of optimizations in model training and handling of data, including built-in regularization to prevent overfitting, and advanced features like handling missing values and pruning of trees. To determine the number of parameters of the model and to avoid overfitting, there are several hyperparameters that can be tuned such as the n estimators, learning rate, max depth, min child weight, colsample bytree and gamma. Here are their definitions according to XGBoost’s python package [14]: •n estimators: Number of gradient boosted trees. Equivalent to number of boosting rounds. •learning rate: Boosting learning rate. •max depth: Maximum tree depth for base learners. •min child weight: Minimum sum of instance weight (hessian) needed in a child. •colsample bytree: Subsample ratio of columns when constructing each tree. •gamma: (min split loss) Minimum loss reduction required to make a further partition on a leaf node of the tree. 2.3.3 MLP Multi layer perceptron (MLP) is a class of feed forward neural network where the weight adjustment training is done via backpropagation. It consists of three types of layers: the input layer, output layer and hidden layers [15]. The input layer receives the input signal to be processed and the required task such as prediction and classification that the output layer will have to perform, using forward propagation, it propagates the data forward to the output layer. An arbitrary number of hidden layers are placed in between the input and output layer which are the true computational engine of the MLP. Based on the output, it calculates the error, which will have to be minimized. Then, it backpropagates the error through the network and updates the model. In classification, the output layer will give a probability distribution over multiple classes, the higher one will be the output decided class. This previous steps must be repited for every epoch to learn the weights of the solution. In this case, the hyperparameters that can be tuned to avoid overfitting are: •nhidden layers: Number of hidden layers that the model will have. •hidden size: The hidden size of every hidden layer. This parameter must be set up by every hidden layer. 19 •num epochs: Number of epochs, or complete passes through the entire training dataset, that the MLP will undergo during the training phase. •batch size: determines the number of samples used in each mini-batch during the training phase of the MLP. It affects the speed and stability of training. •test batch size: sets the number of samples that will be used in each mini-batch during the validation and test phase of the MLP. •learning rate: controls the step size at which the model’s parameters are updated during training. 2.4 Change Detection A change detection model, tracks changes over time. In this project it is applied to optical remote sensing for Earth observation data to monitor the growth or deforestation of forests. In recent years, there has been an increase on the use of remote sensing data for Earth observation to track deforestation, since without it, estimating deforestation would be a major challenge, in particular for large and remote regions. Satellite remote sensing combined with ground measurements plays a key role in determining loss of forest cover [16]. Before the launch of Sentinel-2 in 2017, Landsat [17] data is commonly used due to their availability and reliability. These images provided valuable data for various applications. Additionally, spectral indices like the (NDVI) were used to extract specific vegetationrelated information from these images [18]. Also, the ground truth data is a challenge on its own. Several space agencies have developed global maps that offer global coverage in different topics, but at most they are updated every year making the temporal resolution too large for some applications. There are other forms of ground truth or ground measurements, but again the temporal resolution is not small enough or they are not available worldwide. That is why many studies use manual human labeled satellite images to train and validate models [19]. When exploring global datasets of forest the High-Resolution Global Maps of 21st-Century Forest Cover Change always stand out. These are global maps that are updated every year at a 30-meter spatial resolution that uses Landsat data at a 30-meter spatial resolution to characterize forest extent, loss, and gain from 2000 to 2012 [20]. An example of one of this maps is shown in Figure 10: 20 Figure 10: Forest Cover Change map that contains the information of the Forest Loss from 2000-2023. However, deforestation monitoring in the tropics can be hindered by high cloud coverage [21], particularly for those who rely only on optical satellites, shown in Figure 11. To mitigate this issue, many applications resort to a combination of data sources, incorporating radar data such as ALOS Palsar-2 alongside optical imagery among others [16] [18]. Figure 11: Spatial and temporal availability of Cloud-free Optical Observations in the tropics to Monitor Deforestation [21]. Red dots represent low data availability, green represent locations with typical data availability, and blue dots represent locations with high data availability. Another way to work with high cloud coverage is by doing a segmentation of the clouds and their shadows. In this approach [19] they built a two-step classifier. The first one is a classifier of 8 classes: Forest, Green vegetation, Dry vegetation, Soil, Water, Shadows, Thin clouds, Opaque cloud. And the second one is a boolean classifier of bare soil/dry 21 vegetation and any green vegetation. For this classifiers, they used two Artificial Neural Networks (ANN). In ANN algorithms, “neurons” refer to interconnected computational elements organized in successive layers, while activation functions refer to mathematical equations determining the output of a given layer of neurons. With this approach they reached an overall accuracy of 0,728 for the clouds classifier and the vegetation and bare soil/dry vegetation classifier achieved an overall accuracy of 0,831. Finally, to conclude this section, there are also approaches where much simpler methodologies have been used, employing satellite images to monitor deforestation but without using Machine Learning techniques. In these cases, the focus is not on debating the goodness of the methodology or validating it, but rather on discussing deforestation trends and the numerical outcomes. For instance, using a segmentator based on a threshold on NDVI and a comparison of different temporal instances [22]. 22 3 Methodology A general outline of the project is presented in Figure 12. It is separated in two main blocks: The Database block and the Models block. Figure 12: General outline of the project. In the Database there will be a Ground Truth and the Sentinel-2 products information of the previously decided regions of interest. In the Models part there is a comparison between Random Forest, XGBoost and MLP and after their respective hyperparameter tuning we found the best model for each architecture. The Models block uses the data of the Database block for train, validation and test. 3.1 Database The construction of the database is based on three main steps: the study of the regions of interest, the ground truth data and the Sentinel-2 products. First, there will be a description of the ground truth data. After that, there will be an explanation of the study of the regions of interest. Finally, there is a breakdown of how the database is built. 3.1.1 Ground Truth The Ground truth used is based on the Global 25 meter Resolution PALSAR-2 Forest/Nonforest map (FNF). These are free and open datasets generated by a lot of images obtained with Japanese L-band Synthetic Aperture Radars (PALSAR-2) on Advanced Land Observing Satellite-2 (ALOS-2). They were generated by a Random Forest machine learningbased classification method, with the re-processed global 25m resolution PALSAR-2 mosaic dataset as input. Here, the forest is defined as the tree covered land with an area larger than 0.5 ha and a canopy cover of over 10 %. The classification results are presented in four categories, with two categories of forest areas: forests with a canopy cover of 90% or more and forests with a canopy cover of 10% to 90%, depending on the density of the forest area [23]. The basic classes of these FNF maps can be seen in Table 3. 23 Value Category Colour 1 Forest (>90% canopy cover) 2 Forest (10-90% canopy cover) 3 Non-forest 4 Water 0 No data Table 3: Classes of the Forest-Non Forest maps [2]. The temporal resolution of this maps is 1 year, meaning we have 1 map for every year. Since we are building the ground truth of a change detection model, the ground truth will be artificially defined to be a number of two digits, based on the changes of the FNF map. The first digit will correspond to the value in the FNF map of the pixel for the initial year, and the second digit will correspond to the value in the FNF map of the pixel for the latter year. Figure 4 shows all the possible classes. Class Name Initial state Final state Type of change Implication 11 1: Forest (>90%) 1: Forest (>90%) No change 12 1: Forest (>90%) 2: Forest (10-90%) Change Forest shrinkage 13 1: Forest (>90%) 3: Non-forest Change Deforestation 14 1: Forest (>90%) 4: Water Water 21 2: Forest (10-90%) 1: Forest (>90%) Change Forest growth 22 2: Forest (10-90%) 2: Forest (10-90%) No change 23 2: Forest (10-90%) 3: Non-forest Change Deforestation 24 2: Forest (10-90%) 4: Water Water 31 3: Non-forest 1: Forest (>90%) Change Reforestation 32 3: Non-forest 2: Forest (10-90%) Change Reforestation 33 3: Non-forest 3: Non-forest No change 34 3: Non-forest 4: Water Water 41 4: Water 1: Forest (>90%) Water 42 4: Water 2: Forest (10-90%) Water 43 4: Water 3: Non-forest Water 44 4: Water 4: Water Water Table 4: Classes of the ground truth of the change detection model with their analysis. Based on the task we want to tackle, we can use a different combination or part of the classes presented above to build different databases also shown in Figure 13: •Complete Database: This database will include all the classes from Table 4 and will be useful for tasks involving the classification of all classes simultaneously. From now on we will call this task Change detection. •Change class Database: This database will include the classes 12, 13, 21, 23, 31 and 24 32. This are the classes marked in pink in Table 4. In this case, all pixels related to water will be masked. This database is going to be used for a Change classification task that will determine the type of change a forest has experienced. •No-Change class Database: The classes included in this database are 11, 22 and 33. As earlier, pixels related to water will be masked. This database will be useful for classifying types of no changes that we will call a No-change classification task. •Change/No-change Database: This is a Database that only will have two classes. The first class groups 12, 13, 21, 23, 31 and 32 under the same label ’change’. The other class groups 11, 22 and 33 under the label ’no-change’. This database will be used to detect the presence or absence of changes and this task will be called Binary change detection. Figure 13: Tasks diagram with their respective classes. The construction of all these databases will follow the same workflow presented in Figure 14. From the FNF map of both years and the selection of the classes we need to use we can process the data to obtain the final ground truth. Figure 14: Workflow for processing of the Ground Truth. 3.1.2 Regions of Interest The main goal of this part was to identify different areas on Earth where forests have significantly changed over a certain period. This includes both deforestation and forest growth. To achieve this, we need to choose a time period in advance, making sure we have enough cloud-free satellite images for that time frame. 25 3.2.2 XGBoost In this case, the same methodology was followed for the Change classification task using the Change class Database from the tropical region. First of all we started with the default parameters of the implementation of the scikit-learn API for XGBoost classification [25]. After that a strategy for the first grid search was defined. This can be seen in Table 7. Parameters Default First Grid Search Second Grid Search Best Model colsample bytree 1 [0.5] [0.5, 1] 1 gamma 0 [0] [0, 0.2] 0 learning rate 0.3 [0.01] [0.1, 0.3, 0.01] 0.1 max depth 6 [3] [5, 7, 3] 5 min child weight 1 [1, 5] [10, 1] 1 n estimators 100 [100, 300, 500] [500, 800] 500 reg alpha 0 [0, 0.5, 1] 0.3 0.3 reg lambda 1 [0, 0.5, 1] 0.5 0.5 subsample 1 [0.5, 0.8, 1] 1 1 Table 7: Parameters used for training XGBoost models. The first grid search pointed the need to increase the number of estimators and set the reg alpha, reg lambda. Also to try more values of the colsample bytree, gamma, learning rate and min child weights. In this case the model that worked better had the following parameters: •learning rate: 0.1 •n estimators: 500 •max depth: 5 •min child weight: 1 •colsample bytree: 1 •gamma: 0 All of this, was done using the data of the tropical region but once the best parameters were found, we also trained another model using the Change class Database, but this time with the data of the boreal forest. This was done to compare the model’s generalization capability and also to determine if a functional model can be obtained for different areas solely by changing the training data while keeping the parameters constant. 3.2.3 MLP The methodology followed with the MLP for the Change classification task was different from the previous ones. Here we used the Change class Database of the tropical region, but in this case we first normalized the inputs to help improve the speed and accuracy of the 32 model. Two types of normalization were explored, but in both cases we normalized each band independently. First we used a normalization to distribute the numbers between 0 and 1 by finding the maximum value for every band, the second option, which was the one that was finally used, was the z-score normalization that follows Equation 1: z−score(x) = x−µ σ(1) After that, we first fine-tuned the number of layers (from two to five hidden layers), the dimension of each hidden layer and learning rate. Finally we fine-tuned the batch size. The number of epochs was also tuned, but we were saving the best checkpoint without having overfitting. Table 8 shows some experiments performed with 3 hidden layers, the final option is marked in pink. Num. Hidden Layers Activation Function Output Layer Hidden Size 1 Hidden Size 2 Hidden Size 3 Batch Size 3 ReLU LogSoftmax 256 512 128 128 3 ReLU LogSoftmax 256 512 128 256 3 ReLU LogSoftmax 128 256 64 256 Table 8: Examples of Hidden sizes and Batch sizes for 3 hidden layer MLP experiments. The final architecture is shown in Figure 19 and in this case the best parameters are: •normalization: z-score •number of hidden layers: 3 •hidden size: 256 •hidden size 2: 512 •hidden size 3: 128 •batch size: 256 •test batch size: 256 •num epochs: 40 •learning rate: 1e-4 33 Figure 19: Best MLP architecture Again, when the best parameters were found for this task, they were used with the Changes class Database of the boreal region, also normalized with z-score. Finally, a bigger model with more capacity was built in order to see if it could reach the maximum training accuracy for the Change classification task and adapt completely to the data. The parameters of this model are the following: •normalization: z-score •number of layers: 4 •hidden size: 128 •hidden size 2: 256 •hidden size 3: 512 •hidden size 4: 1024 •hidden size 5: 2048 •hidden size 6: 4096 •hidden size 7: 1024 •hidden size 8: 256 •hidden size 9: 64 •batch size: 128 •test batch size: 128 •num epochs: 100 •learning rate: 2e-4 34 It is worth mentioning that the default RMSprop optimizer was changed for the Adam optimizer and the negative loglikelihood loss and ReLu activation funtions were used for all MLP experiments. 35 4 Results This section has been divided into 4 blocks. The first one will explain the final dataset with detailed information about the quantity of data and the other three will show for each model the results of the most significant experiments. The results were evaluated using histograms to analyse the database. The evaluation of the models was primarily focused on the train and validation accuracies, confusion matrices and train and validation losses. A confusion matrix is a tool to compute validation results and allows visualization of the performance of an algorithm mostly in classification problems. Each column represents the actual value of the input and each row corresponds to the tested system’s predicted class. This is a very visual way to see if a class is often being confused with another.This assessment was carried out using weights and biases, which is a platform for machine learning experiment tracking and model visualization. 4.1 Database Regarding the preselection of areas of interest, the ones shown in Figure 20 were considered: Among the tropical zones were Borneo Island, Madagascar, Bolivia, two other locations in Brazil and another one in Guinea. In terms of boreal zones, there was one preselected in Canada and two in Russia. Figure 20: Regions of interest marked on top of the Global forest change map. The red zones on the map show forest loss during the year 2023 and the yellow shows forest loss in the year 2000, the oranges in between correspond to the years between both. The preselected areas of Boreal Forests are circled in brown while the preselected tropical forests are circled in maroon. As regions of interest, one of the promising locations for change detection in a tropical 36 region was Borneo Island. However, there were no cloud-free images from Sentinel-2 during the study period (2017 to 2020). Consequently, the area was immediately discarded from consideration. The two areas in Brazil were discarded because the ground truth from the Forest/Non-forest maps did not show significant changes during 2017 to 2020 and the same thing happened with the Guinea region. The region of Bolivia was discarded because most of the changes in the forest were observed in the upper part of the tile of the Forest-Non forest map. When overlaying the Sentinel-2 tile with the forest-no forest map, the area with the majority of changes was lost, and it was initially decided not to merge tiles. This matter can be observed in the figure 21. Therefore, for this reason, Madagascar was chosen as the final tropical forest region. Figure 21: The first image corresponds to the 2017 FNF map and the second one to the 2020 FNF map. It is easy to see that the main difference between this two images is in the top right corner of the map where we can see a very clear case of deforestation. In this case, this deforestation pattern indicates that the deforestation is due to human activities. As can be seen in the third image, the intersection of the Sentinel-2 product and the FNF map leaves out all this part of changes showing why this location was discarded. On the other hand, Initially, it appeared that Canada’s boreal forest region offered more data availability across multiple years distributed as 4 sentinel-2 images in 2017, 3 in 2018, 2 in 2019, and 2 in 2020. However, it was later revealed that the Sen2Cor toolbox, used for transforming Level-1C to Level-2A products, was incompatible with data from 2017, resulting in significantly limited data for Canada. Given this constraint and the relatively fewer images in the Russia Lena River region, 4 sentinel-2 images in 2019 and 5 in 2020, the Zeya Lake area in Russia was chosen as the final region for the boreal forest analysis. This region had a total of 14 images, none in 2017, 4 in 2018, 4 in 2019, and 6 in 2020. The final number of sentinel-2 images can be found in Table 9 and the Forest/Non-forest maps of the Final regions of interest can be found in Figure 22. 37 Region 2017 2018 2019 2020 Total Madagascar 0 4 1 3 8 Russia Zeya Lake 0 4 4 6 14 Table 9: Final number of Sentinel-2 products for the selected regions of interest. Figure 22: Forest/Non-forest maps of 2018, 2019 and 2020 for both final regions of interest. As an implementation detail, for the next part, we used two different types of files: .TIFF files that are able to save high-quality image data along with geographic information, and .csv files to match thee pixels with their related values but loosing the geographic information. Then, all products from both locations went through the workflow explained in Figure 16 to extract the information of each relevant pixel. Ending with very unbalanced histograms shown in Figure 23. 38 Figure 23: Unbalanced histograms for both Madagascar and Russia locations in logarithmic scale The first noticeable difference between the two histograms is that in the Russia histogram, classes related to water remain unchanged. In both cases, it is evident that there is a significant imbalance, specially taking into account that they both are on a logarithmic scale, with class 22 predominating in Madagascar and class 33 in Russia. This makes sense, indicating that the majority of areas remain unchanged. The least represented class (excluding classes that involve water) is class 13, suggesting a less frequent transition from a very dense forest to no-forest. In this case the manual balancing for both locations was different. For the case of Madagascar, the manual balance was set to 200.000 samples for class in train and 60.000 samples for validation and test. In the case of Russia it was set to 3.000.000 in the train and 1.000.000 in the validation and test. With this approach, in both cases we get a completely flat histogram by balancing the dataset manually, but with a number that makes sense in all cases and respecting the 60% - 20% - 20% split. It should be noted that, in the case of Madagascar, some experiments were conducted with 1.000.000 samples for training and 300.000 for validation and test. However, in no instance did this improve the models and it merely increased computation time, so it was discarded. At the end, we end up with a total of 3.200.000 samples (rows in the .csv) for the whole dataset which contains 10 classes since removing the ones related with water. 2.000.000 samples for train, 600.000 samples for validation and 600.000 samples for test. Also we get 1.920.000 samples for the change classifier dataset in Madagascar being 1.200.000 samples for train, 360.000 samples for validation and 360.000 samples for test. In Russia the total samples for the whole dataset, which contains 10 classes, are 50.000.000 having 30.000.000 samples for train, 10.000.000 samples for validation and 10.000.000 samples for test. Finally, for the change classifier we have 30.000.000 samples: 18.000.000 samples for train, 6.000.000 samples for validation and 6.000.000 samples for test. 39 4.2 Random Forest With the Complete Database, the first experiments were conducted without manually balancing the database. As expected, this led to favoritism towards the class that had many more samples. Attempts were made to balance using the automatic weights provided by the scikit-learn library that was used, but these were not sufficient. Therefore we opted for manual balancing the dataset as explained in the previous section. Another problem, was that the model was quickly overfitting due to the default setting of some parameters which meant that we had a training accuracy of 1 and a validation accuracy of 0,3894 with the confusion matrix showed in Table 10. 11 0.55 0.24 0.15 0.23 0.05 0.01 0.12 0.01 0 0.01 12 0.16 0.36 0.26 0.13 0.12 0.06 0.11 0.02 0.01 0.02 13 0 0 0.07 0000000 21 0.23 0.02 0.01 0.45 0.17 0.03 0.32 0.04 0.01 0.01 22 0.04 0.01 0.07 0.12 0.26 0.13 0.21 0.15 0.04 0.03 23 0.01 0.07 0.22 0.02 0.14 0.38 0.06 0.14 0.16 0.03 310000000.01 000 32 0.01 0.03 0.09 0.04 0.21 0.22 0.14 0.48 0.24 0.03 33 0 0.01 0.04 0.01 0.05 0.16 0.03 0.16 0.52 0.05 Predicted 34 0 0 0 0 0 0 0 0 0.02 0.82 11 12 13 21 22 23 31 32 33 34 Actual Table 10: Confusion Matrix generated using Random Forest with the Complete Database of the tropical region. Although this is a very clear case of an overfitted model, we could still see in the confusion matrix that the model was doing a very poor job, specially in the classes that represented changes. The decision was to divide the problem into 3 smaller tasks: a Change classification task, a No-change classification task and finally a Binary change detection. This subdivision was done in order to see if the model was even able to select the important information to differentiate each ’similar class’, specially the ones that indicate the type of change. The tasks and database for this simplification have been further explained previously in Section 3.1.1. Regarding task simplification, using default parameters resulted in models with significant overfitting across all cases, as the training accuracy is nearly 1. In the case of the Binary change detection, the validation accuracy reached 0,578, for the No-change classification, it reached 0,779 (the best result among the isolated models), and finally, for the Change classification task, it was 0,414 for validation accuracy. After that, the focus was on building a better Change classification model without overfitting since distinguishing changes was one of the main objectives of the project. For the first grid search for the Change classification model, the training accuracy ranged from 0,707 to 1 and the validation accuracy went from 0,392 to 0,434. In the second 40 grid search the training accuracy went from 0,525 to 0,716 and the validation accuracy went from 0,433 to 0,455. Finally, the model that had the best performance while not overfitting, achieved a 0,667 in training accuracy while obtaining a 0,455 in validation accuracy. In terms of the batch processing using random forest, it was not a success, of all the combinations tried none of them surpassed the 0,43 in validation accuracy, while the train accuracy was very steep and had a lot of noise, which means that the training accuracy was not smooth. 4.3 XGBoost The results of the default configuration for the Change classification task of XGBoost were encouraging since it already got better results that the fine tuned version of the previous model obtaining a 0.687 as training accuracy and 0,474 as validation accuracy. For the case of the first grid search, the training accuracy ranged from 0,393 to 0,423 and the validation accuracy went from 0,391 to 0,419. On the other hand, in the second grid search the training accuracy went from 0,422 to 0,858 and the validation accuracy went from 0,418 to 0,483. Finally, the model that had the best performance while not overfitting achieved a 0,684 in training accuracy while obtaining a 0,483 in validation. The confusion matrix for this model can be found in Table 11. As it shows, the values on the diagonal are not very big, which explains the validation accuracy obtained. We can see that the most frequent confusion is between the classes 31 - 21 and also between the classes 12 - 21 and 32 - 23. Another thing that can be observed is that the class 31 has significantly less predictions than the other classes. 12 0,49 0,22 0,21 0,06 0,14 0,03 13 0,05 0,41 0,03 0,04 0,04 0,01 21 0,27 0,11 0,57 0,04 0,27 0,05 23 0,09 0,14 0,04 0,51 0,11 0,21 31 0,05 0,05 0,08 0,03 0,26 0,04 Predicted 32 0,04 0,08 0,07 0,32 0,18 0,65 12 13 21 23 31 32 Actual Table 11: Confusion Matrix using best values for XGBoost model using the tropical Change class Database as training. Some experiments were conducted using models trained with the Change class Database from Russia. However, it was evident that the models were underfited, as the accuracy did not exceed 0,55 in training and 0,38 in validation. When training with the best parameters found for the tropical forest, the results were not improved, obtaining a training accuracy of 0,375 and a validation accuracy of 0,346. In Table 12, shows clearly how, when inferring with test data using the model from another location, the results are significantly worse. 41 5 Budget The approximate costs of this project take into account the materials and the salaries. 5.1 Material There is a need of a powerful computer, its cost is around 800∗0,9 5= 144 per year assuming that the useful life is of 5 years. The computer has been used for 7 months, meaning 144∗7 12 = 84. A server has also been used, 3500∗0,9 7= 450 per year, 450∗7 12 = 262,5 for 7 months (Table 20). Material Description Cost (€/unit) useful life (years) Total Cost (€) Computer 800 5 84 Server 3.500 7 262,5 Table 20: Table of the Material costs 5.2 Salaries Considering the salary of a junior engineer in Spain as 12 €/hour that has been working 964 hours in the project and taking into account the social security that the company has to pay as 33% (Table 21). Salaries Description Salary (€/hour) Time dedicated (hours) Social security (€) Total Cost (€) Junior engineer 12 964 3.817,44 15.385,44 Senior engineer 15 18 89,1 359,1 Advisor 18 15 89,1 359,1 Advisor 18 15 89,1 359,1 Table 21: Table of the Salaries 5.3 Total Costs The total cost of the project is 16.809 €. (22) 48 Total Costs Description Cost (€) Material cost 346,5 Salaries cost 16.462,74 TOTAL COST : 16.809,24 Table 22: Table of Total costs 49 6 Environmental Impact This section focuses on the sustainability aspects associated with the implementation of this project. 6.1 Environmental Impact This project is based in the creation of an algorithm capable of identifying changes over time in forests. This software does not use material resources a part from the laptop and a server provided by the university. Also, the data used during the whole project comes from public satellites that are already in orbit for different purposes. Their data collection is periodic and independent, meaning that the data acquisition of the satellite is not on demand. So there is an impact, but not directly related to the project, since without it the impact of the launch and data gathering of the satellites would be the same. On the other hand, traditional methods to asses the deforestation of forests, involve sending a specialized team to the specific region to manually collect the data. This situation is also not ideal since that would require a lot of hours traveling by plane. This is also one of the main objectives of the company, to rely on remote sensing for Earth observation public data to avoid this kind of tours and have a more up to date information. 6.2 Economic Impact In terms of the economic impact, the development of machine learning models for forest monitoring, that has been carried out in the company Tracks CO2 requires a focus on cost-effectiveness. For that reason, all the software developed and its deployment needs to go through an evaluation. The technology aligns with the company’s goals providing a competitive edge adding more information regarding the evolution of the forests monitored. To improve the economic benefits of the company in the long-term, the software will require continuous maintenance and covering the newest updates that satellites may have. 6.3 Social Impact The social impact of this project, which utilizes machine learning and remote sensing for Earth observation data to monitor forest changes, could be substantial. By providing accurate and nearly up-to-date data regarding deforestation, reforestation and afforestation, the project can raise awareness about environmental issues and promote conservation efforts, but not only to companies, since the aim is for them to share to their stake holders the impacts of their sustainability efforts. Communities that depend on forests for their livelihoods can benefit from this information as well, as it enables better management and protection of these vital resources. 50 Additionally, the project can support project developers and environmental organizations in making informed decisions, leading to more effective environmental regulations and initiatives. 51 7 Conclusions In conclusion, we have been able to build two database from the Forest/Non-forest maps and the Sentinel-2 images for two different locations: Madagascar and Russia. Both data downloading and processing have been automated to simplify these procedures for future tasks. These databases have been used to develop three distinct change classifier models two of them surpassing a comparable accuracy of 0,48. While this results fall short of an ideal outcome, they notably surpass random classification. It appears that, with our pixelbased approach and the data used, determining change types with high confidence remains challenging. On a positive note, joining classes into forest growth or shrinkage, significantly improved results, with approximately 0,705 accuracy. This development is encouraging as it demonstrates the ability of the models to differentiate between these two classes, at the expense of losing all the classes in between that represented all intermediate states. Upon reviewing the learning curves and observing the consistent limit at 0,480 across all models, it suggests that the issue may lie within the data itself. It appears challenging to extract enough information from the data to generalize for other samples within the same class. Although the data seems the main issue here, alternatively it could also be due to the individual pixels approach that may not contain adequate information, prompting consideration for the use of coordinates or even small groups of surrounding pixels. In terms of generalization across the two models, it is very clear that they don’t generalize well across different locations, nor can training parameters be extrapolated. From this, we conclude that if a global model is desired, it would be necessary to construct several models, each tailored to specific regions. To sum up the objectives accomplished, a global ground truth has been found as well as regions of interest that can be used to train and validate models. All the Sentinel-2 data download and processing has been automatised and also the processing of the ground truth. Several models have been trained and evaluated and although the change classifier models were not able to pass the 0,480 validation and test threshold, they are able to reach the 0,705 when classifying Forest growth and Forest shrinkage. Finally, all has been developed with efficient and well-structured code, with its proper documentation in order to make it easy to understand for future development. 8 Future Work In terms of future work, firstly, there’s potential to enhance the change classifier model by incorporating data from other satellites and sources, such as Sentinel-1, to enrich the database with relevant information. This approach could also make the model less susceptible to cloud cover. To achieve this, infrastructure development for additional satellites and data processing would be necessary, along with automation to ensure scalability across all different locations. Furthermore, it would be worthwhile exploring whether an approach that uses as input some neighboring pixels inside a window, or even one that preserves geographical infor- 52 mation, significantly improves results. Additionally, investigating the scalability in areas of the same type could provide insights into whether a single model for each forest type suffices or if further subdivisions are required to achieve a functional model. Once a refined approach is established, completing the system would involve determining the parameters for the initially proposed change detection model or for the change/nochange detector and the no-change classifier to have a whole vision of the state of the forest in that location. In conclusion, increasing the complexity of both the data or and the models appears necessary, as the approaches tested in this project ended up with improvable results. 53 References [1] European Space Agency (ESA). Sentinel-2 msi user guide - product types. [2] Japan Aerospace Exploration Agency (JAXA). Global 25 m resolution palsar-2 forest/non-forest map (fnf) (ver.2.0.0) dataset description, 2022. [3] Myroslava Lesiv, Dmitry Schepaschenko, Marcel Buchhorn, Linda See, Martina D¨urauer, Ivelina Georgieva, Martin Jung, Florian Hofhansl, Katharina Schulze, Andrii Bilous, Volodymyr Blyshchyk, Liudmila Mukhortova, Carlos Mu˜noz Brenes, Leonid Krivobokov, Stephan Ntie, Khongor Tsogt, Stephan Pietsch, Elena Tikhonova, Moonil Kim, and Steffen Fritz. Global forest management data for 2015 at a 100 m resolution. Scientific Data, 9, 05 2022. [4] J.S. Rowe and G.W. Scotter. Fire in the boreal forest. Quaternary Research, 3(3):444– 464, 1973. The Ecological Role of Fire in Natural Conifer Forests of Western and Northern America. [5] Sentinel Online. Sentinel-2 mission guide. [6] The European Space Agency. Introducing sentinel-2. [7] The European Space Agency. Satellite description. [8] Sentinel Hub. Sentinel-2: Remote sensing indices. [9] The European Space Agency. S2 mission. [10] Leo Breiman. Random forests. Machine Learning, 45(1):5–32, Oct 2001. [11] Antanas Verikas, Evaldas Vaiciukynas, Adas Gelzinis, James Parker, and M. Charlotte Olsson. Electromyographic patterns during golf swing: Activation sequence profiling and prediction of shot effectiveness. Sensors, 16:592, 04 2016. [12] Scikit Learn. sklearn.ensemble.randomforestclassifier. [13] Tianqi Chen and Carlos Guestrin. Xgboost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’16, page 785–794, New York, NY, USA, 2016. Association for Computing Machinery. [14] XGBoost Python Package. Python api reference. [15] S. Abirami and P. Chitra. Chapter fourteen - energy-efficient edge based real-time healthcare support system. In Pethuru Raj and Preetha Evangeline, editors, The Digital Twin Paradigm for Smarter Systems and Environments: The Industry Use Cases, volume 117 of Advances in Computers, pages 339–368. Elsevier, 2020. [16] Hugh D Eva Erik J Lindquist Alexandre Bouvet Olivier Arino Fr´ed´eric Achard, Hans- J¨urgen Stibig and Philippe Mayaux”. Estimating tropical deforestation from earth observation data. Carbon Management, 1(2):271–287, 2010. [17] National Aeronautics and Space Administration. Landsat science. 54 [18] Hiroki Mizuochi, Masato Hayashi, and Takeo Tadono. Development of an operational algorithm for automated deforestation mapping via the bayesian integration of longterm optical and microwave satellite data. Remote Sensing, 11(17), 2019. [19] Tatiana Nazarova, Pascal Martin, and Gregory Giuliani. Monitoring vegetation change in the presence of high cloud cover with sentinel-2 in a lowland tropical forest region in brazil. Remote Sensing, 12(11), 2020. [20] M. C. Hansen, P. V. Potapov, R. Moore, M. Hancher, S. A. Turubanova, A. Tyukavina, D. Thau, S. V. Stehman, S. J. Goetz, T. R. Loveland, A. Kommareddy, A. Egorov, L. Chini, C. O. Justice, and J. R. G. Townshend. High-resolution global maps of 21st-century forest cover change. Science, 342(6160):850–853, 2013. [21] Africa I. Flores-Anderson, Jeffrey Cardille, Khashayar Azad, Emil Cherrington, Yingtong Zhang, and Sylvia Wilson. Spatial and temporal availability of cloud-free optical observations in the tropics to monitor deforestation. Scientific Data, 10(1):550, 2023. [22] Diego Velayarce, Manuel Alvarez, Diego Guevara, and Victor Murray. Analysis of deforestation in ucayali-peru using satellite imagery from sentinel-2. In Yuzo Iano, Osamu Saotome, Guillermo Kemper, Ana Claudia Mendes de Seixas, and Gabriel Gomes de Oliveira, editors, Proceedings of the 6th Brazilian Technology Symposium (BTSym’20), pages 308–316, Cham, 2021. Springer International Publishing. [23] ALOS Research JAXA, Advanced Land Observing Satellite and Application Project. Global palsar-2/palsar/jers-1 mosaics and forest/non-forest maps. [24] European Space Agency (ESA). Sen2cor. [25] Scikit Learn. Scikit-learn api. 55 Appendices A Work Plan This section contains all the tables of the work plan (Table 23 to Table 30). Project: Data Gathering WP ref: WP1 Major constituent: Download Data Sheet 1 of 8 Short Description: Data download for Groundtruth and satellite products. Planned start date: 02/10/2023 Planned end date: 02/11/2023 Start event: 02/10/2023 End event: 10/11/2023 Internal task T1: Research: Find information about a ground truth and sentinel-2. Internal task T2: Preselection Regions of Interest: Find interesting locations with enough changes. Internal task T3: Check Sentinel-2 availability: Check image availability for preselected regions of interest. Internal task T4: Selection Regions of Interest: Final selection of a tropical region and a boreal region. Internal task T5: Select products to download: Get the names of useful Sentinel-2 products. Internal task T6: Download Ground truth: Download Forest/Non-forest maps from JAXA webpage. Internal task T7: Compute Histograms ground truth: compute with python the histograms of the ground truth. Internal task T8: Download Sentinel-2 automatically: code to download all Sentinel-2 products automatically. Deliverables Dates Table 23: WP1 56 Project: Database Construction WP ref: WP2 Major constituent: Build database Sheet 2 of 8 Short Description: Process all the data to get the databases for the project. Planned start date: 02/11/2023 Planned end date: 02/12/2023 Start event: 13/11/2023 End event: 15/12/2023 Internal task T1: Sentinel-2 Level-1C to Level-2A: Convert all Sentinel-2 images to Level-2A with sen2cor. Internal task T2: Sentinel-2 reproject: Georeference satellite data with Forest/Non-forest maps. Internal task T3: Resampling method: test and analyse the possible resampling method for the reprojection. Internal task T4: Save all bands in files: Have 1 file for every product with all the bands data. Internal task T5: Define change classes: Define artificial classes and databases from FNF maps. Internal task T6: Compute GT classes: Run code to get the ground truth for each pixel. Internal task T7: Build final database: put all pixels data in the same database. Internal task T8: Compute final DB histograms: compute with python the histograms of the ground truth. Deliverables Dates Table 24: WP2 57