Next Article in Journal
Automation of Rice Transplanter Using Agricultural Navigation
Previous Article in Journal
The Mechanism of Seed Priming with Abscisic Acid for Enhancing Cuticle Deposition Under Drought Stress: Phenotypic and Transcriptomic Insights
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Edge–Region Collaborative Segmentation of Potato Leaf Disease Images Using Beluga Whale Optimization Algorithm with Danger Sensing Mechanism

College of Engineering, Northeast Agricultural University, Harbin 150030, China
*
Author to whom correspondence should be addressed.
Agriculture 2025, 15(11), 1123; https://doi.org/10.3390/agriculture15111123
Submission received: 10 April 2025 / Revised: 16 May 2025 / Accepted: 19 May 2025 / Published: 23 May 2025
(This article belongs to the Section Digital Agriculture)

Abstract

Precise detection of potato diseases is critical for food security, yet traditional image segmentation methods struggle with challenges including uneven illumination, background noise, and the gradual color transitions of lesions under complex field conditions. Therefore, a collaborative segmentation framework of Otsu and Sobel edge detection based on the beluga whale optimization algorithm with a danger sensing mechanism (DSBWO) is proposed. The method introduces an S-shaped control parameter, a danger sensing mechanism, a dynamic foraging strategy, and an improved whale fall model to enhance global search ability, prevent premature convergence, and improve solution quality. DSBWO demonstrates superior optimization performance on the CEC2017 benchmark, with faster convergence and higher accuracy than other algorithms. Experiments on the Berkeley Segmentation Dataset and potato early/late blight images show that DSBWO achieves excellent segmentation performance across multiple evaluation metrics. Specifically, it reaches a maximum IoU of 0.8797, outperforming JSBWO (0.8482) and PSOSHO (0.8503), while maintaining competitive PSNR and SSIM values. Even under different Gaussian noise levels, DSBWO maintains stable segmentation accuracy and low CPU time, confirming its robustness. These findings suggest that DSBWO provides a reliable and efficient solution for automatic crop disease monitoring and can be extended to other smart agriculture applications.

1. Introduction

The potato (Solanum tuberosum L.), the fourth most important staple crop globally, serves as a primary food source for over one billion people, with its yield stability and disease resistance playing a pivotal role in ensuring food security [1,2]. However, potatoes are susceptible to infection by various pathogens including fungi, bacteria, and viruses throughout their growth cycle, with late blight [3], early blight [4,5], and black scurf [6] being the most devastating diseases. According to data from the Food and Agriculture Organization (FAO), worldwide potato yield losses due to these diseases reach 20–40% annually, resulting in direct economic losses exceeding USD 10 billion, which severely threatens the livelihoods of smallholder farmers and destabilizes regional food supply chains [7,8]. Therefore, early and accurate disease detection has become paramount for enhancing agricultural productivity and implementing effective crop health management strategies.
The implementation of precision agriculture relies on efficient and non-destructive disease detection technologies. Currently, image processing technology has been widely applied in agricultural disease detection, particularly through image segmentation and feature extraction to locate lesions [9,10,11,12]. However, traditional lesion detection methods, such as manual visual assessment, suffer from strong subjectivity and low efficiency, which means they cannot meet the demands of large-scale field data collection and analysis. In recent years, the integration of computer vision and spectral imaging technologies has provided new solutions for plant phenotypic analysis. Image-based disease detection technology enables non-destructive and high-throughput early diagnosis by extracting the morphological, textural, and spectral features of leaf lesions [13].
As a critical preprocessing step for feature extraction and classification, the accuracy of image segmentation directly determines the final detection performance. Current segmentation methods primarily include threshold-based segmentation [14,15], edge detection [16], and region growing [17]. Among them, the threshold segmentation method is more suitable for resource-constrained agricultural embedded systems due to its advantages of requiring no training data and having low computing cost [18,19]. The classical Otsu algorithm exhibits high efficiency in lesion segmentation under conditions of uniform illumination by maximizing the between-class variance to determine the optimal threshold [20,21]. It still has a few major drawbacks, though: (1) Although edge detection algorithms can accurately identify lesion contours, they do not incorporate internal region information, making comprehensive segmentation difficult to achieve; (2) single-dimensional grayscale histogram analysis is not sufficiently adaptable to complex scenarios with non-uniform lighting, soil residue, and leaf overlap interference, which may result in over-segmentation (pseudo-lesion noise) or edge loss [22].
To address the shortcomings of the Otsu method, researchers have proposed various improvement strategies. For instance, by integrating Otsu threshold segmentation with metaheuristic algorithms like particle swarm optimization and genetic algorithms, the precision of threshold optimization can be enhanced [23,24,25,26]. These enhanced techniques still have a lot of shortcomings, though. First, they struggle to find globally optimal threshold combinations because they are first prone to premature convergence, in which the search process becomes stuck close to local optima too soon and does not adequately explore the whole solution space. Second, these methods are not flexible enough to accommodate the non-linear changes in brightness that are typical of disease lesions on infected leaves. They have a greater missed detection rate for early-stage disease spots because they are unable to dynamically modify thresholds based on the actual characteristics of lesions [27,28]. Consequently, advancing lesion segmentation accuracy, robustness, and environmental adaptability persists as a critical research frontier.
The beluga whale optimization algorithm (BWO) [29], proposed by Changting Zhong in 2022, is a swarm intelligence optimization algorithm inspired by the swimming, foraging, and whale fall behaviors of beluga whales. Experimental studies have demonstrated that BWO exhibits certain advantages in solving optimization problems. Nevertheless, practical applications frequently encounter complex and diverse challenges where the standard BWO method proves insufficient. Although existing improved BWO methods [30,31] have enhanced the ability to escape from local optima to some extent, they still suffer from issues such as a large number of parameters requiring complex configuration, long computation time, and low convergence efficiency.
Therefore, to enhance the solution accuracy and convergence speed of BWO, a beluga whale optimization algorithm with a danger sensing mechanism (DSBWO) is proposed. By incorporating improved control parameters Bf, a danger sensing mechanism, a dynamic foraging mechanism, and whale fall behavior, the convergence speed of the algorithm is accelerated, preventing it from becoming stuck in local optima. Subsequently, a collaborative strategy integrating DSBWO with Otsu and Sobel edge gradient constraints is implemented. This strategy optimizes the optimal threshold in parallel in the color space, effectively refining the contour of potato lesion edges and improving segmentation accuracy. The suggested approach, which has excellent adaptability in agricultural image processing, dramatically improves the accuracy of early-stage potato disease diagnosis, according to experimental results.
The main contributions of this study are:
(1)
The introduction of DSBWO’s image edge–region collaborative optimization strategy, which enhances the quality of threshold segmentation.
(2)
The application of CEC 2017 testing functions and other segmentation experiments to evaluate the performance of DSBWO and compare it with other optimization algorithms.
(3)
The innovative integration of Otsu–Sobel edge detection, significantly improving the accuracy and segmentation quality of lesion localization.
(4)
The verification of the improved algorithm’s effectiveness in potato leaf segmentation, offering a novel solution for the early diagnosis of agricultural diseases.
The organizational structure of this paper is as follows: Section 2 provides a detailed description of the proposed DSBWO method and threshold segmentation strategy. Section 3 presents the settings of the comparison algorithms, parameter configurations, and evaluation metrics. Section 4 displays the experimental results and offers a comparative analysis of the algorithm’s performance on various benchmark tests and image segmentation tasks. Finally, Section 5 summarizes the research conclusions and outlines directions for future work.

2. Materials and Methods

To address the issues of slow convergence speed and low solution accuracy in traditional BWO, DSBWO is proposed to solve these problems. It is applied to optimize Otsu and Sobel to accurately locate the lesion contours in potato disease images, providing a high-precision solution for disease detection in complex field environments. The following content introduces the components of DSBWO and the thresholding methods.

2.1. Beluga Whale Optimization Algorithm with Danger Sensing Mechanism

2.1.1. Control Parameters Based on S-Shaped Function

