Research and Application of Coal Gangue Detection Method Based on Improved YOLOv7-Tiny
Abstract
1. Introduction
- (1)
- A lightweight coal gangue detection framework is proposed based on YOLOv7-tiny, in which the backbone network is structurally optimized for industrial conveyor-belt scenarios with strict real-time and computational constraints.
- (2)
- An ELAN-PC module is designed by introducing partial convolution into the ELAN structure, significantly reducing redundant computation while preserving fine-grained feature extraction capability for irregular coal gangue targets.
- (3)
- A GhostCSP module is incorporated to enhance cross-stage feature fusion efficiency and robustness under dense stacking and partial occlusion conditions.
- (4)
- The SIoU loss function is employed for bounding box regression, enabling joint optimization of distance, direction, shape, and overlap, which improves localization accuracy for irregularly shaped objects.
- (5)
- Extensive experiments, including extended ablation studies and comparisons with recent lightweight detectors, are conducted to validate the effectiveness, efficiency, and practical applicability of the proposed method.
2. Coal Gangue Detection Based on an Improved YOLOv7-Tiny Approach
2.1. Improvements to the YOLOv7-Tiny Model
2.2. Improvements to the Backbone Network
2.3. Improvements to the Neck Network
2.4. Improvements to the Loss Function
3. Testing and Results Analysis
3.1. Experimental Data and Training Platform
3.2. Experimental Results and Analysis
3.2.1. Ablation Study and Mechanism Analysis
3.2.2. Model Comparison Analysis
3.3. The Engineering Correlation of the Comparative Experiment
4. Application Testing of Coal Gangue Sorting System
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Li, J.; Wang, J. Comprehensive utilization and environmental risks of coal gangue: A review. J. Clean. Prod. 2019, 239, 117946. [Google Scholar] [CrossRef] [Scilit]
- Zheng, Q.; Zhou, Y.; Liu, X.; Liu, M.; Liao, L.; Lv, G. Environmental hazards and comprehensive utilization of solid waste coal gangue. Prog. Nat. Sci. Mater. Int. 2024, 34, 223–239. [Google Scholar] [CrossRef] [Scilit]
- Jiang, J.; Han, Y.; Zhao, H.; Suo, J.; Cao, Q. Recognition and sorting of coal and gangue based on image process and multilayer perceptron. Int. J. Coal Prep. Util. 2023, 43, 54–72. [Google Scholar] [CrossRef] [Scilit]
- Fu, C.; Lu, F.; Zhang, G. Gradient-enhanced waterpixels clustering for coal gangue image segmentation. Int. J. Coal Prep. Util. 2023, 43, 677–690. [Google Scholar] [CrossRef] [Scilit]
- Zhang, F.; Luo, C.; Xu, J.; Luo, Y.; Zheng, F.-C. Deep learning based automatic modulation recognition: Models, datasets, and challenges. Digit. Signal Process. 2022, 129, 103650. [Google Scholar] [CrossRef] [Scilit]
- Sun, Y.; Huang, J.; Cheng, Y.; Zhang, J.; Shi, Y.; Pan, L. High-accuracy dynamic gesture recognition: A universal and self-adaptive deep-learning-assisted system leveraging high-performance ionogels-based strain sensors. SmartMat 2024, 5, e1269. [Google Scholar] [CrossRef] [Scilit]
- Bochkovskiy, A.; Wang, C.Y.; Liao, H.Y.M. Yolov4: Optimal speed and accuracy of object detection. arXiv 2020, arXiv:2004.10934. [Google Scholar] [CrossRef] [Scilit]
- Li, R.; Wu, Y. Improved YOLO v5 wheat ear detection algorithm based on attention mechanism. Electronics 2022, 11, 1673. [Google Scholar] [CrossRef] [Scilit]
- Xu, L.; Dong, S.; Wei, H.; Ren, Q.; Huang, J.; Liu, J. Defect signal intelligent recognition of weld radiographs based on YOLO V5-IMPROVEMENT. J. Manuf. Process. 2023, 99, 373–381. [Google Scholar] [CrossRef] [Scilit]
- Kim, J.H.; Kim, N.; Park, Y.W.; Won, C.S. Object detection and classification based on YOLO-V5 with improved maritime dataset. J. Mar. Sci. Eng. 2022, 10, 377. [Google Scholar] [CrossRef] [Scilit]
- Argyros, I.K. The Theory and Applications of Iteration Methods; CRC Press: Boca Raton, FL, USA, 2022. [Google Scholar] [CrossRef] [Scilit]
- Shen, J.; Chen, Y.; Liu, Y.; Zuo, X.; Fan, H.; Yang, W. ICAFusion: Iterative cross-attention guided feature fusion for multispectral object detection. Pattern Recognit. 2024, 145, 109913. [Google Scholar] [CrossRef] [Scilit]
- Dong, X.; Xiong, G.; Guan, X.; Zhang, C. Constitutive Modeling of Coal Gangue Concrete with Integrated Global–Local Explainable AI and Finite Element Validation. Buildings 2025, 15, 3007. [Google Scholar] [CrossRef] [Scilit]
- Kamal Al-anni, M.; Abdullah, A.A.; Drap, P. Automatic Deep-Sea Amphorae Detection Using Optimal 2D Ultralytics Deep Learning. Int. J. Comput. 2025, 18, 1–12. [Google Scholar] [CrossRef] [Scilit]
- Mahasin, M.; Dewi, I.A. Comparison of cspdarknet53, cspresnext-50, and efficientnet-b0 backbones on yolo v4 as object detector. Int. J. Eng. Sci. Inf. Technol. 2022, 2, 64–72. [Google Scholar] [CrossRef] [Scilit]
- Wang, J.; Zhang, Z.; Dai, B.; Zhao, K.; Shen, W.; Yin, Y.; Li, Y. Cow-YOLO: Automatic cow mounting detection based on non-local CSPDarknet53 and multiscale neck. Int. J. Agric. Biol. Eng. 2024, 17, 193–202. [Google Scholar] [CrossRef] [Scilit]
- Li, C.; Li, L.; Jiang, H.; Weng, K.; Geng, Y.; Li, L.; Ke, Z.; Li, Q.; Cheng, M.; Nie, W. YOLOv6: A single-stage object detection framework for industrial applications. arXiv 2022, arXiv:2209.02976. [Google Scholar] [CrossRef] [Scilit]
- Weng, K.; Chu, X.; Xu, X.; Huang, J.; Wei, X. Efficientrep: An efficient repvgg-style convnets with hardware-aware neural network design. arXiv 2023, arXiv:2302.00386. [Google Scholar] [CrossRef] [Scilit]
- Nandi, D.; Roy, S.; Prasad, A.; Patra, S.N. High precision automatic coronal hole detection from January 2019 to July 2023 using the AIA 193 Å data obtained by solar dynamic observatory. Serbian Astron. J. 2025, 3, 71–90. [Google Scholar] [CrossRef] [Scilit]
- Wang, C.Y.; Yeh, I.H.; Liao, H.Y.M. You only learn one representation: Unified network for multiple tasks. arXiv 2021, arXiv:2105.04206. [Google Scholar] [CrossRef] [Scilit]
- Li, S.; Wang, Z.; Liu, Z.; Tan, C.; Lin, H.; Wu, D.; Chen, Z.; Zheng, J.; Li, S.Z. Moganet: Multi-order gated aggregation network. arXiv 2022, arXiv:2211.03295. [Google Scholar] [CrossRef] [Scilit]
- Hoyer, S.; Sohl-Dickstein, J.; Greydanus, S. Neural reparameterization improves structural optimization. arXiv 2019, arXiv:1909.04240. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Y.; Quan, S.; Xiao, H.; Liu, J.; Shao, Z.; Wang, Z.; Peng, Y.; Li, H. A YOLO-based Polymerized Head-auxiliary Structures for Target Detection in Remote Sensing Images. Pattern Recognit. 2025, 174, 112961. [Google Scholar] [CrossRef] [Scilit]
- Chen, J.; Wang, G.; Liu, W.; Zhong, X.; Tian, Y.; Wu, Z. Perception reinforcement using auxiliary learning feature fusion: A modified yolov8 for head detection. In Proceedings of the 2023 China Automation Congress (CAC), Chongqing, China, 17–19 November 2023; IEEE: New York, NY, USA, 2023; pp. 4709–4714. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Y.; Luo, C. A dynamic label assignment strategy for one-stage detectors. Neurocomputing 2024, 577, 127383. [Google Scholar] [CrossRef] [Scilit]
- Yuan, M.; Zhang, L.; Li, X.Y.; Yang, L.-Z.; Xiong, H. Adaptive model scheduling for resource-efficient data labeling. ACM Trans. Knowl. Discov. Data (TKDD) 2022, 16, 71. [Google Scholar] [CrossRef] [Scilit]
- Liu, Q.; Li, J.; Li, Y.; Gao, M. Recognition methods for coal and coal gangue based on deep learning. IEEE Access 2021, 9, 77599–77610. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Y.; Wang, J.; Yu, Z.; Zhao, S.; Bei, G. Research on intelligent detection of coal gangue based on deep learning. Measurement 2022, 198, 111415. [Google Scholar] [CrossRef] [Scilit]
- Korlapati, N.V.S.; Khan, F.; Noor, Q.; Mirza, S.; Vaddiraju, S. Review and analysis of pipeline leak detection methods. J. Pipeline Sci. Eng. 2022, 2, 100074. [Google Scholar] [CrossRef] [Scilit]
- Chen, L.; Sun, R.; Chen, D.; Tang, W.; Feng, H. Small Target Detection on Water Based on Improved YOLOv7 Unmanned Vessel. In Proceedings of the 2024 36th Chinese Control and Decision Conference (CCDC), Xi’an, China, 25–27 May 2024; IEEE: New York, NY, USA, 2024; pp. 5607–5613. [Google Scholar] [CrossRef] [Scilit]
- Li, S.; Fu, X.; Dong, J. Improved ship detection algorithm based on YOLOX for SAR outline enhancement image. Remote Sens. 2022, 14, 4070. [Google Scholar] [CrossRef] [Scilit]
- Gevorgyan, Z. SIoU loss: More powerful learning for bounding box regression. arXiv 2022, arXiv:2205.12740. [Google Scholar] [CrossRef] [Scilit]
- Ren, F.; Fei, J.; Li, H.; Doma, B.T. Steel surface defect detection using improved deep learning algorithm: ECA-SimSPPF-SIoU-Yolov5. IEEE Access 2024, 12, 32545–32553. [Google Scholar] [CrossRef] [Scilit]
- Qin, C.; Zhou, Z. YOLO-FGD: A fast lightweight PCB defect method based on FasterNet and the Gather-and-Distribute mechanism. J. Real-Time Image Process. 2024, 21, 122. [Google Scholar] [CrossRef] [Scilit]
- Lu, Y.F.; Yu, Q.; Gao, J.W.; Li, Y.; Zou, J.-C.; Qiao, H. Cross stage partial connections based weighted bi-directional feature pyramid and enhanced spatial transformation network for robust object detection. Neurocomputing 2022, 513, 70–82. [Google Scholar] [CrossRef] [Scilit]
- Liu, Y.; Tang, K.; Cai, W.; Chen, A.; Zhou, G.; Li, L.; Liu, R. MPC-STANet: Alzheimer’s disease recognition method based on multiple phantom convolution and spatial transformation attention mechanism. Front. Aging Neurosci. 2022, 14, 918462. [Google Scholar] [CrossRef] [Scilit]
- Wang, X.; Li, Y.; Yang, K.; Xu, Z.; Zhang, J. A regionally coordinated allocation strategy for medical resources based on multidimensional uncertain information. Inf. Sci. 2024, 666, 120384. [Google Scholar] [CrossRef] [Scilit]
- Zhai, S.; Shang, D.; Wang, S.; Dong, S. DF-SSD: An improved SSD object detection algorithm based on DenseNet and feature fusion. IEEE Access 2020, 8, 24344–24357. [Google Scholar] [CrossRef] [Scilit]
- Wang, Z.; Chen, Y.; Ding, H.; Liu, Z.; Xie, Y.; Zhou, K.; Feng, P.; Yu, Y.; Li, C.; Zhang, D.; et al. YOLOv8-DBW: An Improved High-Accuracy Fast Landslide Detection Model. Trans. GIS 2025, 29, e70021. [Google Scholar] [CrossRef] [Scilit]








