Next Article in Journal
Finite Representations of the Wright Function
Previous Article in Journal
(ω,c)-Periodic Solution to Semilinear Integro-Differential Equations with Hadamard Derivatives
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Otsu Image Segmentation Based on a Fractional Order Moth–Flame Optimization Algorithm

Department of Electrical and Electronic Engineering, Ningxia University, Yinchuan 750021, China
*
Author to whom correspondence should be addressed.
Fractal Fract. 2024, 8(2), 87; https://doi.org/10.3390/fractalfract8020087
Submission received: 15 November 2023 / Revised: 12 January 2024 / Accepted: 25 January 2024 / Published: 28 January 2024

Abstract

:
To solve the shortcomings of the Otsu image segmentation algorithm based on traditional Moth–Flame Optimization (MFO), such as its poor segmentation accuracy, slow convergence, and tendency to fall into local optimum, this paper proposes fractional order moth–flame optimization with the Otsu image segmentation algorithm. Utilizing the advantages of memorability and heritability in fractional order differentiation, the position updating of moths is controlled by fractional order. Using the adaptive fractional order, the positions of moths are used to adjust the fractional order adaptively to improve the convergence speed. Combining the improved MFO algorithm with the two-dimensional Otsu algorithm, the optimization objective function is achieved by using its dispersion matrix. The experimental results indicate that, compared with traditional MFO, the convergence rate of the proposed algorithm is improved by about 74.62%. Furthermore, it has better segmentation accuracy and a higher fitness value than traditional MFO.

1. Introduction

Image segmentation is a crucial part of image processing that aims to divide an image into meaningful parts and extract the target of interest [1]. One of the most commonly used segmentation methods is threshold image segmentation, which is both simple and effective. The maximum inter-class variance method (Otsu) is a classical algorithm for threshold segmentation. On the basis of the image grayscale histogram, it maximizes the inter-class variance of the target and the background as the basis for automatically determining the segmentation threshold. The two-dimensional Otsu algorithm has better segmentation and higher operational efficiency than the traditional Otsu algorithm. Xiong et al. [2] presented an interleaved Otsu algorithm to segment MR images with biased fields. In most cases, the method excluded MR images that were severely corrupted by noise and achieved the desired classification of MR images with intensity inhomogeneities. Kumar et al. [3] introduced a context energy curve-based three-dimensional Otsu algorithm that considers both pixel intensity values and spatial information with the same histogram properties. In terms of performance metrics, the energy curve-based three-dimensional Otsu algorithm is superior to the histogram-based Otsu algorithm, which has better segmentation results.
Moth–flame optimization (MFO) is a novel population intelligence algorithm proposed by Seyedali Mirjalili in 2015. It based on the lateral navigation mechanism of moths in flight when simulating their spiral flight paths [4], which has received widespread attention in recent years. The et al. [5] provided a method to enhance the MFO algorithm by employing a combination of Levy flight functions and logarithmic functions in the flame update formulation. This method was also evaluated using a set of benchmark functions and multi-threshold image segmentation from CEC2013. The experimental results show that the improved algorithm is more effective. Khairuzzaman et al. [6] improved the MFO algorithm and applied it to multi-threshold image segmentation. Cross-entropy was used as an objective function to select the optimal threshold. Their algorithm was compared with the original MFO, Particle Swarm Optimization (PSO), Bacterial Foraging Optimization (BFO), and the Whale Optimization Algorithm (WOA); it performed better in terms of image segmentation quality, stability, and time.
In recent years, fractional order calculus has become increasingly common in modern signal analysis and processing. For example, it has been a hot topic in research for a long time because of its significant advantages in enhancing signal strength and stabilizing the signal [7]. With images being one of the important fields of signal analysis and processing, fractional order calculus is applied to the research directions of image enhancement, segmentation, and edge detection, and there has been a significant amount of research on this. In order to reach the optimal threshold, it is common for optimization algorithms to be combined. Yang et al. [8] proposed an algorithm that is adaptive for fractional order wolf packs. The algorithm’s convergence speed is enhanced by adaptively adjusting the fractional order based on the position information of wolves. Yousri et al. [9] employed fractional order calculus and a cuckoo search algorithm to identify the parameters of fractional order-chaotic, noisy-chaotic, and hyper-chaotic financial systems and it operated with a greater efficiency. However, there are a few researchers that have combined fractional order and population intelligence algorithms for image segmentation [10].
In response to the low segmentation accuracy of the Otsu algorithm, the MFO algorithm still suffers from the problems of having a slow convergence and easily falling into local optimality. Considering the superiority of fractional order calculus in the fields of signal analysis and image processing, this paper proposed an Otsu image segmentation algorithm based on fractional order MFO to solve the above problems. Taking the advantages of fractional order differentiation, which has memory for past states, the position updating of moths is controlled by fractional order. Using the adaptive fractional order, the position of moths is used to adjust the fractional order adaptively to improve the convergence speed. Aiming towards obtaining the optimal threshold, we combined the improved MFO algorithm with the two-dimensional Otsu algorithm to enhance the segmentation accuracy and convergence speed of the image.

2. Materials

2.1. Two-Dimensional Otsu Threshold Segmentation Algorithm

In 1979, the Otsu algorithm, an efficient adaptive threshold segmentation algorithm, was proposed by a Japanese scholar named OTSU [11]. Using the gray scale properties of the image, the idea is to divide the image into two parts: the target and the background. The binary image can be obtained by utilizing the different and large differences in the grayscale histograms and background changes in the target image by calculating the interclass variance, as the higher the interclass variance is, the greater the pixel difference between the background and the target of the image. The effectiveness of image segmentation is determined by the threshold value selection.
The segmentation results are poor because the Otsu algorithm does not fully utilize the correlation information between pixel points. It is affected by noise and other disturbing factors [12]. A two-dimensional Otsu algorithm can solve the above problems [13]. Both the distribution of the gray values of pixels and the differences between them and the average gray levels of their neighboring pixels are considered in the two-dimensional Otsu algorithm. The result is a two-dimensional vector threshold that enhances segmentation accuracy. A two-dimensional histogram of the gray scale gradient is formed if the horizontal coordinate is regarded as the gray scale, and the vertical coordinate is regarded as the gradient.
In the following discussion, assuming the size of an image is M × N , i and j are grayscale and gradient, respectively. The probability that a pixel n i j   occurs is:
p i j = n i j M × N .
The grayscale image is divided into two classes by threshold: the background class (B) and the target class (T).
The probability distributions of these can be expressed as follows:
P B s , t = i = 1 s j = 1 t p i j ,
P T s , t = i = s + 1 L j = t + 1 L p i j ,
where, L , s , and t are, respectively, the gray level, average gray level of the segmentation threshold, and the gradient value.
We define the mean vector u , u B , and u T , respectively, with the following:
u s , t = u i , u j T = i = 1 s j = 1 t i p i j , i = 1 s j = 1 t j p i j T ,
u B s , t = u B i , u B j T = i = 1 s j = 1 t i p i j p B , i = 1 s j = 1 t j p i j p B T ,
u T s , t = u T i , u T j T = i = 1 s j = 1 t i p i j p T , i = 1 s j = 1 t j p i j p T T ,
where u , u B , and u T , respectively, are the total mean vector of pixels, the mean vector of background classes, and the target classes.
The function of the inter-class dispersion matrix between the pixels in the background and the target class is:
S ( s , t ) = P B × u B u × u B u T + P T × u T u × u T u T .
A higher value of the dispersion measure indicates a larger contrast between the background and the target, which leads to greater segmentation accuracy. Therefore, the optimal segmentation threshold s , t for the image is determined by the maximum value of the discretization measure function. This can be expressed as:
t r S s , t = m a x t r S s , t = P B s , t × u B i u i 2 + u B j u j 2 + P T s , t × u T i u i 2 + u T j u j 2 .
Although the two-dimensional Otsu algorithm can improve image segmentation accuracy, its performance improvement is dependent on increasing the computation time. It cannot overcome the slow segmentation speed of the traditional Otsu algorithm [14]. Consequently, optimization is performed with the help of group intelligence algorithms. This paper combined the MFO algorithm with the two-dimensional Otsu algorithm to enhance the segmentation effect and convergence speed.

