Next Article in Journal
Path Planning in Narrow Road Scenarios Based on Four-Layer Network Cost Structure Map
Previous Article in Journal
Long Short-Term Memory–Model Predictive Control Speed Prediction-Based Double Deep Q-Network Energy Management for Hybrid Electric Vehicle to Enhanced Fuel Economy
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Image Segmentation Based on the Optimized K-Means Algorithm with the Improved Hybrid Grey Wolf Optimization: Application in Ore Particle Size Detection

1
School of Automation, Jiangsu University of Science and Technology, No. 666 Changxiang Road, Zhenjiang 212100, China
2
School of Mechanical Engineering, Jiangsu University of Science and Technology, No. 666 Changxiang Road, Zhenjiang 212100, China
3
School of Naval Architecture and Ocean Engineering, Jiangsu University of Science and Technology, No. 2 Mengxi Road, Zhenjiang 212114, China
4
Marine Equipment and Technology Institute, Jiangsu University of Science and Technology, No. 2 Mengxi Road, Zhenjiang 212008, China
*
Author to whom correspondence should be addressed.
Sensors 2025, 25(9), 2785; https://doi.org/10.3390/s25092785
Submission received: 12 March 2025 / Revised: 15 April 2025 / Accepted: 25 April 2025 / Published: 28 April 2025
(This article belongs to the Section Sensing and Imaging)

Abstract

:
: Image segmentation is an important part of ore particle size detection, and the quality of image segmentation directly affects the accuracy and reliability of particle size detection. Due to the poor quality and low efficiency of ore particle image segmentation in ore size detection, developing a fast and accurate algorithm for segmenting ore particle images remains a global challenge. However, the quality of image segmentation is closely related to calculating ore density, improving beneficiation efficiency, and evaluating crushing effectiveness. In this paper, a novel image segmentation algorithm is proposed, combining the K-means algorithm with a hybridized IGK-means. Firstly, the IGWO_SOA, by introducing a nonlinear convergence factor and incorporating the migration and spiral search mechanisms of SOA, is applied to overcome the weakness of being sensitive to initial centroids of the traditional K-means. IGWO_SOA is utilized to iteratively search for the optimal values of the initial cluster centers, which are then output as the results for subsequent clustering segmentation. An industrial experiment was conducted for multiple comparisons, which proved that the IGK-means has the characteristics of better image segmentation quality and being insensitive to illumination. The PSNR of the images segmented by IGK-means can reach up to 24.24 dB, and the FSIM can reach up to 0.2733, which proves the superiority and practicality of the algorithm in this paper.

1. Introduction

Ore size detection plays a critical role in mineral processing and mining operations. Accurate measurement of ore particle size directly impacts the efficiency of crushing, grinding, and beneficiation processes, ensuring optimal resource utilization and cost-effectiveness. Proper size detection aids in assessing ore density, improving separation precision, and maintaining consistent product quality. Moreover, it facilitates better control of equipment performance, reducing energy consumption and operational downtime. Many scholars have pointed out that reliable ore size detection is becoming increasingly important for achieving sustainable and economically viable mining methods [1]. However, due to the harsh working environment of ore size detection and the complex characteristics of the ore itself, detection methods have consistently been a technical bottleneck.
Since the introduction of ore particle size detection in the 1950s and 1970s, significant academic achievements have been made. Over the past few decades, more than a dozen detection methods have been proposed, including sieve analysis [2], laser diffraction [3], sedimentation analysis [4], and X-ray tomography [5], among others. These methods have greatly contributed to the theoretical and experimental development of particle size detection. However, they have also faced common challenges in practical applications. In [2], the labor intensity involved in handling large numbers of ore samples is very high, leading to inefficiencies and worker fatigue, which ultimately disrupts the continuity of the detection process. In [3,5], many of the instruments used are expensive and require stable environmental conditions to function properly. In certain mining sites, the presence of harsh environmental conditions—such as large temperature fluctuations, high humidity, and dust—can adversely affect the accuracy and reliability of the detection results. In [4], sedimentation analysis is time-consuming, and material characteristics such as the density and shape of the ore can influence the settling rate. In contrast, machine vision methods enable real-time acquisition of ore particle size information, providing immediate feedback and adjustments to the parameters of beneficiation equipment such as crushers. This not only improves beneficiation efficiency but also reduces energy consumption, making it widely adopted by researchers for particle size detection [6]. For machine vision-based ore particle size detection, first of all, a suitable camera should be selected according to the characteristics of the ore and the detection environment. Then, the lighting settings and image acquisition parameter settings are carried out. After that, image segmentation is performed through image preprocessing. Once the ore particles are segmented, their size features are extracted for particle size detection, The specific process of particle size detection is shown in Figure 1. Among the various techniques used in machine vision-based detection, image segmentation is one of the most essential and critical steps in image processing. Incomplete segmentation of ore particle images can severely interfere with the accuracy of the particle size distribution of ore particles. When an ore particle is segmented into multiple regions, these segmented parts may be misjudged as multiple independent ore particles. If only a part of an ore particle is segmented, it will lead to an underestimation of the actual particle size of the ore particle. Therefore, the quality and accuracy of ore particle image segmentation have a significant impact on particle size detection.
Nowadays, the main methods for ore particle image segmentation include thresholding [7,8], edge detection [9,10], region growing [11,12], the watershed algorithm [13,14], and deep learning techniques [15,16]. Thresholding is known for its good effectiveness, but its adaptability in varying lighting conditions and complex operational environments is relatively weak. Edge detection, on the other hand, is prone to generating false edges. The region growing algorithm, while simple in its segmentation principle, requires a significant amount of time to segment the entire image. The watershed algorithm is sensitive to weak edges, which helps preserve edge information, but it may lead to over-segmentation or under-segmentation in complex environments, thus reducing segmentation accuracy. Deep learning techniques have demonstrated remarkable advantages in the field of image segmentation. Among them, architectures such as U-Net have achieved high-precision segmentation across various domains, primarily due to their unique encoder–decoder structure and skip connection design. In [17], an improved model integrating the Swin Transformer into the U-Net architecture was proposed. By leveraging the global modeling capabilities of the Transformer, the model significantly improved the accuracy of semantic segmentation for remote sensing images. In [18], residual connections and attention mechanisms were introduced to form the RAR-U-Net model, which effectively addressed the challenge of spinal segmentation under noisy labels. This highlights the robustness of U-Net in scenarios with limited data quality. In [19], a U-Net-based deep learning model was successfully applied to the classification and segmentation of urban villages in high-resolution satellite images, further demonstrating the practical utility of this architecture in image segmentation tasks. In [20], an intelligent sorting scheme for coal and gangue that is adaptable to complex industrial scenarios was proposed by fusing multi-dimensional image features and combining machine learning or deep learning methods. This study is similar to the application concept of the aforementioned U-Net variants, both of which are committed to improving the segmentation accuracy through multi-modal feature fusion and model optimization. However, deep learning-based methods still face numerous challenges in practical applications. In the scenario of ore particle detection, a large amount of representative ore image data needs to be collected. Nevertheless, the complex and changeable environment of industrial sites makes it difficult to obtain high-quality and diverse data. Deep learning models have high requirements for hardware and need the support of high-performance GPUs, making it difficult to deploy them on industrial devices with limited resources. Existing models often have latency issues when processing high-resolution images or video streams in real time, failing to meet the stringent real-time requirements of scenarios such as industrial granularity detection.
Of the different methods, one of the most effective is the clustering method. The most widely applied clustering methods include fuzzy C-means [21], mountain clustering [22], K-means [23], and subtractive clustering [24]. The K-means algorithm is a kind of representative hard partitioning approach, which assigns data points to the nearest centroid. Then, positions of the centroids are iteratively updated based on their corresponding members to minimize the sum of squared errors. Many scholars have pointed out that K-means performs better than other clustering algorithms in practical applications [25]. In addition, K-means is widely applied medicine [26,27], agriculture [28,29], oceanography [30,31], and remote sensing [32,33]. However, the K-means algorithm has notable drawbacks, including high randomness and a tendency to get stuck in local optima, as well as the inability to effectively control the placement of cluster centers. In [34], in order to improve the calculation efficiency of K-means, a novel weighted bilateral k-means (WBKM) algorithm was proposed to cluster big data. On the basis of WBKM, a fast multi-view clustering algorithm with spectral embedding (FMCSE) was designed in [35]. To avoid falling into locally optimal clustering centers, many intelligent iterative optimization algorithms were applied. In [36], an improved PSO-K algorithm was applied for image segmentation, and the results of the experiments showed that it is possible to accurately segment the target from various kinds of agricultural images after the gray processing, which involves RGB with super green features. In [37], a hybrid algorithm combining the firefly algorithm and K-means (KM-FA) is proposed, with the Otsu criterion employed as the fitness function, demonstrating excellent performance in medical image applications. In [38], an improved colony optimization K-means (IABCKMC) was applied for selecting typical wind power output scenarios. It can be summarized from the literature that improvements in K-means mainly focus on reducing the calculation time and avoiding falling into local optimal clustering centers.
The grey wolf optimization (GWO) algorithm is a heuristic optimization method inspired by the social behavior model of grey wolves [39]. It incorporates adaptively adjustable convergence factors and an information feedback mechanism, enabling a balance between local exploitation and global exploration. Consequently, the GWO algorithm demonstrates strong performance in terms of solution accuracy and convergence speed. However, like other optimization algorithms, its convergence speed tends to decrease during the later stages of optimization. As iterations progress, other wolves (β, δ, and ω) continue to converge towards the leading wolves (α, β, and δ), which increases the likelihood of the algorithm becoming trapped in local optima [40]. In [41], in order to avoid the local optimal solution, a method that introduces a differential perturbation operator and improves the value assignment of control parameters is proposed to solve the problem of data clustering. In [42], An adaptive position update and circular population initialization (SGWO) method is applied to the parameter optimization of the Elman neural network, endowing the prediction method based on SGWO–Elman with accurate prediction performance and enabling it to excel in relevant data prediction tasks. In [43], an improved GWO algorithm with variable weights (VW–GWO) was proposed, and a new control parameter dominance equation was developed to reduce the likelihood of entrapment in local optima effectively.
Based on the above research, this paper aims to overcome the disadvantages of poor quality, low efficiency, and low reliability of previous methods by proposing a convenient and reliable segmentation method for ore particle images. Since the basic K-means clustering algorithm is prone to falling into local optima and is sensitive to the initial cluster centers, a hybrid method is adopted to optimize it. Moreover, this comprehensive optimization method combines the improvement of the convergence factor in the improved grey wolf optimizer with the seagull optimization algorithm (IGWO_SOA) to balance the search speed and population density. Specifically, in the process of updating the positions of the original grey wolf algorithm, some wolves are updated by introducing the migration mechanism and the spiral attack mechanism.
The rest of this paper is organized as follows. In Section 2, the basic theories of K-means, GWO, and SOA are presented. In Section 3, the iteration process of the proposed IGWO_SOA is described, and the segmentation method based on K-means and IGWO_SOA (IGK-means) is elaborated on in detail. In order to verify the accuracy and superiority of the improved algorithm in segmenting ore particle images, experimental analysis is presented in Section 4. Then, industrial experiments on ore particle size detection are also carried out in Section 4. Some conclusions and prospects are summarized in Section 5.

