Next Article in Journal
BIF-RCNN: Fusing Background Information for Rotated Object Detection
Previous Article in Journal
Usefulness of Wearable Devices for Monitoring Motor Activity in Patients with Early Myocardial Infarction
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Multi-Strategy Improved Dung Beetle Optimizer for the Kapur Entropy Multi-Threshold Image Segmentation Algorithm

School of Electrical and Electronic Engineering, Anhui Institute of Information Technology, Wuhu 241000, China
*
Author to whom correspondence should be addressed.
Algorithms 2026, 19(2), 138; https://doi.org/10.3390/a19020138
Submission received: 4 January 2026 / Revised: 29 January 2026 / Accepted: 5 February 2026 / Published: 9 February 2026

Abstract

To address the issues of detail loss and unstable segmentation quality in image segmentation, this paper proposes a multi-strategy improved dung beetle optimization algorithm be applied to multi-threshold image segmentation. Thus, we have developed a multi-strategy improved dung beetle optimizer Kapur entropy multi-threshold image segmentation algorithm (MIDBO-KMIA). This algorithm enhanced global search capability and convergence stability, improved segmentation accuracy and algorithm robustness, and solved the problems of detail preservation and segmentation quality in complex scenarios. Firstly, Sobol sequences were adopted to initialize the population, enhancing its diversity. Secondly, a multi-stage perturbation update mechanism was introduced to prevent convergence to local optima and improved global exploration. Thirdly, the convergence precision was further improved by optimizing the hybrid dynamic switching mechanism and proposing dynamic mutation update and distance selection update strategies. Finally, the MIDBO algorithm was applied to Kapur entropy multi-threshold image segmentation, and experimental research was conducted using Peak Signal-to-Noise Ratio (PSNR), SIMilarity index (SSIM), and Feature SIMilarity index (FSIM) as evaluation metrics. The experimental results demonstrate that the performance of the multi-strategy improved dung beetle optimization Kapur entropy multi-threshold image segmentation algorithm is significantly better than that of other algorithms, and that it can more effectively solve the problems of detail preservation and segmentation quality in complex scenes, and enhance the ability to adapt to complex image scenes.

1. Introduction

Image segmentation technology is the main task of image analysis and recognition [1], and involves segmenting the target image into multiple regions with unique attributes and extracting regions of interest from them [2]. There are many methods for image segmentation (among which, threshold-based segmentation methods can determine segmentation thresholds based on local or global information about the image), including single threshold segmentation and multi-threshold segmentation. In practical life, the application of multi-threshold segmentation is more widespread [3].
The multi-threshold selection methods for images include maximum blur entropy [4], minimum cross entropy [5], and Tsallis entropy [6]. Since the one-dimensional threshold segmentation method employed a one-dimensional histogram of the image for the calculation, the spatial information about the image has not been fully utilized. Therefore, some scholars have introduced neighborhood grayscale information about pixels and proposed entropy threshold segmentation methods based on two-dimensional histograms of images, such as the two-dimensional arbitrary entropy threshold method [7] and two-dimensional Tsallis entropy threshold method [8]. However, the existing multi-threshold segmentation methods have higher computational complexity, and as the number of thresholds increases, the computational cost required to find the optimal threshold also increases [9]. When processing large amounts of image data, the increase in computation complexity will be more pronounced.
To overcome these shortcomings, researchers have proposed a method that combines some optimization algorithms, to enhance the segmentation performance of the algorithm, as they seek to identify the set of parameters that produces the optimal value for an objective function, subject to a series of defined constraints, thereby improving the performance of the algorithm [10]. Traditional optimization algorithms usually rely on specific mathematical models or problem structures and can effectively find the optimal solution [11]. For example, in engineering problems such as the scheduling of hybrid AC-DC microgrids, by using the least squares approximation method, the original non-convex relationship is simplified and transformed into a computationally efficient convex form, converting the complex economic scheduling problem of the power grid into a convex optimization problem, thereby achieving efficient global optimization solutions [12]. However, optimization problems in practical applications are very diverse, and as the problem dimensions increase, the difficulty of finding solutions also increases [13]. Metaheuristic optimization algorithms are easy to implement, have strong global search capabilities, fast convergence speed, and have been widely applied in various problems.
The swarm intelligence optimization algorithm is mainly a metaheuristic algorithm that simulates the collective behavior of animals to achieve optimization. Due to its simple principles, easy implementation, and high optimization efficiency, it is widely used to solve optimization problems such as workshop scheduling, path optimization, and feature selection, etc. So far, various swarm intelligence optimization algorithms, such as the Whale Optimization Algorithm (WOA) [14], the Artificial Bee Colony (ABC) [15], the Grey Wolf Optimizer (GWO) [16], the Snake Optimizer (SO) [17], the Beetle Antennae Search (BAS) [18], the Multi-Verse Optimizer (MVO) [19], and Flower Pollination Algorithm (FPA) [20], etc., have been applied to optimization problems in different fields. Therefore, many researchers try to combine intelligent algorithms with image segmentation methods, and optimize different algorithms in different ways to improve the accuracy and speed of image segmentation.
Mahajan et al. [21] proposed a novel technique for multi-level threshold combined Fuzzy Entropy Type II (FE-TII) with metaheuristics. Zhao et al. [22] developed the ant colony optimization algorithm based on random backup strategy and chaos enhancement strategy, and applied it to the two-dimensional Kapur entropy multi-threshold image segmentation method to obtain higher segmentation accuracy. Ramesh Babu et al. [23] proposed the variation in convolution neural network model LeNet-5 for classification and the Otsu multi-thresholding method with an optimization algorithm for the segmentation of the images. Jia et al. [24] proposed a Differential Evolution Chaotic Whale Optimization Algorithm (DECWOA) where new adaptive inertia weights are introduced into the individual whale position update formula, improving the global search speed and accuracy of the whale optimization algorithm. Bourzik et al.’s [25] proposed method is based on optimizing the normalized mean square reconstruction error. The performance of our method is tested using the reconstruction error of binary, grayscale, and color images with varying moments’ order using separable discrete Krawtchouk-Charlier moments. Nasir et al. [26] developed a metaheuristic algorithm that combines the Grey Wolf Optimizer with the hunting process of wolf packs to find the global solution and prevent the problem of local optimum.
Research shows that although various swarm intelligence optimization algorithms have developed rapidly, the core challenge of how to strike a balance between exploration ability and exploitation ability remains. Xue et al. [27] proposed a new swarm intelligence optimization algorithm called as dung beetle optimization algorithm (DBO) in 2022. The core principle of this algorithm is derived from the survival habits of dung beetles, and it aims to achieve its optimization goal by imitating the behavior of dung beetles, such as rolling, dancing, breeding, foraging and stealing. The DBO algorithm has four subpopulations (each subpopulation has different search modes that can give consideration to both global search and local development capabilities) and has strong optimization speed and accuracy. Compared with other well-known swarm intelligence algorithms, the unique search process of the DBO algorithm appropriately balances the relationship between global search and local optimization, thereby achieving rapid convergence and high-precision solutions [28]. Although the DBO algorithm outperforms many other algorithms in the family of swarm intelligence algorithms when solving specific optimization problems, it also has some shortcomings. The initial population distribution of this algorithm is uneven, and it has a tendency towards greedy search, which can easily lead to premature convergence and falling into the local optimal trap [29]. Wu et al. [30] pointed out that the position update mechanism of the dung beetle optimization algorithm overly relies on global worst position information, and this characteristic weakens the global search performance of the algorithm and disrupts the balance between exploration and exploitation. Yu et al. [31] proposed that although the linear adjustment method of parameter R in the reproduction strategy of this algorithm is relatively simple, this method is prone to causing the algorithm to converge prematurely, which may limit its ability to explore for better solutions.
However, the updating method for each subpopulation in the DBO algorithm is relatively simple, and the global search ability is weak. Due to the lack of information exchange between individuals, the local development ability is also limited. Therefore, many scholars are dedicated to improving the existing algorithms in order to solve various practical optimization problems. In response to the above problems, Jiachen et al.’s [32] improved dung beetle optimization algorithm, combined with the Dynamic Window Approach (DWA), is proposed for the path planning problem in static and dynamic environments. Xia et al. [33] proposed an integrated variant of DBO with the adaptive strategy, the dynamic boundaries individual position micro-adjustment strategy, and the mutation strategy. Although the above improvement strategies have improved the optimization performance of the DBO algorithm, the solution effect of the DBO algorithm is still not ideal when facing complex optimization problems.
Therefore, in this paper, a multi-strategy improved dung beetle optimizer Kapur entropy multi-threshold image segmentation algorithm (MIDBO-KMIA) is proposed. In the MIDBO-KMIA, firstly, an improved DBO algorithm is proposed. In this improved DBO algorithm, the population is initialized using the Sobol sequence to enhance its diversity and ergodicity; a multi-level perturbation mechanism is introduced in the DBO algorithm; dynamic perturbations are applied to the global optimal solution to prevent it getting stuck in local optimal solutions based on the different characteristics of each implementation stage; and a dynamic switching mechanism is proposed, which flexibly switches between both distance-based individual selection and update strategies and mutation update strategies that converge on the global optimum through the setting of counters, in order to increase interaction between populations and improve the search ability of the algorithm. Secondly, the improved DBO algorithm will be applied to 2D Otsu multi-threshold image segmentation, that is, the MIDBO-KMIA is ultimately proposed. Finally, to verify the performance of the proposed MIDBO-KMIA, simulation experiments are carried out. Firstly, the performance of the improved DBO algorithm is tested via the testing function of CEC2022. Secondly, the MIDBO-KMIA is validated. The experimental results show that the improved DBO algorithm has excellent optimization ability and the MIDBO-KMIA has the highest accuracy in terms of image segmentation for a 2D Otsu image.