2.2. The MFO Algorithm

2.2.1. Principles of MFO

The MFO algorithm is a new type of heuristic algorithm that takes inspiration from the lateral navigation mechanism of moths during flight. A moth has a unique way of navigating at night. To fly in a straight line, it relies on moonlight by using a transverse orientation mechanism that keeps a fixed angle relative to the moon. However, moths frequently mistake artificial light for the light emitted by the moon in real life. Moths spiral around the artificial light to avoid eventually converging on the light source, which also demonstrates the ineffectiveness of lateral localization. Chen et al. [15] indicates that the position of the moth is a variable in solving the optimization problem in the MFO algorithm, and the flame is the best position currently. Moths approach the global optimal position by changing position vectors in the search space through spiral flight. In the traditional MFO algorithm, the matrix M is used to represent the moth’s position as follows:
M = m 1 ,   1 m 1,2 m 1 , d m 2,1 m n , 1 m 2,2 m n , 2 m 2 , d m n , d ,
where n and d , respectively, are the number of moths and the dimension of the control variable. The fitness values of the moths are stored in the matrix O M , which is denoted as follows:
O M = O M 1 O M 2 O M n ,
where n is the number of moths.
The MFO algorithm requires each moth to update its position using the unique flame corresponding to it, which effectively avoids it from falling into a local optimum. Therefore, the moth population in the search space was consistent with the number of flames in the initial iteration. The position of the flame is represented by the matrix F as follows:
F = F 1 ,   1 F 1,2 F 1 , d F 2,1 F n , 1 F 2,2 F n , 2 F 2 , d F n , d ,
where n and d , respectively, are the number of moths and the dimension of the control variable. The matrix O F stores the fitness values of the flame, denoted as follows:
O F = O F 1 O F 2 O F n ,
where n is the number of moths.
The search space is populated by moths, and each moth searches a flame by tagging and updating it as it finds a better solution. The MFO algorithm is described as a globally optimal ternary as follows:
M F O = I , P , T .
The function I generates a population of moths and their fitness values randomly. The model is as follows:
I : φ M , O M .
P is the principal function that moves the moth through the search space. M a t r i x   M is accepted by P , and returns the updated value.
P : M M .
The function T will return true if the termination criterion is fulfilled; otherwise, it will return false.
T : M t r u e , f a l s e .
Function P is used to change the moth’s position in the search space after initializing function I . Until the function T returns true, the iteration will be executed.

2.2.2. Location Update and Spiral Search Mechanism

Moths flying around a flame follow a spiral search mechanism. Three conditions are met by this mechanism, i.e., the starting point of the spiral function is the position of the moth, the end point of the moth’s flight is the flame position, and the fluctuation of the spiral function adopts a logarithmic spiral structure. Meanwhile, it is also required that the fluctuation range does not exceed the search space. The spiral equation allows the moth to fly “around” the flame, rather than just in the space between the flames. Moths can obtain new positions by flying around the flame through a spiral search mechanism, which ensures exploration and utilization of the search space. According to Ma et al. [16], the spiral flight equation for a moth is:
X i t + 1 = X i t F i t e b l cos 2 π l + F i t ,
where X and F , respectively, represent the moth populations and flame populations. i is the selected problem dimension, t represents the current iteration number, and b denotes the constant that defines the shape of the logarithmic spiral. l is a random number between 1 ,   1 ; when nearest to the flame, l is −1, and when farthest from the flame, l is 1.
An adaptive reduction mechanism is proposed for the flames in order to improve the efficiency of the optimization search [4]. The global optimal solution was the only flame that remained in the last iteration. The flame reduction process is shown in Equation (18):
F l a m e n o = r o u n d N t × N 1 T ,
where   t and T , respectively, are the current and maximum number of iterations. N is defined as the initial number of flames. The number of iterative flames decreases linearly from N to 1.
The MFO algorithm has advantages over other group intelligence algorithms such as fewer parameters, a simpler algorithmic model, and a stronger parallel optimization ability, but it still has some shortcomings. The moth position updating mechanism in the algorithm is achieved by using the logarithmic spiral function. The optimal solution of the moth is saved as the flame position for the next generation in the iterative process, and by matching the moth to the sorted flame one by one, the MFO algorithm’s local development capability can be improved. If the moth’s new position is superior to the flame’s during multiple iterations, the flame must be updated in its entirety at this point. But, if the flame before updating is closer to the global optimal position, the moth misses the opportunity to continue to find the optimal position when the flame is updated in the global optimal position. The algorithm tends to fall into local extremes due to this.

3. Methods

3.1. Fractional Order Calculus

According to Bolat [17], Leibniz introduced fractional order calculus at the same time as his theory of calculus, which encompasses fractional order differentiation and fractional order integration. It has better memorization and hereditary properties [18] and it is a step forward in the field of integer order calculus. Fractional order calculus has different definitions, and the common expression for the G–L (Grumwald–Letniko) definition is [19]:
D v x t = lim h 0 1 h v k = 0 + 1 k Γ v + 1 x t k h Γ k + 1 Γ v k + 1 .
Its discrete expression is:
D v x t = 1 T v k = 0 r 1 k Γ v + 1 x t k h k ! Γ v k + 1 ,
where: v ϵ 0 ,   1 stands for order; r and T , respectively, are the cut-off order and cycle; and Γ N = 0 e t t n 1 d t = n 1 ! is a Gamma function.

3.2. MFO Algorithms for Fractional Order Optimization

This paper proposed a fractional order moth–flame optimization (FMFO) algorithm to prevent the traditional MFO algorithm from reaching local optimality and enhance the algorithm’s convergence speed. It takes advantage of the memory and genetic properties of fractional order differentiation to combine the MFO algorithm with fractional order differentiation. During spiral flight, the algorithm controls the moth’s position update with fractional order and introduces adaptive fractional order. Its convergence speed can be improved by adaptively adjusting the fractional order based on the moth’s position information. Equation (17) can be replaced by:
X i t + 1 X i t = X i t F i t e b l cos 2 π l + F i t X i t ,
where the left side of Equation (21) shows the discrete form of the fractional order G–L, which defines the order as 1. In Equation (20), let T = 1 , and r = 4 can be obtained:
D v x t + 1 x t + 1 v x t + 1 2 v v 1 x t 1 1 6 v v 1 v 2 x t 2 + 1 24 v v 1 v 2 v 3 x t 3 .
From Equation (22), it can be seen that the fractional order differentiation results are connected to the past state values, and the influence of these past state values on the current state diminishes as time goes by. Its unique past memory allows it to describe processes that have time spans, changes in spatial location, and changes in velocity more accurately. Thus, fractional order differentiation is added to the spiral flight of the MFO algorithm and the moth’s spiral flight behavior of Equation (22) can be described as:
x t + 1 = v x t 1 2 v v 1 x t 1 + 1 6 v v 1 v 2 x t 2 1 24 v v 1 v 2 v 3 x t 3 + X i t F i t e b l cos 2 π l + F i t .
As shown in the equation above, the fractional order can affect the moth position update. Wei et al. [20] showed an evolutionary factor to make the fractional order adaptively. Moth position information is used to adaptively adjust the fractional order. The specific steps for this are as follows:
The average distance between one moth i and other moths is:
d i x = 1 N j = 1 , j i N k = 1 D x i k x j k 2 ,
where N and D are, respectively, the number and dimension of moths.
The moth’s current state is determined by the evolution factor f , which can be expressed as:
f = d g d m i n d m a x d m i n ϵ 0 ,   1 ,
where d g is the global optimal position, i.e., the average distance from the flame position to the other moths, and d m a x and d m i n , respectively, are the maximum and minimum values of d i x .
According to Wei et al. [20], the astringent effect is best when the fractional order and the dynamic regulation mechanism of order v is:
v f = 1 2 e 0.47 f ϵ 0.5 ,   0.8 .

3.3. FMFO Algorithms for Two-Dimensional Otsu Image Segmentation

The original MFO algorithm with the optimized two-dimensional Otsu image segmentation algorithm (MFO-Otsu) can solve the traditional Otsu algorithm’s problem of low segmentation accuracy. However, the algorithm continues to converge slowly and tends to fall into extremes. Aiming to alleviate these problems, this paper applies the fractional order differential algorithm and the MFO algorithm to the Otsu segmentation algorithm, and introduces the adaptive fractional order. Then, the two-dimensional Otsu image threshold segmentation algorithm based on the fractional order MFO algorithm (FMFO-Otsu) is proposed. The steps of this algorithm are as follows:
1.
Initialize the parameters. Let the number of populations N = 20 , maximum number of iterations T = 100 , individual moth locations be x i , logarithmic spiral shape constant be b , current number of iterations be t , and flight factor l ϵ 1 ,   1 .
2.
Input the image to be segmented and generate the objective function based on the two-dimensional Otsu segmentation algorithm.
3.
Use the moth’s current position as a two-dimensional threshold vector to optimize, using Equation (7) as the objective function. The value of the objective function is used to generate moth locations as the initial populations. Then, the flame is assigned the moth’s spatial position after sorting it in the order of increasing value of the objective function. The flame’s initial position is determined by the optimal value, and the positions of the moth and the flame are saved and sorted.
4.
Determine whether the termination condition is fulfilled. If it is fulfilled, the optimal position is obtained as the segmentation threshold. If it is not fulfilled, the algorithm continues to be executed.
5.
Update the moth position of the current generation in accordance with Equation (23), the fractional order spiral flight formula.
6.
Reorder the updated moth and flame locations according to the objective function values, and the location of the next generation flame will be selected based on the spatial location update with a better objective function value.
7.
According to Equation (18), the adaptive mechanism decreases the number of flames from N linear to 1 through iterations.
8.
Identify whether the maximum number of iterations has been reached, exit the iteration if it has been reached, or go back to step 3 if it has not been reached.
9.
The optimal position of the output s , t is used as the best threshold for two-dimensional Otsu image segmentation.
The flow of the FMFO-Otsu algorithm is shown in Figure 1.

4. Results and Discussion

4.1. Benchmark Function

4.1.1. Test Function

To verify the effect of improvement on the traditional MFO algorithm, this paper used six benchmark test functions that are commonly used in group intelligence algorithms to conduct simulation experiments on the MFO and FMFO. The specific descriptions of all functions are shown in Table 1. Here, f o p t is the theoretical optimum, and x i denotes the position of the ith moth. The function dimension d is set to 10, the population size N of the two algorithms is 20, and the number of iterations is 1000. Among these, f 1 , f 2 , and f 3 are single-modal functions. They have only one globally optimal solution in the domain of definition but no local extremes, and they are more suitable to test the convergence speed of the algorithm. f 4 and f 5 are multi-modal functions where the number of local minima increases exponentially with the problem dimension, and they can measure the optimization accuracy and capability of the algorithm. f 6 is multi-modal function with many local minima, for which the number of local minima for each function and the dimension of the function are small. These benchmark test functions are useful for us to judge the performance of algorithms.

4.1.2. Test Results

The convergence curves of the Schwefel 2.21 Function, Rosenbrock Function, Quartic Function, Ackley Function, Griewank Function, and Kowalik Function are shown in Figure 2. According to Figure 2a, the MFO algorithm tends to converge after 1000 iterations, while the FMFO algorithm converges at around 190 iterations. Figure 2b shows that the MFO algorithm converges slowly in the early stage and only starts to converge after 1000 iterations. Its ability to seek optimization is weak and the accuracy of its convergence is poor. In Figure 2c, it can be seen that the FMFO algorithm is closer to the theoretical optimum, but the MFO algorithm performs poorly in terms of both convergence accuracy and speed. In Figure 2d,e, the fitness curves of the MFO algorithm become parallel to the x-axis after 600 and 500 times, respectively. This indicates that the MFO algorithm is stuck in a local optimality and it is difficult for the algorithm to jump out of the local optimality at a later stage. The MFO algorithm’s optimization seeking performance is limited, it suffers from local convergence defects and performs poorly overall. From Figure 2f, it can be seen that FMFO converges earlier than MFO and is closer to the optimal value.
Compared to the MFO algorithm, the FMFO algorithm introduces adaptive fractional order differentiation in the global optimization. As we can be seen from Figure 2, the FMFO algorithm has more folds. This illustrates that the algorithm has a strong ability to jump out of the local optimum. The results show that the FMFO algorithm is closer to the theoretical optimum than the MFO algorithm, and that the convergence speed of the FMFO algorithm is significantly superior to the MFO algorithm, which shows a better optimization-seeking effect.

4.2. Image Segmentation Results and Analysis

