Land Cover Monitoring System

Matej Aleksandrov
Jan 7 · 7 min read

Written by Matej Aleksandrov, Jovan Visnjic and EO Research team at Sinergise.

In our research team, we usually write blog posts about machine learning (ML) experiments, application prototypes or Python libraries. This time we are proud to present a fully functional product — a Land Cover Monitoring System (LCMS). In this blog post, we will present how it works and what are its main components.

In short, the purpose of LCMS is to process huge amounts of satellite data for a large geographical area, extract relevant information and provide them in a format that is easy to understand and take action on. To be more precise, we developed LCMS to perform automatic land cover classification, crop type classification and detection of changes in land cover through time. All that is done using ML and it works on a level of an entire country, in a continuous manner!

Overall we can divide LCMS into 4 parts:

  • Collection and preparation of reference data
  • Data-processing pipelines to run ML process and produce results
  • Storage and serving of results
  • Application for operators
A basic schema of LCMS implemented for Azerbaijan.

It looks simple enough, but LCMS has actually been our main R&D project for more than a year. It brings together a lot of remote sensing knowledge, our Python ML framework eo-learn, in-house products Sentinel Hub services and Geopedia, and front-end know-how.

So far we have implemented a production-ready version of LCMS for the Republic of Azerbaijan. It is being used by governmental officials to automatically detect and track how the land is changing through time. We have also utilized LCMS for numerous experiments in Slovenia and recently we have been developing it for Turkey.

Reference data

Ground-truth data for crop classification overlaying the Sentinel-2 L2A image.

The quality and quantity of ground-truth polygons are extremely important for LCMS since it employs supervised ML algorithms to solve classification problems. There is a general rule of ML that results can only be as accurate as the data used for training. This clearly applies to our use-case as well.

No matter what kind of land cover classification is performed, all types of surface from the area of interest have to be well represented in the training data. For land cover classification at the country level, we need ground-truth polygons that are evenly distributed over the entire country. In the end it doesn’t matter that much whether they cover 1%, 10% or 100% of the country, as long as the surface of the covered area is as diverse as the surface of the entire country.

Land cover data from a cadastral database

Good sources of land cover data are cadastral databases and LPIS systems. Nowadays, many countries already have such systems and they spend a lot of manual work to keep the data reasonably accurate and up-to-date. However, in some cases such data doesn’t exist or is not accessible. Then the alternatives are to manually label data yourself or to use various open data sources and fuse them together. One such example is Open Street Map, which is maintained by a large community of people.

Similarly, for crop type classification, ground-truth data has to evenly cover all arable land. It turns out that ML models trained on one year don’t perform well for other years. Therefore, accurate data is required for each year separately, and for each crop rotation if applicable. One way to obtain large quantities of such data is to use farmer declarations.

Data-processing pipelines

One important aspect of pipelines is that they split up the country into smaller chunks and for each one we create an EOPatch, which stores all the data from that location. This way pipelines can execute operations on multiple EOPatches in parallel and at the same time keep in memory only as much data as there are available resources. Furthermore, pipelines are able to divide the processing of EOPatches over multiple EC2 instances on Amazon Web Services (AWS). This makes the execution part of the pipeline much faster and more convenient.

Turkey divided into over 9000 EOPatches, spanning over multiple UTM zones and each the size of 10km x 10km. The underlying map is Google Satellite, ©2019 Google.

Having the whole process split into multiple pipelines also helps to manage the complexity of development and enables us to easily experiment on only a subset of data. We have thus split our data-processing into the following pipelines:

A schema showing how pipelines are connected together.
  1. Download: Loads satellite imagery using Sentinel Hub, computes cloud and valid data masks and stores them into EOPatches.
  2. Features: Computes features such as NDVI, NDWI, NDBI, tasselated-cap indices, and performs temporal harmonization (i.e. interpolation or mosaicking). This part will be in the future offloaded to Sinergise’s next frontier — Euro Data Cube.
  3. Add reference: Transforms ground-truth reference polygons into raster masks.
  4. Sampling: Spatially samples features based on reference data. Only the subset of sampled locations will be used for ML training.
  5. Merge features: Merges sampled features together by concatenating them into numpy arrays. The result are multiple ML-ready datasets.
  6. Model training: Uses the datasets as inputs to train and test a ML classifier and saves a trained model.
  7. Prediction: Runs a country-wide prediction based on the model. The result of this pipeline is classification maps.
  8. Post-processing: Performs various operations on classification maps, such as super-pixel segmentation, filtering, erosion, etc.
  9. Change detection: Compares the resulting maps for ‘before’ and ‘after’ and finds areas where it is most likely that a change has happened.
  10. Reporting: Collects various statistical information from resulting maps and creates reports for operators.

For Azerbaijan, we processed a region of 86.600 km² at 10m pixel resolution, which resulted in 2.3TB of data per year. We split the region into 1224 EOPatches.

Land cover prediction map for Azerbaijan, divided into 1224 EOPatches. The underlying map is Google Satellite, ©2019 Google.

Storage and services

A solution for raster maps is the “Bring Your Own Data” feature of Sentinel Hub. The maps can be stored on an AWS S3 bucket. By following the instructions, we can configure the bucket permissions and a Sentinel Hub layer according to the structure of data in the bucket. Once that is done, Sentinel Hub services are able to read and provide any part of a map an operator would require.

Regarding vector data, a solution is to upload the polygons into a geospatial database and use a service for querying them. All this can be done using Geopedia. We can simply create a new Geopedia layer, import the data and then use Geopedia REST API to query the data.

Application for operators

For Azerbaijan, we developed a custom application that provides access to the entire archive of Sentinel-2 and Landsat 8 data.

A custom application for Azerbaijan with the entire Sentinel-2 and Landsat 8 data archives.

It enables viewing classification maps, comparing them to each other and comparing them to satellite data.

Comparing the Sentinel-2 image with land cover classification.

The Validation Tool is one of the most relevant features of the application, particularly for land change detection. It provides a list of all detected changes in land cover. An operator can select a detected change, check the corresponding satellite imagery for that location and decide if the change has been correctly detected or if it is a false positive. In the latter case, the operator can decide to correct the change and submit it back to the system. In the end, operators get a list of land cover changes, which have been confirmed to be correct, and the system gets new reference data for the next iteration of the ML process.

Detected land cover change — a new building has been built.

What’s next?

Sentinel Hub Blog

Stories from the next generation satellite imagery platform

Thanks to Matic Lubej, Jovan Visnjic, Matej Batič, Anze Zupanc, EO Research, and Devis Peressutti

Matej Aleksandrov

Written by

Sentinel Hub Blog

Stories from the next generation satellite imagery platform

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade