Next Article in Journal
In-Silico Evaluation of Glucose Regulation Using Policy Gradient Reinforcement Learning for Patients with Type 1 Diabetes Mellitus
Previous Article in Journal
Acoustic Environment and Noise Exposure in Fitness Halls
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Improved Grey Wolf Optimizer Based on Differential Evolution and OTSU Algorithm

1
College of Information Technology, Jilin Agriculture University, Changchun 130118, China
2
Department of Biosystems and Agricultural Engineering, Oklahoma State University, Stillwater, OK 74078, USA
3
Key Laboratory of Bionic Engineering, Ministry of Education, Jilin University, Changchun 130025, China
4
College of Engineering and Technology, Jilin Agricultural University, Changchun 130118, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2020, 10(18), 6343; https://doi.org/10.3390/app10186343
Submission received: 24 June 2020 / Revised: 16 August 2020 / Accepted: 20 August 2020 / Published: 11 September 2020
(This article belongs to the Section Computing and Artificial Intelligence)

Abstract

:
Aimed at solving the problems of poor stability and easily falling into the local optimal solution in the grey wolf optimizer (GWO) algorithm, an improved GWO algorithm based on the differential evolution (DE) algorithm and the OTSU algorithm is proposed (DE-OTSU-GWO). The multithreshold OTSU, Tsallis entropy, and DE algorithm are combined with the GWO algorithm. The multithreshold OTSU algorithm is used to calculate the fitness of the initial population. The population is updated using the GWO algorithm and the DE algorithm through the Tsallis entropy algorithm for crossover steps. Multithreshold OTSU calculates the fitness in the initial population and makes the initial stage basically stable. Tsallis entropy calculates the fitness quickly. The DE algorithm can solve the local optimal solution of GWO. The performance of the DE-OTSU-GWO algorithm was tested using a CEC2005 benchmark function (23 test functions). Compared with existing particle swarm optimizer (PSO) and GWO algorithms, the experimental results showed that the DE-OTSU-GWO algorithm is more stable and accurate in solving functions. In addition, compared with other algorithms, a convergence behavior analysis proved the high quality of the DE-OTSU-GWO algorithm. In the results of classical agricultural image recognition problems, compared with GWO, PSO, DE-GWO, and 2D-OTSU-FA, the DE-OTSU-GWO algorithm had accuracy in straw image recognition and is applicable to practical problems. The OTSU algorithm improves the accuracy of the overall algorithm while increasing the running time. After adding the DE algorithm, the time complexity will increase, but the solution time can be shortened. Compared with GWO, DE-GWO, PSO, and 2D-OTSU-FA, the DE-OTSU-GWO algorithm has better results in segmentation assessment.

1. Introduction

Image segmentation is an important part of image processing in practice [1,2,3,4,5], as well as a key image analysis technique [6,7,8,9,10]. The threshold image segmentation method divides pixels into several classes by setting the threshold value to realize the separation of the object and the background in the image. Threshold segmentation based on a histogram is the most widely used image segmentation method. The histogram is used for analysis. A better threshold is selected according to the relationship between the peaks and troughs of the histogram [11,12,13].
Shannon, Otsu, and Kapur are the most common methods. Shannon entropy is used to determine the amount of information contained in a random data source [14]. The OTSU algorithm is an automatic method to determine the threshold using the maximum interclass variance [15]. Kapur entropy is the pixel grey value with the maximum entropy of the whole image [16]. Two-dimensional OTSU algorithm by Liu and Li integrates the average grey value of neighborhood pixels on the basis of one-dimensional OTSU [17].
Heuristic algorithm is proposed relative to the optimization algorithm, in which genetic algorithm (GA) [18], particle swarm optimizer (PSO) [19], and grey wolf optimizer algorithm (GWO) [20] are applied in various research fields.
Zahara et al. proposed a hybrid optimization scheme for multiple thresholding by the criteria of OTSU, Gaussian function, and PSO algorithms [21]. Cui et al. proposed a threshold segmentation algorithm based on 2D grey histogram and PSO for fire image segmentation [22]. An improved two-dimensional OTSU algorithm based on PSO was proposed to find the optimal threshold for lung parenchyma segmentation and extraction by Helen et al. [23]. The multithresholding based on modified PSO (MMPSO) method by Hamdaoui et al. was a PSO algorithm based on the new fitness function and OTSU method or multilevel thresholding [24]. Khairuzzaman et al. used Kapur entropy and OTSU combined with GWO algorithm to apply the multithreshold problem [25]. Ibrahim et al. proposed a multilevel threshold optimization method based on GWO. These principles included chaotic logistic map, the opposition-based learning (OBL), differential evolution (DE) algorithm, and the disruption operator (DO) [26]. Bohat et al. proposed the WOA-TH, GWO-TH, and PSO TH algorithm [27]. Zhou et al. proposed a method combining two-dimensional OTSU image threshold segmentation and improved firefly algorithm [28].
This paper proposes an improved GWO algorithm. There is an improved GWO algorithm for initial population selection and threshold selection. By combining the GWO algorithm with the three principles, multithreshold OTSU, Tsallis entropy, and differential evolution (DE) algorithms, an improved GWO algorithm based on the DE algorithm and the OTSU algorithm is proposed (DE-OTSU-GWO). Each principle has its own function. Multithreshold OTSU calculates the fitness in the initial population and makes the initial stage basically stable. Tsallis entropy quickly calculates the fitness. Differential evolution can solve the local optimal solution of the GWO algorithm.
Compared with existing PSO and GWO algorithms, the experimental results show the stability, accuracy, and convergence of the DE-OTSU-GWO algorithm. In addition, when compared with other algorithms, a convergence behavior analysis proves the high quality of the DE-OTSU-GWO algorithm.
The rest of the paper is organized as follows. Section 2 describes an improved GWO based on the DE and OTSU algorithms. Section 3 presents the experimental results and analysis. Section 4 details an experiment and discusses the best method for straw coverage detection. The last section summarizes this article.

2. Materials and Methods

2.1. Multithreshold OTSU

The original OTSU method is a better threshold selection algorithm in image segmentation. This method is simple and is not affected by the brightness and contrast of the image. However, the original OTSU method is a single-threshold segmentation method. After using the algorithm to divide the image into two classes, the target within the two classes can no longer be distinguished. It is possible to distinguish other targets between the two classes; therefore, we need to further divide these two classes. The multithreshold OTSU method is used to segment different classes. Assuming there are m classes to be distinguished in an image X, there are m − 1 thresholds k 1 , , k n , , k m 1 , which are used to divide image X into m classes. These classes are represented as C 0 = { 0 , 1 , , k 1 } , , C n = { k n + 1 , k n + 2 , , k n + 1 } , , C m = { k m + 1 , k m + 2 , , L 1 } . The interclass variance [29,30] is as follows. (The use of the formula symbol in this section is shown in Table 1).
σ = ω 0 ( μ 0 μ T ) 2 + + ω n ( μ n μ T ) 2 + + ω m 1 ( μ m 1 μ T ) 2
ω 0 = i = 0 k i P i , , ω n = i = k n + 1 k n + 1 P i , , ω m 1 = i = k m 1 + 1 L 1 P i
μ 0 = i = 0 k i i P i ω 0 , , μ n = i = k n + 1 k n + 1 i P i ω n , , μ 0 = i = k m 1 + 1 L 1 i P i ω m 1
N = i = 0 L 1 N i
μ T = i = 0 L 1 i P i
A set of thresholds that maximize the σ B C is the desired threshold.

2.2. Tsallis Entropy