This paper tested the convergence speed and segmentation accuracy of the improved algorithm by using different types of images from the Standardized Test Image Dataset, Berkeley Segmentation Dataset, and UCI Dataset for the experiments. Firstly, the algorithm proposed in this paper (FMFO-Otsu) was compared with the original MFO optimized two-dimensional Otsu image segmentation algorithm (MFO-Otsu), Fractional Order Cuckoo Search Otsu algorithm (FCS-Otsu) [21], Fractional Order Particle Swarm Otsu algorithm (FPSO-Otsu) [20], and Fractional Order Firefly Otsu algorithm (FFA-Otsu) [22]. Then, in order to further verify the performance of the improved algorithm and the superiority of fractional order, the FMFO-Otsu algorithm was compared with the two-dimensional Otsu image segmentation algorithm based on Other group intelligence algorithms, including the two-dimensional Otsu based on the Cuckoo Search algorithm (CS-Otsu) [21], the two-dimensional Otsu based on the Particle Swarm algorithm (PSO-Otsu) [20], the two-dimensional Otsu based on the Wolf Pack algorithm (WPA-Otsu) [8], and the two-dimensional Otsu based on the Sparrow Search algorithm (SSA-Otsu) [23].
In this paper, the algorithm’s convergence speed is evaluated according to the number of iterations required to reach convergence in the fitness curve. Evaluation metrics for image segmentation accuracy include the fitness value, peak signal-to-noise ratio (PSNR), structural similarity (SSIM), and mean square error (MSE). The larger the fitness value, the greater the spacing between the background class and the target class, which indicates a more pronounced segmentation effect. The larger the PSNR value, the less noise information is required and the more the algorithm’s noise immunity is improved. The greater the SSIM value, the smaller the difference between the image before and after segmentation, and the better the image segmentation quality. And the MSE reflects the error of image segmentation that the accuracy of image segmentation increases with the smaller the MSE.
There were different types of images selected for the segmentation experiment. Some of these images were analyzed in detail, such as showing the image segmentation effect, the fitness curve, and the evaluation metrics. Some other images were averaged for each metric in addition to showing the image segmentation effect. Six types of images were used for image segmentation: character images, architectural images, animal images, plant images, scenery images, and object images.
In the first part, the following four images were presented: the Couple image, the Cablecar image, the Boats image, and the Building image. The image segmentation results are shown in Figure 3. In subjective vision, for the segmentation of the Couple image, FCS-Otsu, FPSO-Otsu, and FFA-Otsu over-segmented some regions like the face of a person and part of the background. The edges of the image were not segmented precisely enough with MFO-Otsu. In comparison, FMFO-Otsu generated more detailed segmentation results in the corner and character. In the Cablecar image segmentation results, FMFO-Otsu was better able to preserve the Cablecar details and segments, such as the detailed parts around the lawn in the red frame area, than other algorithms. For the segmentation of the Boats image, the other four algorithms did not segment the vessel contour completely. For example, there is a slight lack of details in the MFO-Otsu algorithm. But FMFO-Otsu retained more details and accurately segmented the edges of the image. In the Building image segmentation results, FMFO-Otsu generated more detailed segmentation results in the bridge and lake areas. Therefore, the FMFO-Otsu algorithm performed better in the segmentation of these images.
The objective evaluation index of the Couple image, the Cablecar image, the Boats image, and the Building image segmentation results are shown in Table 2, and Figure 4 indicates the fitness curve of them. For the segmentation results of the Couple image, MFO-Otsu finds the segmentation threshold in 31 iterations, FCS-Otsu reaches convergence at 14 iterations, FPSO-Otsu and FFA-Otsu both converge after 9 iterations, and FMFO-Otsu converges at 7 times. Therefore, FMFO-Otsu achieves maximum class spacing first, which means that FMFO-Otsu converges faster than other algorithms. In addition, FMFO-Otsu had the highest fitness value. The PSNR of FMFO-Otsu is higher than the other four algorithms. This shows that FMFO-Otsu is capable of enhancing the segmentation details of the image and ensuring noise immunity. Furthermore, FMFO-Otsu has a lower MSE than the other four algorithms, which suggests that its accuracy is more advantageous compared to the other algorithms.
For the Cablecar image, MFO-Otsu falls into local optimum after about 30 iterations, FCS-Otsu converges around 22, FPSO-Otsu finishes converging around 11, FFA-Otsu converges after 13 iterations, and FMFO-Otsu discovers the best segmentation threshold in 6 iterations. And the PSNR, SSIM, and fitness values of FMFO-Otsu are improved when compared to the other four algorithms. As the value of fitness increases, the value of the discretization matrix in the Otsu segmentation algorithm increases, i.e., the target and background class segmentation becomes more pronounced. It is evident that FMFO-Otsu not only improves the convergence speed but also enhances the accuracy of the image segmentation results. The MSE of FMFO-Otsu is lower than the other four algorithms, which indicates that FMFO-Otsu has a lower error rate before and after segmentation.
For the Boats image, MFO-Otsu reaches convergence after 29 iterations, FCS-Otsu converges around 11 times, FPSO-Otsu converges at 17 times, FFA-Otsu converges after 6 iterations, and FMFO-Otsu has the fastest speed that finishes converging around 4 times. Furthermore, the PSNR of FMFO-Otsu is greater than the other four algorithms, while the SSIM is slightly inferior. And there was a significant increase in the fitness value of FMFO-Otsu. Despite this, FMFO-Otsu is more noise-resistant and has superior segmentation details overall. The MSE of FMFO-Otsu is lower than others, which means that the segmentation effect of FMFO-Otsu is superior to that of the other algorithms.
For the Building image, the convergence of the FMFO-Otsu algorithm, compared with MFO-Otsu, FCS-Otsu, FPSO-Otsu, and FFA-Otsu, is accelerated by 83.33%, 93.58%, 92.85%, and 28.57%, respectively. As for other objective evaluation indicators, FMFO-Otsu performs better than the other algorithms. This indicates that the performance of the FMFO-Otsu algorithm has been significantly improved compared to the original algorithm.
To confirm the segmentation effect of FMFO-Otsu on various images in this paper, 28 images of characters, 32 images of architectures, 24 images of animals, and 15 images of plants were selected from other datasets and segmented using MFO-Otsu, FCS-Otsu, FPSO-Otsu, FFA-Otsu, and FMFO-Otsu. Then, we calculated the average value of objective evaluation indexes. The average experimental values are presented in Table 3, Table 4, Table 5 and Table 6, and some corresponding experimental segmentation images can be found in Figure 5, Figure 6, Figure 7 and Figure 8. The disparities in image segmentation outcomes among the various algorithms are emphasized by the red squares.
Figure 5 shows the original character images and the segmented images, and the average objective evaluation index values for the character images are indicated in Table 3. Based on the resultant segmentation, it can be seen that FMFO-Otsu not only preserves the image contours better, but also segments the edge parts better. For example, in the first row of images, FMFO-Otsu preserves the details well in the wall part. For the second image, FMFO-Otsu generates more details in the grass and construction areas. Based on objective metrics, the iterations of FMFO-Otsu were decreased by 75%, 73%, 72%, and 46% compared to MFO-Otsu, FCS-Otsu, FPSO-Otsu, and FFA-Otsu, respectively. PSNR values improved by 0.4%, 3%, 2.7%, and 50%, respectively. SSIM values improved by 2.4%, 8.6%, 10%, and 99%, respectively. MSE values declined by 0.84%, 6.9%, 6.2%, and 66.1%, respectively. The fitness values improved by 0.08%, 15.8%, 15.7%, and 16%, respectively. These experimental results demonstrate that FMFO-Otsu yields superior segmentation outcomes.
Figure 6 shows the original building image and the image segmented by the five algorithms. The evaluations after calculating the averages of the architectural images are shown in Table 4. In the first row of images, FMFO-Otsu is more detailed in the yard and roof sections. In the second row of images, all five algorithms roughly retained the outline of the original image, but FMFO-Otsu divided the first floor more clearly. For the third image, FMFO-Otsu better preserved the details of the top of the building and the bridge. For the fourth image, FMFO-Otsu produced a more complete outline. On the basis of objective data, FMFO-Otsu achieves higher accuracy in segmenting architectural images, especially in terms of the PSNR value, MSE value, and fitness value, showing significant improvements.
Figure 7 shows the original animal images and the segmented results. Table 5 lists the average values for the animal images after segmentation. In the image of the first line, the segmentation effect of FCS-Otsu, FPSO-Otsu, and FFA-Otsu is poor, while the segmentation effect of FMFO-Otsu is more accurate. Image 2 preserves the outline of the original image completely. In the third image, FMFO-Otsu’s division of the stone is much clearer. In the fourth image segmentation result, compared with the other algorithms, FMFO-Otsu can segment the edge of the image better on the basis of preserving the image contour. In the objective data on the animal images, FMFO-Otsu performed better overall. Compared with MFO-Otsu, the PSNR, SSIM, fitness value, and convergence speed increased by 0.39%, 4.87%, 0.09%, and 61.9%, respectively, and the MSE decreased by 0.75%.
Figure 8 shows the original images of the plants and the segmented details. The average indicators after the segmentation of plant images are shown in Table 6. Due to the nature of the plant image in the first row of these images, FMFO-Otsu segmented out more details in the leaf section. In the second image, FMFO-Otsu not only better preserved the details of the middle flowers, but also better divided the flowers at the edges. In Figure 3 and Figure 4, the segmentation effect of FMFO-Otsu is more obvious. From the objective data, compared with MFO-Otsu and FPSO-Otsu, the PSNR value increased by 2.62% and 3.63%; the SSIM value increased by 1.4% and 21.92%; the MSE value decreased by 5.41% and 7.05%; and the fitness value increased by 0.55% and 19.16%. The convergence rate was improved by 72.73% and 78.05%. Therefore, compared with the other four algorithms, FMFO-Otsu has a faster segmentation rate and higher accuracy.
In the second part, to more effectively illustrate the segmentation effect of the proposed algorithm and the advantages of fractional order, the FMFO-Otsu algorithm was compared with the CS-Otsu algorithm, the PSO-Otsu algorithm, the WPA-Otsu algorithm, and the SSA-Otsu algorithm.
The four images that were presented are as follows: the Cat image, the Girl image, the Cemetery image, and the Lawn image. The segmentation results for these images are shown in Figure 9. In the subjective visual perspective, for the segmentation of the Cat image, the segmentation results of the other algorithms were comparatively rough, whereas FMFO-Otsu exhibited clearer segmentation in the cat’s ears and forehead area. In the case of the Girl image, although all five algorithms successfully segmented the silhouette of the girl, FMFO-Otsu outperformed others in terms of capturing the finer details. Regarding the Cemetery image, PSO-Otsu, CS-Otsu, and SSA-Otsu demonstrated imprecise segmentation. However, FMFO-Otsu preserved better delineation in the road area. Unlike other algorithms that failed to fully segment the Lawn image, FMFO-Otsu generated more comprehensive contours. Consequently, it can be concluded that FMFO-Otsu achieves the superior segmentation performance.
The objective evaluation indexes of the Cat image, the Girl image, the Cemetery image, and the Lawn image segmentation results are shown in Table 7, and Figure 10 indicates the fitness curves of these results. For the segmentation results of the Cat image, the CS-Otsu algorithm converges after 29 iterations, and the SSA-Otsu and PSO-Otsu algorithms converge after 68 and 66 iterations, respectively. The WPA algorithm achieves convergence at approximately 99 iterations, whereas the FMFO-Otsu algorithm converges much faster, at around 11 iterations. Hence, it can be concluded that the FMFO-Otsu algorithm exhibits a superior convergence rate compared to the other algorithms. Based on objective data from the Cat images, compared to CS-Otsu, SSA-Otsu, PSO-Otsu, and WPA-Otsu, FMFO-Otsu improved the PSNR by 0.94%, 1.27%, 122.31%, and 1.10%, respectively. The SSIM increased by 7.78%, 8.78%, 11285.19%, and 8.35%, respectively. The fitness value added by 14.26%, 14.10%, 14.13%, and 14.12%, respectively. The MSE decreased by 2.35%, 3.17%, 75.61%, and 2.74%, respectively. The iteration rate was accelerated by 62.07%, 83.82%, 83.33%, and 88.89%, respectively.
For the segmentation of the Girl image, CS-Otsu and PSO-Otsu converge after 58 and 59 iterations, respectively. PSO-Otsu falls into local optimality after 95 iterations, WPA-Otsu converges after 83 iterations, and FMFO-Otsu converges around 8 iterations. Compared to the other four algorithms, the iteration rate of FMFO-Otsu is improved by 86.21%, 86.44%, 91.58%, and 90.36%, respectively. From the objective evaluation index of the Girl image, it can be seen that the PSNR value, SSIM value, and adaptation value of FMFO-Otsu are higher than the other four algorithms, which indicates that the image details of FMFO-Otsu’s segmentation are better and the noise resistance is stronger. The MSE values of FMFO-Otsu are all lower than those of the other four algorithms, indicating that the accuracy of FMFO-Otsu’s segmentation is more favorable than the other algorithms.
In the Cemetery image segmentation, CS-Otsu converges at about 33 iterations, SSA-Otsu converges at about 54 iterations, PSO-Otsu and WPA-Otsu converge after 91 and 90 iterations, respectively, and FMFO-Otsu approximately converges at 4 iterations. In addition, the objective metrics of FMFO-Otsu are dramatically enhanced compared to all four methods, demonstrating that the fractional order enhances the performance of the original MFO algorithm significantly.
The fitness curve of the Lawn image shows that FMFO-Otsu has a faster iteration speed than other algorithms. Consequently, FMFO-Otsu increases the algorithm’s rate of convergence and fixes the issue with the previous algorithm’s susceptibility to local optimization. Furthermore, a higher degree of resemblance is indicated by FMFO-Otsu’s highest SSIM value. The MSE values of FMFO-Otsu are all lower than those of the other algorithms, indicating that the errors before and after image segmentation are smaller and the segmentation accuracy is improved. Therefore, FMFO-Otsu has a greater segmentation accuracy as a result.
There are 12 scenery images and 9 object images that were selected and segmented using the above five algorithms, and the results are averaged. The partial segmentation results are shown in Figure 11 and Figure 12, and the average segmentation results are shown in Table 8 and Table 9.
The original and segmented scenery images are shown in Figure 11. Table 8 describes the average data for the plant image segmentation. Subjectively, for the images in the first and second rows, FMFO-Otsu can segment some details more clearly than other algorithms. In the images on the third and fourth rows, some edge regions of the CS-Otsu, PSO-Otsu, and SSA-Otsu results were not clearly divided, but FMFO-Otsu’s result was better divided in the window and branch areas. According to the objective index, the performance of the FMFO-Otsu algorithm is better. For example, compared with CS-Otsu, SSA-Otsu, and WPA-Otsu, the iterations of FMFO-Otsu were decreased by 82.93%, 90%, and 90.41%, respectively; the PSNR values improved by 2.05%, 2.46%, and 2.19%, respectively; the SSIM values improved by 1.07%, 1.48%, and 1.24%, respectively; the MSE values declined by 5.7%, 6.71%, and 5.98%, respectively; and the fitness values improved by 9.32%, 9.32%, and 9.28%, respectively.
Figure 12 shows the original object images and the segmented images after five algorithms. The evaluation indicators after the object image averaging are shown in Table 9. In Figure 1, FMFO-Otsu splits a clear outline of the car. In the second row of images, CS-Otsu, SSA-Otsu, and PSO-Otsu exhibit the phenomenon of over-segmentation. For the third and fourth lines of images, the contours after FMFO-Otsu segmentation are clearer. According to the objective data, the SSIM value is slightly poor, but other indicators are effectively improved. FMFO-Otsu has a higher PSNR value and fitness value, and a lower MSE value and number of iterations. Through the above experimental results of different types of image segmentation, it can be seen that FMFO-Otsu performs better in subjective vision and several objective evaluation indexes. The algorithm convergence speed has also been improved.

