Supervised & unsupervised classification with Orfeo ToolBox (OTB)

Having discovered Orfeo ToolBox and it’s very handy QGIS plugin, I set about reviewing each of OTB’s supervised classifiers, to see which one performs the best with the goal of generating a perfect surface mask that I can use in my terrain project within RV4 engine.

Example showing source raster + http://waterloomilitaria.com/wp-cron.php?doing_wp_cron=1589406913.4325120449066162109375 libsvm_linear classifier:


Example showing source raster + go to site libsvm_rbf classifier:


Example showing source raster + go to site Artificial Neural Network classifier:

Complete list of machine learning classifiers tested:
http://waterloomilitaria.com/wp-cron.php?doing_wp_cron=1589402761.7622001171112060546875 libsvm_linear – (Support Vector Machines) http://waterloomilitaria.com/?controller=cart
libsvm_rbf
libsvm_poly
libsvm_sigmoid
boost_discrete
– (OpenCV) watch
boost_real
see url
boost_logit
boost_gentle
dt
here (Decision Tree – OpenCV) http://waterloomilitaria.com/product/victorian-east-lothian-yeomanry-jacket/
ann
http://waterloomilitaria.com/?id_product=834 (Artificial Neural Network – OpenCV) http://waterloomilitaria.com/?id_product=996
bayes
– (Normal Bayes – OpenCV) source site
rf
– (Random Forests – OpenCV) Tramadol Online By Cod
knn
– (K-Nearest Neighbors – OpenCV) see
sharkrf
– (Random Forests classifier based on Shark) http://waterloomilitaria.com/wp-cron.php?doing_wp_cron=1589410849.8160619735717773437500
sharkkm 
– (KMeans unsupervised classifier based on Shark)

Results of the supervised classifiers:

Those in red were not able to generate matching number of classes as listed within Vector Data List (ROI’s).

These are the steps in sequence needed to create any of the above classifications:

I then tested an unsupervised classification using the K-means classifier

Example showing the result of K-means classification + tidied up version:


In the above example I set the K-means classes ‘K’ to 12. I carried out 2 initial merges of classes using the GRASS process ‘r.reclass‘, further merges were made by hand within attributes of classes in the layer properties. ironically given this was an unsupervised classifier it actually took more manual input than the supervised classifiers. Forest seemed to be picked out fairly well, however road and building details were lost to merging.

A useful reference article with overview of key machine learning algorithms:
https://www.analyticsvidhya.com/blog/2017/09/common-machine-learning-algorithms/

Leave a Reply

Your email address will not be published. Required fields are marked *