2. Background

2.1. K-Means Algorithm

The core idea of the K-means algorithm [44] is to divide a given dataset into K clusters according to similarity, ensuring that the data points within the same cluster are as similar as possible, while those in different clusters are as different as possible. The optimization objective of the K-means algorithm is to minimize the within-cluster sum of squares (SSE).
The K-means algorithm is an unsupervised classification algorithm. Suppose there is an unlabeled dataset:
P = p 1 , p 2 , , p n .
The task of this algorithm is to cluster the dataset into k clusters C = C 1 , C 2 , , C k , The minimum loss function is:
E = i = 1 k p C i | p u i | 2 .
The smaller the value of P, the higher the similarity of the data within the cluster and the better the clustering effect. Among them, u i is the center point of the cluster:
u i = 1 C i p C i p .
The formula for updating the clustering center is shown as follows:
C i = i n j = 1 n P j .
The iterative process of the K-means algorithm can be generalized in Figure 2 and summarized as follows:
Step 1.1: Initialization. Initialize the number of clusters k and select data points from the dataset randomly as the initial clustering centers. Denote these initial centers as C 1 , C 2 , , C k .
Step 1.2: Assignment. Calculate the Euclidean distance between each point and the clustering center, and classify the nearest clustering center according to the minimum distance principle.
Step 1.3: Update. Calculate the current mean of each class to redetermine the center of clustering.
Step 1.4: Convergence Check. Calculate the difference between new and previous clustering centers. Stop the algorithm if the maximum difference is less than the stopping criterion or the max iterations are reached, taking the current cluster assignment and centers as results; otherwise, repeat steps 1.2, 1.3, and 1.4.
The flowchart of the K-means algorithm is shown.

2.2. Grey Wolf Optimizer Algorithm

The grey wolf optimizer (GWO) [45] is an optimization algorithm inspired by the behavior of grey wolves in nature. It was proposed by Seyedali Mirjalili and others in 2014. This algorithm searches for the optimal solution to optimization problems by simulating the social hierarchy structure and hunting strategies of grey wolves.
The grey wolf population has a strict hierarchical system. As shown in Figure 3, wolves of different ranks account for different numbers in the wolf pack. There is usually only one alpha wolf, which serves as the core leader of the wolf pack; the number of beta wolves is relatively small, generally just a few, and they assist the alpha wolf; the number of delta wolves is relatively larger; and the omega wolves are the most numerous and form the main part of the wolf pack. The alpha wolf at the top of the pyramid represents the optimal solution in the current solution space. It is the leader of the group, responsible for making decisions and guiding the actions of the group. The beta wolves in the second layer of the pyramid are in the second-best position in the wolf pack. They assist the alpha wolf in hunting and leading the other grey wolves. When the alpha wolf is absent from the whole wolf pack, the beta wolf is the successor of the alpha wolf. The delta wolves in the third layer follow the instructions of the alpha wolf and the beta wolf to execute specific tasks, such as keeping watch and taking care of the cubs. In the algorithm, they represent the third-best solution. The old (less fit) alpha wolves and beta wolves are also demoted to the level of delta wolves. The omega wolves at the bottom are at the lowest level of the social hierarchy. They usually undertake the lowest-level jobs in the group, such as cleaning and being the last to receive food distribution. In the algorithm, they follow the guidance of the alpha wolf, the beta wolf, and the delta wolf to explore the search space. The mathematical expressions for the positions of the wolf pack during the hunting process are as follows:
D = C X p t X t X t + 1 = X p t A D .
where t is the current iteration number, A and C are coefficient vectors, and X p t and X t are the position vectors of the prey and the grey wolf, respectively.
The specific process of GWO is as follows:
Step 2.1: Initialization. Randomly initialize the positions of N grey wolves within the solution space, considering the problem’s dimensionality D, and set the maximum number of iterations   t m a x .
Step 2.2: Fitness evaluation. Identify the top three candidates based on their fitness, assigning them the roles of α, β, and δ.
Step 2.3: Coefficient calculation. The coefficients A   and C control the exploration and exploitation of the search process, the formulas for which are as follows:
A = 2 a r 1 a .
C = 2 r 2 .
a = 2 2 t t m a x .
where t m a x is the maximum number of iterations, and r 2   is a random vector in the range [0, 1], controlling the balance of movement.
Step 2.4: Update position. Grey wolves update their positions based on the three best solutions and their distances from these leaders. The position update process is shown in Figure 4, and the process involves the following steps:
Calculate the distance vectors:
D α = C 1 X α t X t .
D β = C 2 X β t X t .
D δ = C 3 X δ t X t .
where X α t , X β t , X δ t are the positions of the best, second-best, and third-best solutions, respectively.
Update intermediate positions:
X 1 = X α A 1 D α .
X 2 = X β A 2 D β .
  X 3 = X δ A 3 D δ .
The new position of a wolf is calculated as:
X t + 1 = X 1 + X 2 + X 3 3 .
Step 2.5: Optimization iteration. If the wolves find the optimal value or the iteration number reaches the maximal N, the iteration process stops. Otherwise, steps 2.2 to 2.4 are repeated.

2.3. Seagull Optimization Algorithm

The seagull optimization algorithm (SOA) conducts evolutionary computations by imitating the behavioral habits of seagulls as living organisms [46]. The seagull individuals in the seagull algorithm mainly possess two mechanisms: migration and spiral attack. The migration operation involves displacing from the existing position to avoid collisions with other individuals. After moving to a new position, the seagull will approach the optimal position. The attack operation means that during the process of preying on the target, the seagull continuously changes its angle and attack speed, performing a spiral-shaped movement to update its position.
The seagull optimization algorithm is capable of adaptively adjusting its search strategy. It can make dynamic adjustments according to the current environment and search status, which enhances the flexibility of the algorithm. Moreover, it has a relatively strong global search ability and can effectively avoid getting trapped in local optimal solutions.
The mathematical formula for calculating the new position that does not collide with adjacent seagulls in the migration strategy is as follows:
C s = K × P s x .
where P s x represents the current position and K represents the movement behavior of seagulls in the search space.
When seagulls attack their prey, they perform spiral movements in the air, which can be abstracted into three-dimensional space.
x = r c o s θ y = r s i n θ z = r θ                     r = u e θ v .
where u and v are hyperparameters and usually take the value of 1, r represents the spiral radius, and θ is a random angle value within the range of [0, 2 π ].
The new position of seagulls after attacking their prey is shown as follows:
P s t = D s t × x × y × z + P b e s t t .
where P b e s t t represents the current best position and D s t represents the distance between the search agent and the best search agent.

3. The Proposed Method

3.1. Improved Convergence Factor

When | A | > 1, the grey wolf group will expand the search range to look for prey, that is, it will conduct global search with a fast convergence speed. When | A | < 1, the grey wolf group will narrow the search range to attack the prey, that is, it will perform a local search with a slow convergence speed. Therefore, the magnitude of A determines the global search and local search capabilities of the GWO. It can be seen from Formula (5) that A changes with the change in the convergence factor a . The convergence factor a linearly decreases from 2 to 0 with the increase in the number of iterations. However, the process of the algorithm’s continuous convergence is not linear. From this, it can be understood that the linearly decreasing convergence factor a cannot fully reflect the actual optimization search process.
To address the above issues, this paper proposes an improved nonlinear convergence factor a , whose expression is shown in Equation (19) as follows:
a = 2 cos π 2 t t m a x λ .
where λ is experimentally determined, t is the current iteration, and t m a x represents the maximum number of iterations.
When t m a x =1000, different values of the parameter aa in Equation (19) were tested. The results for a are shown in Figure 5, where the curves from top to bottom correspond to λ = 1, 2, …, 10.

3.2. Hybrid Optimization Algorithm

In the later stage of optimization using the GWO, the optimization range of individual grey wolves becomes smaller as the wolf pack gradually surrounds the prey, a process during which the positions of individuals may collide and overlap. This reduction in position diversity, a factor contributing to the algorithm getting trapped in local optimal values, can be addressed by integrating mechanisms from the SOA. The migration behavior, characterized by its ability to prevent seagulls from gathering in positions, is employed to increase diversity and improve the algorithm’s capability to escape local optima. Additionally, the spiral search, noted for its fast speed and high efficiency, is incorporated. As a result, the migration mechanism and spiral search are combined to refine the experienced delta wolves in the wolf pack, thereby enhancing the algorithm’s optimization ability.
After fusing with the SOA, the position update formula for the delta wolf is shown as follows:
  X 3 =   X δ + r d D δ     0 r d < 0.5 X δ + r D δ c o s θ + r X δ X t s i n θ         0.5 r d 1 .
where r is the helix radius, and r d is a random normal distribution factor within the interval [0, 1]: when 0 r d < 0.5 , the migration mechanism is adopted to increase the randomness of the position update of the delta wolf, and when 0.5 r d 1 , the spiral search mechanism is adopted. The position of the delta wolf is not only updated through the standard GWO but is also affected by the spiral radius, which can help the algorithm explore more effectively in the search space and thus find better solutions. The expression of θ in the formula is:
  θ = r d 2 π .
The implementation process of the improved GWO (IGWO_SOA) is as follows:
Step 3.1: Initialization. Set the algorithm parameters, providing the population size N, the maximum number of iterations   t m a x , and the radius of the spiral search r , etc.
Step 3.2: Fitness evaluation. Calculate the fitness values of all grey wolf individuals in the population. Select the top three wolves with the highest fitness values as the alpha wolf, beta wolf, and delta wolf, and record their positions X α t , X β t , and X δ t , respectively.
Step 3.3: Update position. Update the positions of other grey wolf individuals in the population according to Formulas (12), (13), (15), and (20). Update A and C according to Formulas (6) and (7).
Step 3.4: Optimization iteration. If the wolves find the optimal value or the iteration number reaches the maximal N, the iteration process stops and the global optimal solution is output; otherwise, steps 3.2 to 3.4 are repeated.
The flowchart of the IGWO_SOA is presented in Figure 6. For a comprehensive assessment of the performance of IGWO_SOA, kindly refer to Appendix A. Meanwhile, the in-depth discussion on the adaptability of λ can be found in Appendix B.

3.3. Image Segmentation Based on IGK-Means

When using the improved grey wolf algorithm to improve the K-means algorithm for image segmentation, the clustering centers are taken as the optimization variables of the grey wolf algorithm. Firstly, the target image is regarded as an n-dimensional spatial vector with the data sample point set   P , and m data points are randomly selected from it as the initial clustering centers. Then, the remaining data points in the set P are assigned to these m classes. Let P j be the j-th data point in the set P , C i be the i-th clustering center, and assume that M i C j is the smallest at this time. Then, the data point P i is assigned to the j-th class. The design of the fitness function is as follows:
  f i t n e s s = i = 1 n j = 1 m | P j C i | 2 .
After IGWO_SOA reaches the maximum number of iterations, the global optimal value obtained through optimization is used to initialize the clustering centers of the next process, the K-means clustering algorithm, thus overcoming the disadvantages of the K-means clustering algorithm, such as being sensitive to the initialization of clustering centers.
The image segmentation based on the combination of the IGWO_SOA-optimized K-means algorithm (IGK-means) mainly consists of two steps: Optimize the initial clustering centers through the global search ability of IGWO_SOA to find the reasonable and optimal initial clustering center positions in the image point set. Then, utilize the K-means clustering for local optimization until the end of the iteration. The implementation steps of the algorithm are as follows:
Step 4.1: Initialization. Set the number of populations N and clusters k, the size of the spiral search r, and the maximum number of iterations   t m a x . Randomly initialize the positions of N grey wolves within the solution space.
Step 4.2: Fitness evaluation. According to the fitness function i = 1 n j = 1 m | P j C i | 2 , wolves are ranked based on their fitness values. The top three wolves are designated as α, β, and δ, representing the best, second-best, and third-best solutions, respectively. The remaining wolves, known as ω, follow the guidance of α, β, and δ in the optimization process.
Step 4.3: Obtain group location. Wolves mathematically encircle their prey by adjusting their positions based on the prey’s location, using coefficient vectors A and C .
Step 4.4: Update position. During the hunting phase, wolves update their positions, and then the results are averaged.
Step 4.5: Iterative optimization. The iteration process terminates either when the wolves identify the optimal value or when the maximum number of iterations N is reached. If neither condition is met, steps 4.2 to 4.4 are repeated until convergence.
Step 4.5: Obtain the initial clustering center. Output the optimal value obtained from the IGWO_SOA algorithm iteration as the initial cluster centers for the K-means algorithm.
Step 4.6: Assignment. Compute the Euclidean distance between each point and the cluster centers, then assign each point to the nearest cluster center based on the minimum distance principle.
Step 4.7: Update. Calculate the mean of the points in each cluster to update and redefine the cluster centers.
Step 4.8: Convergence check. Compute the difference between the new and previous cluster centers. If the maximum difference is smaller than the stopping threshold or the maximum number of iterations is reached, the algorithm terminates, and the current cluster assignments and centers are taken as the final results. Otherwise, repeat steps 4.6 to 4.8.
The flowchart of the IGK-means is shown in Figure 7.

4. Experiment and Analysis

4.1. Experimental Platform Construction