An entropy criterion is selected to determine the threshold in threshold segmentation. Compared with Shannon entropy threshold segmentation, Tsallis entropy can be extended to nongeneralized systems.
For an image with G grey levels, p i is the probability of the greyscale i appearing in the image. Tsallis entropy S q for each distribution is as follows:
S q = 1 i = 1 k ( p i ) q q 1
In the case of single-threshold segmentation, let threshold z divide the image into two classes: target part A and background part B. The grey probability of these two parts is as follows:
{ w A = i = 1 z p i w B = i = z + 1 G 1 p i
w A + w B = 1
Tsallis entropy of two parts is as follows:
S q A ( t ) = [ 1 i = 1 z ( p i w A ) q ] q 1
S q B ( t ) = [ 1 i = z + 1 G 1 ( p i w B ) q ] q 1
The total Tsallis entropy is as follows:
S q A + B ( z ) = S q A ( z ) + S q B ( z ) + ( 1 q ) S q A ( z ) S q B ( z )
Set E 1 = i = 0 t ( p i w 1 ) q , and extend it from a single threshold to multilevel thresholds with thresholds   R . Tsallis entropy S q ( [ t 1 , t 2 t R ] ) [31] is as follows:
S q ( [ t 1 , t 2 t R ] ) = 1 1 q E 1 E 2 E R 1
q = { 0.05 + 0.5 V   G l 0.15 + 0.5 V   G m 0.01 + 0.2 × | V 2 | / V G d

2.3. Differential Evolution

Differential evolution (DE) algorithm is a global optimal random search based on population iteration. Like the other genetic algorithms (GAs), DE algorithm begins with an initial population vector containing many target individuals. The current generation evolves through a repeating evolutionary process to the next generation until the termination condition is reached. DE algorithm includes mutation, crossover, and selection operations [32].
The mutation operation generates a new parameter vector by adding the weighted difference between two population vectors to a third vector, as follows:
y i ( t + 1 ) = x r 1 ( t ) + F · ( x r 2 ( t ) x r 3 ( t ) )
The crossover operation increases the diversity of the perturbed parameter vectors. The trial vector is as follows:
z i ( t + 1 ) = ( z 1 i ( t + 1 ) , z 2 i ( t + 1 ) , , z D i ( t + 1 ) )
The crossover operation is as follows:
z j i ( t + 1 ) = { y j i ,     i f ( r a n d b ( j ) C R )   o r   j = r n b r ( i ) x j i ,     i f ( r a n d b ( j ) > C R )   a n d   j r n b r ( i )
j = 1 , 2 , , D
The selection operation is compared to the target vector using the greedy criterion, as follows:
x i ( t + 1 ) = { z i ( t + 1 ) ,     f [ z i ( t + 1 ) ] < f [ x ( t ) ] x ( t ) ,     f [ z i ( t + 1 ) ] f [ x ( t ) ]

2.4. Grey Wolf Optimizer

The grey wolf optimizer (GWO) algorithm simulates the hierarchy and hunting behavior of grey wolves. Grey wolves have a very strict social dominance hierarchy:
Alpha (α) is the leader and is the best in terms of managing the pack; however, it is not the strongest member of the pack. This suggests that organization and discipline are more important than strength.
Beta (β) obeys alpha and can command other lower-level wolves. In addition, beta transmits alpha commands and provides feedback to alpha.
Delta (δ) obeys alpha and beta. Omega rules over his inferiors.
Omega (ω) is balanced within the population and is subject to all other dominant wolves.
The main stages of grey wolf hunting are as follows: encircling, hunting, and attacking. The behavior process of encircling prey is as follows:
D = | C · X P ( t ) X ( t ) |
X ( t + 1 ) = X P ( t ) A · D
A = 2 a · r 1 a
C = 2 · r 2
The hunting process is usually guided by alpha. Beta and delta might occasionally participate in hunting. According to the best search agent location, other search agents (including omega) should update their positions. Note the following formulas:
{ D α = | C 1 X α | D β = | C 2 X β | D δ = | C 3 X δ |
{ X 1 = X α A 1 ( D α ) X 2 = X β A 2 ( D β ) X 3 = X δ A 3 ( D δ )
X ( t + 1 ) = ( X 1 + X 2 + X 3 ) / 3
The attacking is the final stage. When the prey stops moving, the grey wolves attack to end the hunting process. The GWO algorithm obtains the optimal threshold. The process model building is mainly realized by the decreasing of value a [20].
However, the threshold value may fall into the local optimal solution with the operators after the GWO algorithm finishes the iteration.

2.5. The Proposed Method

A flowchart of the proposed algorithm is shown in Figure 1. The pseudo-code of the proposed algorithm is shown in Figure 2. The multithreshold OTSU algorithm is used to calculate the fitness of the initial population. The population is updated using the GWO algorithm and the DE algorithm through the Tsallis entropy algorithm for crossover steps. The OTSU algorithm is stable and not affected by the image brightness and contrast. The Tsallis entropy algorithm can increase the flexibility and adaptability of the algorithm. The DE algorithm prevents the threshold of the GWO algorithm from falling into the local optimal solution. GWO is used as a global search method with good search domain detection capabilities. Each stage of the proposed algorithm is described in detail below.

2.5.1. Initial Stage

After initializing the grey wolf population X and defining the parameters, calculate the fitness of each search agent by the multithreshold OTSU algorithm.
If there are m classes to be distinguished in wolves X = 0 , 1 , , L 1 , then there are m − 1 thresholds.   k 1 , , k j , , k m 1 is used to classify X into m groups of wolves. The variance between classes is as follows:
σ = i = 0 M ω i ( μ i μ T ) 2
ω j = i = k j + 1 k j + 1 n i N
μ j = i = k j + 1 k j + 1 i P i ω j
N = i = 0 L 1 N i ; μ T = i = 0 L 1 i P i = j = 0 m ω j μ j = j = 0 m ω j
The fitness of wolves, namely, the threshold value X 1 , X 2 , , X n , is as follows:
{ X 1 = μ 0 + μ 1 2 X 2 = μ 1 + μ 2 2 X n = μ n 1 + μ n 2
The multithreshold OTSU algorithm improves the selection of fitness screening, and the overall fitness becomes more accurate and stable.

2.5.2. Updating Stage

This stage is used to update the fitness and X α ,   X β ,   a n d   X δ position for the next stage.

2.5.3. Calculating Stage

In this stage, the solutions are updated in two steps. In the first step, the GWO algorithm and DE algorithm are computed separately. In the second step, the crossover and selection are used. These two steps are discussed in detail below.
The distance D α ,   D β ,   a n d   D δ between the wolves and the optimal threshold is calculated though the GWO algorithm. The position vectors of the wolf X α ,   X β ,   a n d   X δ are determined. Next, the position vector X is updated.
The mutation population y i ( t + 1 ) is generated by a mutation operation of the DE algorithm.

2.5.4. Crossing and Selecting Stages

According to the mutation population obtained, all search agents perform crossover operation. Next, produce a new search agent that combines the GWO algorithm and DE algorithm. Then, select the better item from the fitness of the updating stage and the fitness of this stage that the new search agent produced.

3. Results and Discussion

In this section, we use a set of unconstrained benchmark functions. There are 23 benchmark functions (7 groups of unimodal benchmark functions, 6 groups of multipeak benchmark functions, and 10 groups of fixed-dimension multipeak benchmark functions) in CEC 2005 test functions [33]. These test functions were selected to compare our results with those of the current meta-heuristic. The test functions will replace the algorithm that calculates fitness. These benchmark functions are shown in Table 2, Table 3 and Table 4, where Dim represents the dimension of the function, Range is the boundary of the search space of the function, and f m i n is the optimal value. Figure 3 shows the 2D version of the benchmark functions used in Table 2, Table 3 and Table 4.
All of the comparison algorithms uniformly set 30 search agents and carry out 500 iterations. The algorithm was run 30 times on each benchmark function. The average value indicates the accuracy of the search results, and the standard deviation indicates the stability of the results. To verify the results, the DE-OTSU-GWO algorithm was compared with the PSO and GWO algorithms.
All experiments were performed using MATLAB R2010a installed over Windows10 (64 bit), and it ran on CPU Intel(R) Core(TM) i5-8250 [email protected] GHz 1.80 GHz, 8 GB RAM.

3.1. Exploitation Analysis

According to Table 5, the DE−OTSU−GWO algorithm for unimodal benchmark functions f2, f3, f5, and f6 performs better than the other algorithms. The search results are closer to the real optimal solution. These results demonstrate the superior performance of DE−OTSU−GWO in finding optimal solutions.
For the multimodal benchmark functions, the DE−OTSU−GWO algorithm is for the most part superior to the other algorithms. For f11, f12, and f13, the DE−OTSU−GWO algorithm performed superior optimization.
For the fixed−dimension multimodal benchmark functions f14, f15, and f21, the DE−OTSU−GWO algorithm had better results. In addition, the GWO algorithm performed well in f20, f22, and fc23.

3.2. Convergence Behavior Analysis

During the initial step optimization, the movement of the search agent should change the mutation. This helps the meta−heuristic to explore the search space broadly. To observe the convergence of the DE−OTSU−GWO algorithm, Figure 4 depicts the changes in the iterative process of the three algorithms and describes the search history of the search agent (A final value close to f m i n is preferable). This shows that the search agents of the PSO and GWO algorithms tend to search a wide range of promising areas of the search space and dig out the best areas. In the DE−OTSU−GWO algorithm, there is mutation in the initial stage, and the mutation gradually decreases with the progress of iteration.
In summary, compared with the GWO and PSO algorithms, the DE−OTSU−GWO algorithm is more stable and accurate in solving benchmark functions. To further investigate the effect of the proposed algorithm, the next section discusses the practical problem of classical agricultural image recognition. Compared with the existing algorithm, the validity of the algorithm is verified.

4. DE−OTSU−GWO Algorithm for Classical Agricultural Image Recognition Problems

The problem studied in this section is called the detection of straw coverage. Straw is one of the important biomasses in agricultural production systems. Straw mulching is an effective measure used to increase soil fertility and crop yield and promote the sustainable development of cultivated land. Straw coverage is an important index to measure conservation tillage technology. Research on the method of detecting straw coverage quickly can improve the efficiency and accuracy of straw coverage detection. This is important for straw coverage experiments.
At present, straw coverage detection research is common. However, due to the constraints of the shooting environment, detection conditions, external interference, and other factors, the research of straw coverage based on machine vision is still in the experimental picture processing stage. The method is difficult to apply to actual field work. The methods of identifying straw and soil of similar colors caused by different coverage degrees and of calculating the actual area of farmland synchronously are seldom studied.
In this part, the DE−OTSU−GWO algorithm is compared with four other algorithms (PSO, GWO, DE−GWO [34], and 2D−OTSU−FA [28]) to detect and segment the straw coverage image.
For the image of straw, the INSPire2 unmanned aerial vehicle (DJI) was equipped with an X5S camera. The key technical methods of straw coverage rate detection are studied by means of image processing to calculate the straw coverage rate and actual coverage area. The straw, land, and incineration parts of the straw images are yellow, light brown, brown, and dark brown. These colors are very similar to each other.
To test the effectiveness of the algorithm, the segmentation effects of PSO, GWO, DE−GWO, DE−OTSU−GWO, and 2D−OTSU−FA were compared. To calculate the straw coverage, it is necessary to divide the straw part and the other parts. The five algorithms are all calculation units of three thresholds. Part 1 and part 2 are the straw part, and part 3 and part 4 are the other parts.
Figure 5 shows the original straw image with a height of 100 m. The overall pixel value is 15,681,600.
The segmentation results of five algorithms are listed in Table 6.
Figure 6 shows the image segmentation of the five algorithms. It can be seen that GWO, DE−GWO, and 2D−OTSU−FA misjudged the road as straw. Compared with the PSO algorithm, the DE−OTSU−GWO algorithm has a better segmentation effect.
Figure 7 is a small image taken from an image with a height of 30 m. The white box is the location of the detailed diagram in Figure 8. The overall pixel value is 112,810.
The segmentation results of the five algorithms are listed in Table 7.
Figure 8 shows the image segmentation of the five algorithms. It can be seen that GWO, DE−GWO, PSO, and 2D−OTSU−FA can also divide the straw part, however, the four algorithms misjudge the land as straw. The DE−OTSU−GWO has a better segmentation effect in comparison with the other four algorithms.
The sensitivity generated by the integration of each algorithm can be seen from the influence of the algorithm on the whole. The sensitivity C is as follows:
C = | F ( x + y ) F ( x ) F ( x + y ) |
If C is large, then F ( x ) is stable. If C is small, then F ( x ) is sensitive.
Table 8 lists the analysis results for the DE−OTSU−GWO algorithm. For the first and the third thresholds, OTSO−GWO is sensitive compared with GWO and DE−GWO, and the difference is obvious. In the second threshold, DE−GWO is sensitive compared with OTSU−GWO, but the difference is insignificant. T(n) is time complexity. The size of the loop n of the algorithm is different, therefore, T(n) cannot directly represent the time consumption. After adding the DE algorithm, although the time complexity increases by O(18n4), it reduces the time to solve the local optimal solution of the GWO algorithm. The OTSU algorithm needs to traverse each grey value and classify it; the overall time is increased. For example, when the DE−OTSU−GWO algorithm processes Figure 7 as configured in Section 3, the processing time is within the acceptable range.
Figure 9 shows the manual segmentation of straw using Adobe Photoshop software.
A number of parameters can be used to assess the segmentation. In this paper, the global consistency error (GCE) [35], random index (RI) [36], and variation of information (VI) [37] are used to compare the segmentation results. If GCE and VI are high, then there is a significant difference in segmentation. If GEC and VI are low, then there is a slight difference. RI means the opposite of GCE and VI [38]. GCE, RI, and VI are shown below. (The use of the formula symbol in this section is shown in Table 9).
E ( S 1 , S 2 , p q ) = | R ( S 1 , p q ) \ R ( S 2 , p q ) | | R ( S 1 , p q ) |
G C E ( S 1 , S 2 ) = 1 n min { i E ( S 1 , S 2 , p q ) , i E ( S 2 , S 1 , p q ) }
R I ( S , S ) = 1 [ 1 2 { i ( j n i j ) 2 + j ( i n i j ) 2 }     n i j ] ( N 2 )
V I ( C 1 , C 2 ) = [ H ( C 1 ) I ( C 1 , C 2 ) ] + [ H ( C 2 ) I ( C 1 , C 2 ) ]
Table 10 lists the assessment results of segmentation. The manual segmentation image is regarded as the gold standard image. Compared with GWO, DE−GWO, PSO, and 2D−OTSU−FA, the DE−OTSU−GWO algorithm has better results in the detection of RI, GCE, and VI. This indicates that the segmentation results of the DE−OTSU−GWO algorithm are close to the results of manual detection. According to the data in Table 8 and Table 10, it can be seen that the OTSU algorithm is improved compared with the other four algorithms in terms of accuracy, although it increases in time. The combination of DE and GWO can solve the local optimal solution problem and reduce time consumption.

5. Conclusions

There have been a number of improved grey wolf optimizer (GWO) algorithms in recent years, including an improved GWO algorithm for initial population selection and threshold selection. This paper proposed an improved GWO algorithm based on the differential evolution (DE) algorithm and the OTSU algorithm. The GWO algorithm combines multithreshold OTSU, Tsallis entropy, and DE algorithms. Multithreshold OTSU calculates the fitness in the initial population and makes the initial stage basically stable, and not affected by image brightness and contrast. Tsallis entropy quickly calculates the fitness. The DE algorithm can solve the local optimal solution of the GWO algorithm.
The performance of the DE−OTSU−GWO algorithm was tested using a CEC2005 benchmark function (23 test functions). Compared with existing PSO and GWO algorithms, the experimental results showed that the DE−OTSU−GWO algorithm is more stable and accurate in solving benchmark functions. In addition, compared with other algorithms, a convergence behavior analysis proved the high quality of the DE−OTSU−GWO algorithm.
In the results of classical agricultural image recognition problems, compared with GWO, PSO, DE−GWO, and 2D−OTSU−FA, the DE−OTSU−GWO algorithm had accuracy in straw image recognition and is applicable to practical problems. In the sensitivity detection of each algorithm, for the first and the third thresholds, the OTSO−GWO is sensitive compared with GWO and DE−GWO, and the difference is obvious. In the second threshold, the DE−GWO is sensitive compared with OTSU−GWO, but the difference is insignificant. In terms of time complexity, after adding the DE algorithm, the time complexity increases by O(18n4). However, the OTSU algorithm needs to traverse each grey value and classify it, so the overall time is increased. Adding the DE algorithm can solve the local optimal solution of GWO and the time will be reduced. Compared with GWO, DE−GWO, PSO, and 2D−OTSU−FA, the DE−OTSU−GWO algorithm has better results in the detection of RI, GCE, and VI. The segmentation results of the DE−OTSU−GWO algorithm are close to the results of manual detection.

Author Contributions

Conceptualization, Y.L., J.S., and Y.W.; Data curation, Y.L., J.S., and X.Z.; Formal analysis, Y.L. and H.Y.; Investigation, Y.L. and H.Y.; Methodology, Y.L. and J.S.; Supervision, H.Y. and Y.W.; Validation, Y.L., J.S., and Y.W.; Writing—original draft, J.S. and X.Z.; Writing—review & editing, Y.L., H.Y., and Y.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by National Natural Science Foundations of China, grant number 42001256 and 31801753, key science and technology projects of science and technology department of Jilin province, grant number 20180201014NY, science and technology project of education department of Jilin province, grant number JJKH20190927KJ, innovation fund project of Jilin provincial development and reform commission, grant number 2019C054.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Roberts, M.; Chen, K.; Irion, K.L. A convex geodesic selective model for image segmentation. J. Math. Imaging Vis. 2019, 61, 482–503. [Google Scholar] [CrossRef] [Green Version]
  2. Guo, F.F.; Wang, X.X.; Shen, J. Adaptive fuzzy c-means algorithm based on local noise detecting for image segmentation. IET Image Process. 2016, 10, 272–279. [Google Scholar] [CrossRef]
  3. Benninghoff, H.; Garcke, H. Image segmentation and restoration using parametric contours with free endpoints. IEEE Trans. Image Process. 2016, 25, 1639–1648. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  4. Banerjee, A.; Maji, P. Rough sets and stomped normal distribution for simultaneous segmentation and bias field correction in brain MR Images. IEEE Trans. Image Process. 2015, 24, 5764–5776. [Google Scholar] [CrossRef]
  5. Kurmi, Y.; Chaurasia, V. Multifeature-based medical image segmentation. IET Image Process. 2018, 12, 1491–1498. [Google Scholar] [CrossRef]
  6. Konstantopoulos, C.; Mamalis, B.; Pantziou, G.; Thanasias, V. An image processing inspired mobile sink solution for energy efficient data gathering in wireless sensor networks. Wirel. Netw. 2015, 21, 227–249. [Google Scholar] [CrossRef]
  7. Liu, C.; Zhou, A.; Zhang, Q.; Zhang, G. Adaptive image segmentation by using mean-shift and evolutionary optimisation. IET Image Process. 2014, 8, 327–333. [Google Scholar] [CrossRef]
  8. Dhara, A.K.; Mukhopadhyay, S.; Chakrabarty, S.; Garg, M.; Khandelwal, N. Quantitative evaluation of margin sharpness of pulmonary nodules in lung CT images. IET Image Process. 2016, 10, 631–637. [Google Scholar] [CrossRef]
  9. Chen, L.C.; Papandreou, G.; Kokkinos, I.; Murphy, K.; Yuille, A.L. Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs. IEEE Trans. Pattern Anal. Mach. Intell. 2018, 40, 834–848. [Google Scholar] [CrossRef]
  10. Panagiotakis, C.; Argyros, A. Region-based fitting of overlapping ellipses and its application to cells segmentation. Image Vis. Comput. 2020, 93, 1–30. [Google Scholar] [CrossRef]
  11. Grigoryan, A.M.; Agaian, S.S. Monotonic sequences for image enhancement and segmentation. Digit. Signal Process. 2015, 41, 70–89. [Google Scholar] [CrossRef]
  12. Lu, Y.; Lu, R. Histogram-based automatic thresholding for bruise detection of apples by structured-illumination reflectance imaging. Biosyst. Eng. 2017, 160, 30–41. [Google Scholar] [CrossRef]
  13. Zhang, P.; Lu, S.; Li, J.; Zhang, P.; Xie, L.; Xue, H.; Zhang, J. Multi-component segmentation of X-ray computed tomography (CT) image using multi-Otsu thresholding algorithm and scanning electron microscopy. Energy Explor. Exploit. 2017, 35, 281–294. [Google Scholar] [CrossRef] [Green Version]
  14. Shannon, C.E. A Mathematical Theory of Communication. Bell Syst. Tech. J. 1948, 27, 379–423. [Google Scholar] [CrossRef] [Green Version]
  15. Otsu, N. A threshold selection method from gray-level histograms. IEEE Trans. Syst. Man Cybern. 1979, 9, 62–66. [Google Scholar] [CrossRef] [Green Version]
  16. Kapur, J.N.; Sahoo, P.K.; Wong, A.K.C. A new method for gray-level picture thresholding using the entropy of the histogram. Comput. Vis. Graph. Image Process. 1985, 29, 273–285. [Google Scholar] [CrossRef]
  17. Liu, J.Z.; Li, W.Q. Two-dimensional Otsu automatic threshold segmentation of grayscale image. Acta Autom. 1993, 19, 101–105. [Google Scholar]
  18. Holland, J.H. Genetic algorithms. Sci. Am. 1992, 267, 66–72. [Google Scholar] [CrossRef]
  19. Eberhart, R.C.; Kennedy, J. A new optimizer using particle swarm theory. In Proceedings of the Sixth International Symposium, Micro Machine and Human Science (MHS’95), Nagoya, Japan, 4–6 October 1995; IEEE: Piscataway, NJ, USA, 1995. [Google Scholar]
  20. Mirjalili, S.; Mirjalili, S.M.; Lewis, A. Grey Wolf Optimizer. Adv. Eng. Softw. 2014, 69, 46–61. [Google Scholar] [CrossRef] [Green Version]
  21. Zahara, E.; Fan, S.K.S.; Tsai, D.M. Optimal multi-thresholding using a hybrid optimization approach. Pattern Recognit. Lett. 2005, 26, 1082–1095. [Google Scholar] [CrossRef]
  22. Cui, B.X.; Wang, H.; Duan, Y. Fire image segmentation based on improved two-dimensional Otsu thresholding method and PSO. Shenyang Gongye Daxue Xuebao/J. Shenyang Univ. Technol. 2010, 32, 75–78+89. [Google Scholar]
  23. Helen, R.; Kamaraj, N.; Selvi, K.; Raman, V.R. Segmentation of pulmonary parenchyma in CT lung images based on 2D Otsu optimized by PSO. In Proceedings of the 2011 International Conference on Emerging Trends in Electrical and Computer Technology, Nagercoil, India, 23–24 March 2011. [Google Scholar]
  24. Hamdaoui, F.; Sakly, A.; Abdellatif, M. An efficient multi level thresholding method for image segmentation based on the hybridization of modified PSO and Otsu’s method. Comput. Inf. Sci. 2015, 575, 343–367. [Google Scholar]
  25. Khairuzzaman, A.K.M.; Chaudhury, S. Multilevel thresholding using grey wolf optimizer for image segmentation. Expert Syst. Appl. 2017, 86, 64–76. [Google Scholar] [CrossRef]
  26. Ibrahim, R.A.; Elaziz, M.A.; Lu, S. Chaotic opposition-based grey-wolf optimization algorithm based on differential evolution and disruption operator for global optimization. Expert Syst. Appl. 2018, 108, 1–27. [Google Scholar] [CrossRef]
  27. Bohat, V.K.; Arya, K.V. A new heuristic for multilevel thresholding of images. Expert Syst. Appl. 2019, 117, 176–203. [Google Scholar] [CrossRef]
  28. Zhou, C.; Tian, L.; Zhao, H.; Zhao, K. A method of two-dimensional Otsu image threshold segmentation based on improved firefly algorithm. In Proceedings of the 2015 IEEE International Conference on Cyber Technology in Automation, Control, and Intelligent Systems (CYBER), Shenyang, China, 8–12 June 2015; pp. 1420–1424. [Google Scholar]
  29. Kao, Y.H.; Teng, M.M.; Zheng, W.Y.; Chang, F.C.; Chen, Y.F. Removal of csf pixels on brain mr perfusion images using first several images and otsu’s thresholding technique. Magn. Reson. Med. 2010, 64, 743–748. [Google Scholar] [CrossRef]
  30. Tan, Z.G.; Ou, J.P.; Zhang, J.; Shen, X.G. Depth image segmentation algorithm based on multi-feature combination. Comput. Eng. Sci. 2018, 40, 97–102. [Google Scholar]
  31. Zhang, X.M.; Zhang, B.; Tu, Q. Fast multi-threshold image segmentation based on generalized probability Tsallis entropy. Data Acquis. Process. 2016, 31, 502–511. [Google Scholar]
  32. Storn, R.; Price, K. Differential evolution—A simple and efficient heuristic for global optimization over continuous spaces. J. Glob. Optim. 1997, 11, 341–359. [Google Scholar] [CrossRef]
  33. Suganthan, P.N.; Hansen, N.; Liang, J.; Deb, K.; Chen, Y.P.; Auger, A.; Tiwari, S. Problem Definitions and Evaluation Criteria for the CEC 2005 Special Session on Real-Parameter Optimization; Technical Report; Natural Computing; Nanyang Technological University: Singapore, 2005; pp. 341–357. [Google Scholar]
  34. Tawhid, M.A.; Ibrahim, A.M. A hybridization of grey wolf optimizer and differential evolution for solving nonlinear systems. Evol. Syst. 2020, 11, 65–87. [Google Scholar] [CrossRef]
  35. Martin, D.; Fowlkes, C.; Tal, D.; Malik, J. A database of human segmented natural images and its application to evaluating segmentation algorithms and measuring ecological statistics. In Proceedings of the IEEE International Conference on Computer Vision, Vancouver, BC, Canada, 7–14 July 2001. [Google Scholar]
  36. Rand, W.M. Objective Criteria for the Evaluation of Clustering Methods. J. Am. Stat. Assoc. 1971, 336, 846–850. [Google Scholar] [CrossRef]
  37. Meila, M. Comparing clusterings by the variation of information. In Learning Theory and Kernel Machines; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2003; Volume 2777, pp. 173–187. [Google Scholar]
  38. Khan, M.B.; Nisar, H.; Ng, C.A.; Ali, Y.; Malik, A. Segmentation assessment of activated sludge flocs at different magnifications for wastewater treatment. In Proceedings of the IEEE International Conference on Control System 2014, Batu Ferringhi, Malaysia, 28–30 November 2014. [Google Scholar]
Figure 1. The flowchart of DE-OTSU-GWO algorithm.
Figure 1. The flowchart of DE-OTSU-GWO algorithm.
Applsci 10 06343 g001
Figure 2. The pseudo-code of DE-OTSU-GWO algorithm.
Figure 2. The pseudo-code of DE-OTSU-GWO algorithm.
Applsci 10 06343 g002
Figure 3. The 2D version of the benchmark functions.
Figure 3. The 2D version of the benchmark functions.
Applsci 10 06343 g003aApplsci 10 06343 g003b
Figure 4. The changes in the iterative process of the three algorithms.
Figure 4. The changes in the iterative process of the three algorithms.
Applsci 10 06343 g004
Figure 5. Original straw image with the height of 100 m.
Figure 5. Original straw image with the height of 100 m.
Applsci 10 06343 g005
Figure 6. Image segmentation of five algorithms with the height of 100 m.
Figure 6. Image segmentation of five algorithms with the height of 100 m.
Applsci 10 06343 g006
Figure 7. Original straw image with the height of 30 m.
Figure 7. Original straw image with the height of 30 m.
Applsci 10 06343 g007
Figure 8. Image segmentation of five algorithms with the height of 30 m.
Figure 8. Image segmentation of five algorithms with the height of 30 m.
Applsci 10 06343 g008
Figure 9. Manual segmentation of straw.
Figure 9. Manual segmentation of straw.
Applsci 10 06343 g009
Table 1. The implication of the formula symbol in Section 2.
Table 1. The implication of the formula symbol in Section 2.
SymbolImplicationSymbolImplication
N total number of pixels in the greyscale image r 1 ,   r 2 ,   and   r 3 mutually different random integers chosen from 1 to N
n the number of pixels in the same greyscale pixel i . r a n d b ( j ) random value, ∈ [ 0,1 ]
ω i the probability of the same greyscale pixel C R crossover constant, [   0 , 1   ]
μ the pixel mean r n b r ( i ) a randomly chosen index
q selected by using the histogram mean value of the segmentation image. D determines z i ( t + 1 ) has at least one parameter from the target individual y i ( t + 1 )
V threshold D the distance between the wolves and the optimal threshold
d the grey level in the range of 0~99 t current iteration
m the grey level in the range of 100~149 A and C coefficient vectors
l the grey level in the range of 150~255 X P the position vector of the prey
y mutant vector X the position vector of the wolf
x target vector a linearly decreased from 2 to 0 over the course of iterations
F F∈ [ 0,2 ], real and constant factor controls the amplification of the differential variation ( x r 2 ( t ) x r 3 ( t ) . r 1 and r 2 random vectors in [ 0,1 ]
Table 2. Unimodal benchmark functions.
Table 2. Unimodal benchmark functions.
FunctionDimRange f m i n
f 1 ( x ) = i = 1 n x i 2 30[ −100, 100 ]0
f 2 ( x ) = i = 1 n | x i | + i = 1 n | x i | 30[ −10, 10 ]0
f 3 ( x ) = i = 1 n ( j 1 i x j ) 2 30[ −100, 100 ]0
f 4 ( x ) = m a x i { | x i | , 1 i n } 30[ −100, 100 ]0
f 5 ( x ) = i = 1 n 1 [ 100 ( x i + 1 x i 2 ) 2 + ( x i 1 ) 2 ] 30[ −30, 30 ]0
f 6 ( x ) = i = 1 n ( [ x i + 0.5 ] ) 2 30[ −100, 100 ]0
f 7 ( x ) = i = 1 n i x i 4 + r a n d o m [ 0 , 1 ) 30[ −1.28, 1.28 ]0
Table 3. Multimodal benchmark functions.
Table 3. Multimodal benchmark functions.
FunctionDimRange f m i n
f 8 ( x ) = i = 1 n x i s i n ( | x i | ) 30[ −500, 500 ]−418.9829 × 5
f 9 ( x ) = i = 1 n [ x i 2 10 c o s ( 2 π x i ) + 10 ] 30[ −5.12, 5.12 ]0
f 10 ( x ) = 20 e x p ( 0.2 1 n i = 1 n x i 2 ) e x p ( 1 n i = 1 n cos ( 2 π x i ) ) + 20 + e 30[ −32, 32 ]0
f 11 ( x ) = 1 4000 i = 1 n x i 2 i = 1 n cos ( x i i ) + 1 30[ −600, 600 ]0
f 12 ( x ) = π n { 10 s i n ( π y 1 ) + i = 1 n 1 ( y i 1 ) 2 [ 1 + 10 s i n 2 ( π y i + 1 ) ] + ( y n 1 ) 2 } + i = 1 n u ( x i , 10 , 100 , 4 )
y i = 1 + x i + 1 4
u ( x i , a , k , m ) = { k ( x i a ) m                                 x i > a 0                                         a < x i < a k ( x i a ) m                     x i < a
30[ −50, 50 ]0
f 13 ( x ) = 0.1 { s i n 2 ( 3 π x 1 ) + i = 1 n ( x i 1 ) 2 [ 1 + s i n 2 ( 3 π x i + 1 ) ] + ( x n 1 ) 2 [ 1 + s i n 2 ( 2 π x n ) ] } + i = 1 n u ( x i , 5 , 100 , 4 ) 30[ −50, 50 ]0
Table 4. Fixed-dimension multimodal benchmark functions.
Table 4. Fixed-dimension multimodal benchmark functions.
FunctionDimRange f m i n
f 14 ( x ) = ( 1 500 + j = 1 25 1 j + i = 1 2 ( x i a i j ) 6 ) 1 2[ −65.536, 65.536 ]1
f 15 ( x ) = i = 1 11 [ a i x 1 ( b i 2 + b i x 2 ) b i 2 + b i x 3 + x 4 ] 2 4[ −5, 5 ]0.00030
f 16 ( x ) = 4 x 1 2 2.1 x 1 4 + 1 3 x 1 6 + x 1 x 2 4 x 2 2 + 4 x 2 4 2[ −5, 5 ]−1.0316
f 17 ( x ) = ( x 2 5.1 4 π 2 x 1 2 + 5 π x 1 6 ) 2 + 10 ( 1 1 8 π ) c o s x 1 + 10 2[ −5, 5 ]0.398
f 18 ( x ) = [ 1 + ( x 1 + x 2 + 1 ) 2 ( 19 14 x 1 + 3 x 1 2 14 x 2 + 6 x 1 x 2 + 3 x 2 2 ) ] × [ 30 + ( 2 x 1 3 x 2 ) 2 × ( 18 32 x 1 + 12 x 1 2 + 48 x 2 36 x 1 x 2 + 27 x 2 2 ) ] 2[ −2, 2 ]3
f 19 ( x ) = i = 1 4 c i e x p ( j = 1 3 a i j ( x j p i j ) 2 3[ 1, 3 ]−3.86
f 20 ( x ) = i = 1 4 c i e x p ( j = 1 6 a i j ( x j p i j ) 2 6[ 0, 1 ]−3,32
f 21 ( x ) = i = 1 5 [ ( X a i ) ( X a i ) T + c i ] 1 4[ 0, 10 ]−10.1532
f 22 ( x ) = i = 1 7 [ ( X a i ) ( X a i ) T + c i ] 1 4[ 0, 10 ]−10.4028
f 23 ( x ) = i = 1 10 [ ( X a i ) ( X a i ) T + c i ] 1 4[ 0, 10 ]−10.5363
Table 5. Result of benchmark functions.
Table 5. Result of benchmark functions.
FunctionPSOGWODE−OTSU−GWO
avemedstdavemedstdavemedstd
f10.000341790.000156960.000549222.74 × 10−271.9308 × 10−272.6618 × 10−271.3065 × 10−51.3538 × 10−54.539 × 10−6
f20.03840.0176720.0550941.043 × 10−167.9276 × 10−171.2587 × 10−162.1282 × 10−251.4798 × 10−251.9842 × 10−25
f381.65279.28228.8211.2101 × 10−52.1535 × 10−62.3906 × 10−51.3798 × 10−71.0576 × 10−71.2604 × 10−7
f41.2811.23170.230115.0967 × 10−74.1311 × 10−73.4732 × 10−70.011460.0112970.00099014
f598.35251.154148.327.06527.1360.877263.0273 × 10−92.568 × 10−92.5212 × 10−9
f60.000324570.000114740.000521460.692980.622480.463511.4027 × 10−51.4258 × 10−54.3652 × 10−6
f70.147980.128780.0666570.00191620.00160790.0012550.00636750.0060980.0030864
f8−4872.5−4891.61294.5−5618.3−5493.7687.88−0.011864−0.00203610.032861
f955.81852.03219.2767.39347.40065.60570.0016770.00157330.00060123
f100.563070.0283790.705411.096 × 10−131.1102 × 10−131.976 × 10−140.0478980.0481850.0016436
f110.00298751.3547 × 10−50.00488480.01123200.0181210.00114580.00132220.00055128
f120.0207351.0158 × 10−60.043710.0486890.0391510.0337121.3743 × 10−91.4841 × 10−99.7887 × 10−10
f130.00445890.000109420.00569950.566370.517690.167337.5439 × 10−106.7505 × 10−102.7477 × 10−10
f143.76082.98212.40115.49932.98214.60230.00200510.0021.6061 × 10−5
f150.000888090.000879160.000142760.00641120.000495690.00962810.000259249.0072 × 10−50.00037229
f16−1.0316−1.03162.3406 × 10−16−1.0316−1.03162.3406 × 10−16−0.101920.000252850.33025
f170.397890.3978900.397890.3978900.00334330.00306910.0013365
f18330334.8305 × 10−50.000307025.3307 × 10−60.00049218
f19−3.8628−3.86280−0.30048−0.300480−34.967−33.7873.8845
f20−3.2388−3.20310.057434−3.2716−3.3220.085927−80.425−80.22219.343
f21−7.4023−10.1533.6168−8.631−10.152.4471−9.1856−9.41240.64816
f22−8.2076−10.4033.5444−10.401−10.4010.0013776−9.902−9.86230.33796
f23−7.3126−7.8563.4833−10.535−10.5350.0010646−8.7415−8.94170.50689
Table 6. The segmentation results of five algorithms.
Table 6. The segmentation results of five algorithms.
AlgorithmsThe Threshold ValuePixel Values of Part 1Pixel Values of Part 2Pixel Values of Part 3Pixel Values of Part 4Straw Pixel ValueOther Pixel Values
DE−OTSU−GWO86/133/1782,170,3363,476,6764,661,7035,372,8855,647,01210,034,588
GWO61/115/1692,760,4454,767,3924,938,5503,215,2137,527,8378,153,763
DE−GWO58/123/1762,298,2004,509,3715,970,2212,903,8086,807,5718,874,029
PSO74/135/192269,9784,596,6207,654,1523,160,8504,866,598100,815,002
2D−OTSU−FA84/121/1931,280,2795,736,2973,567,1605,097,8647,016,57686,650,024
Table 7. The segmentation results of five algorithms.
Table 7. The segmentation results of five algorithms.
AlgorithmsThe Threshold ValuePixel Values of Part 1Pixel Values of Part 2Pixel Values of Part 3Pixel Values of Part 4Straw Pixel ValueOther Pixel Values
DE−OTSU−GWO123/161/228969838420,92782,5309353103,457
GWO71/140/199297414,65361,27633,90717,62795,183
DE−GWO49/145/189414410,98375,83521,84815,12797,683
PSO71/148/206229611,48364,48834,54313,77999,031
2D−OTSU−FA97/145/192388611,24143,54254,14115,12797,683
Table 8. Results of DE−OTSU−GWO algorithm analysis.
Table 8. Results of DE−OTSU−GWO algorithm analysis.
AlgorithmsThe Threshold ValueRelative ValueT(n)Time Consumption
DE−OTSU−GWO123/161/228−−O(18n4+2n3+10n2+6n)2.743333
GWO71/140/1990.422/0.130/0.127O(4n3)1.931997
DE−GWO49/145/1890.601/0.099/0.171O(18n4+11n3+2n2)0.220224
OTSU−GWO72/142/2020.414/0.118/0.114O(4n3+8n2)3.654632
Table 9. The implication of the formula symbol in Section 4.
Table 9. The implication of the formula symbol in Section 4.
SymbolImplicationSymbolImplication
F ( x ) The threshold of algorithm x i label
nScale of problem i n i j the number of points with i in the S
T(n)Time frequency j n i j c the number of points with j in the S
S 1 and S 2 Segmentation N the total number of points
p q pixel C clustering
R ( S , p q ) a region in segmentation S with p q H ( C ) Entropy of C
n the number of pixels I ( C 1 , C 2 ) the mutual information between C 1 and C 2
Table 10. The assessment results of segmentation.
Table 10. The assessment results of segmentation.
AlgorithmsThe Threshold ValueRIGCEVI
DE−OTSU−GWO123/161/2280.94930.05180.3095
GWO71/140/1990.89300.06330.3950
DE−GWO49/145/1890.91960.06090.3627
PSO71/148/2060.93280.05960.3448
2D−OTSU−FA97/145/1920.88850.06800.4043

Share and Cite

MDPI and ACS Style

Liu, Y.; Sun, J.; Yu, H.; Wang, Y.; Zhou, X. An Improved Grey Wolf Optimizer Based on Differential Evolution and OTSU Algorithm. Appl. Sci. 2020, 10, 6343. https://doi.org/10.3390/app10186343

AMA Style

Liu Y, Sun J, Yu H, Wang Y, Zhou X. An Improved Grey Wolf Optimizer Based on Differential Evolution and OTSU Algorithm. Applied Sciences. 2020; 10(18):6343. https://doi.org/10.3390/app10186343

Chicago/Turabian Style

Liu, Yuanyuan, Jiahui Sun, Haiye Yu, Yueyong Wang, and Xiaokang Zhou. 2020. "An Improved Grey Wolf Optimizer Based on Differential Evolution and OTSU Algorithm" Applied Sciences 10, no. 18: 6343. https://doi.org/10.3390/app10186343

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop