Skip To Content

Fine-tune the model

You can fine-tune the Mangrove Classification (Landsat 8) model to suit your geographic area, imagery, or features of interest. Fine-tuning a model requires less training data, computational resources, and time compared to training a new model.

Fine-tuning the model is recommended if you do not get satisfactory results from the available ArcGIS pretrained deep learning models. This can happen when your area of interest falls outside the applicable geographies for the models, or if your imagery properties such as resolution, scale, and seasonality are different.

You can use the Export Training Data For Deep Learning tool to prepare training data. Next, you can fine-tune this model on your data using the Train Deep Learning Model tool in ArcGIS Pro. Follow the steps below to fine-tune the model.

Prepare training data

This model is trained on the Landsat 8 Surface Reflectance (Collection 2 Level-2) imagery and labels representing mangroves. Use the Export Training Data For Deep Learning tool to prepare training data for fine-tuning the model.

  1. Browse to Tools under the Analysis tab.
    Tools icon
  2. Click the Toolboxes tab in the Geoprocessing pane, select Image Analyst Tools and browse to the Export Training Data For Deep Learning tool in the Deep Learning toolset.
    Export Training Data For Deep Learning
  3. Set the variables under the Parameters tab as follows:
    1. Input Raster—Select the Landsat 8 Surface Reflectance (Collection 2 Level-2) imagery.
    2. Output Folder—Any directory of your choice on your machine.
    3. Input Feature Class Or Classified Raster Or Table (optional)—Select the classified raster or feature layer representing mangroves.
    4. Class Value Field—This is the ClassValue field referencing the classes as in the Global Mangrove Watch dataset.
    5. Image Format—TIFF format
    6. Tile Size X—512
    7. Tile Size Y—512
    8. Stride X—0
    9. Stride Y—0
    10. Metadata Format—Classified Tiles
      Export Training Data For Deep Learning tool parameters
  4. Set the variables under the Environments tab.
    1. Processing Extent—Select Current Display Extent or any other option from the drop-down menu as needed.
    2. Cell Size—Set the value to the desired cell size.
      Export Training Data For Deep Learning tool parameters
  5. Click Run.

    Once processing is complete, the exported training data is saved in the specified directory.

Fine-tune the Mangrove Classification (Landsat 8) model

Complete the following steps to fine-tune the model:

  1. Browse to Tools under the Analysis tab.
    Tools icon
  2. In the Geoprocessing pane, click the Toolboxes tab and expand Image Analyst Tools. Select the Train Deep Learning Model tool under Deep Learning.
    Train Deep Learning Model tool
  3. Set the variables under the Parameters tab as follows:
    1. Input Training Data—The path to your exported training data from the previous step.
    2. Output Folder—Any directory of your choice on your machine.
    3. Max Epochs—(optional)—100 (Depending on the number of iterations you want to fine-tune the model for. Epoch is the number of iterations the tool will take to go over the data.)
    4. Pre-trained Model—Input the Mangrove Classification (Landsat 8) (.dlpk) file downloaded from ArcGIS Living Atlas of the World.
    5. Batch Size—64 (Increase or decrease this number according to your GPU capacity. Batch size should always be a square number.)
    6. Stop when model stops improving—Checked
    7. Freeze Model—Checked
      Train Deep Learning Model tool parameters
  4. Set the variables under the Environments tab.
    1. Processor Type—Choose CPU or GPU according to your requirements. If GPU is available, it's recommended that you select GPU and specify the GPU ID for the designated GPU.
      Train Deep Learning Model tool parameters
  5. Click Run.

    You can now use this model to run inferencing against your imagery.