In order to validate the superiority and effectiveness of the proposed method, an experimental platform for ore particle collection was constructed, located in the Marine Equipment Research Institute of Jiangsu University of Science and Technology, Zhenjiang City, Jiangsu Province, China, as shown in Figure 8. The platform primarily consists of industrial cameras, industrial light sources, and a track system. The network structure of this system is shown in Figure 9. It is important to ensure good ventilation around the camera during operation to prevent prolonged high-temperature conditions. Figure 10 shows the actual working scene of the system.
During the experiment, sample images of ore particles were captured using an industrial camera. Subsequently, the sample images were segmented using the method proposed in this paper. To comprehensively evaluate the performance of the proposed method, K-means, GK-means, KM-FA, and IGK-means were introduced for comparative analysis.
Segmentation experiments were conducted on 400 ore particle images collected from the conveyor belt using the proposed IGK-means method. For comparison, segmentation experiments were also performed using the K-means algorithm, mountain clustering (MC) the GWO-optimized K-means algorithm (hereafter referred to as GK-means), and the KM-FA algorithm described in [37], to validate the advantages of the proposed method in ore particle image segmentation.
This study employs two widely used evaluation metrics to assess the performance of image segmentation: peak signal-to-noise ratio (PSNR), feature similarity index measure (FSIM), intersection over union (IoU), and pixel accuracy (PA). PSNR is a direct metric for measuring the quality of reconstructed images, providing a quantitative evaluation of the fidelity of segmented images compared to the original. The FSIM evaluates the structural similarity between images, emphasizing the preservation of essential image features, thereby offering a comprehensive assessment of the segmentation quality. IoU is a commonly used evaluation metric in object detection and image segmentation tasks, which is used to measure the overlapping degree between the prediction result and the ground truth label. PA reflects the proportion of the number of pixels correctly predicted by the model in the total number of pixels.
  PSNR = 10 log 10 MAX 2 MSE .
MSE = 1 M N i = 1 M j = 1 N I i , j I ref i , j 2 .
where MAX represents the maximum possible pixel value of the image, such as 255 for an 8-bit grayscale image. M and N denote the dimensions of the image, while I i , j represents the pixel value at the i , j position in the segmented image and I ref i , j denotes the corresponding pixel value in the reference image.
FSIM = x Ω S L x P C m x x Ω P C m x .
where S L x represents the similarity between the luminance features of the segmented image and the reference image, while P C m x denotes the phase congruency at pixel x , capturing the structural information of the image. Ω refers to the set of all pixels in the image.
I o U = | m n | | m n | .
where m represents the predicted region, and n represents the ground truth region.
P A = i = 0 n q i i i = 0 n j = 0 n q i j .
where n represents the number of classes in the image, and q i i represents the number of pixels that are correctly classified into the i-th class.
In order to compare the impact of different algorithms for image segmentation on particle size detection, taking the results of manual screening as the reference standard, the deviation rate is adopted to evaluate the accuracy of particle size detection. The deviation value is calculated based on the number of ore particles.
ε = H E E × 100 % .
where ε represents the deviation rate, H is the number of ore particles at each level detected by various segmentation algorithms, and E is the number of ore particles at each level obtained through manual screening. A smaller value of ε indicates a higher level of detection accuracy.

4.2. Result Analysis and Comparison

First, ore particles of different shapes and sizes were placed on the crawler belt of the collection device. After that, the lens aperture was set to the maximum light intake and the focal length was adjusted to 1 m. When the system was working, the camera connection image parameter settings were completed, and the images were saved in the specified folder. The exposure time, automatic gain, and brightness enhancement were set; the button was pushed to start collecting images; the mode was switched to the continuous image capture mode; and the button to start continuous snapshots was pushed. The industrial camera that comes with the device was used to collect images of the ore particles at an interval of 0.1 s. The parameter settings for the experiments were as follows: number of clusters: 3, λ = 7, population size: 30, number of iterations: 100. The parameters for the KM-FA algorithm were consistent with those described in the original paper. There were actually 716 particles in sample a. Among them, there were 163 particles with a particle size of r ≤ 1, 329 particles with a particle size of 1 < r ≤ 5, 164 particles with a particle size of 5 < r ≤ 10, 38 particles with a particle size of 10 < r ≤ 15, and 22 particles with a particle size of r > 15.
A total of 400 images were collected, among which 200 were working conditions with good lighting conditions, with the samples shown in Figure 11a, and 200 were working conditions with poor lighting conditions, with the samples shown in Figure 11b.
As shown in Figure 12 and Figure 13, the algorithm proposed in this paper demonstrated significantly better detail handling and overall performance in the ore particle image segmentation experiments compared to the other four algorithms. It achieved higher segmentation accuracy and superior quality. Figure 14 is an enlarged image of some segmentation details of Figure 13f. The experimental results summarizing the segmentation performance of each algorithm are presented in Table 1 and Table 2.
From Table 1, it can be seen that under well-lit conditions, the proposed algorithm achieved the highest PSNR of 23.95 dB, an improvement of 10.06 dB compared to the original algorithm, and it is increased by approximately 72.43%. In addition, the proposed algorithm achieved the highest FSIM of 0.2733, reflecting an enhancement of approximately 48.69%. From Table 2, it can be observed that under poor lighting conditions, both the K-means algorithm and the KM-FA algorithm had significantly reduced segmentation quality, but the algorithm proposed in this paper still achieved a high level of segmentation, with both PSNR and FSIM being the highest. These results indicate that the proposed method effectively addressed the problem of getting stuck in local optima and significantly improved the segmentation quality of the ore particle images. Overall, the results demonstrate that the algorithm presented in this paper not only excels in terms of accuracy under good lighting conditions but also maintains a high level of performance in challenging low-light environments. This highlights its strong adaptability and potential for practical applications, where lighting conditions can often be unpredictable. The runtime compared in this paper refers to the time measured from the moment the cluster centers were output until the image segmentation was completed. The results show that the improved algorithm proposed in this paper reduced the runtime compared to the original algorithm. Moreover, compared to the GK-means, the proposed algorithm significantly improved segmentation quality within a similar runtime, demonstrating its high segmentation efficiency.
In order to verify the impact of the ore particle images segmented by the proposed algorithm on ore particle size detection, the ore particle size was artificially divided into seven intervals: r ≤ 1, 1 < r ≤ 5, 5 < r ≤ 10, 10 < r ≤ 15, and r > 15 (where r is the particle size of the ore, in mm). By comparing the segmentation results of the proposed algorithm with the results of manual sieving, the accuracy of the method was verified. The startup interface of the system software is shown in Figure 15.
Based on the ore particle segmentation image, a connected component analysis was first performed to determine the number of connected components and the area of each component. Subsequently, the pixel count within each component was converted into the actual ore area. The horizontal projection of the ore was approximated as a circle, and the ore particle size r was then estimated using the area formula for a circle, S = πr2. Given that the industrial camera’s height, focal length, and resolution were fixed, it was found that a 5 mm ore particle corresponded to an average of 55 pixels, while a 10 mm particle corresponded to 201 pixels. Consequently, the area of the connected components in the image, ranging from 36 to 108 pixels, was considered to correspond to ore particle sizes of between 5 mm and 10 mm. Similar mappings can be applied to other pixel area ranges to determine the corresponding ore particle sizes. The results of the ore particle size detection are presented in Figure 16. The deviation rates of particle size detection using the segmented images by each algorithm are shown in Table 3.
It can be seen from Table 3 that the deviation rate of particle size detection by using the K-means to segment images was the highest, while the deviation rate of the method proposed in this paper was the smallest and its detection accuracy was the highest. Moreover, the deviation rate was 0% when r > 15. This indicates that the image segmentation method put forward in this paper can be applied well to the particle size detection of ore particles, improving the efficiency and accuracy of detection and proving the effectiveness and superiority of the algorithm in this paper.
In actual industrial production, according to national standards and preliminary research, the requirement for the detection error rate is that the deviation rate be less than 5% and the segmentation time be less than 0.5 s; the faster, the better. Generally, the pixel accuracy (PA) should reach more than 90%. For some scenarios with extremely high precision requirements, such as the inspection of aerospace components and the production of high-end optical instruments, the PA may need to reach more than 95% or even 98% to ensure the quality and safety of products. For high-quality image segmentation, the intersection over union (IoU) needs to reach 0.6 or even 0.7 or above to ensure the accurate segmentation of the target object. The above-mentioned experiments have proven that the images processed by the algorithm in this paper all meet the requirements of industrial production.
In order to discuss the performance of the algorithm in this paper when dealing with ore particles with different degrees of adhesion, 400 images were collected. Among them, 200 images were of general adhesion, with the sample shown in Figure 17a, and 200 images were of severely adhered images, with the sample shown in Figure 17d. In this paper, the contour solidity [47] of ore particles was taken as the basis for distinguishing the degree of adhesion of ore particles. The higher the contour solidity, the higher the degree of adhesion. The sample image was collected at the industrial site, and the original image was obtained by performing grayscale processing on the sample image. As can be seen from Figure 17, the algorithm in this paper still had a high degree of precision when handling dense and adhered particles.
For sample a, the intersection over union (IoU) was 0.76173 and the pixel accuracy (PA) was 97.84%; for sample b, the IoU was 0.72434 and the PA was 97.25%. The experiments demonstrated that when IGK-means dealt with ore particles of varying degrees of adhesion and higher density, it still maintained good accuracy and processing capabilities, meeting the requirements of the preliminary research.

