# What is the best classifier for UAV images?

**URL:** <https://forum.orfeo-toolbox.org/t/what-is-the-best-classifier-for-uav-images/1195>\
**Category:** OTB Usage\
**Created:** [November 16, 2021, 8:52pm UTC](https://forum.orfeo-toolbox.org/t/what-is-the-best-classifier-for-uav-images/1195 "2021-11-16T20:52:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![btpearse](https://forum.orfeo-toolbox.org/letter_avatar_proxy/v4/letter/b/f0a364/32.png) [@btpearse](https://forum.orfeo-toolbox.org/u/btpearse)\
**Post date:** [November 16, 2021, 8:52pm UTC](https://forum.orfeo-toolbox.org/t/what-is-the-best-classifier-for-uav-images/1195/1 "2021-11-16T20:52:28Z")

</div>

Hello,

My question has two parts. I have multispectral (r, g, b, RE, NIR) UAV orthomosaic that I am trying to classify. I am doing the following steps:

1. Large Scale mean shift
2. Train Vector Classifier
3. Vector Classification

My questions are:

1. is there a general consensus as to what the best classifier in the Train Vector Classifier step is?  
So far, I have used the Random Forest classifier, which has done well, but I really just chose it at random.

2. for my validation data, I have currently selected these myself but I am wondering if they are supposed to be random? Most of my image is a rocky substrate and if I choose them at random the majority of my checkpoints will be on the rocky class and miss out on my other classes.

---

<div class="post-metadata">

**Author:** ![wkcmark](https://forum.orfeo-toolbox.org/letter_avatar_proxy/v4/letter/w/c68b51/32.png) [@wkcmark](https://forum.orfeo-toolbox.org/u/wkcmark)\
**Post date:** [November 20, 2021, 11:31pm UTC](https://forum.orfeo-toolbox.org/t/what-is-the-best-classifier-for-uav-images/1195/2 "2021-11-20T23:31:34Z")

</div>

I get good results using LibSVM classifier with SVM Kernal Type of Gaussian Radial Basis Function

---

<div class="post-metadata">

**Author:** ![remi.cresson](https://forum.orfeo-toolbox.org/user_avatar/forum.orfeo-toolbox.org/remi.cresson/32/1270_2.png) [@remi.cresson](https://forum.orfeo-toolbox.org/u/remi.cresson)\
**Post date:** [November 24, 2021, 8:52pm UTC](https://forum.orfeo-toolbox.org/t/what-is-the-best-classifier-for-uav-images/1195/3 "2021-11-24T20:52:24Z")

</div>

For your approach:

1. RF is good because less sensitive to noise in training data
2. Its hard to say since it depends on what you want to measure. Ideally of course you should have enough elements to represent well the classes distributions.

Personally I prefer semantic segmentation (with convolutional neural networks) than OBIA based approach.

---

<div class="post-metadata">

**Author:** ![wkcmark](https://forum.orfeo-toolbox.org/letter_avatar_proxy/v4/letter/w/c68b51/32.png) [@wkcmark](https://forum.orfeo-toolbox.org/u/wkcmark)\
**Post date:** [November 26, 2021, 9:48am UTC](https://forum.orfeo-toolbox.org/t/what-is-the-best-classifier-for-uav-images/1195/4 "2021-11-26T09:48:35Z")

</div>

Can you perform semantic segmentation (with convolutional neural networks) using OTB?

---

<div class="post-metadata">

**Author:** ![remi.cresson](https://forum.orfeo-toolbox.org/user_avatar/forum.orfeo-toolbox.org/remi.cresson/32/1270_2.png) [@remi.cresson](https://forum.orfeo-toolbox.org/u/remi.cresson)\
**Post date:** [November 26, 2021, 11:33am UTC](https://forum.orfeo-toolbox.org/t/what-is-the-best-classifier-for-uav-images/1195/5 "2021-11-26T11:33:14Z")

</div>

Yes you can with the [OTBTF remote module](https://github.com/remicres/otbtf).

---

<div class="post-metadata">

**Author:** ![wkcmark](https://forum.orfeo-toolbox.org/letter_avatar_proxy/v4/letter/w/c68b51/32.png) [@wkcmark](https://forum.orfeo-toolbox.org/u/wkcmark)\
**Post date:** [November 29, 2021, 11:22am UTC](https://forum.orfeo-toolbox.org/t/what-is-the-best-classifier-for-uav-images/1195/6 "2021-11-29T11:22:18Z")

</div>

Great thanks I’ll look into it.
