A Low-Complexity Accurate Ranging Algorithm for a Switch Machine Working Component Based on the Mask RCNN
<p>Automatic switch machine operating mechanism.</p> "> Figure 2
<p>Mask RCNN network structure.</p> "> Figure 3
<p>Prediction results of the Mask RCNN for the screws. (<b>a</b>) Prediction results in original image; (<b>b</b>) Separate prediction result.</p> "> Figure 4
<p>Second segmentation. (<b>a</b>) Second seg-mentation in original image; (<b>b</b>) Separate second segmentation.</p> "> Figure 5
<p>Minimum-area enclosing circle of the screws. (<b>a</b>) Separate second segmentation; (<b>b</b>) Minimum-area enclosing circle of the screws in original image.</p> "> Figure 6
<p>Key points for affine mapping.</p> "> Figure 7
<p>Distortion correction of the switch machine. (<b>a-1</b>,<b>b-1</b>) are original drawing; (<b>a-2</b>,<b>b-2</b>) are corrected images</p> "> Figure 8
<p>Distance transformation of the dynamic and static contact group.</p> "> Figure 9
<p>Moving distance of the screws in the dynamic contact group.</p> "> Figure 10
<p>Segmentation description.</p> "> Figure 11
<p>Six types of switch machines.</p> "> Figure 12
<p>Different kinds of loss curves: (<b>a</b>) loss; (<b>b</b>) class_loss; (<b>c</b>) mask_loss; and (<b>d</b>) bbox_loss.</p> "> Figure 13
<p>Predicted results of the screws from the Mask RCNN.</p> "> Figure 14
<p>Second segmentation process of the screws.</p> "> Figure 15
<p>Access depth errors of the six types of switch machines.</p> "> Figure 16
<p>Experimental comparisons of the proposed algorithm, Yin et al. [<a href="#B12-applsci-13-09424" class="html-bibr">12</a>]’s algorithm, and the Yolo algorithm.</p> ">
Abstract
:1. Introduction
2. Proposed Algorithm
2.1. Mask RCNN
2.2. Second Precise Segmentation Based on the Mask RCNN
2.3. Distortion Correction Based on Affine Mapping
2.4. Distance Linear Fitting and Transformation
2.5. Overall Process of the Proposed Algorithm
Algorithm 1. Overall process of the pseudo code algorithm. |
1. Begin 2. Input image 3. If image_width>image_height Rotate image to 90° Crop image to 1280 × 960 Else Crop image to 1280 × 960 4. Input image into MaskRCNN 5. Output Mask 6. Take Mask into second segmentation 7. Get new Mask 8. Correct distortion based on affine mapping with new Mask 9. Distance transformation with linear fitting function 10. Output access depth 11. End |
3. Experimental Results
3.1. Introduction of the Evaluation Method and the Experiments
3.2. Training Results of the Mask RCNN Network
3.3. Second Segmentation Results
3.4. Experimental Results of the Access Depth
4. Conclusions
- (1)
- Strict requirements for the framework environment, which are not convenient to change and upgrade.
- (2)
- Before Mask RCNN training, a large number of manual tags need to be generated, and the training efficiency is dependent on the production of these tags.
Author Contributions
Funding
Conflicts of Interest
References
- Lv, Z.; Ma, A.; Chen, X.; Zheng, S. Defect Detection of Pandrol Track Fastener Based on Local Depth Feature Fusion Network. Complexity 2021, 2021, 6687146. [Google Scholar] [CrossRef]
- Shin, S.; Kim, M.H.; Choi, S.B. Ultrasonic Distance Measurement Method With Crosstalk Rejection at High Measurement Rate. IEEE Trans. Instrum. Meas. 2019, 68, 972–979. [Google Scholar] [CrossRef]
- Chen, X.; Xu, J.; Chen, H.; Ding, H.; Xie, J. High-Accuracy Ultrasonic Rangefinders via pMUTs Arrays Using Multi-Frequency Continuous Waves. J. Microelectromech. Syst. 2019, 28, 634–642. [Google Scholar] [CrossRef]
- Veng, M.; Perchoux, J.; Bony, F. Fringe Disappearance in Self-Mixing Interferometry Laser Sensors: Model and Application to the Absolute Distance Measurement Scheme. IEEE Sens. J. 2019, 19, 5521–5528. [Google Scholar] [CrossRef]
- Hu, Y.; Luo, D.; Hua, K.; Lu, H.; Zhang, X. A review and discussion on deep learning. J. Intell. Syst. 2019, 14, 1–19. [Google Scholar]
- Zhao, K.; Du, K.; Ju, Y. Algorithm of Speed-up Turnout Fault Diagnosis Based on BP Neural Network. J. Wuhan Univ. Technol. 2014, 36, 77–81. [Google Scholar]
- Jia, F.; Lei, Y.; Lin, J.; Zhou, X.; Lu, N. Deep neural networks: A promising tool for fault characteristic mining and intelligent diagnosis of rotating machinery with massive data. Mech. Syst. Signal Process. 2016, 72–73, 303–315. [Google Scholar] [CrossRef]
- Tao, T.; Dong, D.; Huang, S.; Chen, W. Gap Detection of Switch Machines in Complex Environment Based on Object Detection and Image Processing. J. Transp. Eng. Part A Syst. 2020, 146, 04020083. [Google Scholar] [CrossRef]
- Li, C.; Zhao, L.; Liu, W. Automatic Detection Algorithm of Switch Machine Gap Based on Canny Operator. J. China Railw. Soc. 2018, 40, 81–87. [Google Scholar]
- Zhang, Y.; Xie, Q. A Railway Turnout Detection Method Based on Machine Vision. Comput. Appl. Softw. 2015, 32, 225–228. [Google Scholar]
- He, K.; Gkioxari, G.; Dollar, P.; Girshick, R. Mask RCNN. In Proceedings of the 2017 IEEE International Conference on Computer Vision (ICCV), Venice, Italy, 22–29 October 2017. [Google Scholar]
- Yin, J.; Lv, Z.; Chen, X.; Yang, K. Positioning of the Moving and Static Contacts of the Switch Machine Based on Double-Layer Mask RCNN. Complexity 2021, 2021, 8655499. [Google Scholar] [CrossRef]
- Zhang, C.; Xu, Q. An Improved GMM based Video Foreground Separation. In Proceedings of the 2019 Chinese Control And Decision Conference (CCDC), Nanchang, China, 3–5 June 2019. [Google Scholar]
- Lin, T.Y.; Maire, M.; Belongie, S.; Hays, J.; Perona, P.; Ramanan, D.; Dollár, P.; Zitnick, C.L. Microsoft COCO: Common Objects in Context. In Proceedings of the Computer Vision–ECCV 2014: 13th European Conference, Zurich, Switzerland, 6–12 September 2014. [Google Scholar]
Recognition | Rate (%) | |
---|---|---|
Type1 | 49 | 98 |
Type2 | 50 | 100 |
Type3 | 50 | 100 |
Type4 | 49 | 98 |
Type5 | 50 | 100 |
Type6 | 50 | 100 |
Average | 49.67 | 99.33 |
Iou | Dice | |
---|---|---|
Type1 | 0.961 | 0.98 |
Type2 | 0.951 | 0.975 |
Type3 | 0.972 | 0.97 |
Type4 | 0.98 | 0.99 |
Type5 | 0.982 | 0.991 |
Type6 | 0.974 | 0.987 |
Average | 0.97 | 0.982 |
Proposed Algorithm (mm) | Actual Access Depth (mm) | Error (mm) | |
---|---|---|---|
Type1 | 6.79 | 7.20 | 0.42 |
Type2 | 6.84 | 7.30 | 0.46 |
Type3 | 9.09 | 8.20 | 0.89 |
Type4 | 6.71 | 6.50 | 0.21 |
Type5 | 6.83 | 7.00 | 0.17 |
Type6 | 7.20 | 6.90 | 0.30 |
Average | 7.24 | 7.18 | 0.41 |
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. |
© 2023 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
Wei, L.; Kong, L.; Liu, Z.; Yang, Z.; Zhang, H. A Low-Complexity Accurate Ranging Algorithm for a Switch Machine Working Component Based on the Mask RCNN. Appl. Sci. 2023, 13, 9424. https://doi.org/10.3390/app13169424
Wei L, Kong L, Liu Z, Yang Z, Zhang H. A Low-Complexity Accurate Ranging Algorithm for a Switch Machine Working Component Based on the Mask RCNN. Applied Sciences. 2023; 13(16):9424. https://doi.org/10.3390/app13169424
Chicago/Turabian StyleWei, Lili, Lingkai Kong, Zhigang Liu, Zhenglong Yang, and Hua Zhang. 2023. "A Low-Complexity Accurate Ranging Algorithm for a Switch Machine Working Component Based on the Mask RCNN" Applied Sciences 13, no. 16: 9424. https://doi.org/10.3390/app13169424
APA StyleWei, L., Kong, L., Liu, Z., Yang, Z., & Zhang, H. (2023). A Low-Complexity Accurate Ranging Algorithm for a Switch Machine Working Component Based on the Mask RCNN. Applied Sciences, 13(16), 9424. https://doi.org/10.3390/app13169424