4.3. Parameter Discussion

In order to discuss the impact of the value of λ in Formula 19 on the performance of the algorithm in this paper, with the other parameters remaining unchanged, image segmentation and particle size detection experiments on ore particle sample a were carried out for λ ranging from 1 to 10. The most suitable value of λ was found by comparing the image segmentation performance indicators (PSNR and FSIM) and the deviation rate of particle size detection. Among them, the results of the image segmentation experiment are shown in Table 4, and the results of the deviation rate of particle size detection are shown in Table 5.
As observed from Table 4 and Table 5, when the value of λ was within the range of [4, 7], the image segmentation performance was relatively high and the deviation rate of particle size detection was relatively low. Therefore, it is recommended that the value of a be within the range of [4, 7]. When λ = 7, the PSNR and FSIM values of the segmented image achieved their respective maxima, indicating that the algorithm’s segmentation accuracy was optimal under this condition. Concurrently, the deviation rate of particle size detection across all particle size grades was minimized, signifying the highest accuracy in particle size detection. Therefore, based on this analysis, the optimal value of λ for this paper was determined to be 7.

5. Conclusions

To enhance the segmentation quality of ore particle images, this study proposes an innovative approach combining the K-means algorithm with a hybrid optimization strategy, implemented through the analysis of acoustic signal properties. The proposed method improves the classical grey wolf optimization (GWO) algorithm by refining its convergence factor mechanism and incorporating the migration and spiral attack strategies of the seagull algorithm to enhance late-stage optimization capabilities. Additionally, the intelligent optimization strategy is integrated into the iterative process of K-means to achieve superior segmentation performance. To validate the effectiveness and robustness of the proposed approach, an industrial application experiment was conducted, accompanied by comparative analyses. Experimental results confirm that the proposed method consistently outperforms alternative approaches in segmentation accuracy and quality. In addition, when the method proposed in this paper is applied to particle size detection, the results show that the accuracy of the particle size detection results using the algorithm of this paper is greatly improved, and the detection is more precise.
Despite the promising performance of the IGK-means method in controlled laboratory environments and its demonstrable advantages over existing image segmentation techniques, the approach exhibits several limitations: (1) The IGWO_SOA involves computationally intensive processes in each iteration, including calculating the distance between each “wolf” and the prey (optimal solution), updating positions, and evaluating fitness functions. These repetitive operations result in exponential growth in computational complexity as the data scale and dimensionality increase, significantly impacting runtime efficiency. (2) The image acquisition experiments primarily simulated ore conditions on a conveyor belt, which may not fully capture the complexities of real-world ore particle collection scenarios, which often involve harsh and variable environmental conditions. Thus, the method’s practical adaptability remains a subject for further investigation. Future research will aim to address these limitations by optimizing the computational structure of the algorithm, improving its runtime efficiency, and enhancing its robustness and adaptability for deployment in more complex and realistic industrial environments.

Author Contributions

Conceptualization, J.X.; Formal analysis, Z.W. and H.F.; Data curation, W.L. and X.S.; Writing—original draft, X.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Marine Equipment and Technology Institute Jiangsu University of Science and Technology: XTCX202407.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A. IGWO_SOA Simulation Analysis

Nine benchmark functions were used to simulate and compare IGWO_SOA, GWO, particle swarm optimization (PSO), and the adaptive weight-adjusted VW_GWO proposed in [11] to verify the superiority of the proposed IGWO_SOA, where f 1 f 6 are single-peak functions and f 7 f 9 are multi-peak functions. All algorithms were run with a population size of 30 and a maximum iteration number of 1000. In the PSO, the maximum speed of particles was set to 6, c 1 = c 2 = 1.5 , and w = 0.8 . The algorithm was run independently 30 times, and the average value and standard deviation were obtained to reflect the convergence precision of the algorithm under a given iteration number, the optimal value to reflect the search effectiveness of the algorithm, and the variance to reflect the stability of the algorithm. The benchmark functions are shown in Table A1 and Table A2 displays the comparison results, while Figure A1 illustrates the convergence curves. In terms of optimal fitness values, the IGWO_SOA algorithm performed better than the compared algorithms across all nine benchmark functions.
Table A1. Test function.
Table A1. Test function.
Function NameFunction ExpressionDimensionIntervalOptimal Value
f 1 Sphere f 1 x = i = 1 n x i 2 30[−100, 100]0
f 2 Schwefel1.2 f 2 x = i = 1 n ( j 1 i x j ) 2 30[−100, 100]0
f 3 Schwefel 2.21 f 3 x = m a x i x i , 1 i n 30[−10, 10]0
f 4 Zakharov f 4 x = i = 1 n x i 2 + i = 1 n 0.5 i x i 2 + i = 1 n 0.5 i x i 4 30[−5, 10]0
f 5 Quartic f 5 x = i = 1 n i x i 4 + r a n d o m 0 , 1 30[−1.28, 1.28]0
f 6 Sum squares f 6 x = i = 1 n i x i 2 30[−100, 100]0
f 7 Ackley f 7 x = 20 exp 0.2 1 n i = 1 n x i 2 exp 1 n i = 1 n cos 2 π x i + 20 + e 30[−32, 32]0
f 8 Rastrigin f 8 x = x i 2 10 cos 2 π x i + 10 30[−5.12, 5.12]0
f 9 Griewank f 9 = 1 4000 i = 1 n x i 2 i = 1 n cos x i i + 1 30[−600, 600]0
Table A2. Comparison of test results.
Table A2. Comparison of test results.
PSOGWOIGWO_SOAVW_GWO
AverageMeanVarianceAverageMeanVarianceAverageMeanVarianceAverageMeanVariance
f 1 4.1742 × 10−62.2645 × 10−72.8536 × 10−114.9474 × 10−583.9822 × 10−625.2488 × 10−1146.9004 × 10−1046.6648 × 10−1083.6915 × 10−2069.8470 × 10−772.3703 × 10−801.9929 × 10−76
f 2 3.1987 × 1019.5290 × 1001.9508 × 1023.2340 × 10−141.2350 × 10−202.3496 × 10−263.9348 × 10−242.1752 × 10−312.1406 × 10−465.0501 × 10−172.6654 × 10−252.7364 × 10−16
f 3 1.0148 × 1006.9649 × 10−25.1419 × 10−15.4561 × 10−142.8531 × 10−162.2134 × 10−267.8288 × 10−283.6628 × 10−312.7307 × 10−541.0275 × 10−192.8586 × 10−211.8050 × 10−19
f 4 7.3050 × 1012.7617 × 1018.7247 × 1022.2653 × 10−193.1277 × 10−223.9730 × 10−375.3107 × 10−317.4158 × 10−384.0787 × 10−601.1626 × 10−772.5963 × 10−774.4216 × 10−81
f 5 2.3858 × 1003.5743 × 10−21.4251 × 1019.1485 × 10−42.8499 × 10−43.1087 × 10−76.2781 × 10−49.2757 × 10−51.7933 × 10−72.0732 × 100−1.7542 × 1001.4744 × 101
f 6 2.6667 × 1012.0000 × 10−66.8506 × 1031.068 × 1041.1637 × 10−631.4639 × 10−1172.3028 × 10−1041.3776 × 10−1085.6396 × 10−2071.2169 × 10−778.0540 × 10−813.0934 × 10−77
f 7 4.2930 × 10−22.7226 × 10−31.0212 × 10−31.5602 × 10−141.1102 × 10−145.8611 × 10−308.1416 × 10−157.5495 × 10−152.6839 × 10−307.4311 × 10−153.9968 × 10−156.49 × 10−16
f 8 6.58 × 1012.7927 × 1016.2789 × 1025.7748 × 10−102.79160003.3592 × 10−101.4855 × 100
f 9 1.3513 × 10−202.940 × 10−43.9765 × 10−306.3058 × 10−50009.2489 × 10−403.5751 × 10−3
As seen in Figure A1, the IGWO_SOA algorithm demonstrated rapid convergence to the global optimal value, with faster convergence speed and higher accuracy. In contrast, the convergence speeds of the GWO and PSO algorithms were slower. Compared with the other three algorithms, the optimization results of the IGWO_SOA algorithm are more accurate, with a smaller variance and high algorithm stability. Among them, for the f 8 and f 9 test functions, the algorithm converged to the theoretical optimal value of 0. This demonstrates the exceptional adaptability and outstanding efficacy of the IGWO_SOA algorithm in addressing intricate optimization challenges, offering a robust computational approach for tackling real-world engineering problems.
Figure A1. Convergence curves of the four algorithms. (a) Sphere; (b) Schwefel1.2; (c) Schwefel 2.21; (d) Zakharov; (e) Quartic; (f) sum squares; (g) Ackley; (h) Rastrigin; (i) Griewank.
Figure A1. Convergence curves of the four algorithms. (a) Sphere; (b) Schwefel1.2; (c) Schwefel 2.21; (d) Zakharov; (e) Quartic; (f) sum squares; (g) Ackley; (h) Rastrigin; (i) Griewank.
Sensors 25 02785 g0a1

Appendix B. Analysis of λ Adaptability

In order to ensure the adaptability of λ, nine benchmark functions (as shown in Table A1) were used for testing, and the relevant parameters were kept consistent with those in Appendix A. As can be seen from Figure A2, when λ ranges from 1 to 10, the convergence curves and the optimal values of the algorithm are presented.
As is evident from Figure A2, when the parameter λ assumes values within the range of 4 to 7, the experimental evaluations of the nine benchmark functions demonstrate relatively superior performance. In this specific range, the algorithm not only accelerates its convergence rate significantly but also yields optimal solutions of higher precision and quality, outperforming scenarios where λ takes other values. This experimental outcome aligns closely with the value of a determined through prior experimental investigations.
Figure A2. Convergence curves for different λ. (a) Sphere; (b) Schwefel1.2; (c) Schwefel 2.21; (d) Zakharov; (e) Quartic; (f) sum squares; (g) Ackley; (h) Rastrigin; (i) Griewank.
Figure A2. Convergence curves for different λ. (a) Sphere; (b) Schwefel1.2; (c) Schwefel 2.21; (d) Zakharov; (e) Quartic; (f) sum squares; (g) Ackley; (h) Rastrigin; (i) Griewank.
Sensors 25 02785 g0a2

References

  1. Sun, G.; Huang, D.; Peng, Y.; Cheng, L.; Wu, B.; Zhang, Y. Efficient Segmentation with Texture in Ore Images Based on Box-Supervised Approach. Eng. Appl. Artif. Intell. 2024, 128, 107490. [Google Scholar] [CrossRef]
  2. Bartley, P.C.; Fonteno, W.C.; Jackson, B.E. A review and analysis of horticultural substrate characterization by sieve analysis. HortScience 2022, 57, 715–725. [Google Scholar] [CrossRef]
  3. Svensson, D.N.; Messing, I.; Barron, J. An Investigation in Laser Diffraction Soil Particle Size Distribution Analysis to Obtain Compatible Results with Sieve and Pipette Method. Soil Tillage Res. 2022, 223, 105450. [Google Scholar] [CrossRef]
  4. Bessa, S.; Duarte, M.; Lage, G.; Mendonça, I.; Galery, R.; Lago, R.; Aguilar, M.T. Characterization and Analysis of Iron Ore Tailings Sediments and Their Possible Applications in Earthen Construction. Buildings 2024, 14, 362. [Google Scholar] [CrossRef]
  5. Tang, K.; Wang, Y.D.; Niu, Y.; Honeyands, T.A.; O’Dea, D.; Mostaghimi, P.; Knackstedt, M. Particle Classification of Iron Ore Sinter Green Bed Mixtures by 3D X-ray Microcomputed Tomography and Machine Learning. Powder Technol. 2023, 415, 118151. [Google Scholar] [CrossRef]
  6. Lu, B.; Zhou, J.; Zhang, Y.; Liu, Y.; Wang, Q. An Alternative Rotating Object Detection Method for Rock Particle Size Distribution Analysis. Powder Technol. 2024, 444, 120059. [Google Scholar] [CrossRef]
  7. Wang, Y.; Chen, H.; Heng, Q.; Hou, W.; Fan, Y.; Wu, Z.; Wang, J.; Savvides, M.; Shinozaki, T.; Raj, B.; et al. Freematch: Self-Adaptive Thresholding for Semi-Supervised Learning. arXiv 2022, arXiv:2205.07246. [Google Scholar]
  8. Abualigah, L.; Diabat, A.; Sumari, P.; Gandomi, A.H. A Novel Evolutionary Arithmetic Optimization Algorithm for Multilevel Thresholding Segmentation of COVID-19 CT Images. Processes 2021, 9, 1155. [Google Scholar] [CrossRef]
  9. Poliakov, A.; Donskoi, E. Utilisation of Enhanced Thresholding for Non-Opaque Mineral Segmentation in Optical Image Analysis. Minerals 2023, 13, 350. [Google Scholar] [CrossRef]
  10. Huang, M.; Liu, Y.; Yang, Y. Edge Detection of Ore and Rock on the Surface of Explosion Pile Based on Improved Canny Operator. Alex. Eng. J. 2022, 61, 10769–10777. [Google Scholar] [CrossRef]
  11. Raja, N.S.M.; Fernandes, S.L.; Dey, N.; Satapathy, S.C.; Rajinikanth, V. Contrast Enhanced Medical MRI Evaluation Using Tsallis Entropy and Region Growing Segmentation. J. Ambient. Intell. Humaniz. Comput. 2024, 15, 961–972. [Google Scholar] [CrossRef]
  12. Li, X.; Li, Q.; Wang, Y.; Liu, W.; Hou, D.; Zheng, W.; Zhang, X. Experimental Study on Instability Mechanism and Critical Intensity of Rainfall of High-Steep Rock Slopes Under Unsaturated Conditions. Int. J. Min. Sci. Technol. 2023, 33, 1243–1260. [Google Scholar] [CrossRef]
  13. Liu, H.; Zhang, W.; Wang, F.; Sun, X.; Wang, J.; Wang, C.; Wang, X. Application of an Improved Watershed Algorithm Based on Distance Map Reconstruction in Bean Image Segmentation. Heliyon 2023, 9, e14532. [Google Scholar] [CrossRef]
  14. Wu, Y.; Li, Q. The Algorithm of Watershed Color Image Segmentation Based on Morphological Gradient. Sensors 2022, 22, 8202. [Google Scholar] [CrossRef]
  15. Wang, Y.; Wang, G.; Wu, S.; Liu, Z.; Fang, Y. A Calibration Method for Ore Bonded Particle Model Based on Deep Learning Neural Network. Powder Technol. 2023, 420, 118417. [Google Scholar] [CrossRef]
  16. Qiu, J.; Zhang, Y.; Fu, C.; Yang, Y.; Ye, Y.; Wang, R.; Tang, B. Study on Photofluorescent Uranium Ore Sorting Based on Deep Learning. Miner. Eng. 2024, 206, 108523. [Google Scholar] [CrossRef]
  17. He, X.; Zhou, Y.; Zhao, J.; Zhang, D.; Yao, R.; Xue, Y. Swin Transformer Embedding UNet for Remote Sensing Image Semantic Segmentation. IEEE Trans. Geosci. Remote Sens. 2022, 60, 4408715. [Google Scholar] [CrossRef]
  18. Wang, Z.; Zhang, Z.; Voiculescu, I. RAR-U-Net: A Residual Encoder to Attention Decoder by Residual Connections Framework for Spine Segmentation Under Noisy Labels. In Proceedings of the 2021 IEEE International Conference on Image Processing (ICIP), Anchorage, AK, USA, 19–22 September 2021; pp. 21–25. [Google Scholar]
  19. Pan, Z.; Xu, J.; Guo, Y.; Hu, Y.; Wang, G. Deep Learning Segmentation and Classification for Urban Village Using a Worldview Satellite Image Based on U-Net. Remote Sens. 2020, 12, 1574. [Google Scholar] [CrossRef]
  20. Lv, Z.; Cui, Y.; Zhang, K.; Sun, M.; Li, H.; Wang, W. Investigating Comparisons on the Coal and Gangue in Various Scenarios Using Multidimensional Image Features. Miner. Eng. 2023, 204, 108450. [Google Scholar] [CrossRef]
  21. Guo, L.; Shi, P.; Chen, L.; Chen, C.; Ding, W. Pixel and Region Level Information Fusion in Membership Regularized Fuzzy Clustering for Image Segmentation. Inf. Fusion 2023, 92, 479–497. [Google Scholar] [CrossRef]
  22. Ansari, Z.A.; Syed, A.S. Discovery of Web Usage Patterns Using Fuzzy Mountain Clustering. Int. J. Bus. Intell. Data Min. 2016, 11, 1–18. [Google Scholar] [CrossRef]
  23. Mussabayev, R.; Mladenovic, N.; Jarboui, B.; Mussabayev, R. How to Use K-Means for Big Data Clustering? Pattern Recognit. 2023, 137, 109269. [Google Scholar] [CrossRef]
  24. Jafarzade, N.; Kisi, O.; Yousefi, M.; Baziar, M.; Oskoei, V.; Marufi, N.; Mohammadi, A.A. Viability of Two Adaptive Fuzzy Systems Based on Fuzzy C Means and Subtractive Clustering Methods for Modeling Cadmium in Groundwater Resources. Heliyon 2023, 9, e19217. [Google Scholar] [CrossRef] [PubMed]
  25. Liu, H.; Chen, J.; Dy, J.; Fu, Y. Transforming Complex Problems into K-Means Solutions. IEEE Trans. Pattern Anal. Mach. Intell. 2023, 45, 9149–9168. [Google Scholar] [CrossRef]
  26. Al-Abadi, A.A.J.; Mohamed, M.B.; Fakhfakh, A. Enhanced Random Forest Classifier with K-Means Clustering (ERF-KMC) for Detecting and Preventing Distributed-Denial-of-Service and Man-in-the-Middle Attacks in Internet-of-Medical-Things Networks. Computers 2023, 12, 262. [Google Scholar] [CrossRef]
  27. Awad, F.H.; Hamad, M.M.; Alzubaidi, L. Robust classification and detection of big medical data using advanced parallel K-means clustering, YOLOv4, and logistic regression. Life 2023, 13, 691. [Google Scholar] [CrossRef]
  28. Miao, Y.; Li, S.; Wang, L.; Li, H.; Qiu, R.; Zhang, M. A Single Plant Segmentation Method of Maize Point Cloud Based on Euclidean Clustering and K-Means Clustering. Comput. Electron. Agric. 2023, 210, 107951. [Google Scholar] [CrossRef]
  29. Lu, M.; Wang, H.; Xu, J.; Wei, Z.; Li, Y.; Hu, J.; Tian, S. A Vis/NIRS Device for Evaluating Leaf Nitrogen Content Using K-Means Algorithm and Feature Extraction Methods. Comput. Electron. Agric. 2024, 225, 109301. [Google Scholar] [CrossRef]
  30. Uti, M.N.; Din, A.H.M.; Yusof, N.; Yaakob, O. A Spatial-Temporal Clustering for Low Ocean Renewable Energy Resources Using K-Means Clustering. Renew. Energy 2023, 219, 119549. [Google Scholar] [CrossRef]
  31. Park, N.; Kim, Y.G.; Kim, K.O.; Son, S.U.; Park, J.; Kim, Y.H. Estimation of Seasonal Representation of the Sea Water Temperature Profile Using Machine Learning and Its Effect on the Prediction of Underwater Acoustic Detection Performance. Ocean. Sci. J. 2022, 57, 528–540. [Google Scholar] [CrossRef]
  32. Li, X.; Meng, X.; Ji, X.; Zhou, J.; Pan, C.; Gao, N. Zoning Technology for the Management of Ecological and Clean Small-Watersheds via K-Means Clustering and Entropy-Weighted TOPSIS: A Case Study in Beijing. J. Clean. Prod. 2023, 397, 136449. [Google Scholar] [CrossRef]
  33. Ali, I.; Rehman, A.U.; Khan, D.M.; Khan, Z.; Shafiq, M.; Choi, J.G. Model Selection Using K-Means Clustering Algorithm for the Symmetrical Segmentation of Remote Sensing Datasets. Symmetry 2022, 14, 1149. [Google Scholar] [CrossRef]
  34. Song, K.; Yao, X.; Nie, F.; Li, X.; Xu, M. Weighted Bilateral K-Means Algorithm for Fast Co-Clustering and Fast Spectral Clustering. Pattern Recognit. 2021, 109, 107560. [Google Scholar] [CrossRef]
  35. Yang, B.; Zhang, X.; Nie, F.; Wang, F. Fast Multiview Clustering with Spectral Embedding. IEEE Trans. Image Process. 2022, 31, 3884–3895. [Google Scholar] [CrossRef] [PubMed]
  36. Zhang, H.; Peng, Q. PSO and K-means-based semantic segmentation toward agricultural products. Future Gener. Comput. Syst. 2022, 126, 82–87. [Google Scholar] [CrossRef]
  37. Hrosik, R.C.; Tuba, E.; Dolicanin, E.; Jovanovic, R.; Tuba, M. Brain Image Segmentation Based on Firefly Algorithm Combined with K-Means Clustering. Stud. Inform. Control 2019, 28, 167–176. [Google Scholar]
  38. Yao, G.; Wu, Y.; Huang, X.; Ma, Q.; Du, J. Clustering of Typical Wind Power Scenarios Based on K-Means Clustering Algorithm and Improved Artificial Bee Colony Algorithm. IEEE Access 2022, 10, 98752–98760. [Google Scholar] [CrossRef]
  39. 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. IEEE Access 2023, 12, 22991–23028. [Google Scholar] [CrossRef]
  40. Sharma, I.; Kumar, V.; Sharma, S. A Comprehensive Survey on Grey Wolf Optimization. Recent Adv. Comput. Sci. Commun. (Former. Recent Pat. Comput. Sci.) 2022, 15, 323–333. [Google Scholar]
  41. Shial, G.; Sahoo, S.; Panigrahi, S. An Enhanced GWO Algorithm with Improved Explorative Search Capability for Global Optimization and Data Clustering. Appl. Artif. Intell. 2023, 37, 2166232. [Google Scholar] [CrossRef]
  42. Liu, W.; Sun, J.; Liu, G.; Fu, S.; Liu, M.; Zhu, Y.; Gao, Q. Improved GWO and Its Application in Parameter Optimization of Elman Neural Network. PLoS ONE 2023, 18, e0288071. [Google Scholar] [CrossRef] [PubMed]
  43. Gao, Z.M.; Zhao, J. An Improved Grey Wolf Optimization Algorithm with Variable Weights. Comput. Intell. Neurosci. 2019, 2019, 2981282. [Google Scholar] [CrossRef] [PubMed]
  44. Hartigan, J.A.; Wong, M.A. A k-Means Clustering Algorithm. Appl. Stat. 1979, 28, 100–108. [Google Scholar] [CrossRef]
  45. Mirjalili, S.; Mirjalili, S.M.; Lewis, A. Grey Wolf Optimizer. Adv. Eng. Softw. 2014, 69, 46–61. [Google Scholar] [CrossRef]
  46. Dhiman, G.; Kumar, V. Seagull Optimization Algorithm: Theory and Its Applications for Large-Scale Industrial Engineering Problems. Knowl.-Based Syst. 2019, 165, 169–196. [Google Scholar] [CrossRef]
  47. Xiang, G.; Li, J.; Cao, D.; Jiang, T. Image Segmentation of Adhesive Droplets Based on Contour Solidness and Watershed Algorithm on Leaves. J. Chin. Agric. Mech. 2023, 44, 182. [Google Scholar]