By analyzing the standard BWO [29], we can know that as the algorithm iterates, the control parameter Bf decreases with the number of iterations, thereby controlling whether the beluga whale in the population will perform swimming behavior (exploitation phase) or foraging behavior (exploration phase). Therefore, Bf dramatically impacts BWO’s performance. Equation (1) is the calculation formula for Bf in BWO. Equation (1) shows that at the beginning of algorithm iteration, the number t is small and the probability of Bf > 0.5 is higher, enabling the algorithm to conduct exploration behavior. As the number of computations increases, t gradually increases, Bf decreases, and the algorithm enters the development stage with stronger exploitation capability and faster convergence. To observe the trend of Bf value changes during algorithm iteration more intuitively, we calculated Bf according to Equation (1) and drew its change curve after 1000 iterations, as shown in Figure 1.
B f = B 0 1 t 2 T max
In Figure 1, the algorithm varies randomly in the range [0, 1] during the iteration process of the algorithm Bf. This situation is closely related to the initial value of B0, which is a random number in the range [0, 1], and therefore, there will be a situation that randomly enters the exploration and exploitation stages during the iteration process of the algorithm. Moreover, there is a greater chance of Bf being less than 0.5 in the final iteration stage, which permits the algorithm to advance to the exploitation phase. In this way, it is easy to encounter problems such as slow algorithm convergence speed and low solution accuracy. In response to the above situation, control parameters based on the S-shaped function are proposed.
The S-shaped function [32], commonly used in mathematics, is summarized in Equation (2):
f ( x ) = 1 1 + e x
It is evident from an analysis of Equation (2) that the S-shaped function is increasing monotonically.
B f = 2 1 + e 4 t T m a x
As shown in Figure 2, the control parameter Bf is decreasing non-linearly, and in the early stage of the iteration, Bf decays relatively gently from 1 to 0.5, at which time the algorithm performs exploration behavior, and the beluga whales in the population search for the best solution throughout the search space. When the algorithm is in the middle of the computation, Bf < 0.5, this is when the beluga population enters the exploitation phase. This approach prevents the beluga whales from wasting their global optimization capability and allows the beluga to have more time for effective local optimization to better enhance the exploitation capability of the beluga population and greatly increase its optimization efficiency.

2.1.2. Danger Sensing Mechanism

Sharks are not the only predators of the docile beluga. Polar bears also pose a threat, as they use their forepaws to pummel and drag them onto the ice for consumption. The position update method of BWO in the exploration stage of the algorithm depends on the current individual and random individuals in the population, without considering whether there is a threat in the surrounding environment. The individual movement mode during the exploration phase of the algorithm has a significant impact on the convergence speed of BWO and affects its performance. Therefore, to improve the precision of BWO, a danger sensing mechanism can be added in the exploration stage. Beluga whales pay attention to whether there are dangerous situations around them when searching for food through their auditory and visual senses. The specific formula for the danger sensing mechanism is shown in Equation (4):
X ( t + 1 ) = X a ( t ) + l × X b ( t ) X i ( t )
X i ( t + 1 ) = X i P ( t ) + X r j ( t ) X i P ( t ) 1 + r 1 sin 2 π r 2 j = 2 N P X i P ( t ) + X r j ( t ) X i P ( t ) 1 + r 1 cos 2 π r 2 j = 2 N P + 1
where X i P ( t ) denotes the position of the i-th beluga whale in dimension P, and P (j = 1, 2, ..., D) denotes the random number selected from the dimension. Xa(t) and Xb(t) are two randomly selected individuals at the t-th iteration. r1 and r2 are random operators in the range (0, 1). l is the dynamic perception coefficient: when the beluga whale senses danger and needs to escape, the individual starts to adjust its position. Beluga move further and further out of the danger zone with each iteration, and the perceived risk decreases. The formula for l is shown in Equation (6).
l = r 1 × ( 1 t T max )
Therefore, the following is the mathematical model of the danger sensing mechanism:
X i ( t + 1 ) = X i P ( t ) + X r j ( t ) X i P ( t ) 1 + r 1 sin 2 π r 2 j = 2 N P X i P ( t ) + X r j ( t ) X i P ( t ) 1 + r 1 cos 2 π r 2 j = 2 N P + 1 r 2 > S T X a ( t ) + l × X b ( t ) X i ( t )   otherwise  
where ST = 0.3 × r3.
When r2 > ST, this indicates that the positions of the beluga whale and its food are in a safe zone, and the position is updated according to Equation (5). Otherwise, it is updated using Equation (4). The danger sensing mechanism emphasizes that the algorithm has a strong ability to explore in the search space during the exploration phase. On the other hand, it ensures that the beluga whales are hunting prey in a safe location and that the algorithm obtains the best solution. The danger sensing mechanism improves the convergence speed of the algorithm, enriches the diversity of individual position updates, and enhances the algorithm’s search capability.

2.1.3. Dynamic Foraging Mechanism