5. Conclusions

The MFO algorithm has some drawbacks, including its low optimization accuracy, slow convergence rate, and its being prone to fall into local optimality. To avoid the disadvantages of the MFO algorithm, this paper proposes the FMFO algorithm based on adaptive parameters and fractional order differentiation. With the help of fractional order differentiation’s ability to memorize historical states, the position update of moths during flight is controlled with adaptive fractional order. The FMFO algorithm was tested on six benchmark functions and compared with the MFO algorithm. The results display that the FMFO algorithm’s local exploitation is improved and the speed of convergence was enhanced. The FMFO-Otsu algorithm is proposed in order to be used for image segmentation by combining the FMFO algorithm with the two-dimensional Otsu algorithm. To validate the segmentation effect of this FMFO-Otsu algorithm, this paper uses several types of images to demonstrate it, such as scenery images, character images, animal images, and so on. According to the results from this experiment, although the improvement of individual metrics is small, the convergence speed and segmentation accuracy of FMFO-Otsu are better than those of other algorithms, generally. Compared with the MFO-Otsu algorithm, the convergence rate of the FMFO-Otsu algorithm is improved by about 74.62%, and the PSNR, SSIM and the fitness value are increased by around 0.37%, 2.45%, and 0.12%, respectively. The MSE is decreased by about 0.82%, and the FMFO-Otsu algorithm has more substantial enhancements and advantages over other algorithms. Therefore, the FMFO-Otsu algorithm realizes effective improvement in segmentation accuracy and convergence rate compared to the MFO-Otsu algorithm and other algorithms.
In the future, we will try to modify the FMFO algorithm using other methods of fractional order, like R-L and Caputo. Additionally, we are going to apply the FMFO algorithm and newer algorithms to other images, resulting in better segmentation results and greater operational efficiency via comparison and enhancement.