Figure 1. The process of particle size detection.
Figure 1. The process of particle size detection.
Sensors 25 02785 g001
Figure 2. The process of the K-means algorithm.
Figure 2. The process of the K-means algorithm.
Sensors 25 02785 g002
Figure 3. Grey wolf hierarchical structure.
Figure 3. Grey wolf hierarchical structure.
Sensors 25 02785 g003
Figure 4. The position update of the grey wolves.
Figure 4. The position update of the grey wolves.
Sensors 25 02785 g004
Figure 5. Convergence factor change curve.
Figure 5. Convergence factor change curve.
Sensors 25 02785 g005
Figure 6. Iterative process of the proposed IGWO_SOA.
Figure 6. Iterative process of the proposed IGWO_SOA.
Sensors 25 02785 g006
Figure 7. Flowchart of the IGK-means.
Figure 7. Flowchart of the IGK-means.
Sensors 25 02785 g007
Figure 8. Ore particle size detection system.
Figure 8. Ore particle size detection system.
Sensors 25 02785 g008
Figure 9. The network cable structure of the ore particle size detection system.
Figure 9. The network cable structure of the ore particle size detection system.
Sensors 25 02785 g009
Figure 10. The experimental site.
Figure 10. The experimental site.
Sensors 25 02785 g010
Figure 11. Two kinds of images of ore particle samples. (a) Good lighting; (b) poor lighting.
Figure 11. Two kinds of images of ore particle samples. (a) Good lighting; (b) poor lighting.
Sensors 25 02785 g011
Figure 12. Image segmentation of various algorithms for sample a. (a) Original image; (b) image of mountain clustering (c) image of K-means; (d) image of KM-FA; (e) image of GK-means; (f) image of IGK-means.
Figure 12. Image segmentation of various algorithms for sample a. (a) Original image; (b) image of mountain clustering (c) image of K-means; (d) image of KM-FA; (e) image of GK-means; (f) image of IGK-means.
Sensors 25 02785 g012
Figure 13. Image segmentation of various algorithms for sample b. (a) Original image; (b) image of mountain clustering (c) image of K-means; (d) image of KM-FA; (e) image of GK-means; (f) image of IGK-means.
Figure 13. Image segmentation of various algorithms for sample b. (a) Original image; (b) image of mountain clustering (c) image of K-means; (d) image of KM-FA; (e) image of GK-means; (f) image of IGK-means.
Sensors 25 02785 g013
Figure 14. Segmentation details of IGK-means (Numbers 1–5 correspond to enlarged images of some segmentation details).
Figure 14. Segmentation details of IGK-means (Numbers 1–5 correspond to enlarged images of some segmentation details).
Sensors 25 02785 g014
Figure 15. The startup interface of the ore particle detection system.
Figure 15. The startup interface of the ore particle detection system.
Sensors 25 02785 g015
Figure 16. Distribution diagrams of particle size detection for each algorithm.
Figure 16. Distribution diagrams of particle size detection for each algorithm.
Sensors 25 02785 g016
Figure 17. Segmentation of ore images with different degrees of adhesion. (a) Sample with general adhesion; (b) original image with general adhesion; (c) image of IGK-means; (d) sample with severe adhesion; (e) original image with severe adhesion; (f) image of IGK-means.
Figure 17. Segmentation of ore images with different degrees of adhesion. (a) Sample with general adhesion; (b) original image with general adhesion; (c) image of IGK-means; (d) sample with severe adhesion; (e) original image with severe adhesion; (f) image of IGK-means.
Sensors 25 02785 g017
Table 1. Segmentation performance of each algorithm for sample a.
Table 1. Segmentation performance of each algorithm for sample a.
AlgorithmPSNRFSIMRuntimeIoUPA
K-means13.89 dB0.18380.65283 s0.08104533.65%
MC11.68 dB0.08650.35960 s0.47574094.40%
KM-FA20.05 dB0.17000.31806 s0.62995096.68%
GK-means14.02 dB0.19590.09314 s0.08336735.67%
IGK-means23.95 dB0.27330.09909 s0.78751098.64%
Table 2. Segmentation performance of each algorithm for sample b.
Table 2. Segmentation performance of each algorithm for sample b.
AlgorithmPSNRFSIMRuntimeIoUPA
K-means8.32 dB0.08940.62799 s0.0393728.91%
MC8.57 dB0.03610.28812 s0.05080156.65%
KM-FA11.32 dB0.09320.35398 s0.59397097.08%
GK-means11.80 dB0.09380.09818 s0.09626185.88%
IGK-means24.24 dB0.26070.09364 s0.72790098.09%
Table 3. The deviation rate of particle size detection for sample a.
Table 3. The deviation rate of particle size detection for sample a.
Algorithmεr≤1ε1<r≤5ε5<r≤10ε10<r≤15εr>15
K-means15.33742%16.71733%15.24390%15.78947%13.63636%
MC14.11043%13.98176%17.07317%21.05263%13.63636%
KA-FM5.52147%5.47113%5.48781%5.26316%4.52546%
GK-means7.97546%8.51064%8.53659%7.89474%9.09090%
IGK-means3.06749%3.03851%2.43902%2.63158%0%
Table 4. Image segmentation performance with different values of λ.
Table 4. Image segmentation performance with different values of λ.
λ = 1λ = 2λ = 3λ = 4λ = 5λ = 6λ = 7λ = 8λ = 9λ = 10
PSNR/dB23.9323.9023.8223.9423.9523.9523.9523.9423.9523.90
FISM0.27230.28170.27350.28170.27320.26450.27330.26440.27240.2734
Table 5. The deviation rate of particle size detection with different values of λ.
Table 5. The deviation rate of particle size detection with different values of λ.
εr≤1ε1<r≤5ε5<r≤10ε10<r≤15εr>15
λ = 14.29448%3.64742%4.26829%2.63158%0%
λ = 24.29448%4.07524%4.26829%2.63158%0%
λ = 34.90798%4.25532%4.87805%2.63158%0%
λ = 43.68098%3.64742%3.65854%2.63158%0%
λ = 53.68098%3.33435%3.04878%2.63158%0%
λ = 63.68098%3.33435%3.04878%2.63158%0%
λ = 73.06749%3.03851%2.43902%2.63158%0%
λ = 84.29448%3.64742%3.65854%2.63158%0%
λ = 93.68098%3.64742%3.65854%2.63158%0%
λ = 104.90798%4.25532%4.87805%2.63158%0%
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

