Classifier__Supervised_Classification_.jpg

Supervised classification is probably the most commonly used machine learning technique. The 'classifier' algorithm offers supervised classification in eCognition and there are many 'classifier' parameters available to support several use cases: eCognition users can perform object- or a pixel-based training & classification, furthermore the users can load training samples from vector or statistics layers, and last but not least several classification methods (Decision Tree/CART, Random Trees/Random Forest, Bayes, KNN or SVM) be at user’s command.

Some parameter combination supports feature space optimization or to convert a trained model into ruleset code.

To get not lost in all the possibilities, Christian Weise generated (in 2012) the 'Example Project - Classifier (Supervised Classification)' to demonstrate typical supervised classification scenarios in eCognition.

Download 'Example Project - Classifier (Supervised Classification)'

9 comments

  • Mattia Barsanti

    In the example project there are one image and 2 shapefiles. Where is the eCognition project (dpr)?

  • Trimble Support

    Please try to download again. In the zip file you will find the input data (image + shapefile) as well as the Project.dpr.

  • Mattia Barsanti

    Thank you very much!

  • Obengmanuclement

    I am new to ecognition and want to classify images using random forest or SVM. from the tutorial in the link above, the rulesets are already developing without explanation.

    Please can anyone help me with the steps and explanation (training and applying the classification model) especially the configuration?

  • Mattia Barsanti

    Hi
    so I try to roughly explain the SVM object based (I don't know the "Random Forest" yet):
    To apply the SVM you need a shapefile that indicates the class you want to determine for each point. The more points there are, the more your classes will be defined.
    After creating the objects with the segmentation algorithm, you can create the classes with the "assign class by thematic layer" algorithm where you will have to indicate the name of your shapefile.
    Then you can apply the "supervised classification" algorithm that you have to execute twice: the first time setting "Operation = train" and the second time "Operation = Apply".
    In both times you will have to set the name of a "scene variable" in the "configuration" box. You have to create this variable in Process -> Manage variables -> Add. It must be a text variable and you have to assign it a name. This variable is used to store the information that eCognition processes during the train phase.
    I hope I have helped you. I have left out many aspects that you can try for yourself to know.
    regards
    mattia

  • Matthias Staengel

    Hi,
    Regarding the sample creation, you actually have 3 options!

    1. having a vector representing the samples
    2. manually selecting samples using the Sample selection tool (VIEW --> TOOLBARS --> SAMPLES)
    3. Using sample statistics (which you can create / export / import in eCognition)

    When training the model it is saved in the variable that you have to define which Mattia explained. You simply can change the Classifier in the training and save the model in the same variable (it will overwrite) or create a new variable for a different Classifier. This is actually very nice, because you only need to change the classifier, train the model and then apply it and you instantly see the differences of the different Classifiers.

  • Mattia Barsanti

    Dear Matthias,
    do you know some tutorials regarding the sample statistics?
    Thank you in advance.

  • Obengmanuclement

    Many thanks, Mattia and Matthias

  • Obengmanuclement

    please, how are the best parameters for SVM or Random Forest classifiers identified for a dataset? 

    In python, for instance, a grid or random search is usually used. 

    Please can anyone advice on how to identify optimal parameter for supervised classification (SVM or Random Forest)?

Your Answer

Articles in this section

Need more help?

Enter Community Contact Support