Author Contributions

Conceptualization, Q.F. and Y.M.; methodology, Q.F. and Y.M.; software, Q.F.; validation, Q.F. and P.W.; formal analysis, Q.F. and Y.M.; data curation, Q.F. and F.B.; writing—original draft preparation, Q.F.; writing—review and editing, Q.F. and Y.M. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Key Research and Development Projects of Ningxia Autonomous Region (no. 2023BDE03002).

Data Availability Statement

The data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Pare, S.; Kumar, A.; Bajaj, V.; Singh, G.K. A Context Sensitive Multilevel Thresholding Using Swarm Based Algorithms. IEEE-CAA J. Autom. Sin. 2019, 6, 1471–1486. [Google Scholar] [CrossRef]
  2. Xiong, H.-Q.; Gao, J.-J.; Zhu, C.-J.; Li, Y.-L.; Zhang, S.; Xie, M. An Interleaved Otsu Segmentation for MR Images with Intensity Inhomogeneity. IEICE Trans. Inf. Syst. 2014, E97-D, 2974–2978. [Google Scholar] [CrossRef]
  3. Kumar, B.A.; Anurag, S.; Vinod, I.K. Spatial Context Energy Curve-Based Multilevel 3-D Otsu Algorithm for Image Segmentation. IEEE Trans. Syst. Man Cybern. Syst. 2019, 51, 2760–2773. [Google Scholar]
  4. Mirjalili, S. Moth-flame optimization algorithm: A novel nature-inspired heuristic paradigm. Knowl. Based Syst. 2015, 89, 228–249. [Google Scholar] [CrossRef]
  5. The, N.T.; Wang, H.J.; Kien, D.T.; Shyang, P.J.; Giang, N.T.; Yu, J. A Scheme of Color Image Multithreshold Segmentation Based on Improved Moth-Flame Algorithm. IEEE Access 2020, 8, 174142–174159. [Google Scholar]
  6. Khairuzzaman, A.K.M.; Chaudhury, S. Modified Moth-Flame Optimization Algorithm-Based Multilevel Minimum Cross Entropy Thresholding for Image Segmentation. Int. J. Swarm Intell. Res. 2020, 11, 123–139. [Google Scholar] [CrossRef]
  7. Singh, K.K.; Bajpai, M.K.; Pandey, R.K. Reconstruction of original signal from contaminated signal using fractional order differentiator. In Proceedings of the 2015 IEEE International Symposium on Signal Processing and Information Technology (ISSPIT), Abu Dhabi, United Arab Emirates, 7–10 December 2015; pp. 274–278. [Google Scholar]
  8. Yang, W.; Ma, Y.; Kong, C.-Y.; Lu, Y.; Wang, H. Otsu image segmentation based on fractional order WPA. Chin. J. Liq. Cryst. Disp. 2019, 34, 716–723. [Google Scholar] [CrossRef]
  9. Yousri, D.; Mirjalili, S. Fractional-order cuckoo search algorithm for parameter identification of the fractional-order chaotic, chaotic with noise and hyper-chaotic financial systems. Eng. Appl. Artif. Intell. 2020, 92, 103662. [Google Scholar] [CrossRef]
  10. Chen, L.P.; Gao, J.H.; Lopes, A.M.; Zhang, Z.Q.; Chu, Z.B.; Wu, R.C. Adaptive fractional-order genetic-particle swarm optimization Otsu algorithm for image segmentation. Appl. Intell. 2023, 53, 26949–26966. [Google Scholar] [CrossRef]
  11. Yang, Y.; Lu, C. Long-distance sea wave extraction method based on improved Otsu algorithm. Artif. Life Robot. 2019, 24, 304–311. [Google Scholar] [CrossRef]
  12. Huang, L.; Fang, Y.-M.; Zuo, X.-Q.; Yu, X.-Q. Automatic Change Detection Method of Multitemporal Remote Sensing Images Based on 2D-Otsu Algorithm Improved by Firefly Algorithm. J. Sens. 2015, 2015, 327123. [Google Scholar] [CrossRef]
  13. Zhang, X.-M.; Sun, Y.-J.; Zheng, Y.-B. Precise two-dimensional Otsu’s image segmentation and its fast recursive realization. Acta Electron. Sin. 2011, 39, 1778–1784. [Google Scholar]
  14. Kumar, P.S.; Latte, V.M. Modified and Optimized Method for Segmenting Pulmonary Parenchyma in CT Lung Images, Based on Fractional Calculus and Natural Selection. J. Intell. Syst. 2017, 28, 721–732. [Google Scholar] [CrossRef]
  15. Chen, C.-C.; Wang, X.-C.; Yu, H.-L.; Wang, M.-J.; Chen, H.-L. Dealing with multi-modality using synthesis of Moth-flame optimizer with sine cosine mechanisms. Math. Comput. Simul. 2021, 188, 291–318. [Google Scholar] [CrossRef]
  16. Ma, L.; Wang, C.; Xie, N.-G.; Shi, M.; Ye, Y.; Wang, L. Moth-flame optimization algorithm based on diversity and mutation strategy. Appl. Intell. 2021, 51, 5836–5872. [Google Scholar] [CrossRef]
  17. Bolat, Y. On the oscillation of fractional-order delay differential equations with constant coefficients. Commun. Nonlinear Sci. Numer. Simul. 2014, 19, 3988–3993. [Google Scholar] [CrossRef]
  18. Liu, J.; Tan, J.-Q.; Ge, X.-Y.; Hu, D.-D.; He, L. Blind deblurring with fractional-order calculus and local minimal pixel prior. J. Vis. Commun. Image Represent. 2022, 89, 103645. [Google Scholar] [CrossRef]
  19. Machado, J.; Galhano, A.; Trujillo, J. On development of fractional calculus during the last fifty years. Scientometrics. 2014, 98, 577–582. [Google Scholar] [CrossRef]
  20. Wei, J.-R.; Ma, Y.; Xia, R.; Jiang, H.-B.; Zhou, T.-T. Image segmentation algorithm based on Otsu optimized by fractional-order particle swarm optimization. Comput. Eng. Des. 2017, 38, 3284–3290. [Google Scholar]
  21. Wang, S.-R. Research on OTSU Image Segmentation Algorithm Based on Fractional-Order Cuckoo Optimization. Master’s Thesis, Ningxia University, Yinchuan, China, May 2022. [Google Scholar]
  22. Kong, C.-Y. Research on OTSU Image Segmentation Algorithm Based on Firefly Algorithm Optimized by Fractional-Order. Master’s Thesis, Ningxia University, Yinchuan, China, April 2019. [Google Scholar]
  23. Jiang, Y.; Ma, Y.; Liang, Y.-Z.; Wang, Y.; Li, G.-H.; Ma, D. Lung Tissue Segmentation Algorithm: Fractional Order Sparrow Search Optimization for OTSU. Comput. Sci. 2021, 48, 28–32. [Google Scholar]