2. Dung Beetle Optimization Algorithm

The idea of the dung beetle optimization algorithm comes from the beetle’s habits of rolling balls, dancing, foraging, breeding and stealing. Each behavior has its own update rules, and each update strategy has its own focus. Each dung beetle population consists of four distinct search agents: ball-rolling dung beetles, breeding dung beetles (breeding balls), small dung beetles, and stealing dung beetles, with the proportions of these four types of dung beetles in the population being 20%, 20%, 25%, and 35%, respectively.

2.1. Rolling Ball Beetle

The dung beetle uses celestial clues (such as the position of the sun or wind direction) for navigation to ensure that the dung ball rolls along a straight path. The ball-rolling behavior of dung beetles can be divided into two modes: obstacle mode and obstacle-free mode. In obstacle-free mode, some natural factors may also cause the dung beetle to deviate from its original direction. The dung beetle uses the sun to navigate. Assuming that the intensity of the light source also affects the path of the dung beetle, the position update of the dung beetle during rolling can be expressed as shown as Equation (1):
x i ( t + 1 ) = x i ( t ) + α   ·   k   ·   x i ( t 1 ) + b   ·   Δ x   Δ x = | x i ( t ) X ω |
In Equation (1), t represents the current iteration; x i ( t ) represents the position information for the i -th beetle at the t -th iteration; k ( 0 , 0.2 ] is a constant value representing a deflection coefficient; b stands for a continuous value belonging to 0 , 1 ; α means a natural coefficient assigned a value of −1 or 1, and represents multiple natural factors that can cause dung beetles to deviate from their original direction; X ω expresses the global worst position; and Δ x is used to simulate changes in light intensity.
In Equation (1), it is crucial to correctly select the values of parameters k and b . Usually, we set k = 0.1 and b = 0.3 through experiments. Additionally, to simulate the complex environment in the real world, the value of α is set to −1 or 1 through a probabilistic method. “−1” indicates deviation from the original direction, while “1” indicates no deviation. The higher the value of Δ x , the weaker the light source. By using these selections, the algorithm can explore the entire space as comprehensively as possible during the optimization process, making the algorithm have stronger search performance and avoid it getting stuck in local optimal solutions. By controlling the value of X ω , the search range can be expanded.
When a dung beetle encounters an obstacle and cannot move forward, it can adjust its direction by dancing to replan its route. Generally, the tangent function is employed for simulating the dung beetle’s dancing behavior to obtain a new rolling direction. After the dung beetle determines its new direction, it continues to roll forward. The position of the dancing behavior of the rolling dung beetle is defined as follows Equation (2):
x i ( t + 1 ) = x i ( t ) + tan θ | x i ( t ) x i ( t 1 ) |
In Equation (2), θ 0 , π , when θ equals 0, π / 2 , or π , the position of the dung beetle is not updated.

2.2. Breeding Dung Beetle

Female dung beetles will push their dung balls to a safe area to provide a safe environment for their offspring [34]. Therefore, a boundary selection strategy is proposed to simulate the safe area for dung beetle egg laying, which is described as Equation (3):
L b = max { X ( 1 R ) , L b } U b = min { X ( 1 + R ) , U b }
In Equation (3), X means the current local optimal solution; R = t / T , L b and U b denote the lower and upper bounds of the feasible region, respectively; and L b and U b represent the lower and upper bounds of the optimization problem, respectively.
During each iteration, the dung beetle’s egg-laying area can dynamically change, and the position of the breeding ball is also dynamically updated by Equation (4):
B i ( t + 1 ) = X + b 1 ( B i ( t ) L b ) + b 2 ( B i ( t ) U b )
In Equation (4), B i ( t ) represents the position information for the i -th breeding ball, whose iteration is t . b 1 and b 2 represent two independent random vectors of size 1 × d i m and d i m denotes the dimension of the optimization problem.

2.3. Small Dung Beetle

Small dung beetles will search for food in the optimal foraging area, which is also dynamically updated using a boundary selection strategy. The optimal foraging area is defined as shown in Equation (5):
L b b = max { X b ( 1 R ) , L b } U b b = min { X b ( 1 + R ) , U b }
In Equation (5), X b represents the global optimal solution and L b b and U b b represents the lower and upper limits of the optimal foraging area, respectively. Similarly, after determining the foraging boundary, the small dung beetle will forage within this area [35]. The iteration process of the position of the dung beetle is expressed as Equation (6):
x i ( t + 1 ) = x i ( t ) + C 1 ( x i ( t ) L b b ) + C 2 ( x i ( t ) U b b )
In Equation (6), x i ( t ) represents the position information for the i -th small beetle at the t -th iteration. C 1 denotes a random number following a normal distribution, and C 2 means a random vector, whose value belong to (0, 1).

2.4. Stealing Dung Beetle

Thief dung beetles will steal dung balls from other dung beetles as their own food, and the optimal stealing area is the position of the global optimal solution. Let X b be the most suitable place to compete for food, then the position of stealing dung beetles is updated as follows Equation (7):
x i ( t + 1 ) = X b + S g ( | x i ( t ) X | + | x i ( t ) X b | )
In Equation (7), S is a constant value and g is a random vector of size 1 × d i m that follows a normal distribution.

3. A New Multi-Threshold Image Segmentation Algorithm

In this section, the research approach was to first improve the basic dung beetle optimization algorithm and obtain a multi-strategy improved beetle algorithm. Next, this was applied to the field of Kapur entropy multi-threshold image segmentation, and a multi-strategy improved dung beetle optimizer Kapur entropy multi-threshold image segmentation algorithm (MIDBO-KMIA) was proposed, abbreviated as a new multi-threshold image segmentation algorithm (MISA).

3.1. Improved Dung Beetle Algorithm Based on Multiple Strategies

The improved dung beetle optimization algorithm based on multiple strategies first uses Sobol sequences to initialize the population, so as to make the individual distribution of the population more uniform. Secondly, according to the characteristics of different stages of algorithm iteration, the global optimal position is updated by multi-stage perturbation to avoid the algorithm falling into the local optimal position and improve the global exploration ability. Finally, a hybrid dynamic switching mechanism is established, which adaptively switches between distance selection update strategy and mutation update strategy based on the comparison results of random numbers and probability parameters, enhancing local refinement ability and improving the overall performance of the algorithm.

3.1.1. Sobol Sequence Initialization Population

In the process of population initialization, the initial values of the population should be distributed in the search space as uniformly as possible to ensure high ergodicity and diversity. The basic dung beetle optimization algorithm uses random numbers to initialize the population. This method has low ergodicity, uneven population distribution, and unpredictability, so it affects the convergence and optimization performance of the algorithm. Therefore, we propose initializing the population with the Sobol sequence.
Sobol is a low-divergence sequence. By using a deterministic pseudo-random number sequence instead of a pseudo-random number sequence, the reasonable sampling direction is selected to fill the points as evenly as possible in the multidimensional hypercube; that is, in the unit hypercube [ 0 , 1 ] d i m (where d i m represents the dimension), a set of points was constructed. By choosing the appropriate sampling direction, as the number of points increases, these points can fill the entire space in a highly regular and uniform manner, thus achieving the theoretically smallest difference value of the point set. In the dung beetle optimization algorithm, the distribution quality of the initial population directly affects the global exploration ability of the algorithm. The Sobol sequence has the characteristics of fast computation, fast sampling speed, and high efficiency of high-dimensional sequences. The initial population position generated by the Sobol sequence provides the population with a search starting point that has the smallest deviation and the best global perspective.
Firstly, this algorithm will generate a corresponding d i m -dimensional Sobol sequence. At the same time, randomness is introduced to strictly maintain the uniform structure of the sequence and ensure that each independent run can obtain a different starting point, thereby generating a low-discrepancy point set that meets the requirements of statistical independence. Then, this point set is mapped to the actual search space. Therefore, by using the Sierpinski sequence for initialization, the point set generated in the unit hypercube [ 0 , 1 ] d i m will be mapped to the actual search range [ U b , L b ] through a linear transformation. The initial population positions generated, based on the Sobol sequence, as follows Equation (8):
X i = L b + K i ( U b L b )
In Equation (8), X i represents the initial population position matrix ( N × d i m ), N is the population size, [ U b , L b ] is the value range of the global solution, and U b and L b represent the upper and lower bounds of the search boundary, respectively. K i is a deterministic quasi-random matrix of size ( N × d i m ), generated by the Sobol sequence, and its values are uniformly distributed within the range [25], and K i [ 0 , 1 ] is the i -th random number generated by the Sobol sequence. ( U b L b ) is used as the scaling factor and L b is used as the offset so that, through conformal and unbiased linear transformation, the uniform distribution characteristics of the Sobel sequence in the original unit space are completely preserved.
Assuming that the searching space is two-dimensional, the value range is [0, 1] and the population size is 100. The random initialization method and Sobol sequence initialization method are used to initialize the population, and the initialization results are shown in Figure 1. It can be seen that the initial population generated by the Sobol sequence method has a more uniform individual distribution and a wider coverage of the solution space.