Chai, X.; Wu, Z.; Li, W.; Fan, H.; Sun, X.; Xu, J. Image Segmentation Based on the Optimized K-Means Algorithm with the Improved Hybrid Grey Wolf Optimization: Application in Ore Particle Size Detection. Sensors 2025, 25, 2785. https://doi.org/10.3390/s25092785

AMA Style

Chai X, Wu Z, Li W, Fan H, Sun X, Xu J. Image Segmentation Based on the Optimized K-Means Algorithm with the Improved Hybrid Grey Wolf Optimization: Application in Ore Particle Size Detection. Sensors. 2025; 25(9):2785. https://doi.org/10.3390/s25092785

Chicago/Turabian Style

Chai, Xinyi, Zijun Wu, Wei Li, Haowei Fan, Xinyang Sun, and Jing Xu. 2025. "Image Segmentation Based on the Optimized K-Means Algorithm with the Improved Hybrid Grey Wolf Optimization: Application in Ore Particle Size Detection" Sensors 25, no. 9: 2785. https://doi.org/10.3390/s25092785

APA Style

Chai, X., Wu, Z., Li, W., Fan, H., Sun, X., & Xu, J. (2025). Image Segmentation Based on the Optimized K-Means Algorithm with the Improved Hybrid Grey Wolf Optimization: Application in Ore Particle Size Detection. Sensors, 25(9), 2785. https://doi.org/10.3390/s25092785

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