BWO generates novel solutions through the foraging stage, so if the updating method is not excellent enough, the resulting new solutions will hardly improve the quality of the solutions. During algorithm iteration, the position update of the algorithm population relies on the optimal individual. Although this can quickly converge upon the current optimal individual, it is more likely to cause BWO to fall into local optima, resulting in lower solution accuracy. It is evident from the development phase equation that members of the population will cluster around the best solution, Xbest, through iteration. In addition, r3 is a random value range in the interval [0, 1]. Relying only on parameter r3 will not assist the population in escaping the local optimum when Xbest is not the global optimal solution.
A dynamic foraging mechanism, designed to balance the algorithm’s global and local search capabilities, improves solution quality. The mechanism consists of two population position updating formulas; one is an updating method that further exploits the current optimal solution. Another approach is to randomly select a beluga individual, and based on this, refer to the position of the optimal individual and introduce a binary step size to prevent the algorithm from becoming trapped in a local optimum. The mathematical model of the dynamic foraging mechanism can be found in Equation (8).
X i ( t + 1 ) = X best ( t ) + A 1 X a ( t ) X i ( t ) r 3 < r 4 X a ( t ) + A 1 ( X b e s t ( t ) X i t + ( 1 A 1 ) × U × ( X b ( t ) X c ( t ) )   otherwise  
A 1 = 2 r 4 × 1 t T max
where Xa(t), Xb(t), and Xc(t) are three randomly selected individuals in the population with an iteration count of t. r4 is a random value within the range [0, 1]. U is a binary vector used to determine when to apply a step size to avoid moving individuals towards the same position in the population. U is assigned according to Equation (10):
U = 1 r 4 < r 5 0 otherwise  
where r4 and r5 are two vectors that represent random values in the interval [0, 1].
In Equation (10), the two position updating methods are performed randomly, and when r4 < r5, individuals in the population are more inclined to exploit the excellent individuals further, gradually approaching the excellent individuals as the algorithm iterates, increasing the likelihood of discovering the globally optimal solution. On the contrary, individuals seek optimal positions, mitigating the risk of local optima entrapment, and concurrently exploring the search space by tracking other individuals’ solutions. By avoiding missing possible optimal solutions and pausing at local optimal solutions, this approach ensures a balance between global search and local exploitation while also encouraging algorithm exploration and exploitation.

2.1.4. Improved Whale Fall Strategy

When the balance factor Bf is less than the whale fall probability Wf, the algorithm enters the whale fall phase. When a whale fall occurs, the beluga whale has already lost its optimization ability, so it is believed that the beluga whale that has experienced a whale fall will leave the population. However, to ensure that the population does not change, young beluga whales will be added to the optimization queue. This paper proposes a simple and feasible whale fall idea. The main idea of the improved whale fall strategy is that individuals with poor optimization-seeking ability in the population gradually leave the population as the number of iterations increases. Furthermore, beluga positioned in the middle gradually converge towards the best beluga to ensure their own safety. Finally, a disturbing factor vc is added on this basis, and vc decreases with the iteration of the algorithm, which helps to improve the convergence accuracy of the algorithm. The specific update strategy is:
W f = 0.01 0.05 × t T max
X i ( t + 1 ) = v b × X b e s t ( t ) r 6 × X m i d ( t ) v c × X w o r s t ( t )
where vb is a random number in the range [−1, 1]. r6 is a random number in the range [0, 1]. Xmid(t) and Xworst(t) represent the individuals in the middle and worst position of the population sorted by fitness value, respectively.
vc is the disturbing factor controlling the occurrence of whale falls where beluga whales will leave the population, and the formula for vc is given in Equation (13).
v c = 1 t T max
where t is the current number of iterations and Tmax is the maximum number of iterations.

2.1.5. The Flowchart of DSBWO

Population initialization in DSBWO is carried out according to Equation (14). The pseudocode of DSBWO is shown in Algorithm 1. DSBWO also includes control parameters based on the S-shaped function, a danger sensing mechanism, a dynamic foraging mechanism, and an improved whale landing strategy.
X = L B + r a n d ( N P , D ) × ( U B L B )
where NP is the population size, and D is the population dimension. UB and LB are the upper and lower limits of variables, respectively. rand is a random number generated in the range [0, 1].
Algorithm 1: DSBWO
Input: N, D ST, vb,Tmax, UB, LB;
Output: the best solution Xbest;
1. The initial population X is generated according to Equation (14).
2. Evaluate the population and find the optimal individual Xbest.
3. t = 1;
4. while (t < Tmax)
5. for i = 1: N
6.  Calculate the Bf according to Equation (1).
7.   if Bf > 0.5% Exploration phase
8.    Update the position of the i-th using danger sensing mechanism in Equation (7).
9.   Else  %Exploitation phase
10.    Update the position of the i-th using dynamic foraging mechanism in Equation (8).
11.   End if
12. Calculate and rank the fitness values of beluga whales in the population.
13. Find the beluga whales in the best Xbest, middle Xmid, and worst Xworst positions.
14. Calculate the Wf according to Equation (11).
15.   if BfWf % Whale fall phase
16.    Update X according Equation (12).
17.   End if
18. End for
19.  t = t + 1.
20. End while

2.1.6. Complexity Analysis

The computational complexity of DSBWO involves the initialization of the population along with other proposed strategies. The computational complexity during the population initialization phase is O (NP × D). The computational complexity of the danger perception mechanism stage is O (NP × Tmax). The computational complexity of the dynamic foraging mechanism stage is O (NP × Tmax). The computational complexity of the improved whale fall phase is affected by the Wf and Bf, which can be approximated as O (0.1 NP × Tmax). Therefore, the total computational complexity of DSBWO is O (0.1 NP × (1 + D + 0.1 Tmax)).

2.2. Thresholding Methods

This section introduces two threshold segmentation methods: Otsu’s method and the Sobel edge detection algorithm, with details as follows:
Otsu’s method, also known as the Maximum Inter-class Variance Method, was proposed by Japanese scholar Otsu in 1978 [14]. This method takes an image as input and divides its pixels into target regions and background regions based on the grayscale histogram. By maximizing the difference between the target and background, the optimal threshold is determined [33,34]. Its principle is as follows: assuming the maximum grayscale level of the image is L, the method first calculates the frequency of each grayscale value. Then, pixels are classified into target and background groups based on a candidate threshold TH. The probabilities and average grayscale values of these two groups are computed, and the inter-class variance σ2 is derived. The threshold that maximizes σ2 is selected as the optimal threshold.
The Sobel edge detection algorithm, proposed by Irwin Sobel and Gary Feldman, is a discrete differential edge detection algorithm. It calculates the approximate brightness gradient of an image, identifies points in specific regions where the gradient exceeds a certain value, and marks these points as edge points [35,36]. A unique feature of the Sobel algorithm is its consideration of the influence of neighboring pixels on the current pixel: the closer the neighboring points, the greater their impact, while distant neighbors have minimal influence. Based on this principle, the algorithm employs horizontal and vertical gradient templates to compute the grayscale-weighted difference between a pixel and its upper, lower, left, and right neighbors [37,38]. Additionally, the Sobel algorithm integrates Gaussian smoothing and differentiation, which not only smooths the image to reduce noise interference but also enhances robustness against noise, enabling the more precise extraction of edge information.

3. Experimental Setup

In this section, the proposed DSBWO algorithm is compared with several recently developed meta-heuristic algorithms across multiple aspects. The CEC 2017 functions were employed to comprehensively evaluate the optimization performance of the algorithms on a wide range of problem types [39]. Additionally, the Berkeley Segmentation Dataset was used to perform multi-level threshold segmentation on images with varying characteristics, assessing each algorithm’s segmentation accuracy [40]. To further evaluate the overall performance of the DSBWO collaborative segmentation framework, we conducted experiments on potato leaf images affected by early and late blight. DSBWO was rigorously tested on 28 functions from the CEC 2017 suite to validate its optimization capability in complex environments. Subsequently, segmentation experiments were conducted using Otsu’s method as the objective function, with performance evaluated across 10 images featuring different textures and edge complexities, to assess DSBWO’s effectiveness in practical image processing tasks. Finally, Gaussian noise with varying intensity levels was added to the images to test and evaluate the noise robustness of the proposed method.
The potato leaf dataset was sourced from a publicly available repository: https://www.kaggle.com/datasets/hafiznouman786/potato-plant-diseases-data, accessed on 18 March, 2025. The dataset includes early disease, late disease, and healthy leaves, with a total of 2152 images. The resolution of each image in the group is (256 × 256) pixels. Figure 3 shows the original images and histograms of the different potato leaves, where IM_E1 and IM_E2 are images of potatoes affected by early blight, and IM_L1 and IM_L2 are images of potatoes affected by late blight. The experimental parameters remained consistent with the previous image segmentation series. Optimal results in the obtained data are highlighted in bold for clarity. All algorithms were developed in MATLAB 2019b, and computations were performed on an AMD Ryzen 9 3900 12-core processor (3.09 GHz) with 31.9 GB RAM.

3.1. Experimental Preparation

We compared DSBWO with six meta-heuristic algorithms: the chaos-based improved Harris hawk algorithm (NCHHO) [41], adaptively balanced grey wolf optimization algorithm (ABGWO) [42], jellyfish-based beluga whale optimization algorithm (JSBWO) [30], red-tailed hawk algorithm (RTH) [43], particle swarm and sea horse optimization algorithm (PSOSHO) [44], and modified grasshopper optimization algorithm (MGOA) [45]. Details of the algorithms involved in the comparison are given in Table 1.
To further strengthen the systematic and logical structure of the literature review, a brief analysis of the representative strengths and weaknesses of these algorithms is provided. Firstly, NCHHO enhances population diversity by introducing chaotic mapping, which provides certain advantages in overcoming premature convergence. However, this method exhibits weak stability on high-dimensionally complex functions. ABGWO improves the balance between global and local search capabilities by introducing dynamic adjustment factors, but it relies heavily on the initial population distribution and has relatively slow convergence speed. JSBWO, which integrates jellyfish searching behavior with BWO, strengthens the ability to escape from local optima. But the model is complex, and there is a certain trade-off in terms of solution time and convergence efficiency. By mimicking the multi-stage predatory method of hawks in nature, RTH improves the exploration of the solution space and presents a richer individual update method. The algorithm’s capacity for global convergence could be enhanced, nevertheless, as it has not yet been substantially modified for issues like image processing. PSOSHO speeds up searches by combining two traditional methods. But because of the addition of several weighting variables, there is a chance of premature convergence, and its stability is readily affected by parameter changes. MGOA emphasizes jumping exploration ability in its design, achieving good performance in solution accuracy, but its performance tends to fluctuate in complex objective function problems.
Due to the stochastic nature of optimization algorithms, the following experimental settings were adopted to ensure fair performance comparisons and obtain statistically reliable results. In the numerical experiments based on CEC 2017 functions, the parameters were configured as follows: population size N = 40, dimensionality D = 30, 30 independent runs per experiment, maximum runtime per run Tmax = 30 s, penalty factor M = 108. The mean (Mean) and standard deviation (Std) of the 30 runs were recorded. For the multi-threshold segmentation problem, the population size was uniformly set to N = 40. All experiments were conducted on test images with varying threshold numbers (TH = 4, 8, 15, 20), with each threshold level undergoing 30 independent runs with a runtime of 30 s per iteration. The best-performing data are highlighted in bold for clarity.

3.2. Performance Measures

The experiments employed Mean and Std as evaluation metrics for assessing algorithm performance. The mean value assesses the algorithm’s convergence accuracy, while the standard deviation quantifies its stability. The algorithm performs better with a smaller mean value, and a smaller standard deviation indicates more stability.
In the image segmentation experiments, peak signal-to-noise ratio (PSNR) [46], structural similarity (SSIM) [47], and IoU [48] were used to evaluate the performance and quality of the algorithm for segmenting images at different thresholds. Greater picture similarity and superior image segmentation performance are indicated by higher PSNR, SSIM and IoU values. The specific mathematical models are as follows:
PSNR = 10 log 10 255 2 M S E
M S E = j = 1 M k = 1 N I ( j , k ) I ( j , k ) 2 M × N
SSIM I , I = 2 μ I μ I + C 1 σ I I + C 2 μ I 2 + μ I 2 + C 1 σ I 2 + σ I 2 + C 2
IoU = T P T P + F P + F N
where I and I′ are the original image to be evaluated and the segmented image, respectively; and M and N represent the length and width of the image, respectively. μI and μI are the meaning of the gray scale values of the original image I and the segmented image I’, respectively, and σII is the covariance between the gray scale values of the original image I and the segmented image I’. σ I 2 is the variance of the gray value of the original image I, σ I 2 is the variance of the gray value of the I′ after segmentation, C1 = 6.502, and C2 = 58.522. The number of true examples (TP) refers to the number of pixels where both the real label and the predicted label are i; the number of false positive examples (FP) refers to the number of pixels where the predicted label is i but the true label is not i; the number of false counterexamples (FN) refers to the number of pixels where the true label is i but the predicted label is not i.
Moreover, two non-parametric tests were introduced to statistically examine the experimental data. A non-parametric statistical technique called the Friedman rank sum test [49] was used to rank the compared algorithms’ overall performance and determine whether there were any notable differences between them. The Wilcoxon rank sum test [50], another non-parametric test, was utilized for pairwise comparisons between algorithms. The significance level for the Wilcoxon rank sum test was set to α = 0.05. The p-value represents the error probability of accepting the validity of the observed results, and h was used to indicate whether there was significance between algorithms. If h = 1, it means the algorithm is significant; otherwise, there is no significance.

4. Results

4.1. Statistical Results for CEC 2017

Table 2 records the test results of DSBWO and other advanced optimization algorithms used to address CEC 2017 testing functionality, with specific details included in the Supplementary File. Table 3 shows the outcomes of the Friedman rank sum test for each algorithm. Table 4 displays the p-value results of verifying the differences of the algorithms using the Wilcoxon rank sum test.

4.1.1. Analysis of CEC 2017 Statistical Results

Table 2 provides the Friedman’s mean rank and the rank ranking. The algorithm performs better when the Friedman mean rank is smaller. The minimum Friedman mean rank of DSBWO is 1.75, ranking first among all the algorithms. DSBWO has higher computational accuracy in most test functions compared to other algorithms. The outcomes demonstrated that DSBWO performs more effectively than the other participating algorithms.
The Friedman test was chosen to assess algorithm performance further and see whether there are notable differences amongst algorithms. The Friedman test results for each algorithm at the significance level of α = 0.05 are displayed in Table 3. If k = 6 and degrees of freedom k − 1 = 5, then χ α 2 [ k 1 ] = 11.07 < χ2 = 111.84 is greater than the critical value of 11.07, therefore rejecting the null hypothesis suggesting that there is an important distinction between the performances of the algorithms being compared. We verified the significance of pair-wise differences using the Wilcoxon rank sum test algorithm. As can be seen from the results presented in Table 4, most of the p-values are less than 0.05. Although the difference between DSBWO and RTH is not significant, DSBWO performs better than RTH in terms of its Friedman mean rank and the accuracy of other test functions. In summary, this indicates that DSBWO has significant superiority over other algorithms.

4.1.2. Convergence Curve Analysis

Figure 4 illustrates the convergence curves of selected test functions, where all algorithms were independently executed 30 times to record their average convergence rates. As can be seen in Figure 4, the convergence speed of DSBWO is superior to the other six algorithms at the beginning of the iteration, which indicates that DSBWO has a robust local search ability. At the same time, the best solution acquired by DSBWO is notably better than the six algorithms, demonstrating that DSBWO has excellent exploration ability. Therefore, DSBWO facilitates a more effective balance between exploration and exploitation within the algorithm. Figure 4a–c show that DSBWO has a powerful exploration ability in the beginning stages of iteration. It can also quickly converge to the optimal solution in the early stages of iteration and has better solution accuracy than the other methods. Furthermore, for (d–f), as the number of iterations increases, the comparison algorithms rapidly tackle the local optimum, leading to poor solution quality. In contrast, DSBWO exhibits a robust exploration capability, can quickly escape the local optimum, and converges rapidly, suggesting that the danger sensing mechanism and dynamic foraging mechanism can help to balance the performance of the algorithm so that the algorithm can find the best solution more quickly.
In conclusion, the DSBWO algorithm achieves an effective balance between exploration and exploitation. By integrating a danger sensing mechanism, the algorithm significantly enhances its global exploration capability while reducing the risk of becoming trapped in local optima. This improvement enables DSBWO to maintain both strong global search ability and precise local refinement, resulting in robust and reliable optimization performance across diverse problem scenarios.

4.2. Otsu Segmentation Experiment Results

The original images and their histograms are presented in Figure 5. Table 5 shows the Friedman mean rank of fitness values for each algorithm obtained using the Otsu method, while Table 6 presents the Friedman mean rank of PSNR and SSIM for different algorithms.
An algorithm having a higher mean rank suggests greater effectiveness in image segmentation, with DSBWO’s Friedman mean ranking first at 6.7 in Table 5, with specific details provided in the Supplementary File. JSBWO’s Friedman mean rank result is 4.9, which is ranked second; RTH is ranked third with a rank of 4.35, and after that, the order of the rankings is as follows: NCHHO, PSOSHO, ABGWO, and MGOA. The Friedman mean rankings of PSNR and SSIM at different threshold levels using the Otsu method are displayed in Table 6. It is evident that DSBWO ranks highest in the Friedman rank ranking of several threshold experiments. The Otsu fitness value, PSNR, and SSIM demonstrate the algorithm’s excellent robustness. Additionally, as the threshold number increases, the segmentation effect of DSBWO improves. At TH = 20, the algorithm’s fitness value has a Friedman mean rank of 6.6, the Friedman mean rank of PSNR is 6.8, and the mean rank of SSIM is 6.9. The algorithm’s Friedman rank ranking is the highest when compared to the other techniques.
To further analyze the results of the experiment, the experiment was statistically tested at various threshold numbers. The outcomes of the Wilcoxon rank sum test and Friedman rank test for the participating algorithms at various thresholds are shown in Table 7 and Table 8, respectively. Table 7 shows that when the threshold values are 4, 8, 15, and 20, the corresponding χ2 values are 42.77, 30.29, 27.09, and 36.16, respectively, with p-values of 1.2944 × 10−7, 3.3197 × 10−5, 1 × 10−4, and 6.2733 × 10−6. The χ α 2 [ k 1 ] = 12.59 < χ2 for the different threshold levels; also, the p-value is less than 0.05 for the different threshold levels. This implies that when the threshold levels are set at 4, 8, 15, and 20, the null hypothesis is accepted, suggesting a noteworthy difference in performance between DSBWO and other comparative algorithms.
The Wilcoxon rank sum test results using the Otsu method are given in Table 8. When comparing algorithms at different threshold levels, it is evident that DSBWO consistently yields p-values below 0.05, unlike NCHHO, ABGWO, RTH, PSOSHO, and MGOA. The difference between DSBWO and JSBWO is not significant at a TH of only 4, and the p-values in all other cases are less than 0.05. Under high threshold conditions, DSBWO has a better p-value. Therefore, DSBWO has superior performance and significant differences to other algorithms.

4.3. Results of Otsu–Sobel Collaborative Segmentation of Potato Disease Images

The potato disease images and their histograms are presented in Figure 5. Table 9 presents the segmentation outcomes of potato early blight and late blight images acquired through DSBWO utilizing the Otsu–Sobel edge detection method at threshold levels of 4, 8, 15, and 20. Specifically, in each image, the first row corresponds to the segmentation results obtained by combining the Otsu and Sobel methods at varying threshold levels, the second row shows the segmentation results achieved solely using the Otsu method, and the third row displays the edge detection results derived from the Sobel operator. Here, it is evident that as the threshold level increases, the segmentation quality of image thresholding significantly improves, and the detection results of using the cooperative segmentation strategy on diseased leaves become more distinct. Consequently, the threshold–edge collaborative segmentation of potato disease images can more clearly and accurately locate the positions of disease spots on the leaves.
In Table 9, when the threshold is 4 or 8, the collaborative segmentation of the early blight (IM_E1) and late blight (IM_L2) images identifies significant disease spots in the segmented images, but the detail is not well preserved. At the high threshold levels of TH = 15 and 20, by implementing more-precise threshold division and edge gradient constraints, the integrity of the lesion contour is significantly enhanced, allowing for a more detailed and accurate localization of the lesion contour. This indicates that the Otsu–Sobel collaborative strategy overcomes the limitations of single methods, thereby improving diagnostic efficiency for both early blight and late blight diseases while reducing the miss rate of early-stage lesions.
The Friedman mean ranks of Otsu–Sobel fitness values at different thresholds are presented in Table 10. The results show that DSBWO achieved the highest Friedman mean rank of 6, ranking first of all the algorithms. This indicates that DSBWO possesses stable optimization-seeking capability and delivers the best performance in segmenting potato early blight and late blight images, securing the top rank. Table 11 displays the Friedman mean rank of PSNR and SSIM from potato image segmentation. By using PRNR and SSIM, the correlation between images before and after segmentation can be determined, which can help evaluate the quality of the segmentation results. A higher PRNR indicates lower segmentation error and helps reduce false positives. The higher the value of SSIM, the better the segmentation effect, indicating outstanding performance in the smoothness of lesion edges and structural integrity. The experimental results demonstrate that DSBWO consistently outperforms other methods across all threshold levels, achieving the highest accuracy and structural integrity in segmenting potato disease images.
Table 12 presents the IoU and CPU time of different algorithms on four diseased potato leaf images. As shown in Table 12, the proposed DSBWO algorithm achieves the highest IoU values on all four images, with an average IoU of 0.8797, which is significantly higher than other algorithms such as JSBWO and PSOSHO, demonstrating superior segmentation accuracy and stability. In terms of computational efficiency, DSBWO maintains a CPU time of 1.805 s, outperforming most of the comparison algorithms. This indicates that the proposed method achieves a good balance between segmentation accuracy and runtime performance. In summary, DSBWO exhibits excellent precision, efficiency, and robustness in multi-threshold segmentation tasks for potato disease images, showing strong potential for practical application.

4.4. Collaborative Segmentation Experiments Under Different Noise Intensities

To evaluate the segmentation robustness of the proposed DSBWO method under noise interference, Gaussian noise of varying intensities (p = 0.01, 0.02, 0.03) was added to four potato disease images, and the performance was compared against six advanced algorithms. The effectiveness of the segmentation under noisy conditions was assessed using PSNR, SSIM, IoU, and CPU time. Table 13 presents the results of applying the DSBWO collaborative segmentation method to each image with added Gaussian noise. The first row shows the disease images after adding Gaussian noise of varying intensities, while the second row displays the corresponding segmentation results produced using the DSBWO method.
Table 14 shows the PSNR and SSIM statistics of each algorithm under different noise levels. In Table 14, DSBWO achieved consistently high PSNR and SSIM values under various noise intensities, indicating strong robustness. In most cases, it ranked first or second among all the algorithms. Even as the noise intensity increased and the performance of all algorithms declined, DSBWO maintained a PSNR of 30.78 and an SSIM of 0.8221, demonstrating strong anti-noise capability.
The IoU and CPU time of each algorithm at various noise levels are displayed in Table 15. As shown in Table 15, DSBWO consistently achieved the highest or second-highest IoU score across all noise conditions. For example, on the IM_E2 image, DSBWO achieved IoU values of 0.8661, 0.8654, and 0.8638 under the three noise levels, outperforming all other algorithms. Additionally, DSBWO maintained the lowest or near-lowest CPU time, averaging around 1.82 s. DSBWO shows excellent segmentation and accuracy and stable performance in noisy conditions, proving its robustness and practicality.

4.5. Discussion

The potato disease image segmentation method based on DSBWO provides an effective solution to address the deficiencies of traditional image segmentation algorithms in complex agricultural environments. Through comparisons with a variety of existing algorithms, the experimental findings demonstrate that DSBWO exhibits powerful advantages in multiple aspects, especially in solving optimization problems and in terms of the accuracy of image segmentation.
Firstly, DSBWO demonstrated strong global search capabilities and fast convergence in the CEC 2017 test functions. Compared with other comparative algorithms, DSBWO can better balance global exploration and local exploitation, avoiding the risk of prematurely falling into local optimal solutions. Therefore, DSBWO exhibits higher optimization accuracy when dealing with complex optimization problems. Moreover, the results of threshold segmentation experiments indicate that DSBWO outperforms other algorithms in segmenting images depicting potato disease spots. Especially in the Otsu–Sobel collaborative segmentation experiment, DSBWO can provide clear and accurate disease spot edges under both low-threshold and high-threshold conditions.
In addition, the noise robustness of DSBWO was evaluated under different levels of Gaussian noise. The results show that, compared to other algorithms, DSBWO consistently achieved higher PSNR and SSIM values, as well as more-stable IoU scores across all noise levels. Notably, even under strong noise conditions, DSBWO maintained high segmentation accuracy and structural similarity, while keeping the CPU runtime low and stable. This demonstrates that DSBWO has excellent robustness against noise interference and can still deliver reliable segmentation results in the presence of complex environmental disturbances. These findings further validate the practical applicability and adaptability of DSBWO in real-world agricultural image analysis.

5. Conclusions

This study proposes a potato disease image segmentation method based on the beluga whale optimization algorithm with a danger sensing mechanism (DSBWO), which combines Otsu multi-threshold segmentation and the Sobel edge detection algorithm, aiming to improve the accuracy and robustness of disease spot segmentation. Through experimental verification using the CEC 2017 benchmark functions and actual agricultural images, the results show that DSBWO outperforms other comparative algorithms in multiple tests, exhibiting higher segmentation accuracy and stronger robustness.
With the addition of S-shaped control parameters, a danger sensing mechanism, a dynamic foraging mechanism, and an improved whale fall strategy, DSBWO displays effectively increased picture segmentation performance. Furthermore, the robustness of DSBWO was evaluated under varying levels of Gaussian noise. Compared to other algorithms, DSBWO achieved consistently higher PSNR, SSIM, and IoU values across all noise intensities, while maintaining a lower and more stable CPU runtime. These results confirm that DSBWO maintains excellent segmentation performance even under severe noise interference, demonstrating strong anti-noise robustness and adaptability to complex environmental conditions.
This study provides an efficient and robust solution for agricultural image segmentation. This framework serves potato disease management and can also be extended to crop phenotypic analysis and yield prediction in smart agriculture. In addition to its application in image segmentation, DSBWO can be applied to other real-world applications, such as estimating the parameters of solar cells and optimizing mechanical parameters.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/agriculture15111123/s1, Table S1: CEC 2017 test results of different algorithms with D = 30; Table S2: Test benchmark image and its grayscale histogram in Otsu experiment; Table S3: Otsu’s fitness value results of all test images; Table S4: Otsu’s Mean PSNR value results of all test images; Table S5: Otsu’s Mean SSIM value results of all test images; Figure S1: Friedman mean rank of fitness value obtained by different algorithms on Otsu; Figure S2: Friedman mean rank of PSNR by different algorithms based on Otsu; Figure S3: Friedman mean rank of SSIM by different algorithms based on Otsu.

Author Contributions

Conceptualization, J.-L.B. and J.-Q.W.; methodology, J.-L.B. and J.-Q.W.; software, J.-L.B. and J.-Q.W.; validation, J.-L.B. and J.-Q.W.; formal analysis, J.-L.B. and J.-Q.W.; investigation, J.-L.B. and J.-Q.W.; resources, J.-L.B. and J.-Q.W.; data curation, J.-L.B. and J.-Q.W.; writing—original draft preparation, J.-L.B.; writing—review and editing, J.-Q.W.; visualization, J.-L.B. and J.-Q.W.; supervision, J.-Q.W.; project administration, J.-L.B. and J.-Q.W.; funding acquisition, J.-Q.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Social Science Found of China, grant number 21BGL174.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Acknowledgments

The authors thank the anonymous reviewers for their valuable and constructive comments that greatly helped improve the quality and completeness of this paper.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Liu, Y.; Feng, H.; Yue, J.; Li, Z.; Yang, G.; Song, X.; Yang, X.; Zhao, Y. Remote-sensing estimation of potato above-ground biomass based on spectral and spatial features extracted from high-definition digital camera images. Comput. Electron. Agric. 2022, 198, 107089. [Google Scholar] [CrossRef]
  2. Xu, X.; Pan, S.; Cheng, S.; Zhang, B.; Mu, D.; Ni, P.; Zhang, G.; Yang, S.; Li, R.; Wang, J.; et al. Genome sequence and analysis of the tuber crop potato. Nature 2011, 475, 189–195. [Google Scholar] [PubMed]
  3. Ray, S.S.; Jain, N.; Arora, R.K.; Chavan, S.; Panigrahy, S. Utility of Hyperspectral Data for Potato Late Blight Disease Detection. J. Indian Soc. Remote Sens. 2011, 39, 161–169. [Google Scholar] [CrossRef]
  4. Kaitlin, M.G.; Philip, A.T.; Adam, C.; Ittai, H.; John, J.C.; Eric, L.; Gevens, A.J. Hyperspectral Measurements Enable Pre-Symptomatic Detection and Differentiation of Contrasting Physiological Effects of Late Blight and Early Blight in Potato. Remote Sens. 2020, 2, 286. [Google Scholar]
  5. Franceschini, M.H.D.; Bartholomeus, H.; Van Apeldoorn, D.F.; Suomalainen, J.; Kooistra, L. Feasibility of Unmanned Aerial Vehicle Optical Imagery for Early Detection and Severity Assessment of Late Blight in Potato. Remote Sens. 2019, 11, 224. [Google Scholar] [CrossRef]
  6. Lees, A.K.; Anne, H. Black dot (Colletotrichum coccodes): An increasingly important disease of potato. Plant Pathol. 2003, 52, 3–12. [Google Scholar] [CrossRef]
  7. Bueno, A.d.F.; Sutil, W.P.; Jahnke, S.M.; Carvalho, G.A.; Cingolani, M.F.; Colmenarez, Y.C.; Corniani, N. Biological Control as Part of the Soybean Integrated Pest Management (IPM): Potential and Challenges. Agronomy 2023, 13, 2532. [Google Scholar] [CrossRef]
  8. FAO. Making agrifood systems more resilient to shocks and stresses. In The State of Food and Agriculture 2021; FAO: Rome, Italy, 2021. [Google Scholar]
  9. Yang, C. Remote Sensing and Precision Agriculture Technologies for Crop Disease Detection and Management with a Practical Application Example. Engineering 2020, 6, 528–532. [Google Scholar] [CrossRef]
  10. Ding, W.; Abdel-Basset, M.; Alrashdi, I.; Hawash, H. Next generation of computer vision for plant disease monitoring in precision agriculture: A contemporary survey, taxonomy, experiments, and future direction. Inf. Sci. 2024, 665, 120338. [Google Scholar] [CrossRef]
  11. Lv, P.; Xu, H.; Zhang, Y.; Zhang, Q.; Pan, Q.; Qin, Y.; Chen, Y.; Cao, D.; Wang, J.; Zhang, M.; et al. An Improved Multi-Scale Feature Extraction Network for Rice Disease and Pest Recognition. Insects 2024, 15, 827. [Google Scholar] [CrossRef]
  12. 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]
  13. Anne-Katrin, M. Plant Disease Detection by Imaging Sensors–Parallels and Specific Demands for Precision Agriculture and Plant Phenotyping. Plant Dis. 2016, 100, 241–251. [Google Scholar]
  14. Otsu, N. A Threshold Selection Method from Gray-Level Histograms. IEEE Trans. Syst. Man Cybern. 1979, 9, 62–66. [Google Scholar] [CrossRef]
  15. Kadhim, M.K.; Der, C.S.; Phing, C.C. Enhanced dynamic hand gesture recognition for finger disabilities using deep learning and an optimized Otsu threshold method. Eng. Res. Express 2025, 7, 015228. [Google Scholar] [CrossRef]
  16. Goulart, J.T.; Bassani, R.A.; Bassani, J.W.M. Application based on the Canny edge detection algorithm for recording contractions of isolated cardiac myocytes. Comput. Biol. Med. 2017, 81, 106–110. [Google Scholar] [CrossRef]
  17. Chen, D.; Mirebeau, J.M.; Shu, H.; Cohen, L.D. A Region-Based Randers Geodesic Approach for Image Segmentation. Int. J. Comput. Vis. 2023, 132, 349–391. [Google Scholar] [CrossRef]
  18. Kumar, A.; Kumar, A.; Vishwakarma, A.; Singh, G.K. Multilevel thresholding for crop image segmentation based on recursive minimum cross entropy using a swarm-based technique. Comput. Electron. Agric. 2022, 203, 107488. [Google Scholar] [CrossRef]
  19. Sankur, B.L.; Sezgin, M. Survey over image thresholding techniques and quantitative performance evaluation. J. Electron. Imaging 2004, 13, 146–168. [Google Scholar] [CrossRef]
  20. Houssein, E.H.; Hussain, K.; Abualigah, L.; Abd Elaziz, M.; Alomoush, W.; Dhiman, G.; Djenouri, Y.; Cuevas, E. An improved opposition-based marine predators algorithm for global optimization and multilevel thresholding image segmentation. Knowl.-Based Syst. 2021, 229, 107348. [Google Scholar] [CrossRef]
  21. Serbet, F.; Kaya, T. New comparative approach to multi-level thresholding: Chaotically initialized adaptive meta-heuristic optimization methods. Neural Comput. Appl. 2025, 37, 8371–8396. [Google Scholar] [CrossRef]
  22. Odiathevar, M.; Seah, W.K.G.; Frean, M. A Bayesian Approach To Distributed Anomaly Detection In Edge AI Networks. IEEE Trans. Parallel Distrib. Syst. 2022, 33, 3306–3320. [Google Scholar] [CrossRef]
  23. Zhu, D.; Shen, J.; Zheng, Y.; Li, R.; Zhou, C.; Cheng, S.; Yao, Y. Multi-strategy learning-based particle swarm optimization algorithm for COVID-19 threshold segmentation. Comput. Biol. Med. 2024, 176, 108498. [Google Scholar] [CrossRef]
  24. Rahaman, J.; Sing, M. An efficient multilevel thresholding based satellite image segmentation approach using a new adaptive cuckoo search algorithm. Expert Syst. Appl. 2021, 174, 114633. [Google Scholar] [CrossRef]
  25. Kong, W.; Chen, J.; Song, Y.; Fang, Z.; Yang, X.; Zhang, H. Sobel Edge Detection Algorithm with Adaptive Threshold based on Improved Genetic Algorithm for Image Processing. Int. J. Adv. Comput. Sci. Appl. 2023, 14, 557–562. [Google Scholar] [CrossRef]
  26. Abd Elaziz, M.; Ewees, A.A.; Oliva, D. Hyper-heuristic method for multilevel thresholding image segmentation. Expert Syst. Appl. 2020, 146, 113201. [Google Scholar] [CrossRef]
  27. Qadri, S.A.A.; Huang, N.F.; Wani, T.M.; Bhat, S.A. Advances and Challenges in Computer Vision for Image-Based Plant Disease Detection: A Comprehensive Survey of Machine and Deep Learning Approaches. IEEE Trans. Autom. Sci. Eng. 2024, 22, 2639–2670. [Google Scholar] [CrossRef]
  28. Kim, K.S.; Yoo, B.H.; Shelia, V.; Porter, C.H.; Hoogenboom, G. START: A data preparation tool for crop simulation models using web-based soil databases. Comput. Electron. Agric. 2018, 154, 256–264. [Google Scholar] [CrossRef]
  29. Zhong, C.; Li, G.; Meng, Z. Beluga whale optimization: A novel nature-inspired metaheuristic algorithm. Knowl. Based Syst. 2022, 251, 109215. [Google Scholar] [CrossRef]
  30. Yuan, X.; Hu, G.; Zhong, J.; Wei, G. HBWO-JS: Jellyfish search boosted hybrid beluga whale optimization algorithm for engineering applications. J. Comput. Des. Eng. 2023, 10, 1615–1656. [Google Scholar] [CrossRef]
  31. Shen, X.; Wu, Y.; Li, L.; Zhang, T. A modified adaptive beluga whale optimization based on spiral search and elitist strategy for short-term hydrothermal scheduling. Electr. Power Syst. Res. 2023, 228, 110051. [Google Scholar] [CrossRef]
  32. Feng, O.Y.; Chen, Y.; Han, Q.; Carroll, R.J.; Samworth, R.J. Nonparametric, Tuning-Free Estimation of S-Shaped Functions. J. R. Stat. Soc. Ser. B Stat. Methodol. 2022, 84, 1324–1352. [Google Scholar] [CrossRef]
  33. Yang, P.; Hu, Z.; Zhou, Y.; Su, Q.; Xiong, W. Grey prediction evolution algorithm with a dominator guidance strategy for solving multi-level image thresholding. Appl. Soft Comput. 2025, 174, 112947. [Google Scholar] [CrossRef]
  34. Liu, X.; Zhang, Z.; Hao, Y.; Zhao, H.; Yang, Y. Optimized OTSU Segmentation Algorithm-Based Temperature Feature Extraction Method for Infrared Images of Electrical Equipment. Sensors 2024, 24, 1126. [Google Scholar] [CrossRef]
  35. Moussa, M.; Guedri, W.; Douik, V.A. A Novel Metaheuristic Algorithm for Edge Detection Based on Artificial Bee Colony Technique. Trait. Du Signal 2020, 37, 405–412. [Google Scholar] [CrossRef]
  36. Li, Z. Optimized image registration algorithm at subpixel level for Geostationary Operational Environmental Satellite-R Advanced Baseline Imager navigation and registration performance assessment. J. Appl. Remote Sens. 2023, 17, 026504. [Google Scholar] [CrossRef]
  37. Fan, T. Research on Edge Detection of Agricultural Pest and Disease Leaf Image Based on LVQ Neural Network. Recent Adv. Comput. Sci. Commun. 2021, 14, 1903–1911. [Google Scholar] [CrossRef]
  38. Yadav, G.S.; Sathish, T.; Suresh, G.R. Detection of fire in forest area using chromatic measurements by Sobel edge detection algorithm compared with Prewitt gradient edge detector. AIP Conf. Proc. 2024, 2853, 020221. [Google Scholar]
  39. Song, H.; Wang, J.; Song, L.; Zhang, H.; Bei, J.; Ni, J.; Ye, B. Improvement and application of hybrid real-coded genetic algorithm. Appl. Intell. 2022, 52, 17410–17448. [Google Scholar] [CrossRef]
  40. Wang, J.; Bei, J.; Song, H.; Zhang, H.; Zhang, P. A whale optimization algorithm with combined mutation and removing similarity for global optimization and multilevel thresholding image segmentation. Appl. Soft Comput. 2023, 137, 110130. [Google Scholar] [CrossRef]
  41. Dehkordi, A.A.; Sadiq, A.S.; Mirjalili, S.; Ghafoor, K.Z. Nonlinear-based Chaotic Harris Hawks Optimizer: Algorithm and Internet of Vehicles application. Appl. Soft Comput. 2021, 109, 107574. [Google Scholar] [CrossRef]
  42. Wang, J.; Lin, D.; Zhang, Y.; Huang, S. An adaptively balanced grey wolf optimization algorithm for feature selection on high-dimensional classification. Eng. Appl. Artif. Intell. 2022, 114, 105088. [Google Scholar] [CrossRef]
  43. Ferahtia, S.; Houari, A.; Rezk, H.; Djerioui, A.; Machmoum, M.; Motahhir, S.; Ait-Ahmed, M. Red-tailed hawk algorithm for numerical optimization and real-world problems. Sci. Rep. 2023, 13, 12950. [Google Scholar] [CrossRef] [PubMed]
  44. Hasanien, H.M.; Alsaleh, I.; Tostado-Veliz, M.; Zhang, M.; Alateeq, A.; Jurado, F.; Alassaf, A. Hybrid particle swarm and sea horse optimization algorithm-based optimal reactive power dispatch of power systems comprising electric vehicles. Energy 2024, 286, 129583. [Google Scholar] [CrossRef]
  45. Ingle, K.K.; Jatoth, R.K. Non-linear channel equalization using modified grasshopper optimization algorithm. Appl. Soft Comput. 2024, 153, 110091. [Google Scholar] [CrossRef]
  46. Huynh-Thu, Q.; Ghanbari, M. Scope of validity of PSNR in image/video quality assessment. Electron. Lett. 2008, 44, 800–801. [Google Scholar] [CrossRef]
  47. Wang, Z.; Bovik, A.C.; Sheikh, H.R.; Simoncelli, E.P. Image quality assessment: From error visibility to structural similarity. IEEE Trans Image Process 2004, 13, 600–612. [Google Scholar] [CrossRef]
  48. Zhang, L.; Huang, Z.; Yang, Z.; Yang, B.; Yu, S.; Zhao, S.; Zhang, X.; Li, X.; Yang, H.; Lin, Y.; et al. Tomato Stem and Leaf Segmentation and Phenotype Parameter Extraction Based on Improved Red Billed Blue Magpie Optimization Algorithm. Agriculture 2025, 15, 180. [Google Scholar] [CrossRef]
  49. Friedman, M. A Comparison of Alternative Tests of Significance for the Problem of $m$ Rankings. Ann. Math. Stat. 1940, 11, 86–92. [Google Scholar] [CrossRef]
  50. Liao, C.; Li, S.; Luo, Z. Gene Selection Using Wilcoxon Rank Sum Test and Support Vector Machine for Cancer Classification. In Lecture Notes in Computer Science, Proceedings of the Computational Intelligence and Security (CIS 2006), Guangzhou, China, 3–6 November 2006; Springer: Berlin/Heidelberg, Germany, 2006. [Google Scholar]