| Number | ELAN-PC | GhostCSP | SIOU | APsmall (%) | mAP0.5 (%) | Recallocc (%) | Mean IoU | FLOPs (G) |
|---|---|---|---|---|---|---|---|---|
| M1 | 81.3 | 86.9 | 78.6 | 0.684 | 13.2 | |||
| M2 | √ | 82.6 | 87.2 | 79.1 | 0.689 | 10.1 | ||
| M3 | √ | √ | 83.4 | 87.5 | 80.5 | 0.692 | 9.2 | |
| M4 | √ | √ | √ | 85.1 | 88.7 | 83.2 | 0.716 | 9.2 |
| Model | Dimensions | mAP0.5(%) | FPS (Frames per Second) | FLOPs (G) | Params (M) |
|---|---|---|---|---|---|
| SSD-mobilenet | 6402 | 86.7 | 33 | 6.1 | 3.7 |
| YOLOv4-tiny | 6402 | 86.4 | 48 | 16.2 | 5.9 |
| YOLOv5-S | 6402 | 87.2 | 34 | 16.5 | 7.1 |
| YOLOv7-tiny | 6402 | 86.9 | 41 | 13.2 | 6.0 |
| YOLOv8-N | 6402 | 86.5 | 50 | 8.2 | 3.0 |
| YOLOv7-tinyimproved | 6402 | 88.7 | 43 | 9.2 | 4.3 |
| Model | Number of Coal | Coal Gangue Count | Number of Incorrect Selections (Coal) | Number of Selected Pieces (Scrap) | Sorting Efficiency (%) | Wrong Selection Rate (%) |
|---|---|---|---|---|---|---|
| YOLOv7-tiny | 210 | 90 | 17 | 74 | 82.2 | 8.1 |
| improved | data | data |
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. |
© 2026 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.
Share and Cite
Hao, S.; Ma, J.; Zhang, Z.; Liu, Y.; Wu, D.; Zhao, L.; Zhang, P.; Zhang, K.; Du, M. Research and Application of Coal Gangue Detection Method Based on Improved YOLOv7-Tiny. Processes 2026, 14, 488. https://doi.org/10.3390/pr14030488
Hao S, Ma J, Zhang Z, Liu Y, Wu D, Zhao L, Zhang P, Zhang K, Du M. Research and Application of Coal Gangue Detection Method Based on Improved YOLOv7-Tiny. Processes. 2026; 14(3):488. https://doi.org/10.3390/pr14030488
Chicago/Turabian StyleHao, Shenglei, Jian Ma, Zhenyang Zhang, Yong Liu, Dongxu Wu, Lehua Zhao, Peng Zhang, Kun Zhang, and Mingchao Du. 2026. "Research and Application of Coal Gangue Detection Method Based on Improved YOLOv7-Tiny" Processes 14, no. 3: 488. https://doi.org/10.3390/pr14030488
APA StyleHao, S., Ma, J., Zhang, Z., Liu, Y., Wu, D., Zhao, L., Zhang, P., Zhang, K., & Du, M. (2026). Research and Application of Coal Gangue Detection Method Based on Improved YOLOv7-Tiny. Processes, 14(3), 488. https://doi.org/10.3390/pr14030488

