Mangrove ecosystem Segmentation from Drone Images using Otsu Method
on
p-ISSN: 2301-5373
e-ISSN: 2654-5101
Jurnal Elektronik Ilmu Komputer Udayana
Volume 9 No. 3, February 2021
Mangrove Ecosystem Segmentation from Drone Images using Otsu Method
Ni Made Dinda Pratiwia1, I Made Widiarthaa2
aInformatics Department, Udayana University Bali, Indonesia
Abstract
Mangrove ecosystems are found mainly in tropical and subtropical coastal areas. they are playing a very important ecological role in land-ocean interfaces. These ecosystems are protecting the environment and providing a habitat that supports many living organisms. Identification of area images in mangrove ecosystems is very helpful in monitoring and conservation of this ecosystem. In this study, we will present the segmentation of drone image taken from TAHURA Ngurah Rai mangrove area using otsu method. The otsu method giving well accuracy to segmented image to divide mangrove area and non mangrove area. Because Otsu method operates on a grayscale image so that it cannot distinguish the dark green of the tree canopies from the dark shadows of the trees, then the segmentation accuracy will decrease.
Keywords: Image Segmentation, Otsu Method, Thresholding, Mangrove, Drones
Unmanned aerial vehicles (UAV) has been heightened interest in the use for acquiring images for mapping and monitoring vegetation, over this past decade. UAVs commonly known as drones refer to small aircraft without a pilot on board with its associated elements such as ground station and communications link. The use of UAVs is very useful in helping for monitoring environmental management, road traffic analysis, mapping, and many other applications [1].
Mangrove ecosystems are found mainly in tropical and subtropical coastal areas. they are playing a very important ecological role in land-ocean interfaces. Mangrove ecosystem is a place for reciprocal relationships between abiotic components such as organic and inorganic compounds, protection from storms and erosion, aid in the breaking of waves, controlling seawater intrusion. In addition, the mangrove ecosystem has biological/ecological (sources of germplasm, and fish spawning sites), and economics. (NTFP, recreation, and infrastructure). It is extremely important to protect and preserve the mangrove ecosystem, by monitoring the condition of the mangrove ecosystem, and later it is used as material for mangrove management planning.
The mangrove ecosystem is difficult to penetrate because it has tall roots blocking the road, plus a muddy substrate that traps the feet. This becomes an obstacle when conducting direct monitoring of the mangrove ecosystem. Aerial photograph using drones could be a promising way in mangrove monitoring. The drones can be use to get images for mapping hard-to-reach areas, easy to launch on demand and to repeat surveys when required, can be programmed to fly at very low altitudes so they are not affected by the cloud cover conditions, taking imagery of higher resolution than satellite images.
Segmenting airborne drone images of mangrove ecosystems is an important part of classifying the image. Segmentation is the process of partitioning an image into multiple segments. In the process of image segmentation, several studies with varied approaches have been carried out.
Otsu method is global thresholding selection method, which it depends only gray value of the image. Otsu method is widely used because it is simple and effective [2]. There are several studies that have been made previously related to segmentation using otsu method. To segment
the roads and residential areas from the vegetation areas in remote sensing images. The Otsu method improves the image segmentation effectively. Because it directly operates on the gray level histogram, so it gets better accuracy and the precision than other thresholding methods [3].
In this study, the author will use otsu method to segment mangrove areas from the areas in drone image. segmentation will focus on determining image which parts are mangroves and not mangroves.
In these research methods, the steps in the research will be explained. Subchapters of discussion that will be explained include :
The airborne imagery used in this study was acquired using drones flying over TAHURA Ngurah Rai Bali mangrove area. All the images are of size 4864x3648 , 72 dpi and have bit depth of 24. All the images are RGB images with color information ranging [0–255]. The amount of image data used is 5 drone images.
Grayscaling preprocessing is to convert the input image RGB to a grayscale image. This process is an image processing process to convert color images that have a matrix value of red, green, and blue respectively into grayscale images.
( R e d+G r e en+Blu e)
(1)
gray = -----------
Figure 1. Grayscale Image
Changing the grayscale image to binary image. Binary images are digital images that have only two possible pixel values, namely black and white. Globally, every pixel in the image is mapped into two values, namely 1 and 0, with the development function as in equation (2):
Ft[i,j] = {
1 if F[i,j]≤T 0 otherwise
(2)
Figure 2. Binary Image
The image will be segmented using otsu thresholding, to separate between the foreground and background on an image based on differences in brightness or lightness.
The otsu method aims to divide the gray image histogram into two different areas automatically without any help from the user to enter a threshold value [4]. The algorithm assumes that the image contains two classes of pixels, foreground pixels and background pixels, then calculates the optimum threshold separating the two classes so that their combined spread (intra-class variance) is minimal, or equivalently (because the sum of pairwise squared distances is constant), so that their inter-class variance is maximal [5].
Otsu's method, exhaustively search for the threshold that minimizes the intra-class variance (the variance within the class), defined as a weighted sum of variances of the two classes:
The weighted within–class variance is:
σ^c(t) = fc1(t)σ12(t)+ k2(t)σ⅝)(3)
Weights k1 and k2 are the probabilities of the two classes separated by a threshold t,σ1and σ2 are the variances of these two classes.
The class probabilities k1(t) and k2(t) are computed from the L bins of histogram:
Otsu shows that minimizing the intra-class variance is the same as maximizing inter-class variance:
The total variance can be express as :
σ2 (t) = σ2c(t) + kι(t)[1 - kι(t)][μι(t) - Mt)] 2
Evaluation is done on a binary image based on the foreground and background. The evaluation or testing process uses confusion matrix by calculating quantitative values of accuracy to its groundtruth image.
The confusion matrix is a table of visualizing the algorithm process. Each row in the matrix represents an example of each actual class while each column represents an example of the predicted class. Confusion matrix for background (N) and foreground (P) classes.
Figure 3. Confusion Matrix
Accuracy is a value calculated from the number of properly detected background and foreground pixels with the total number of background and foreground pixels.
TP+TN
TP+FP+TN+FN
(8)
This study, several test results were obtained, differentiating the mangrove area and non mangrove area :
Table 1. Segmentation Result
No. |
Input Image |
Otsu output image |
Accuracy | |
1. |
⅛>! '⅛wHKBMτ |
.■.'.'''■.■< . ' -■ |
0.94720019395 99204 | |
2. |
i '¾⅛,⅛ |
■■■m |
0.90598016036 18421 | |
3. |
≡^im - ;’ ⅛^⅛ |
^O^^RΠH wW⅛⅛B |
0.61429489572 5127 | |
4. |
L ; MM ■ - '■ ∖y< u lBIfe⅛5⅛<; ■ ⅛⅛⅛ ⅛SII⅛⅛⅛siffls^ |
, . i’--- HMHi |
0.93041524420 37453 | |
5. |
⅛S> ¼<U∕' I 7''< |
'⅛ ^3H ¾o⅞θiw∣ιι^ |
K⅛⅜⅜ |
0.74911152424 90478 |
From above results, we can see that the results of the accuracy value have the highest value 94,72% and the lowest value 61,42%.
The otsu method doesn’t giving best performance to the image that has a lot shadows. Because Otsu method operates on a grayscale image so that it cannot distinguish the dark green of the tree canopies from the dark shadows of the trees.
This study discusses mangrove segmentation from drone image TAHURA Ngurah Rai Bali mangrove area. The method used is otsu threshold method. Previously the preprocessing process was done by grayscaling and binarization to produce a good system output in the segmentation process.
Segmentation using the otsu method gives quite good results. But gives fewer results if the image used has a lot of shadows. The Otsu method operates on a grayscale image so that it cannot distinguish the dark green of the tree canopies from the dark shadows of the trees.
References
-
[1] E. Zimudzi, I. Sanders, N. Rollings and C. Omlin, "Segmenting mangrove ecosystems drone images using SLIC superpixels," Geocarto International, 2018.
-
[2] Khushbu and I. Vats, "Otsu Image Segmentation Algorithm: A Review," International Journal of Innovative Research in Computer and Communication Engineering, vol. 5, no. 5, pp. 11945-11948, 2017.
-
[3] C. V. V. S. Srinivas, M. V. R. V. Prasad and M. Sirisha, "Remote Sensing Image Segmentation using OTSU Algorithm," International Journal of Computer Applications, vol. 178, p. 0975 – 8887, 2019.
-
[4] P. Harnis, Y. A. Sari and M. A. Rahman, "Segmentasi Citra Kue Tradisional menggunakan Otsu Thresholding pada Ruang Warna CIE LAB," Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer, vol. 3, pp. 6799-6808, 2019.
-
[5] S. I. Syafi’i, R. T. Wahyuningrum and A. Muntasa, "Segmentasi Obyek Pada Citra Digital Menggunakan Metode Otsu Thresholding," Jurnal Informatika, vol. 13, no. 1, pp. 1-8, 2015.
-
[6] P. P. Vijay and N. C. Patil, "Gray Scale Image Segmentation using OTSU Thresholding Optimal Approach," International Journal for Scientific Research and Development, vol. 2, no. 5, pp. 20-24, 2016.
This page is intentionally left blank
396
Discussion and feedback