3.1.2. Multi-Stage Disturbance Update

In the dung beetle optimization algorithm, the position of the rolling ball beetle is updated according to Equation (1), and only the rolling behavior has good global search ability at all stages of the algorithm. However, with the increase in the number of iterations, the dynamic upper and lower bounds get smaller and smaller, and the feeding behavior of the dung beetle will change from global search to local search. The reproduction and theft behaviors are searched locally in the dynamic upper and lower bounds near the optimal individual. To sum up, in the later stage of algorithm iteration, the dung beetle population is mostly concentrated near the optimal individuals, so the population diversity is low, and it is very easy to fall into local optimization.
In order to solve the local optimization problem in the dung beetle algorithm, a multi-stage perturbation strategy mechanism for the optimal individual is proposed to realize the perturbation of the global optimal position update, so as to avoid the algorithm falling into local optimization and improve the global exploration ability. At different stages of the algorithm, in order to achieve a dynamic balance between global exploration ability and local development ability, this paper adopts a three-stage adaptive perturbation strategy. By dynamically adjusting the perturbation intensity, the search direction is guided. (1) In the initial iteration stage (for example, the first 20% of iterations), conduct extensive random exploration to quickly cover the solution space and identify potential areas. For this purpose, a larger perturbation radius (for example, 0.9) is set to enhance the ability to escape from local optimal solutions and conduct global exploration. (2) In the intermediate iteration stage (from 20% to 80% of iterations), the perturbation intensity decreases linearly; this enables the search behavior to gradually shift from the exploration stage to the development stage, and gradually narrows down the search scope. (3) In the final iteration stage (the last 20% of iterations), a very small perturbation radius (for example, 0.000001) is set to allow for fine adjustments around the optimal solution; this, thereby, improves the convergence accuracy. This stage is determined based on the ratio of the current iteration number t to the total iteration number T , and the corresponding perturbation intensity is calculated to ensure that the search behavior can adaptively change as the optimization process progresses.
Specifically, the multi-stage perturbation strategy mechanism of the optimal individual is to update the radius parameters of the original normal perturbation of the global optimal position according to the algorithm process. So as to realize the perturbation of the global optimal position update, the global optimal individual position X b is perturbed according to the normal random distribution with adjustable variance to obtain a new global optimal individual position X n e w b . The updated formula of X n e w b is as follows Equation (9):
X n e w b = N ( X b , σ )
In Equation (9), σ represents the radius parameter of the normal perturbation of the original global optimal position, and the update formula of σ is as follows Equation (10):
σ = σ 1 t < α 1 T σ 2 + ( σ 1 σ 2 ) 1 + cos [ t α 1 T α 2 T α 1 T π ] 2 α 1 T < t < α 2 T σ 2 t > α 2 T
In Equation (10), σ 1 > σ 2 ; let σ 1 = 0.9 and σ 2 = 0.000001 . α 1 and α 2 are the control parameters for radius variation, and α 1 < α 2 . Here, α 1 = 0.2 α 2 = 0.8 , t is the current number of iterations, and T represents the maximum number of iterations. The variation graph of its disturbance radius σ is shown in Figure 2.
As shown in Figure 2, the disturbance radius σ is divided into three stages according to the algorithm process, and the globally optimal position update is disturbed.
In the early stages of algorithm iteration, the reference value of the global optimal position is relatively small, and the larger disturbance radius makes the new global optimal position have a larger change, so there is greater scope to find the global optimal position, which can avoid the population approaching the fixed global optimal position, and maintain diversity and universality. This helps the algorithm explore a broader range in the early stages of iteration to find the global optimal solution.
In the middle of the algorithm iteration, the algorithm gradually narrows the range to find the global optimum, and the disturbance radius also decreases with the increase in the number of iterations. The smooth curve attenuation reduces the sudden change, which reduces the possible oscillation phenomenon in the search process, avoids the drastic change in the search range, and effectively reduces the oscillation phenomenon in the search path.
In the late stages of iteration, the algorithm is already very close to the global optimum. It applies a fixed and extremely small perturbation radius to the current optimal position so as to reduce the randomness of the search process and enable the search agents to focus more on local, minor adjustments, further enhancing the stability and reliability of the solution.

3.1.3. Hybrid Dynamic Switching Mechanism

The four action behaviors of the dung beetles are allocated in fixed proportions, and each individual can only perform one action behavior, which may lead to the decline of the searching performance of the algorithm. In addition, when updating individuals, the algorithm mainly relies on their own historical position information, lacking sufficient population information exchange and variation mechanisms, which may cause the algorithm to fall into a local optimum during the update iteration process, and make it difficult to escape from the local optimum. In response to the above issues, a hybrid dynamic switching mechanism is proposed; that is, the dual position update dynamic switching method, which adaptively selects distance-based individual selection and update strategies and mutation update strategy close to the globally optimal to improve algorithm performance.
  • Distance-based Individual Selection and Updating Strategy
In the dung beetle optimization algorithms, distance-based individual selection and update strategies utilizes distance information between individuals to guide the search process and achieve more effective optimization. The specific implementation of this strategy in the hybrid dynamic switching strategy is as follows:
First, the average value of all individuals in the population for each dimension is calculated to get an average vector x m . Euclidean distance is used to calculate the distance between each individual and the average position vector, and to sort the distances. The individual closest to the average position x m is selected as the reference individual, S I , which represents the individuals with better performance in the population. The position is updated as follows Equation (11):
X i ( t + 1 ) = x i ( t ) + 0.5 ( ( 2 c z S I x i ( t ) ) + ( 2 ( 1 c ) z x m x i ( t ) ) )
In Equation (11), c [ 0.02 , 1 ] is a control parameter that gradually decreases as the number of iterations increases. The formula is as follows Equation (12):
c = 1 0.98 t M
In Equation (12), z is a random factor vector. The formula is as follows Equation (13):
z = r 2 D + r 3 ( 1 D )
In Equation (13), r 2 is a random number, r 3 is a random vector with dimension dim, and D = ( r 1 = 0 ) is a Boolean vector, as well as the random number r 1 = r a n d < c .
The control parameter c and the random factor D are both aimed at controlling the randomness of individual selection. When r 1 is less than the parameter c , D is “true”. In the early stages of iteration, since the value of c is larger, there are fewer “1” in r 1 and fewer “true” in D , so the main elements of z come from r 3 (i.e., more random values), which makes the update of individual positions more random and helps the algorithm perform a global search and explore a broader solution space. As the number of iterations increases, the value c gradually decreases, the number of “1” in r 1 increases, and the number of “true” in D increases. Therefore, the element of z gradually approaches the values of r 2 (a fixed random number). This reduces the randomness of individual position updates, which helps the algorithm to perform local search and finely optimize the already found optimal solutions.
Equation (11) combines the influence of the reference individual S I and the population center x m , and updates the individual position by adjusting the parameter c and random factor z . The second and third terms in Equation (11) represent the trends of approaching both the reference individual and the population center, respectively.
2.
Mutation update towards global optimum
When updating positions, the global optimum plays an important role in updating the population positions. The position update formula, which uses the global optimum as the traction direction, is as follows Equations (14) and (15):
X i j t + 1 = x l b e s t ( j ) + 2 z ( j ) cos ( 2 π ξ ) ( x l b e s t ( j ) x i j t )
ξ = 1 + 2 z ( j )
In Equations (14) and (15), z ( j ) is the j -th element of a random vector with z dimension dim and ξ is between 1 , 1 and is used to adjust the amplitude of variation.
The distance between the current individual and the optimal individual in the j -th dimension is calculated, and the random factor z ( j ) and cosine factor cos are used to guide the individual to perform periodic mutation updates. The global optimal position X ( j ) provides a target direction for updating position to ensure that individuals move toward a better solution direction.
3.
Dynamic switching mechanism
According to Equations (14) and (15), there is a significant difference between the distance-based individual selection update mechanism and the globally optimal mutation update strategy. However, in Equation (10), the iteration of the original algorithm only uses a single position update mode, and the obvious problems of this fixed mode update strategy are, on the one hand, it is difficult to achieve an adaptive balance between global exploration and local development, while, on the other hand, it is easy to cause algorithms to fall into the problem of local optimization or insufficient convergence accuracy.
Therefore, this paper proposes a dynamic switching mechanism to achieve adaptive switching between distance selection update and mutation update strategies, so as to maintain population diversity, enhance local refinement ability, and effectively improve the overall performance of the algorithm.
First, a probability parameter p is defined as follows Equation (16):
p = tanh | r a n d × ( F ( i ) F b e s t F ( i ) + F b e s t ) |
In Equation (16), F ( i ) is the fitness function of the i -th individual, and F b e s t is the found best fitness value so far. It is related to the fitness of the current search agent, the current optimal fitness, and the random number.
By dynamically adjusting the difference in optimal fitness values between the current individual and the globally optimal individual, the individuals can still maintain appropriate exploration ability when approaching the optimal solution. Therefore, the dynamic switching mechanism is implemented as follows:
If a random number (between 0 and 1) is less than the current p , the position update is performed according to Equation (11). If the random number is greater than the current p , the position update is performed according to Equation (14). In addition, a forced switching mechanism is introduced to avoid the problem that the optimal position is locally optimal, which leads to the stagnation of the algorithm.
Specifically, a counter is set for each search agent. When the search agent cannot find a better position in an iteration, this counter will increase by 1. Otherwise, it will be reset to 0. When the counter exceeds a specified threshold, the parameter p of the search agent is set to 1, and the counter corresponding to the search agent will be reset to 0.
In conclusion, the dynamic switching mechanism realizes the flexible switching between the two update mechanisms through the probability parameter p and the counter, avoids local optimization, and promotes the balance between global and local search. At the same time, a greedy selection strategy is adopted. After the temporary new position of the individual is updated by Equations (10) and (13) each time, the two positions of the individuals are compared, and the individual position with the better fitness value is selected as the updated individual position. The formula is as follows Equation (17):
x i ( t + 1 ) = X i ( t + 1 ) , f ( X i ( t + 1 ) ) < f ( x i ( t + 1 ) ) x i ( t + 1 ) , o t h e r w i s e

3.1.4. MIDBO Algorithm

On the basis of the dung beetle optimization algorithm, in order to solve the problems of traditional algorithms such as local optimization, insufficient population diversity, and low convergence accuracy, Sobol sequence is introduced to improve the quality of the initial population, and a multi-stage perturbation strategy is used to enhance the global exploration ability. By setting a hybrid dynamic switching mechanism, dynamic selection mutation update, and distance selection update strategy, the convergence accuracy of the algorithm can be improved.
In this section, looking at our proposed multi-strategy improved dung beetle optimizer (MIDBO) algorithm, its implementation process is as follows:
Step 1: Initialize parameters of the proposed algorithm, including population size N , maximum iteration T , rolling beetle ratio, foraging beetle ratio, upper and lower bounds of the search space L and U , and dimension d i m of the objective function.
Step 2: Use the Sobol sequence to initialize the initial population.
Step 3: Calculate the fitness value of each dung beetle individual to obtain the global optimum position X b , global worst position X ω , and local optimum position X .
Step 4: Update the position of the rolling beetle using Equation (1) or Equation (2), update the position of the breeding beetle using Equation (4), update the position of the small beetle using Equation (6), and update the position of the stealing beetle using Equation (7), as well as updating the position of the global optimum of the population.
Step 5: Perform a multi-stage perturbation update on the global optimal solution using Equations (9) and (10) to obtain a new global optimal position.
Step 6: Calculate the control parameter p . If the random number is less than p , the beetle population is updated using Equation (11). Otherwise, the position using Equation (14) is updated.
Step 7: Determine whether the maximum iteration has been reached. If so, proceed to Step 8. Otherwise, return to Step 2.
Step 8: Output the optimal value of the algorithm.
The algorithm flowchart is shown in Figure 3.

3.1.5. Complexity Analyses of MIDBO Algorithm

The complexity of the original DBO algorithm mainly depends on three stages: the initialization stage, the fitness evaluation stage, and the population position update stage. Let the population size be N , the dimension be D , and the maximum number of iterations be M . The complexity of the initialization stage is O ( D × N ) , the complexity of the fitness evaluation stage is O ( N × M ) , and the complexity of the position update stage is O ( N × D × M ) . Therefore, the time complexity of the original DBO algorithm is O ( N × D × M ) .
The MIDBO algorithm is an extension of the DBO algorithm with the addition of three components. Firstly, the time complexity for initializing the Sobol sequence is O ( D × N ) . Secondly, the forced switching mechanism requires calculating the distance between each individual, and the time complexity is approximately O ( D × N ) . Then, it is sorted, with time complexity requiring about O ( N log N ) time. When performing two operations on each individual in the population, an O ( N 2 × d + N 2 log N ) -level cost is introduced, which, multiplied by the number of iterations M , results in O ( M × ( N 2 × D + N 2 log N ) ) . The multi-stage perturbation and other local search operations still remain at the O ( N × D × M ) level.
Therefore, the overall complexity of MIDBO increases from the original O ( N × D × M ) to O ( M × ( N 2 × d + N 2 log N ) ) O ( M × N 2 × D ) . In actual optimization problems, since the population size N , problem dimension D , and the number of iterations M are all limited within a certain range (typically N < 500 ), and considering the parallelism and hardware acceleration capabilities in modern high-performance computing environments, the theoretical time complexity improvement of MIDBO will hardly result in a significant increase in running time in practical operations. Although the time complexity of the MIDBO algorithm has increased, due to the significant improvements it has made in convergence speed, optimization accuracy, and stability, this increase in complexity is acceptable in practical applications, and it has demonstrated better performance in most test functions.

3.2. MIDBO-KMIA

In this section, after the multi-strategy improved beetle algorithm has been applied to the Kapur entropy multi-threshold image segmentation problem, the Kapur entropy multi-threshold image segmentation method (MIDBO-KMIA), optimized based on the multi-strategy improved beetle algorithm, will be proposed.
In the field of image segmentation, it is a key issue to achieve the optimal threshold selection with high precision and efficiency. In the best threshold selection method, the Kapur entropy-based multi-threshold image segmentation model utilizes the segmentation method based on maximizing the information entropy and probability distribution characteristics of different gray levels of the image, and sets multiple thresholds to divide the image into different regions to maximize the entropy value of each segmentation region, so as to achieve the best expression of image information.
In the specific implementation process, Kapur entropy multi-threshold segmentation uses the grayscale histogram of the image as the probability distribution basis, calculates the total entropy value under each threshold combination, and selects the threshold group that maximizes the total entropy value as the optimal segmentation threshold. The complexity of the objective function for Kapur entropy multi-threshold segmentation increases exponentially with the increase in the number of thresholds, so it can usually be solved by combining with swarm intelligence optimization algorithms (such as genetic algorithms, particle swarm optimization algorithms, etc.) to improve the efficiency and accuracy of the algorithm.
Therefore, in view of the problem of easy loss of details and unstable segmentation quality in image segmentation, a Kapur entropy multi-threshold image segmentation algorithm based on multi-strategy improved dung beetle optimizer is proposed. By enhancing the global search capability and convergence stability, the optimization efficiency and segmentation effect of the Kapur multi-threshold segmentation model has been improved to solve the problem of maintaining details and segmentation quality in complex scenes.
The implementation steps of the Kapur entropy multi-threshold image segmentation method based on multi-strategy improved dung beetle algorithm optimization are as follows:
Step 1: Use the Sobol sequence to initialize the population and set the initial parameters.
Step 2: Read the image and perform grayscale processing, set the number of thresholds, construct a two-dimensional Kapur threshold optimization function, and create a fitness function based on the Kapur entropy calculation method.
Step 3: Execute steps 3 to 6 of the improved algorithm in Section 3.1.4 for iterative optimization.
Step 4: When the termination condition of the algorithm is met, the algorithm stops iterating and outputs the optimal position and its fitness value; otherwise, it jumps to Step 3.
Step 5: Use the optimal threshold obtained from the optimization process to segment the foreground and background objects in the image.
By using the MIDBO algorithm to solve and optimize the threshold selection process in Kapur entropy multi-threshold image segmentation problems, the segmentation accuracy of the image and the stability of the algorithm can be improved, and the adaptability of the model to complex image scenes can be enhanced.

4. Verification Experiments in Algorithm Performance

4.1. Verification Experiments in Multi-Strategy Improved Dung Beetle Optimization Algorithm Performance

In this section, the test functions are used to validate the performance of the improved beetle algorithm under various strategies. The implementation process is as follows.

4.1.1. Experimental Environment

All simulation experiments in this section were performed on a Lenovo computer equipped with an Intel Core i9 processor, 16 GB of memory, and the Windows 11 operating system using the MATLAB R2019a platform.

4.1.2. Experimental Setup and Test Function

To verify the performance of the proposed MIDBO (multi-strategy improved dung beetle optimizer) algorithm, comparisons were made with six other algorithms (GWO [16], SO [17], MVO [25], DBO [22], FPA [25], and BAS [18]).
All algorithms were tested for performance using 12 test functions with different features in CEC2022. Among them, F1 is a unimodal function, F2–F5 are multi-modal functions, F6–F8 are mixed functions, and F9–F12 are composite multi-modal functions. The test functions are shown in Table 1.
In order to ensure the fairness and objectivity of the experiment results, all parameters are uniformly set as follows: the overall size of each algorithm was 50, and the maximum number of iterations was 500; and each test function was run independently 20 times, and the best value (Best), mean, and standard deviation (Std) were calculated after running. Among them, the optimal value was used to compare the optimization performance of the algorithm, the average value was used to compare the average optimization level of the algorithm, and the standard deviation was used to compare the optimization stability of the method. The running results are shown in Table 2.

4.1.3. Results’ Analyses-Based CEC2022 Test Function

There are 12 test functions in CEC2022, which may be divided into four categories as follows: (1) The single-peak function. It has only one optimal solution and no local traps, and is used to detect the convergence speed and local development ability of the algorithm. (2) Multi-modal functions. It has multiple local optima, which are used to detect the ability of algorithm to escape from local optima. (3) Mixed functions. It consists of three or more benchmark functions, greatly increasing the complexity of algorithm optimization. (4) Composite function. The combination of three or more mixed functions or benchmark functions further increases the challenge of algorithm optimization.
The experimental results are shown in Table 2. It can be seen from Table 2 that the optimization accuracy of the proposed MIDBO algorithm is higher for all 12 functions. Among them, functions F1, F3, F5, F6, F9, and F11 all achieved the theoretical optimal value. For the single-peak function F1, the proposed MIDBO algorithm achieved the theoretical optimal value, and its mean and standard deviations are both ranked first. For multi-peak functions, the proposed MIDBO algorithm achieved the theoretical optimum for functions F3 and F5, while the results for functions F2 and F4 were close to the theoretical optimum. The standard deviation and mean of function F2 were better than the comparison algorithm, while the standard deviation of function F4 is slightly lower than the comparison algorithm. For mixed functions, the proposed MIDBO algorithm achieved the theoretical optimal value in function F6, while the optimal values for functions F7 and F8 were better. However, the standard deviation of function F8 was slightly lower than that of the comparison algorithm. For composite functions, the proposed MIDBO algorithm achieved theoretical optimal values in both function F9 and F11, especially in function F9, where the standard deviation was one order of magnitude smaller than other algorithms. In functions F10 and F12, the best values have the best effect, but the standard deviation effect is slightly worse. The overall experimental results indicate that the performance of the proposed MIDBO algorithm is superior to other compared algorithms and has good stability.
Figure 4 shows the convergence curves of the proposed MIDBO algorithm and various different algorithms on the CEC2022 test functions. In the single-peak function F1, the proposed MIDBO algorithm exhibited a faster convergence rate and achieved the highest convergence accuracy. For multi-modal functions from F2 to F5, the proposed MIDBO algorithm demonstrated significantly better convergence speed and accuracy than other algorithms within 100 iterations. For mixed functions from function F6 to function F8, the performance of the proposed MIDBO algorithm ranked first in both convergence speed and accuracy, with a notable advantage. In the composite functions (F9–F12), the MIDBO algorithm performs well in functions F9 and F11, but its convergence accuracy in F10 and F12 is slightly lower than that of the comparison algorithm.
Overall, for different types of test functions in the CEC2022 testing set, the proposed MIDBO algorithm significantly outperforms other comparison algorithms in terms of optimization performance.

4.1.4. Wilcoxon Signed-Rank Test

To further compare the differences between the proposed MIDBO algorithm and other algorithms, the nonparametric statistical test method, namely, the Wilcoxon signed-rank test, was employed. The test results are expressed as p -values, with a significance level set at 0.05. If the p value is less than 0.05, it indicates a significant difference between the proposed MIDBO algorithm and other algorithms. If the p value is greater than 0.05, it indicates that the difference between the proposed MIDBO and other algorithms is not significant. For each test function, the results of 30 independent runs of the proposed MIDBO algorithm were compared with those of other algorithms. The test results are shown in Table 3. Table 3 shows that the Wilcoxon signed rank test results of the MIDBO algorithm were usually less than 0.05. Therefore, the performance of the MIDBO algorithm is superior to other algorithms, which is of great significance.

4.1.5. Verification of the Effectiveness of Improved Strategies

To demonstrate the effectiveness of the improved strategy, optimization tests were conducted on the original DBO algorithm, the SDBO algorithm (only using Sobol sequence initialization), the FDBO algorithm (using only multi-stage perturbation updates), the MDBO algorithm (using only dynamic hybrid switching mechanism), and the MIDBO algorithm (the algorithm proposed in this paper). To ensure experimental fairness, each algorithm was independently run 30 times on 12 test functions, with a dimension of 10 and a maximum iteration of 300. The maximum value, minimum value, average value, and standard deviation were used as evaluation metrics to assess the convergence accuracy and speed of the algorithms. The results are shown in Table 4, and the convergence curves of test functions are shown in Figure 3.
As shown in Table 4, it can be seen that the SDBO algorithm outperforms the DBO algorithm in terms of Best, Mean, and Std. This indicates that the Sobol chaotic mapping improves the quality and diversity of the initial population, which can, to some extent, enhance the optimization ability of the algorithm. However, the performance of the SDBO algorithm is slightly inferior compared to the FDBO algorithm and the MDBO algorithm. Therefore, the SDBO algorithm is more commonly used as an auxiliary strategy to improve convergence speed. In the single-peak function F1, the performance of the FDBO algorithm is relatively high, approaching the theoretical optimal value, and its optimization ability is second only to the MIDBO algorithm improved by the mixed strategy. In the multi-modal functions from F2 to F5, the optimization ability of the FDBO algorithm is suppressed, which indicates that the multi-stage perturbation strategy can effectively guide the population towards the optimal value, but it is relatively easy to fall into local optima. The MDBO algorithm utilizes a forced switching mechanism for mutation strategy, which helps the algorithm to get rid of local optima and ensure that the overall is close to the global optimum. Therefore, it performs well in various types of testing functions.
Compared to a single improvement strategy, the MIDBO algorithm combines the advantages of algorithms such as the SDBO algorithm, the FDBO algorithm, and the MDBO algorithm. Firstly, the Sobol chaotic mapping of the SDBO algorithm was utilized to increase population diversity and improve the optimization speed of the algorithm. Then, the MDBO algorithm was integrated to balance the ability of global search and local search, and a flexible switching mechanism was utilized to get rid of local optima. At the same time, the local development ability of the FDBO algorithm was employed for accelerating the optimization iteration of the algorithm and to improve later convergence speed. Therefore, the MIDBO algorithm performs the best in terms of stability, accuracy, and robustness. Table 4 shows that the MIDBO algorithm achieved the best results in terms of optimal value, mean, and standard deviation in the 12 test functions. It has also achieved theoretical optimal values in functions F1, F2, F4, F6, F8, F9, and F11, especially in terms of functions F1, F4, F5, F8, and F11, where its performance far exceeds that of algorithms improved by a single strategy. This indicates that the various strategies of the MIDBO algorithm have a complementary effect beyond complementarity, greatly improving the optimization ability of the algorithm.
Figure 5 shows the iteration curves of the MIDBO algorithm and various optimization algorithms. From Figure 5, it can be seen that for the single-peak function F1 and multi-modal functions (from F2 to F5), the convergence speed and accuracy of the MIDBO algorithm were significantly better than those for other algorithms within 300 iterations. For mixed functions (F6–F8), as the number of iterations increases, the convergence speed and accuracy advantages of the MIDBO algorithm becomes more apparent. In the composite functions (from F9 to F12), the MIDBO algorithm performed well in functions F9 and F11, but its convergence accuracy in functions F10 and F12 was lower than that of the comparison algorithm.
Overall, for different types of test functions in the CEC2022 test set, the MIDBO algorithm outperforms other single optimization algorithms in terms of optimization performance.

4.2. Performance Verification of MIDBO-KMIA

4.2.1. Experimental Design

To validate the performance of the multi-strategy improved dung beetle optimization Kapur entropy multi-threshold image segmentation algorithm (MIDBO-KMIA), four classic images from the Pericles library, namely Camera, Pepper, House2, and Plane were selected as segmentation images, and two-dimensional Kapur was used as the fitness function for image segmentation experiments. In the experiments, the DBO algorithm, FPA algorithm, SO algorithm, GWO algorithm, and WOA algorithm are used as comparison objects, and the multi-threshold image segmentation algorithm based on MIDBO algorithm were compared and verified. The population size was set to 100, the number of iterations was set to 30, and each algorithm was run independently 30 times. The thresholds were set to 4, 6, 8, and 12, respectively. The Peak Signal-to-Noise Ratio (PSNR), SIMilarity index (SSIM), and Feature SIMilarity index (FSIM) were used to measure the segmentation accuracy of the images.

4.2.2. Analyses of Threshold Segmentation Results

The experimental results of the multi-threshold image segmentation method based on the proposed MIDBO algorithm and comparison algorithms are shown in Table 5, Table 6 and Table 7. From these Tables, it can be seen that under the same number of thresholds, the multi-threshold image segmentation method based on the proposed MIDBO algorithm obtained better data values, improved image segmentation quality and accuracy, and achieved better segmentation results.
According to the data in the table, the MIDBO algorithm performed well in terms of PSNR, SSIM, and FSIM. In the PSNR metric, the overall PSNR value is significantly higher and more stable, with only the PSNR value slightly lower than the SO algorithm at the Camera threshold of 12. This indicates that the MIDBO algorithm effectively reduces noise interference. For the SSIM metric, the MIDBO algorithm performed the best overall, being only slightly inferior to other algorithms in the Camera and House2 images. When the plan segmentation threshold was 12, the SSIM value reached 0.94; this ensures the high fidelity of image structural information and proves the excellent ability of the MIDBO algorithm in detail preservation and feature capture. In the FSIM metric, the MIDBO algorithm ranked first overall in terms of performance.
In summary, the MIDBO algorithm can achieve better PSNR, SSIM, and FSIM values in most cases; its effectiveness and practical value in image segmentation have been displayed.
The performance of the multi-strategy improved dung beetle optimization Kapur entropy multi-threshold image segmentation algorithm (MIDBO-KMIA) is shown in Figure 6 and Figure 7.
Figure 6 and Figure 7 indicate that the segmentation effect is positively correlated with the number of thresholds. As the number of thresholds increases, the expression of information becomes more comprehensive, and the quality of detail processing and segmentation are significantly improved.
In summary, compared with various comparative algorithms, the MIDBO algorithm and the MIDBO-KMIA proposed in this paper have strong stability, good segmentation quality, and high segmentation accuracy, and have the best comprehensive performance in multi-threshold image segmentation.

5. Conclusions and Future Work

In this paper, a multi-strategy improved dung beetle optimization (MIDBO) algorithm is proposed, which uses Sobol sequences to initialize the population, enhances the traversal and diversity of the population, and effectively avoids local convergence of the algorithm. The introduced multi-stage perturbation update mechanism is beneficial in terms of allowing the algorithm to escape from local optima and avoid algorithm stagnation. A hybrid dynamic switching mechanism was constructed to switch between mutation update and distance selection update through probability parameters and counters. Based on the MIDBO algorithm and the fact that its performance has been verified, the multi-strategy improved dung beetle optimization Kapur entropy multi-threshold image segmentation algorithm (MIDBO-KMIA) is proposed. The experimental results have shown that the MIDBO algorithm has high convergence speed and accuracy, and the MIDBO-KMIA has made significant progress in quality indicators such as PSNR, SSIM, and FSIM, especially in terms of image detail preservation and noise suppression. So, it has been fully verified that the proposed MIDBO algorithm and MIDBO-KMIA have better effectiveness and robustness, and the adaptability of the model to complex image scenes comparison with other algorithms has been demonstrated.
In future work, we will further optimize the processing speed of algorithms on large-scale image sets and study the fusion application of deep learning and swarm intelligence algorithms to cope with more complex image segmentation tasks. In addition, we will consider extending MIDBO-KMIA to color and medical image segmentation to meet diverse segmentation needs in practical scenarios, so as to further enhance the generality and practicality of the algorithm in practical applications.

Author Contributions

J.L.: conceptualization, investigation, methodology, software, writing—original draft, and formal analysis. M.L. and H.L.: investigation and software—review and editing. T.Z. and Y.G.: investigation and writing—review, editing and funding acquisition. Y.G.: supervision All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded in part by the Key Project for Natural Science Research of the Universities in Anhui Province under Grant No. 2023AH052917 the project name is “Research on Intelligent Driving Environment Perception System Based on Fusion of Laser Point Cloud and Image Information”, and in part by the Anhui Province Excellent Young Teacher Cultivation Project under Grant No. YQYB2025079.

Data Availability Statement

The datasets generated and/or analyzed during the current study are available from the corresponding author on reasonable request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Abdulateef, S.K.; Salman, M.D. A Comprehensive Review of Image Segmentation Techniques. Iraqi J. Electr. Electron. Eng. 2021, 17, 166–175. [Google Scholar] [CrossRef]
  2. Hao, S.; Huang, C.; Heidari, A.A.; Chen, H.; Liang, G. An improved weighted mean of vectors optimizer for multi-threshold image segmentation: Case study of breast cancer. Clust. Comput. 2024, 27, 13945–14004. [Google Scholar] [CrossRef]
  3. Amiriebrahimabadi, M.; Rouhi, Z.; Mansouri, N. A Comprehensive Survey of Multi-Level Thresholding Segmentation Methods for Image Processing. Arch. Comput. Methods Eng. 2024, 31, 3647–3697. [Google Scholar] [CrossRef]
  4. Ning, G. Two-dimensional Otsu multi-threshold image segmentation based on hybrid whale optimization algorithm. Multimed. Tools Appl. 2023, 82, 15007–15026. [Google Scholar] [CrossRef]
  5. Yin, P.-Y. Multilevel minimum cross entropy threshold selection based on particle swarm optimization. Appl. Math. Comput. 2007, 184, 503–513. [Google Scholar] [CrossRef]
  6. Sharma, A.; Chaturvedi, R.; Kumar, S.; Dwivedi, U.K. Multi-level image thresholding based on Kapur and Tsallis entropy using firefly algorithm. J. Interdiscip. Math. 2020, 23, 563–571. [Google Scholar] [CrossRef]
  7. Nobre, R.H.; Rodrigues, F.A.A.; Marques, R.C.P.; Nobre, J.S.; Neto, J.F.S.R.; Medeiros, F.N.S. SAR Image Segmentation with Rényi’s Entropy. IEEE Signal Process. Lett. 2016, 23, 1551–1555. [Google Scholar] [CrossRef]
  8. Wang, S.; Fan, J. Simplified expression and recursive algorithm of multi-threshold Tsallis entropy. Expert Syst. Appl. 2024, 237, 121690. [Google Scholar] [CrossRef]
  9. Abualigah, L.; Almotairi, K.H.; Elaziz, M.A. Multilevel thresholding image segmentation using meta-heuristic optimization algorithms: Comparative analysis, open challenges and new trends. Appl. Intell. 2023, 53, 11654–11704. [Google Scholar] [CrossRef]
  10. Mostafa, R.R.; Gaheen, M.A.; Abd ElAziz, M.; Al-Betar, M.A.; Ewees, A.A. An improved gorilla troops optimizer for global optimization problems and feature selection. Knowl.-Based Syst. 2023, 269, 110462. [Google Scholar] [CrossRef]
  11. Mao, Z.; Yang, Z.; Luo, D.; Lin, D.; Jiang, Q.; Huang, G.; Liao, Z. A multi-strategy enhanced dung beetle algorithm for solving real-world engineering problems. Artif. Intell. Rev. 2025, 58, 253. [Google Scholar] [CrossRef]
  12. Liang, Z.; Chung, C.Y.; Zhang, W.; Wang, Q.; Lin, W.; Wang, C. Enabling High-Efficiency Economic Dispatch of Hybrid AC/DC Networked Microgrids: Steady-State Convex Bi-Directional Converter Models. IEEE Trans. Smart Grid 2025, 16, 45–61. [Google Scholar] [CrossRef]
  13. Jiang, Y.; Wu, Q.; Zhu, S.; Zhang, L. Orca predation algorithm: A novel bio-inspired algorithm for global optimization problems. Expert Syst. Appl. 2022, 188, 116026. [Google Scholar] [CrossRef]
  14. Nadimi-Shahraki, M.H.; Zamani, H.; Asghari Varzaneh, Z.; Mirjalili, S. A Systematic Review of the Whale Optimization Algorithm: Theoretical Foundation, Improvements, and Hybridizations. Arch. Comput. Methods Eng. 2023, 30, 4113–4159. [Google Scholar] [CrossRef] [PubMed]
  15. Huo, F.; Wang, Y.; Ren, W. Improved artificial bee colony algorithm and its application in image threshold segmentation. Multimed. Tools Appl. 2022, 81, 2189–2212. [Google Scholar] [CrossRef]
  16. Makhadmeh, S.N.; Al-Betar, M.A.; Doush, I.A.; Awadallah, M.A.; Kassaymeh, S.; Mirjalili, S.; Zitar, R.A. Recent Advances in Grey Wolf Optimizer, its Versions and Applications: Review. IEEE Access 2024, 12, 22991–23028. [Google Scholar] [CrossRef]
  17. Song, H.; Wang, J.; Bei, J.; Wang, M. Modified snake optimizer based multi-level thresholding for color image segmentation of agricultural diseases. Expert Syst. Appl. 2024, 255, 124624. [Google Scholar] [CrossRef]
  18. Chen, D.; Li, X.; Li, S. A Novel Convolutional Neural Network Model Based on Beetle Antennae Search Optimization Algorithm for Computerized Tomography Diagnosis. IEEE Trans. Neural Netw. Learn. Syst. 2023, 34, 1418–1429. [Google Scholar] [CrossRef]
  19. Sawant, S.S.; Prabukumar, M.; Loganathan, A.; Alenizi, F.A.; Ingaleshwar, S. Multi-objective multi-verse optimizer based unsupervised band selection for hyperspectral image classification. Int. J. Remote Sens. 2022, 43, 3990–4024. [Google Scholar] [CrossRef]
  20. Alanazi, F.; Bilal, M.; Armghan, A.; Hussan, M.R. A Metaheuristic Approach Based Feasibility Assessment and Design of Solar, Wind, and Grid Powered Charging of Electric Vehicles. IEEE Access 2024, 12, 82599–82621. [Google Scholar] [CrossRef]
  21. Mahajan, S.; Mittal, N.; Pandit, A.K. Image segmentation using multilevel thresholding based on type II fuzzy entropy and marine predators algorithm. Multimed. Tools Appl. 2021, 80, 19335–19359. [Google Scholar] [CrossRef]
  22. Zhao, D.; Liu, L.; Yu, F.; Heidari, A.A.; Wang, M.; Liang, G.; Muhammad, K.; Chen, H. Chaotic random spare ant colony optimization for multi-threshold image segmentation of 2D Kapur entropy. Knowl.-Based Syst. 2021, 216, 106510. [Google Scholar] [CrossRef]
  23. Ramesh Babu, P.; Srikrishna, A.; Gera, V.R. Diagnosis of tomato leaf disease using OTSU multi-threshold image segmentation-based chimp optimization algorithm and LeNet-5 classifier. J. Plant Dis. Prot. 2024, 131, 2221–2236. [Google Scholar] [CrossRef]
  24. Jia, H.; Wen, Q.; Wang, Y.; Mirjalili, S. Catch fish optimization algorithm: A new human behavior algorithm for solving clustering problems. Clust. Comput. 2024, 27, 13295–13332. [Google Scholar] [CrossRef]
  25. Bourzik, A.; Bouikhalene, B.; El-Mekkaoui, J.; Hjouji, A. Accurate image reconstruction by separable krawtchouk-charlier moments with automatic parameter selection using artificial bee colony optimization. Multimed. Tools Appl. 2025, 84, 16083–16104. [Google Scholar] [CrossRef]
  26. Nasir, M.; Sadollah, A.; Mirjalili, S.; Mansouri, S.A.; Safaraliev, M.; Rezaee Jordehi, A. A Comprehensive Review on Applications of Grey Wolf Optimizer in Energy Systems. Arch. Comput. Methods Eng. 2025, 32, 2279–2319. [Google Scholar] [CrossRef]
  27. Xue, J.-K.; Shen, B. Dung beetle optimizer: A new meta-heuristic algorithm for global optimization. J. Supercomput. 2022, 79, 7305–7336. [Google Scholar] [CrossRef]
  28. Zhang, D.; Wang, Z.; Zhao, Y.; Sun, F. Multi-Strategy Fusion Improved Dung Beetle Optimization Algorithm and Engineering Design Application. IEEE Access 2024, 12, 97771–97786. [Google Scholar] [CrossRef]
  29. Li, Y.; Sun, K.; Yao, Q.; Wang, L. A dual-optimization wind speed forecasting model based on deep learning and improved dung beetle optimization algorithm. Energy 2024, 286, 129604. [Google Scholar] [CrossRef]
  30. Wu, Q.; Xu, H.; Liu, M. Applying an Improved Dung Beetle Optimizer Algorithm to Network Traffic Identification. Comput. Mater. Contin. 2024, 78, 4091–4107. [Google Scholar] [CrossRef]
  31. Yu, M.; Du, J.; Xu, X.; Xu, J.; Jiang, F.; Fu, S.; Zhang, J.; Liang, A. A multi-strategy enhanced Dung Beetle Optimization for real-world engineering problems and UAV path planning. Alex. Eng. J. 2025, 118, 406–434. [Google Scholar] [CrossRef]
  32. Jiachen, H.; Li-hui, F. Robot path planning based on improved dung beetle optimizer algorithm. J. Braz. Soc. Mech. Sci. Eng. 2024, 46, 235. [Google Scholar] [CrossRef]
  33. Xia, H.; Chen, L.; Xu, H. Multi-strategy dung beetle optimizer for global optimization and feature selection. Int. J. Mach. Learn. Cybern. 2025, 16, 189–231. [Google Scholar] [CrossRef]
  34. Bei, J.; Wang, J.; Song, H.; Liu, H. Slime mould algorithm with mechanism of leadership and self-phagocytosis for multilevel thresholding of color image. Appl. Soft Comput. 2024, 163, 111836. [Google Scholar] [CrossRef]
  35. Qian, Y.; Tu, J.; Luo, G.; Sha, C.; Heidari, A.A.; Chen, H. Multi-threshold remote sensing image segmentation with improved ant colony optimizer with salp foraging. J. Comput. Des. Eng. 2023, 10, 2200–2221. [Google Scholar] [CrossRef]