Figure 1. Trend of Bf with the number of iterations.
Figure 1. Trend of Bf with the number of iterations.
Agriculture 15 01123 g001
Figure 2. Trend of Bf with number of iterations based on S-shaped function.
Figure 2. Trend of Bf with number of iterations based on S-shaped function.
Agriculture 15 01123 g002
Figure 3. Four original images of different diseased potatoes and their histograms.
Figure 3. Four original images of different diseased potatoes and their histograms.
Agriculture 15 01123 g003
Figure 4. Convergence curves of benchmark function.
Figure 4. Convergence curves of benchmark function.
Agriculture 15 01123 g004
Figure 5. Test benchmark images and their grayscale histograms.
Figure 5. Test benchmark images and their grayscale histograms.
Agriculture 15 01123 g005
Table 1. Parameter setting of comparison algorithm.
Table 1. Parameter setting of comparison algorithm.
AlgorithmReferencesParameters
NCHHO[41]E0 = [0, 1].
ABGWO[42]A = [−2, 2], C = [0, 2];
JSBWO[30]φ = [0, 1], γ = 1, α = 3, β r = [0, 1].
RTH[43]s = 0.01, β = 1.5, A = 15, R0 = 0.5.
PSOSHO[44]s = 0.01, p = 0.5, u = 0.5, v = 0.5.
MGOA[45]Cmin = 0.0001, Cmax = 1, l = 1.5, β = 0.4.
DSBWO-ST = [0, 0.3], vb = [−1, 1].
Table 2. Experimental results of different algorithms with D = 30.
Table 2. Experimental results of different algorithms with D = 30.
ImageTHNCHHOABGWOJSBWORTHPSOSHOMGOADSBWO
Friedman mean rank2.6253.64.684.752.93752.57
Rank6432571
Table 3. The results of Friedman test for various algorithms.
Table 3. The results of Friedman test for various algorithms.
DimensionSignificant Levelχ2 χ α 2 [ k 1 ] p-ValueNull HypothesisAlternative Hypothesis
D = 30α = 0.05133.1812.592.7508 × 10−26RejectAccept
Table 4. The comparison results of the Wilcoxon rank sum test.
Table 4. The comparison results of the Wilcoxon rank sum test.
Comparisonwtlp-ValueSignificance
DSBWO vs. NCHHO28004.6471 × 10−6Yes
DSBWO vs. ABGWO27011.6445 × 10−7Yes
DSBWO vs. JSBWO23050.03382Yes
DSBWO vs. RTH25030.1469No
DSBWO vs. PSOSHO28005.5521 × 10−7Yes
DSBWO vs. MGOA28001.6961 × 10−5Yes
Table 5. Friedman mean rank of Otsu fitness values for all test images.
Table 5. Friedman mean rank of Otsu fitness values for all test images.
AlgorithmsNCHHOABGWOJSBWORTHPSOSHOMGOADSBWO
Friedman mean rank2.6253.64.684.752.93752.57
Rank6432571
Table 6. Friedman mean rank results of PSNR and SSIM at different thresholds.
Table 6. Friedman mean rank results of PSNR and SSIM at different thresholds.
THNCHHOABGWOJSBWORTHPSOSHOMGOADSBWO
PSNRSSIMPSNRSSIMPSNRSSIMPSNRSSIMPSNRSSIMPSNRSSIMPSNRSSIM
43.74.32.23.74.54.75.73.33.22.822.76.76.5
84.33.93.23.94.93.32.63.73.13.932.36.97
154.53.13.54.23.64.84.13.73.32.82.52.76.56.65
203.73.82.44.35.15.44.22.93.53.32.52.96.66.8
Table 7. Friedman rank test of different thresholds.
Table 7. Friedman rank test of different thresholds.
THχ2 χ α 2 [ k 1 ] p-ValueNull HypothesisAlternative Hypothesis
442.7712.591.2944 × 10−7RejectAccept
830.3912.593.3197 × 10−5RejectAccept
1527.0912.591.0000 × 10−4RejectAccept
2036.1612.596.2733 × 10−6RejectAccept
Table 8. Wilcoxon rank sum test for the experiments based on the Otsu method.
Table 8. Wilcoxon rank sum test for the experiments based on the Otsu method.
THNCHHO vs. DSBWOABGWO vs. DSBWOJSBWO vs. DSBWORTH vs. DSBWOPSOSHO vs. DSBWOMGOA vs. DSBWO
phphphphphph
40.029010.040910.051300.041310.001310.01721
80.045210.011310.017310.025710.009110.00911
150.021110.021110.002210.007310.025710.02571
200.021110.017310.025710.006410.031210.00361
Table 9. Results of Otsu–Sobel segmentation of diseased potato images.
Table 9. Results of Otsu–Sobel segmentation of diseased potato images.
ImageTH = 4TH = 8TH = 15TH = 20
IM_E1Agriculture 15 01123 i001Agriculture 15 01123 i002Agriculture 15 01123 i003Agriculture 15 01123 i004
Agriculture 15 01123 i005Agriculture 15 01123 i006Agriculture 15 01123 i007Agriculture 15 01123 i008
Agriculture 15 01123 i009Agriculture 15 01123 i010Agriculture 15 01123 i011Agriculture 15 01123 i012
IM_E2Agriculture 15 01123 i013Agriculture 15 01123 i014Agriculture 15 01123 i015Agriculture 15 01123 i016
Agriculture 15 01123 i017Agriculture 15 01123 i018Agriculture 15 01123 i019Agriculture 15 01123 i020
Agriculture 15 01123 i021Agriculture 15 01123 i022Agriculture 15 01123 i023Agriculture 15 01123 i024
IM_L1Agriculture 15 01123 i025Agriculture 15 01123 i026Agriculture 15 01123 i027Agriculture 15 01123 i028
Agriculture 15 01123 i029Agriculture 15 01123 i030Agriculture 15 01123 i031Agriculture 15 01123 i032
Agriculture 15 01123 i033Agriculture 15 01123 i034Agriculture 15 01123 i035Agriculture 15 01123 i036
IM_L2Agriculture 15 01123 i037Agriculture 15 01123 i038Agriculture 15 01123 i039Agriculture 15 01123 i040
Agriculture 15 01123 i041Agriculture 15 01123 i042Agriculture 15 01123 i043Agriculture 15 01123 i044
Agriculture 15 01123 i045Agriculture 15 01123 i046Agriculture 15 01123 i047Agriculture 15 01123 i048
Table 10. Friedman mean rank of Otsu–Sobel fitness values at different thresholds.
Table 10. Friedman mean rank of Otsu–Sobel fitness values at different thresholds.
AlgorithmsNCHHOABGWOJSBWORTHPSOSHOMGOADSBWO
Friedman mean rank2.6253.64.684.752.93752.57
Rank6432571
Table 11. Friedman mean rank of PSNR and SSIM values with different algorithms.
Table 11. Friedman mean rank of PSNR and SSIM values with different algorithms.
ImageNCHHOABGWOJSBWORTHPSOSHOMGOADSBWO
PSNRSSIMPSNRSSIMPSNRSSIMPSNRSSIMPSNRSSIMPSNRSSIMPSNRSSIM
IM_E13.7533.54.3753.54.754.53.752.3751.752.8756.757
IM_E232. 8753.254.3754.53.33.25643.8753276.75
IM_L133.254.543.254.85.755.253.531.751.756.257
IM_L2322.43.252.755.44.75644.53.5377
Table 12. The IoU and CPU of diseased potato images with different threshold algorithms.
Table 12. The IoU and CPU of diseased potato images with different threshold algorithms.
ImageNCHHOABGWOJSBWORTHPSOSHOMGOADSBWO
IoUCPUIoUCPUIoUCPUIoUCPUIoUCPUIoUCPUIoUCPU
IM_E10.85411.7820.895441.7830.84091.7930.87971.7870.84421.7780.85251.7680.87691.763
IM_E20.86541.7910.86141.8460.86501.8020.86171.7920.85391.8110.86071.7820.87161.771
IM_L10.86131.8670.85611.8750.86761.8510.87331.8730.86851.8550.85731.8540.88281.830
IM_L20.86921.9140.86831.8710.847618770.87211.8660.86131.8720.86381.8650.88671.851
Table 13. Images with different noise intensities and DSBWO collaborative segmentation.
Table 13. Images with different noise intensities and DSBWO collaborative segmentation.
ImageIM_E1IM_E2IM_L1IM_L2
p = 0.01Agriculture 15 01123 i049Agriculture 15 01123 i050Agriculture 15 01123 i051Agriculture 15 01123 i052
Agriculture 15 01123 i053Agriculture 15 01123 i054Agriculture 15 01123 i055Agriculture 15 01123 i056
p = 0.02Agriculture 15 01123 i057Agriculture 15 01123 i058Agriculture 15 01123 i059Agriculture 15 01123 i060
Agriculture 15 01123 i061Agriculture 15 01123 i062Agriculture 15 01123 i063Agriculture 15 01123 i064
p = 0.03Agriculture 15 01123 i065Agriculture 15 01123 i066Agriculture 15 01123 i067Agriculture 15 01123 i068
Agriculture 15 01123 i069Agriculture 15 01123 i070Agriculture 15 01123 i071Agriculture 15 01123 i072
Table 14. PSNR and SSIM results of segmentation by various algorithms under different noise levels.
Table 14. PSNR and SSIM results of segmentation by various algorithms under different noise levels.
ImagepNCHHOABGWOJSBWORTHPSOSHOMGOADSBWO
PSNRSSIMPSNRSSIMPSNRSSIMPSNRSSIMPSNRSSIMPSNRSSIMPSNRSSIM
IM_E10.0131.080.848230.740.828330.480.844331.170.876031.020.827830.850.806831.290.8653
0.0230.730.813430.150.800730.120.812230.800.854130.640.809330.170.800531.010.8432
0.0329.680.791228.920.782429.830.800130.420.822330.200.800129.690.794630.780.8221
IM_E20.0132.200.829132.340.854632.300.834232.370.847932.190.822132.170.827132.400.8571
0.0232.010.813231.710.823332.110.824032.150.823631.230.809732.010.812832.220.8468
0.0331.550.806231.340.807131.960.810232.020.813431.140.800331.540.806032.150.8324
IM_L10.0133.170.858033.220.861933.070.843233.270.865333.010.840733.080.843233.300.8691
0.0233.060.836533.120.843432.860.833133.160.854632.850.823532.910.833133.220.8568
0.0332.810.817332.940.820832.530.802333.020.830132.450.801032.620.802333.140.8423
IM_L20.0130.360.861730.320.860830.370.870130.420.872630.290.860230.350.861530.440.8728
0.0230.200.856230.110.852430.150.852630.250.862330.130.851530.210.856230.270.8630
0.0329.920.851329.880.850329.860.850230.130.854729.840.850129.940.851530.160.8551
Table 15. IoU and CPU results of segmentation by various algorithms under different noise levels.
Table 15. IoU and CPU results of segmentation by various algorithms under different noise levels.
ImagepNCHHOABGWOJSBWORTHPSOSHOMGOADSBWO
IoUCPUIoUCPUIoUCPUIoUCPUIoUCPUIoUCPUIoUCPU
IM_E10.010.85401.8220.85441.8300.85311.8290.85571.8170.85321.8280.85341.8190.85591.813
0.020.85321.8250.85371.8330.85171.8310.85441.8210.85231.8310.85261.8240.85481.820
0.030.85171.8370.85181.8460.84921.8420.85231.8340.85041.8440.85051.8350.85301.831
IM_E20.010.86431.8410.86331.8460.86441.8420.86471.8400.85541.8410.86211.8440.86611.840
0.020.86261.8500.86281.8520.86241.8480.86341.8460.85431.8470.86131.8490.86541.845
0.030.86081.8570.86041.8580.86061.8560.86011.8530.85291.8550.85941.8580.86381.853
IM_L10.010.85431.8770.85541.8750.85451.8760.85561.8750.85451.8780.85421.8780.85571.873
0.020.85221.8810.85421.8800.85331.8820.85471.8810.85361.8830.85341.8830.85491.880
0.030.85071.8930.85251.8910.85171.8930.85211.8910.85181.8940.85211.8920.85301.889
IM_L20.010.84391.9230.84361.9210.84221.9230.84481.9180.84341.9220.84281.9220.84501.915
0.020.84281.9260.84281.9230.84181.9250.84381.9230.84251.9270.84201.9270.84421.922
0.030.84131.9320.84141.9310.84061.9320.84271.9300.84111.9340.84091.9330.83311.930
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

Bei, J.-L.; Wang, J.-Q. Edge–Region Collaborative Segmentation of Potato Leaf Disease Images Using Beluga Whale Optimization Algorithm with Danger Sensing Mechanism. Agriculture 2025, 15, 1123. https://doi.org/10.3390/agriculture15111123

AMA Style

Bei J-L, Wang J-Q. Edge–Region Collaborative Segmentation of Potato Leaf Disease Images Using Beluga Whale Optimization Algorithm with Danger Sensing Mechanism. Agriculture. 2025; 15(11):1123. https://doi.org/10.3390/agriculture15111123

Chicago/Turabian Style

Bei, Jin-Ling, and Ji-Quan Wang. 2025. "Edge–Region Collaborative Segmentation of Potato Leaf Disease Images Using Beluga Whale Optimization Algorithm with Danger Sensing Mechanism" Agriculture 15, no. 11: 1123. https://doi.org/10.3390/agriculture15111123

APA Style

Bei, J.-L., & Wang, J.-Q. (2025). Edge–Region Collaborative Segmentation of Potato Leaf Disease Images Using Beluga Whale Optimization Algorithm with Danger Sensing Mechanism. Agriculture, 15(11), 1123. https://doi.org/10.3390/agriculture15111123

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