An Image Recognition Method for Coal Gangue Based on ASGS-CWOA and BP Neural Network
Abstract
:1. Introduction
2. Proposed Method
2.1. Encircle–City Feature
2.2. ASGS-CWOA-BP
2.2.1. Overview of ASGS-CWOA
2.2.2. The Recognition Network
2.3. Overview of the Proposed Method
2.3.1. Image Preprocessing
- Image Graying: Grayscale images refer to images containing only brightness information and no color information. Grayscale processing is the process of changing the color image containing brightness and color into grayscale images.
- Median Filtering: Median filtering is a nonlinear signal processing technology that can effectively suppress noise based on the sorting statistical theory. Its basic principle is to replace the gray value of a point in the digital image with the median value of each point in the local neighborhood of the point. This paper used a 3 × 3 local neighborhood.
- Otsu Segmentation: The Otsu algorithm is an efficient algorithm for image binarization proposed by the Japanese scholar Otsu in 1979. The principle is to divide the original image into foreground and background images by a threshold. For the foreground, N1, csum and M1 are used to represent the number of points, the quality moment and the average gray level of the foreground under the current threshold, respectively. For the background, N2, sum csum and M2 are used to represent the number of points, the quality moment and the average gray level of the background under the current threshold, respectively. When the optimal threshold is selected, the difference between the background and the foreground should be the greatest.
- Erosion and Dilation: Erosion is the use of algorithms to corrode the edges of the image. The function is to start off the “burr” on the edge of the target. Inflation uses the algorithm to expand the edges of the image. The function is to fill the edges or internal pits of the target. Having the same amount of erosion and dilation can make the target surface smoother, which is a symmetrical process.
- Target Area Focusing: The size of the original image of the sample was 4000 × 3000. The processing capacity of image storage and calculation is large, and the blank area accounts for a large proportion, resulting in unnecessary gangue in the resources. In order to lock the effective area, we used the corroded and expanded images to minimize the boundary of the target area, remove the unnecessary background and focus on the foreground target area of the image.
- Nearest Interpolation Image Size Scaling: After the target area focusing operation, due to the differences in the influence of sample image noise and the different sizes of the target areas, the sizes of the gray image of the “target area” were different. In order to unify the sample size, the size scaling operation was carried out on the image; that is, the “nearest interpolation” operation was used to reduce the size of the sample images that were greater than 800 × 600 and increase the size of the sample images that were less than 800 × 600. The unified sample image size was 800 × 600.
2.3.2. Gray Level Co-Occurrence Matrix (GLCM)
2.3.3. Feature Extraction of Coal and Gangue Images
2.3.4. Flowchart of the Proposed Method
3. Simulation Experiment
3.1. Experimental Environment
3.2. Experimental Results
4. Conclusions
Author Contributions
Funding
Acknowledgments
Conflicts of Interest
Appendix A
References
- Qian, M.; Xu, J.; Wang, J. Further on the sustainable mining of coal. J. China Coal Soc. 2018, 43, 1–13. [Google Scholar]
- Zhou, N.; Yao, Y.; Song, W.; He, Z.; Meng, G.; Liu, Y. Present situation and Prospect of coal gangue treatment technology. J. Min. Saf. Eng. 2020, 37, 11. [Google Scholar]
- Xue, G.; Li, X.; Qian, X.; Zhang, Y. Coal-gangue image recognition in fully-mechanized caving face based on random forest. Ind. Mine Autom. 2020, 46, 57–62. [Google Scholar]
- Xu, Z.Q.; Lv, Z.Q.; Wang, W.D.; Zhang, K.; Lv, H. Machine vision recognition method and optimization for intelligent separation of coal and gangue. J. China Coal Soc. 2020, 45, 2207–2216. [Google Scholar]
- Yu, G. Expanded order co-occurrence matrix to differentiate between coal and gangue based on interval grayscale compression. J. Image Graph. 2012, 8, 966–970. [Google Scholar]
- Yu, L. A New Method for Image Recognition of Coal and Coal Gangue. Mod. Comput. 2017, 17, 68–72. [Google Scholar]
- Rao, Z.; Wu, J.; Li, M. Coal-gangue image classification method. Ind. Mine Autom. 2020, 46, 69–73. [Google Scholar]
- Wen, X. Intelligent Fault Diagnosis Technology: Matlab Application; Beijing University of Aeronautics and Astronautics Press: Beijing, China, 2015. [Google Scholar]
- Zheng, Y.-G.; Wang, P.; Ma, J.; Zhang, H.B. Remote sensing image classification based on BP neural network model. Trans. Nonferrous Met. Soc. China 2005, 15, 232–235. [Google Scholar]
- Chen, Y.X.; Liao, X.D.; Wang, J.H.; Tao, Z.; Sui, L.Y. Small Image Recognition Classification Based on PCA and GA-BP Neural Network. In Proceedings of the 2018 2nd IEEE Advanced Information Management, Communicates, Electronic and Automation Control Conference (IMCEC 2018), Xi’an, China, 25–27 May 2018; pp. 1360–1363. [Google Scholar]
- Zhou, W.C.; Xie, G.S.; Liu, B. The application of mixed GA-BP algorithm on remote sensing image classification. In Proceedings of the Conference: Geoinformatics 2008 and Joint Conference on GIS and Built Environment: Classification of Remote Sensing Images, Guangzhou, China, 28–29 June 2008. [Google Scholar]
- Liu, G.; Wei, X.; Zhang, S.; Cai, J.; Liu, S. Analysis of epileptic seizure detection method based on improved genetic algorithm optimization back propagation neural network. Shengwu Yixue Gongchengxue Zazhi/J. Biomed. Eng. 2019, 36, 24–32. [Google Scholar]
- Liu, M.; Guan, W.; Yan, J.; Hu, H. Correlation identification in multimodal weibo via back propagation neural network with genetic algorithm. J. Vis. Commun. Image Represent. 2019, 60, 312–318. [Google Scholar] [CrossRef]
- Yu, J.; Zhang, Z.; Guo, P.; Qin, H.; Zhang, J. Multispectral remote sensing image classification based on PSO-BP considering texture. In Proceedings of the 7th World Congress on Intelligent Control and Automation (WCICA), Chongqing, China, 25–27 June 2008; pp. 6803–6806. [Google Scholar]
- Chen, Y.X.; Liao, X.D.; Wang, J.H.; Tao, Z.; Sui, L.Y. Small Image Recognition Classification Based on Random Dropout and PSO-BP. In Proceedings of the 2018 2nd IEEE Advanced Information Management, Communicates, Electronic and Automation Control Conference, Xi’an, China, 25–27 May 2018; pp. 1243–1246. [Google Scholar]
- Yu, J.; Li, Y.; Zhang, Z.S.; Jiang, J.C. Research on supervised classification of fully polarimetric SAR image using BP neural network trained by PSO. In Proceedings of the World Congress on Intelligent Control and Automation (WCICA), Jinan, China, 7–9 July 2010; pp. 6152–6157. [Google Scholar]
- Wei, B.; Hu, L.; Zhang, Y.; Zhang, Y. Parts Classification based on PSO-BP. In Proceedings of the 2020 IEEE 4th Information Technology, Networking, Electronic and Automation Control Conference (ITNEC 2020), Chongqing, China, 12–14 June 2020; pp. 1113–1117. [Google Scholar]
- Wang, W.; Lu, K.; Wu, Z.; Long, H.; Zhang, J.; Chen, P.; Wang, B. Surface defects classification of hot rolled strip based on improved convolutional neural network. ISIJ Int. 2021, 61, 1579–1583. [Google Scholar] [CrossRef]
- Dong, H.; Jiao, R.; Huang, M. Research on recognition method of cloud precipitation particle shape based on bp neural network. MATEC Web Conf. 2021, 336, 06011. [Google Scholar] [CrossRef]
- Yang, C.; Tu, X.; Chen, J. Algorithm of Marriage in Honey Bees Optimization Based on the Wolf Pack Search. In Proceedings of the International Conference on Intelligent Pervasive Computing, Jeju, Korea, 11–13 October 2007; Volume 871, pp. 462–467. [Google Scholar]
- Li, H.; Wu, H. An oppositional wolf pack algorithm for Parameter identification of the chaotic systems. Opt. Int. J. Light Electron Opt. 2016, 127, 9853–9864. [Google Scholar] [CrossRef]
- Chen, Y.B.; Mei, Y.S.; Yu, J.Q.; Su, X.L.; Xu, N. Three-dimensional Unmanned Aerial Vehicle Path Planning Using Modified Wolf Pack Search Algorithm. Neurocomputing 2017, 266, 445–457. [Google Scholar]
- Yang, N.; Guo, D.L. Solving Polynomial Equation Roots Based on Wolves Algorithm. Sci. Technol. Vis. 2016, 15, 35–36. [Google Scholar]
- Zhou, Q.; Zhou, Y. Wolf colony search algorithm based on leader strategy. Appl. Res. Comput. 2013, 30, 2629–2632. [Google Scholar]
- Wang, D.; Ban, X.; Qian, X. An Adaptive Shrinking Grid Search Chaos Wolf Optimization Algorithm with Adaptive Standard-Deviation Updating Amount. Comput. Intell. Neurosci. 2020, 2020, 7986982. [Google Scholar] [CrossRef] [PubMed]
Order | Contract | Correlation | Homogeneity | Energy | Encircle–City Feature | Encircle–City Feature Auxiliary |
---|---|---|---|---|---|---|
1 | 6.08 | 0.82 | 0.66 | 0.14 | 0.38 | 0.49 |
2 | 5.4 | 0.8 | 0.63 | 0.09 | 0.36 | 0.43 |
3 | 2.94 | 0.88 | 0.75 | 0.22 | 0.37 | 0.42 |
4 | 7.92 | 0.73 | 0.59 | 0.08 | 0.34 | 0.41 |
5 | 8.09 | 0.77 | 0.64 | 0.13 | 0.34 | 0.51 |
6 | 7.81 | 0.79 | 0.65 | 0.14 | 0.33 | 0.46 |
…… | ||||||
353 | 3.52 | 0.89 | 0.73 | 0.13 | 0.3 | 0.34 |
354 | 2.54 | 0.92 | 0.78 | 0.13 | 0.28 | 0.28 |
355 | 3.13 | 0.9 | 0.73 | 0.09 | 0.34 | 0.32 |
356 | 3.21 | 0.91 | 0.73 | 0.09 | 0.31 | 0.36 |
357 | 2.81 | 0.91 | 0.73 | 0.11 | 0.29 | 0.28 |
358 | 3.97 | 0.87 | 0.73 | 0.17 | 0.31 | 0.38 |
Order | Name | Configuration |
---|---|---|
1 | GP-BP | GA is applied to optimize the BP neural network. The genetic algorithm experiment uses the toolbox of MATLAB 2017A, and its configuration parameters are as follows: the crossover probability is set to 0.7, the mutation probability is set to 0.01 and the generation gap is set to 0.95. |
2 | PSO-BP | PSO is applied to optimize the parameters of the BP neural network to produce the PSO-BP classification method. The toolbox called “PSOt” in MATLAB is used in experiments of particle swarm optimization, with the following configuration: individual acceleration = 2; weighted initial time = 0.9; weighted convergence time = 0.4. This limits the individual speed to 20% of the variation range. |
3 | LWCA-BP | LWCA is applied to optimize the parameters of the BP neural network to produce the LWCA-BP method based on the ideas presented in [24]. The configuration is: migration step (Step A) = 1.5, summons–raid step (Step B) = 0.9, siege threshold (R0) = 0.2, upper limit of the siege step (Step cmax) = 1 × 106, lower limit of the siege step (Step cmin) = 1 × 10−2, updated amount of the population (M) = 5, maximum number of iterations (T) = 600, number of wolves in the population = 50. |
4 | BP with Gradient Descent (BP) | BP neural network with gradient descent. This calls the BP neural network training function of MATLAB 2017b to generate the BP network net = newff (P, t, s). The sim (net, in) function is then used to predict the input data. P represents the training sample set, T represents the labels of the training sample set, s represents the network parameters (such as the number of hidden layers), net represents the trained network classification prediction model and in is the input data to be determined. |
5 | Random Forest (RF) | This calls the random forest function classrf_train of MATLAB 2017b to train the training network and calls classrf_predict to predict the training samples and test samples. |
6 | ASGS-CWOA-BP | Upper limit number of iterations (T) = 600; number of wolves in the population (N) = 50, Range_max = 5 and Range_min = −5, i.e., the value range is [−5, 5] in any dimension for the position of one wolf. |
Order | Classification Accuracy on the Training Set | Classification Accuracy on the Test Set | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
ASGS-CWOA-BP | GA-BP | PSO-BP | LWCA-BP | BP | RF | ASGS-CWOA-BP | GA-BP | PSO-BP | LWCA-BP | BP | RF | |
1 | 0.9233 | 0.885 | 0.9094 | 0.9094 | 0.892 | 1 | 0.9577 | 0.8028 | 0.8732 | 0.8592 | 0.7887 | 0.7746 |
2 | 0.9373 | 0.878 | 0.892 | 0.9059 | 0.892 | 1 | 0.9296 | 0.8873 | 0.831 | 0.8732 | 0.7887 | 0.7887 |
3 | 0.9408 | 0.885 | 0.885 | 0.9094 | 0.9164 | 1 | 0.9014 | 0.831 | 0.8732 | 0.8732 | 0.831 | 0.7887 |
4 | 0.9373 | 0.8746 | 0.9059 | 0.9164 | 0.9094 | 1 | 0.9014 | 0.831 | 0.9014 | 0.8732 | 0.831 | 0.7746 |
5 | 0.9338 | 0.9164 | 0.9024 | 0.9199 | 0.9094 | 1 | 0.8873 | 0.8873 | 0.8451 | 0.8592 | 0.831 | 0.7746 |
6 | 0.9164 | 0.8711 | 0.8885 | 0.9338 | 0.9094 | 1 | 0.8732 | 0.831 | 0.8732 | 0.9437 | 0.831 | 0.7887 |
7 | 0.9477 | 0.8955 | 0.8885 | 0.9268 | 0.9094 | 1 | 0.9014 | 0.8451 | 0.8873 | 0.9014 | 0.831 | 0.7746 |
8 | 0.9547 | 0.892 | 0.8955 | 0.9129 | 0.9094 | 1 | 0.9437 | 0.8028 | 0.8732 | 0.8592 | 0.831 | 0.7887 |
9 | 0.9373 | 0.9094 | 0.878 | 0.9164 | 0.9094 | 1 | 0.9014 | 0.8592 | 0.8732 | 0.8451 | 0.831 | 0.7887 |
10 | 0.9199 | 0.892 | 0.9129 | 0.9129 | 0.9338 | 1 | 0.9014 | 0.8592 | 0.8451 | 0.9014 | 0.8592 | 0.7887 |
11 | 0.9477 | 0.8815 | 0.899 | 0.9199 | 0.9338 | 1 | 0.9155 | 0.8028 | 0.831 | 0.9155 | 0.831 | 0.7887 |
12 | 0.9408 | 0.8955 | 0.9164 | 0.9164 | 0.9338 | 1 | 0.9296 | 0.8732 | 0.8873 | 0.8873 | 0.831 | 0.7887 |
13 | 0.9338 | 0.8885 | 0.8746 | 0.9059 | 0.9408 | 1 | 0.9155 | 0.831 | 0.8028 | 0.8873 | 0.8451 | 0.7746 |
14 | 0.9164 | 0.9024 | 0.892 | 0.9024 | 0.9408 | 1 | 0.9014 | 0.8873 | 0.8732 | 0.8732 | 0.8451 | 0.7746 |
15 | 0.9233 | 0.8815 | 0.9164 | 0.9129 | 0.9408 | 1 | 0.9155 | 0.8592 | 0.8873 | 0.831 | 0.8451 | 0.7887 |
16 | 0.9164 | 0.892 | 0.885 | 0.9129 | 0.9408 | 1 | 0.9014 | 0.831 | 0.8451 | 0.8592 | 0.8451 | 0.7887 |
17 | 0.9268 | 0.9024 | 0.8955 | 0.9094 | 0.9408 | 1 | 0.9296 | 0.8451 | 0.8873 | 0.8873 | 0.8451 | 0.7887 |
18 | 0.9338 | 0.885 | 0.9164 | 0.9094 | 0.9408 | 1 | 0.9577 | 0.831 | 0.8732 | 0.8592 | 0.8451 | 0.7887 |
19 | 0.9233 | 0.892 | 0.9024 | 0.9129 | 0.9408 | 1 | 0.9155 | 0.8169 | 0.831 | 0.8732 | 0.8451 | 0.7746 |
20 | 0.9408 | 0.8955 | 0.885 | 0.9059 | 0.9408 | 1 | 0.9014 | 0.8732 | 0.8732 | 0.8169 | 0.8451 | 0.7887 |
21 | 0.9373 | 0.8955 | 0.885 | 0.9199 | 0.9408 | 1 | 0.9296 | 0.8451 | 0.8732 | 0.9155 | 0.8451 | 0.7887 |
22 | 0.9338 | 0.8955 | 0.8955 | 0.9199 | 0.9408 | 1 | 0.9296 | 0.8169 | 0.8592 | 0.9014 | 0.8451 | 0.7887 |
23 | 0.9477 | 0.892 | 0.8885 | 0.9094 | 0.9408 | 1 | 0.9155 | 0.8028 | 0.8028 | 0.9155 | 0.8451 | 0.7887 |
24 | 0.9268 | 0.8815 | 0.899 | 0.9129 | 0.9408 | 1 | 0.9014 | 0.8169 | 0.8169 | 0.8732 | 0.8451 | 0.7887 |
25 | 0.9408 | 0.8711 | 0.899 | 0.9164 | 0.9408 | 1 | 0.9296 | 0.7746 | 0.8028 | 0.831 | 0.8451 | 0.7887 |
26 | 0.9303 | 0.8711 | 0.9094 | 0.9059 | 0.9408 | 1 | 0.9296 | 0.8028 | 0.8732 | 0.8028 | 0.8451 | 0.7746 |
27 | 0.9233 | 0.8641 | 0.9024 | 0.9164 | 0.9408 | 1 | 0.8873 | 0.8169 | 0.8592 | 0.8732 | 0.8451 | 0.7746 |
28 | 0.9303 | 0.8711 | 0.9094 | 0.9059 | 0.9408 | 1 | 0.9155 | 0.8873 | 0.8592 | 0.9155 | 0.8451 | 0.7887 |
29 | 0.9408 | 0.899 | 0.878 | 0.9164 | 0.9408 | 1 | 0.9155 | 0.8169 | 0.8592 | 0.8873 | 0.8451 | 0.7887 |
30 | 0.9373 | 0.885 | 0.8885 | 0.9129 | 0.9408 | 1 | 0.8873 | 0.8451 | 0.8732 | 0.9014 | 0.8451 | 0.7746 |
Method | Training Set | Test Set | ||||
---|---|---|---|---|---|---|
Best Accuracy | Average | Variance | Corresponding Accuracy | Average | Variance | |
ASGS-CWOA-BP | 95.47% | 0.9333 | 0.0101 | 94.37% | 0.9141 | 0.02 |
GA-BP | 91.64% | 0.888 | 0.0122 | 88.73% | 0.8371 | 0.0302 |
PSO-BP | 90.59% | 0.8965 | 0.012 | 90.14% | 0.8582 | 0.0272 |
LWCA-BP | 93.38% | 0.9136 | 0.0067 | 94.37% | 0.8765 | 0.0317 |
BP | 94.08% | 0.9297 | 0.0163 | 84.51% | 0.8376 | 0.0151 |
RF | 100% | 1 | 0 | 78.87% | 0.784 | 0.0068 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Wang, D.; Ni, J.; Du, T. An Image Recognition Method for Coal Gangue Based on ASGS-CWOA and BP Neural Network. Symmetry 2022, 14, 880. https://doi.org/10.3390/sym14050880
Wang D, Ni J, Du T. An Image Recognition Method for Coal Gangue Based on ASGS-CWOA and BP Neural Network. Symmetry. 2022; 14(5):880. https://doi.org/10.3390/sym14050880
Chicago/Turabian StyleWang, Dongxing, Jingxiu Ni, and Tingyu Du. 2022. "An Image Recognition Method for Coal Gangue Based on ASGS-CWOA and BP Neural Network" Symmetry 14, no. 5: 880. https://doi.org/10.3390/sym14050880
APA StyleWang, D., Ni, J., & Du, T. (2022). An Image Recognition Method for Coal Gangue Based on ASGS-CWOA and BP Neural Network. Symmetry, 14(5), 880. https://doi.org/10.3390/sym14050880