Figure 1. (a) Random initialization method and (b) Sobol sequence initialization method.
Figure 1. (a) Random initialization method and (b) Sobol sequence initialization method.
Algorithms 19 00138 g001
Figure 2. Change in disturbance radius.
Figure 2. Change in disturbance radius.
Algorithms 19 00138 g002
Figure 3. MIDBO algorithm flowchart.
Figure 3. MIDBO algorithm flowchart.
Algorithms 19 00138 g003
Figure 4. Iteration diagram of the CEC2022 test function under different functions: (a) F1, (b) F2, (c) F3, (d) F4, (e) F5, (f) F6, (g) F7, (h) F8, (i) F9, (j) F10, (k) F11, and (l) F12.
Figure 4. Iteration diagram of the CEC2022 test function under different functions: (a) F1, (b) F2, (c) F3, (d) F4, (e) F5, (f) F6, (g) F7, (h) F8, (i) F9, (j) F10, (k) F11, and (l) F12.
Algorithms 19 00138 g004
Figure 5. Iteration diagram of improved algorithm CEC2022 test function under different functions: (a) F1, (b) F2, (c) F3, (d) F4, (e) F5, (f) F6, (g) F7, (h) F8, (i) F9, (j) F10, (k) F11, and (l) F12.
Figure 5. Iteration diagram of improved algorithm CEC2022 test function under different functions: (a) F1, (b) F2, (c) F3, (d) F4, (e) F5, (f) F6, (g) F7, (h) F8, (i) F9, (j) F10, (k) F11, and (l) F12.
Algorithms 19 00138 g005
Figure 6. When n = 4, 6, 8, 12, the effect of Camera graphic segmentation.
Figure 6. When n = 4, 6, 8, 12, the effect of Camera graphic segmentation.
Algorithms 19 00138 g006
Figure 7. When n = 4, 6, 8, 12, the effect of Plane graphic segmentation.
Figure 7. When n = 4, 6, 8, 12, the effect of Plane graphic segmentation.
Algorithms 19 00138 g007
Table 1. Test function information.
Table 1. Test function information.
Function NameNo.Functions F i
Unimodal
Function
1Shifted and fully Rotated Zakharov Function300
Basic
Functions
2Shifted and fully Rotated Rosenbrock’s Function400
3Shifted and fully Rotated Expanded Schaffer’s f6 Function600
4Shifted and fully Rotated Non-Continuous Rastrigin’s Function800
5Shifted and fully Rotated Levy Function900
Hybrid
Functions
6Hybrid Function 1 (N = 3)1800
7Hybrid Function 2 (N = 6)2000
8Hybrid Function 3 (N = 5)2200
Composition
Functions
9Composition Function 1 (N = 5)2300
10Composition Function 2 (N = 4)2400
11Composition Function 3 (N = 5)2600
12Composition Function 4 (N = 6)2700
Search range: [ 100 , 100 ] D
Note: In Table 1, F i represents the theoretical global optimal value of the i -th test function, N represents fixed structural parameter.
Table 2. CEC2022 Test Function 2 Results.
Table 2. CEC2022 Test Function 2 Results.
Func.Dim.Opt.Indi.MIDBOGWOSOMVODBOFPABAS
F110300Best300345.3092318.3107300.01083001001.2551988.901
Std1.98 × 10−131607.6951087.2880.03542668.61782912.9412071.044
Mean3001737.6221262.631300.0489576.27155345.385218.876
F210400Best400.1135402.0848400.0849400.0387400.0513412.3448629.5263
Std1.947623.11722.705612.527827.89199.1908700.6967
Mean401.6285422.3099404.0562408.4185419.7833427.77791640.674
F310600Best600.0023600.0828600.6971600.1822600.1631622.5199611.012
Std0.56240.56271.18173.13835.06786.08668.3312
Mean600.2731600.5877601.4654602.0208605.0228633.1458625.2483
F410800Best803.9798804.1978804.5676808.956810.7761825.7786819.7244
Std3.26850.56273.843111.287811.98344.978710.0399
Mean808.5898814.9306810.357823.2847830.4716835.568839.1543
F510900Best900900.1186900.2933900.0014900.46381031.73917.2049
Std0.069311.58218.33990.590926.5231190.391987.0764
Mean900.0507905.1358902.081900.2423926.0391309.5261065.214
F6101800Best1803.51913.4622065.3971967.532138.2339387.8761848.408
Std239.18782319.8333568.9852393.8731934.53877,376.312374.0863
Mean1959.2146110.8827523.0014186.3145370.29493,423.944431.624
F7102000Best2000.6242005.9412006.6572017.72001.622044.4772033.249
Std6.929510.09035.642828.129112.41538.835220.824
Mean2020.5962009.3622028.8122031.5392027.9712058.3752060.787
F8102200Best2200.1592210.2082205.7682221.9762220.5672228.0812217.587
Std7.50464.46465.642842.26564.10163.602216.1669
Mean2218.12223.9852223.562243.0282225.9042234.4942232.519
F9102300Best2485.5022529.2932488.0652529.2892529.2842494.6092656.135
Std1.53 × 10−1241.987632.267126.817334.185129.560337.0427
Mean2485.5022562.2422491.3892534.232549.3732524.6062722.926
F10102400Best2403.542500.222422.5622500.2032500.3812508.0112502.788
Std63.429683.673959.7726135.849462.1079124.0359301.3793
Mean2560.1412561.2512527.1782590.2592539.2572576.7152694.086
F11102600Best26002731.3592993.5862603.59326003175.5464039.877
Std54.087193.155864.0764203.5316243.9764553.8381687.189
Mean2623.5442959.113016.30852751.4372853.1694349.1047289.763
F12102700Best2846.0172862.7522855.212858.6382863.1592864.1062946.976
Std13.52194.88074.72321.423716.34497.646664.0214
Mean2896.4492866.592864.5812863.4782872.0962897.3953069.284
Note: In Table 2, Func. denotes function, Dim. denotes dimension, Opt. denotes optimal value, and Indi. denotes indicators.
Table 3. Wilcoxon rank sum test results.
Table 3. Wilcoxon rank sum test results.
FunctionGWOSOMVODBOFPABAS
F15.5321 × 10−745.5321 × 10−745.5321 × 10−745.5321 × 10−745.5321 × 10−745.5321 × 10−74
F27.3994 × 10−627.3994 × 10−627.3994 × 10−627.3994 × 10−627.3994 × 10−627.3994 × 10−62
F31.8974 × 10−551.8974 × 10−551.8974 × 10−551.8974 × 10−551.8974 × 10−551.8974 × 10−55
F41.3598 × 10−831.3598 × 10−831.3598 × 10−831.3598 × 10−831.3598 × 10−831.3598 × 10−83
F55.4567 × 10−595.4567 × 10−595.4567 × 10−595.4567 × 10−595.4567 × 10−595.4567 × 10−59
F64.8442 × 10−694.8442 × 10−694.8442 × 10−694.8442 × 10−694.8442 × 10−694.8442 × 10−69
F71.0967 × 10−811.0967 × 10−811.0967 × 10−811.0967 × 10−811.0967 × 10−811.0967 × 10−81
F81.4881 × 10−451.4881 × 10−451.4881 × 10−451.4881 × 10−451.4881 × 10−451.4881 × 10−45
F99.7451 × 10−799.7451 × 10−799.7451 × 10−799.7451 × 10−799.7451 × 10−799.7451 × 10−79
F107.2771 × 10−477.2771 × 10−477.2771 × 10−477.2771 × 10−477.2771 × 10−477.2771 × 10−47
F118.9699 × 10−688.9699 × 10−688.9699 × 10−688.9699 × 10−688.9699 × 10−688.9699 × 10−68
F124.9385 × 10−764.9385 × 10−764.9385 × 10−764.9385 × 10−764.9385 × 10−764.9385 × 10−76
Table 4. Comparison of optimization results for multiple improvement strategies.
Table 4. Comparison of optimization results for multiple improvement strategies.
FunctionIndicatorsDBOSDBOFDBOMDBOMIDBO
F1Best322.2929321.6293300.3925301.7422300
300Mean483.0199320.859300.0004308.6264300
Std246.594786.54980.001461131.99392.9363 × 10−13
F2Best400.5527400.049400.3191400.0393400.0249
400Mean427.8402404.5403409.3614407.4164404.0657
Std32.43722.57216.840215.48632.5672
F3Best600.0179600.0032600.2285600.0002600.0001
600Mean607.6264601.6133604.9408600.0765600.0241
Std8.1162.25396.18340.28240.53487
F4Best810.9445804.9748808.9546804.2699804.1748
800Mean832.6764825.6367826.1342813.5914810.2481
Std11.385510.651110.47745.84113.2546
F5Best900.0919900.0079900.0895900900
800Mean940.6964924.9668940.7126900.0776900.1898
Std74.98837.990168.59480.077060.2028
F6Best1883.30841881.61321819.42021884.94561814.0878
1800Mean5009.028814,100.70017991.99515909.59782325.9438
Std2269.611212,613.114911,537.7744289.004809.6063
F7Best2019.63842003.57492001.30252000.99532004.9748
2000Mean2029.4842028.15212029.86222021.6762021.2029
Std15.699812.929913.63416.68045.3636
F8Best2220.13042220.22342203.68862203.94292200.5355
2200Mean226.14352222.31212220.16132222.0142219.2819
Std4.91286.33063.79435.1732.0135
F9Best2529.28442485.50172485.50172485.50172485.5017
2300Mean2542.27942492.69672485.50182485.5022488.4953
Std24.995416.384739.40880.00056070.000216
F10Best2500.37082500.45652455.04572450.26542400.2008
2400Mean2556.23972626.96042573.48042520.5142558.5539
Std64.9599125.073464.440952.733257.5874
F11Best26002600260026002600
2600Mean2845.56322791.40512744.79522703.89442620.3293
Std230.5968154.3065159.0115158.163951.9195
F12Best2861.15372846.73532847.69242846.65032900.0014
2700Mean2869.93782898.22652893.45132887.74652900.002
Std15.20999.725117.021422.59670.0001819
Table 5. PSNR values for multi-threshold image segmentation using various algorithms when m = 4, 6, 8, and 12.
Table 5. PSNR values for multi-threshold image segmentation using various algorithms when m = 4, 6, 8, and 12.
ImageThreshold QuantityMIDBODBOFPASOGWOWOA
Camera422.3022.2721.9621.9919.9622.14
624.8024.3423.7624.0921.0524.29
826.4924.4925.7426.1923.6026.40
1228.5728.3026.9728.8625.0328.85
Pepper421.0120.8220.0120.9316.9020.81
624.0322.6222.5223.1621.3723.10
825.5824.7623.5824.8620.3224.41
1228.9126.2527.2927.3325.4026.17
Plane422.0021.9421.1921.9918.5221.86
625.1525.0123.5325.0821.5021.88
826.9526.8026.4926.6525.7226.75
1230.2027.6027.8828.6425.4529.06
House2422.9121.1021.9621.2920.1022.53
624.7224.5524.3223.4623.1523.50
827.6625.0125.3426.5825.1226.24
1229.6229.0928.3229.5425.7327.46
Table 6. SSIM values for multi-threshold image segmentation using various algorithms when m = 4, 6, 8, and 12.
Table 6. SSIM values for multi-threshold image segmentation using various algorithms when m = 4, 6, 8, and 12.
ImageThreshold QuantityMIDBODBOFPASOGWOWOA
Camera40.690.700.680.680.690.69
60.730.730.720.710.640.72
80.870.820.760.760.870.76
120.890.830.760.920.730.89
Pepper40.730.730.710.730.670.71
60.800.770.780.780.750.78
80.850.830.800.840.760.82
120.910.880.890.900.860.86
Plane40.830.820.820.830.710.83
60.880.880.850.870.780.83
80.900.900.890.900.880.89
120.940.910.920.930.870.92
House240.800.770.800.860.610.78
60.820.850.830.810.790.84
80.890.840.850.850.840.86
120.890.890.900.890.850.86
Table 7. FSIM values for multi-threshold image segmentation using various algorithms when m = 4, 6, 8, and 12.
Table 7. FSIM values for multi-threshold image segmentation using various algorithms when m = 4, 6, 8, and 12.
ImageThreshold QuantityMIDBODBOFPASOGWOWOA
Camera40.860.860.850.840.850.85
60.900.900.890.890.810.89
80.910.870.930.930.830.93
120.940.940.930.940.900.94
Pepper40.770.770.760.760.720.77
60.830.820.810.830.790.82
80.870.850.830.860.790.85
120.920.890.900.910.870.88
Plane40.840.850.830.840.740.84
60.900.900.860.900.820.84
80.920.920.920.920.910.92
120.960.930.940.940.890.95
Hoe240.820.810.820.810.760.80
60.870.860.830.830.830.84
80.910.870.880.890.870.88
120.940.940.910.940.890.89
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