Figure 1. The flow chart of the FMFO-Otsu algorithm.
Figure 1. The flow chart of the FMFO-Otsu algorithm.
Fractalfract 08 00087 g001
Figure 2. The convergence curves of MFO and FMFO algorithms on six benchmark functions: (a) is the convergence curve of Schwefel 2.21 Function; (bf) are the convergence curves of Rosenbrock Function, Quartic Function, Ackley Function, Griewank Function, and Kowalik Function, respectively.
Figure 2. The convergence curves of MFO and FMFO algorithms on six benchmark functions: (a) is the convergence curve of Schwefel 2.21 Function; (bf) are the convergence curves of Rosenbrock Function, Quartic Function, Ackley Function, Griewank Function, and Kowalik Function, respectively.
Fractalfract 08 00087 g002aFractalfract 08 00087 g002b
Figure 3. The first through fourth rows show the Couple image, Cablecar image, Boats image, and Building image, respectively. In the (a) column are the original images; (bf) show the segmentation results of MFO-Otsu, FCS-Otsu, FPSO-Otsu, FFA-Otsu, and FMFO-Otsu, respectively.
Figure 3. The first through fourth rows show the Couple image, Cablecar image, Boats image, and Building image, respectively. In the (a) column are the original images; (bf) show the segmentation results of MFO-Otsu, FCS-Otsu, FPSO-Otsu, FFA-Otsu, and FMFO-Otsu, respectively.
Fractalfract 08 00087 g003
Figure 4. Fitness curves: (a) is the fitness curve of the Couple image; (b) is the fitness curve of the Cablecar image; (c) is the fitness curve of the Boats image; and (d) is the fitness curve of the Building image.
Figure 4. Fitness curves: (a) is the fitness curve of the Couple image; (b) is the fitness curve of the Cablecar image; (c) is the fitness curve of the Boats image; and (d) is the fitness curve of the Building image.
Fractalfract 08 00087 g004
Figure 5. The segmentation results for the character images. In column (a) are the original images; (bf) show the segmentation results of MFO-Otsu, FCS-Otsu, FPSO-Otsu, FFA-Otsu and FMFO-Otsu, respectively. The partial differences in image segmentation results between the five algorithms are highlighted by red boxes.
Figure 5. The segmentation results for the character images. In column (a) are the original images; (bf) show the segmentation results of MFO-Otsu, FCS-Otsu, FPSO-Otsu, FFA-Otsu and FMFO-Otsu, respectively. The partial differences in image segmentation results between the five algorithms are highlighted by red boxes.
Fractalfract 08 00087 g005
Figure 6. The segmentation results for the architectural images. In column (a) are the original images; (bf) show the segmentation results of MFO-Otsu, FCS-Otsu, FPSO-Otsu, FFA-Otsu, and FMFO-Otsu, respectively. The partial differences in image segmentation results between the five algorithms are highlighted by red boxes.
Figure 6. The segmentation results for the architectural images. In column (a) are the original images; (bf) show the segmentation results of MFO-Otsu, FCS-Otsu, FPSO-Otsu, FFA-Otsu, and FMFO-Otsu, respectively. The partial differences in image segmentation results between the five algorithms are highlighted by red boxes.
Fractalfract 08 00087 g006aFractalfract 08 00087 g006b
Figure 7. The segmentation results for the animal images. In the (a) column are the original images; (bf) show the segmentation results of MFO-Otsu, FCS-Otsu, FPSO-Otsu, FFA-Otsu, and FMFO-Otsu, respectively. The partial differences in image segmentation results between the five algorithms are highlighted by red boxes.
Figure 7. The segmentation results for the animal images. In the (a) column are the original images; (bf) show the segmentation results of MFO-Otsu, FCS-Otsu, FPSO-Otsu, FFA-Otsu, and FMFO-Otsu, respectively. The partial differences in image segmentation results between the five algorithms are highlighted by red boxes.
Fractalfract 08 00087 g007
Figure 8. The segmentation results for the plant images. The original images are in column (a); (bf) show the segmentation results of MFO-Otsu, FCS-Otsu, FPSO-Otsu, FFA-Otsu, and FMFO-Otsu, respectively. The partial differences in image segmentation results between the five algorithms are highlighted by red boxes.
Figure 8. The segmentation results for the plant images. The original images are in column (a); (bf) show the segmentation results of MFO-Otsu, FCS-Otsu, FPSO-Otsu, FFA-Otsu, and FMFO-Otsu, respectively. The partial differences in image segmentation results between the five algorithms are highlighted by red boxes.
Fractalfract 08 00087 g008
Figure 9. The first through fourth rows show the Cat image, Girl image, Cemetery image, and Lawn image, respectively. The(a) column shows the original images; (bf) show the segmentation results of CS-Otsu, SSA-Otsu, PSO-Otsu, WPA-Otsu, and FMFO-Otsu, respectively. The partial differences in image segmentation results between the five algorithms are highlighted by red boxes.
Figure 9. The first through fourth rows show the Cat image, Girl image, Cemetery image, and Lawn image, respectively. The(a) column shows the original images; (bf) show the segmentation results of CS-Otsu, SSA-Otsu, PSO-Otsu, WPA-Otsu, and FMFO-Otsu, respectively. The partial differences in image segmentation results between the five algorithms are highlighted by red boxes.
Fractalfract 08 00087 g009
Figure 10. Fitness curves: (a) is the fitness curve of the Cat image; (b) is the fitness curve of the Girl image; (c) is the fitness curve of the Cemetery image; and (d) is the fitness curve of the Lawn image.
Figure 10. Fitness curves: (a) is the fitness curve of the Cat image; (b) is the fitness curve of the Girl image; (c) is the fitness curve of the Cemetery image; and (d) is the fitness curve of the Lawn image.
Fractalfract 08 00087 g010
Figure 11. The segmentation results for the scenery images. The (a) column shows the original images; (bf) show the segmentation results of CS-Otsu, SSA-Otsu, PSO-Otsu, WPA-Otsu, and FMFO-Otsu, respectively. The partial differences in image segmentation results between the five algorithms are highlighted by red boxes.
Figure 11. The segmentation results for the scenery images. The (a) column shows the original images; (bf) show the segmentation results of CS-Otsu, SSA-Otsu, PSO-Otsu, WPA-Otsu, and FMFO-Otsu, respectively. The partial differences in image segmentation results between the five algorithms are highlighted by red boxes.
Fractalfract 08 00087 g011
Figure 12. The segmentation results for the object images. Column (a) shows the original images; (bf) show the segmentation results of CS-Otsu, SSA-Otsu, PSO-Otsu, WPA-Otsu, and FMFO-Otsu, respectively. The partial differences in image segmentation results between the five algorithms are highlighted by red boxes.
Figure 12. The segmentation results for the object images. Column (a) shows the original images; (bf) show the segmentation results of CS-Otsu, SSA-Otsu, PSO-Otsu, WPA-Otsu, and FMFO-Otsu, respectively. The partial differences in image segmentation results between the five algorithms are highlighted by red boxes.
Fractalfract 08 00087 g012
Table 1. The details of the benchmark functions.
Table 1. The details of the benchmark functions.
FunctionsFormulasRange f o p t
Schwefel 2.21 f 1 x = m a x i x i 1 i n [ 100, 100 ] 0
Rosenbrock f 2 x = i = 1 n 1 100 x i x i 2 2 + x i 1 2 [ 30, 30 ] 0
Quartic f 3 x = i = 1 n i x i 4 + r a n d o m 0 , 1 [ 1.28, 1.28 ] 0
Ackley f 4 x = 20 e x p 0.2 1 n i = 1 n x i 2 e x p 1 n i = 1 n c o s 2 π x i + 20 + e [ 32, 32 ] 0
Griewank f 5 x = 1 4000 i = 1 n x i 2 i = 1 n c o s x i i + 1 [ 600, 600 ] 0
Kowalik f 6 x = i = 1 11 a i x 1 b i 2 + b 1 x 2 b i 2 + b 1 x 3 + x 4 2 [ 5 ,   5 ] 0.0003075
Table 2. The objective evaluation index of the Couple image, Cablecar image, Boats image, and Building image segmentation results, respectively.
Table 2. The objective evaluation index of the Couple image, Cablecar image, Boats image, and Building image segmentation results, respectively.
ImageAlgorithmsPSNRSSIMMSEFitness ValueIterations
MFO-Otsu7.94190.304110,444.51193055.956731
FCS-Otsu7.90940.317610,522.86272357.355414
CoupleFPSO-Otsu7.85430.312410,657.33052364.59479
FFA-Otsu5.92300.005116,625.54842360.07389
FMFO-Otsu8.03890.303110,213.87823056.03207
MFO-Otsu12.43280.32013713.651412,216.631530
FCS-Otsu12.50880.32953649.211611,289.666322
CablecarFPSO-Otsu12.51440.32343644.507511,289.566211
FFA-Otsu4.96160.003120,745.173511,254.532913
FMFO-Otsu12.58540.33263585.384412,224.29376
MFO-Otsu7.90730.457110,528.14844190.710229
FCS-Otsu7.90100.471210,543.28143726.502611
BoatsFPSO-Otsu7.82970.461710,717.69023726.386117
FFA-Otsu6.11780.008115,896.27793709.39136
FMFO-Otsu8.00370.461910,296.93414196.67384
MFO-Otsu10.74000.46715483.84366946.761430
FCS-Otsu10.73440.46915490.75976212.173078
BuildingFPSO-Otsu10.75580.47145463.75526218.597270
FFA-Otsu3.92210.004826,355.06646207.12617
FMFO-Otsu10.80630.47985400.67676959.95315
Table 3. The average objective evaluation index value for the character images.
Table 3. The average objective evaluation index value for the character images.
AlgorithmsPSNRSSIMMSEFitness ValueIterations
MFO-Otsu9.34490.26157644.60915143.264028
FCS-Otsu9.10110.24518144.20554334.756726
FPSO-Otsu9.12890.24128083.43984334.504925
FFA-Otsu4.68280.002022,382.21494323.421213
FMFO-Otsu9.38340.26827580.04485147.53137
Table 4. The average objective evaluation index value for the architectural images.
Table 4. The average objective evaluation index value for the architectural images.
AlgorithmsPSNRSSIMMSEFitness ValueIterations
MFO-Otsu8.95330.37808990.61424434.799930.5
FCS-Otsu8.62740.39189741.11105400.626249
FPSO-Otsu8.61740.38329791.64605400.524548.5
FFA-Otsu5.37200.001619,301.03725388.566816
FMFO-Otsu9.09660.36658640.76606255.05268
Table 5. The average objective evaluation index value for the animal images.
Table 5. The average objective evaluation index value for the animal images.
AlgorithmsPSNRSSIMMSEFitness ValueIterations
MFO-Otsu8.46880.30419800.50753686.475921
FCS-Otsu8.33230.314810,153.8873194.516739
FPSO-Otsu8.33790.300310,144.59023171.742752
FFA-Otsu5.44810.004519,026.06433162.872212
FMFO-Otsu8.50210.31899727.03753689.75788
Table 6. The average objective evaluation index value for the plant images.
Table 6. The average objective evaluation index value for the plant images.
AlgorithmsPSNRSSIMMSEFitness ValueIterations
MFO-Otsu8.97560.25788272.32164955.389033
FCS-Otsu8.80200.21428604.44984199.013448
FPSO-Otsu8.88810.21448418.58294197.476241
FFA-Otsu6.39090.001815,298.51104181.420017
FMFO-Otsu9.21110.26147824.82204982.55959
Table 7. The objective evaluation indexes for the Cat image, Girl image, Cemetery image, and Lawn image segmentation results, respectively.
Table 7. The objective evaluation indexes for the Cat image, Girl image, Cemetery image, and Lawn image segmentation results, respectively.
ImageAlgorithmsPSNRSSIMMSEFitness ValueIterations
CS-Otsu11.03410.28525124.69818589.621129
SSA-Otsu10.99770.28265167.77888601.819168
CatPSO-Otsu5.00990.002720,515.49638599.428666
WPA-Otsu11.01660.28375145.33888600.354199
FMFO-Otsu11.13750.30745004.15399814.805511
CS-Otsu9.89710.24936658.38515310.852358
SSA-Otsu9.86920.24586701.27615308.857259
GirlPSO-Otsu5.14110.001819,905.80715310.263095
WPA-Otsu9.75740.23326875.92845311.087783
FMFO-Otsu9.92480.25076616.13736162.11298
CS-Otsu9.11020.15217981.03525013.717133
SSA-Otsu9.14220.15427922.44655010.672254
CemeteryPSO-Otsu5.49090.001318,364.56135011.407191
WPA-Otsu9.11020.15217981.03155010.963690
FMFO-Otsu9.55820.21037198.85386506.30324
CS-Otsu11.10430.23895042.526711,412.254424
SSA-Otsu11.08100.23785069.636111,422.741426
LawnPSO-Otsu5.00460.002620,540.893111,422.104792
WPA-Otsu11.10430.23935033.375111,422.352592
FMFO-Otsu11.32840.25094788.909412,113.9176011
Table 8. The average objective evaluation index values for the scenery images.
Table 8. The average objective evaluation index values for the scenery images.
AlgorithmsPSNRSSIMMSEFitness ValueIterations
CS-Otsu11.06420.37285289.91639392.911241
SSA-Otsu11.01980.37135347.02369392.932270
PSO-Otsu4.84960.005521,575.40789394.988979
WPA-Otsu11.04910.37225305.72569396.886373
FMFO-Otsu11.29140.37684988.500710,268.68397
Table 9. The average objective evaluation index values for the object images.
Table 9. The average objective evaluation index values for the object images.
AlgorithmsPSNRSSIMMSEFitness ValueIterations
CS-Otsu10.22170.40957484.42218271.826365
SSA-Otsu10.22570.40817470.36818271.088852
PSO-Otsu5.09650.006120,648.16578270.458970
WPA-Otsu10.23650.40887462.13928266.804462
FMFO-Otsu10.37950.40887314.22609187.45689
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Fan, Q.; Ma, Y.; Wang, P.; Bai, F. Otsu Image Segmentation Based on a Fractional Order Moth–Flame Optimization Algorithm. Fractal Fract. 2024, 8, 87. https://doi.org/10.3390/fractalfract8020087

AMA Style

Fan Q, Ma Y, Wang P, Bai F. Otsu Image Segmentation Based on a Fractional Order Moth–Flame Optimization Algorithm. Fractal and Fractional. 2024; 8(2):87. https://doi.org/10.3390/fractalfract8020087

Chicago/Turabian Style

Fan, Qi, Yu Ma, Pengzhi Wang, and Fenghua Bai. 2024. "Otsu Image Segmentation Based on a Fractional Order Moth–Flame Optimization Algorithm" Fractal and Fractional 8, no. 2: 87. https://doi.org/10.3390/fractalfract8020087

APA Style

Fan, Q., Ma, Y., Wang, P., & Bai, F. (2024). Otsu Image Segmentation Based on a Fractional Order Moth–Flame Optimization Algorithm. Fractal and Fractional, 8(2), 87. https://doi.org/10.3390/fractalfract8020087

Article Metrics

Back to TopTop