Li, J.; Guo, Y.; Liang, M.; Long, H.; Zhang, T. A Multi-Strategy Improved Dung Beetle Optimizer for the Kapur Entropy Multi-Threshold Image Segmentation Algorithm. Algorithms 2026, 19, 138. https://doi.org/10.3390/a19020138

AMA Style

Li J, Guo Y, Liang M, Long H, Zhang T. A Multi-Strategy Improved Dung Beetle Optimizer for the Kapur Entropy Multi-Threshold Image Segmentation Algorithm. Algorithms. 2026; 19(2):138. https://doi.org/10.3390/a19020138

Chicago/Turabian Style

Li, Jinjin, Yecai Guo, Meiyu Liang, Haiyan Long, and Tianfei Zhang. 2026. "A Multi-Strategy Improved Dung Beetle Optimizer for the Kapur Entropy Multi-Threshold Image Segmentation Algorithm" Algorithms 19, no. 2: 138. https://doi.org/10.3390/a19020138

APA Style

Li, J., Guo, Y., Liang, M., Long, H., & Zhang, T. (2026). A Multi-Strategy Improved Dung Beetle Optimizer for the Kapur Entropy Multi-Threshold Image Segmentation Algorithm. Algorithms, 19(2), 138. https://doi.org/10.3390/a19020138

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