Defect Detection of Industry Wood Veneer Based on NAS and Multi-Channel Mask R-CNN
Abstract
:1. Introduction
- A glance network is developed for quickly scanning the image to determine whether the image is suitable for further detection, which significantly reduces detection time for industrial usage. Additionally, a new fit value function utilizing the FLOP of the network is constructed for the first time to improve the real-time performance of the glance network.
- A genetic algorithm is used to determine the feature selection of the multi-channel mask R-CNN input channels in order to achieve higher detection accuracy.
2. Materials and Methods
2.1. Materials and Data Collection
2.2. Method
2.2.1. Glance Network Based on NAS for Speed Improvement
2.2.2. Feature Selection for Accuracy Improvement
2.2.3. Multi-Channel Mask R-CNN
3. Results
3.1. Determination of Model Parameters and Structure
3.1.1. Glance Network Searched Structure
3.1.2. Channel Selection for Multi-Channel Mask R-CNN Input
3.2. Classification Performance Evaluation
4. Conclusions and Discussion
- (1)
- Improvement of the detection speed of the model: A glance network was designed at the front end of the multi-channel mask R-CNN, which was mainly used to classify regular wood and defective wood. The defective pictures were then picked out and transformed into mask R-CNN for further inspection. To obtain the most suitable architecture of the glance network for wood detection, NAS technology was used to determine the architecture and parameters of the glance network, and FLOPs were used for speed optimization in a NAS for the first time.
- (2)
- Improvement of the detection accuracy of wood defects: We fed the feature of the defective wood extracted by the glance network into the mask R-CNN. In addition, a genetic algorithm was used to optimize the selection of the feature channels to obtain the best combination of input features for the mask R-CNN.
Author Contributions
Funding
Conflicts of Interest
References
- Ke, Z.N.; Zhao, Q.J.; Huang, C.H.; Ai, P.; Yi, J.G. Detection of wood surface defects based on particle swarm-genetic hybrid algorithm. In Proceedings of the 2016 International Conference on Audio, Language and Image Processing-Proceedings, Shanghai, China, 11–12 July 2016. [Google Scholar]
- Hashim, U.R.; Hashim, S.Z.; Muda, A.K. Automated vision inspection of timber surface defect: A review. J. Teknol. 2015, 127–135. [Google Scholar] [CrossRef] [Green Version]
- Wang, L.; Qi, W.; Wu, J.; Hou, W. Recognizing the patterns of wood inner defects based on wavelet neuraIn Proceedings of thel networks. In Proceedings of the IEEE International Conference on Automation and Logistics, Jinan, China, 18–21 August 2007; pp. 1719–1724. [Google Scholar] [CrossRef]
- Du, X.; Li, J.; Feng, H.; Chen, S. Image reconstruction of internal defects in wood based on segmented propagation rays of stress waves. Appl. Sci. 2018, 8, 1778. [Google Scholar] [CrossRef] [Green Version]
- Peng, Z.; Yue, L.; Xiao, N. Simultaneous Wood Defect and Species Detection with 3D Laser Scanning Scheme. Int. J. Opt. 2016, 2016, 1–6. [Google Scholar] [CrossRef]
- Wang, Q.; Liu, X.E.; Yang, S. Predicting density and moisture content of Populus xiangchengensis and Phyllostachys edulis using the X-ray computed tomography technique. For. Prod. J. 2020, 70, 193–199. [Google Scholar]
- França, F.J.N.; França, T.S.F.A.; Seale, R.D.; Shmulsky, R. Nondestructive evaluation of 2 by 8 and 2 by 10 southern pine dimensional lumber. For. Prod. J. 2020, 70, 79–87. [Google Scholar]
- Fang, Y.; Lin, L.; Feng, H.; Lu, Z.; Emms, G.W. Review of the use of air-coupled ultrasonic technologies for nondestructive testing of wood and wood products. Comput. Electron. Agric. 2017, 137, 79–87. [Google Scholar] [CrossRef]
- Li, X.; Qian, W.; Cheng, L.; Chang, L. A Coupling Model Based on Grey Relational Analysis and Stepwise Discriminant Analysis for Wood Defect Area Identification by Stress Wave. BioResources 2020, 15, 1171–1186. [Google Scholar]
- Jiang, S.; Zhou, Z.; Wang, K. Literature review and comparison of wood testing methods and research on application technology of computer 3D scanning detection. ACM Int. Conf. Proc. Ser. 2019, 418–422. [Google Scholar] [CrossRef]
- DeVallance, D.B.; Funck, J.W.; Reeb, J.E. Evaluation of laminated veneer lumber tensile strength using optical scanning and combined optical-ultrasonic techniques. Wood Fiber Sci. 2011, 43, 169–179. [Google Scholar]
- Razmjooy, N.; Mousavi, B.S.; Soleymani, F. A real-time mathematical computer method for potato inspection using machine vision. Comput. Math. Appl. 2012. [Google Scholar] [CrossRef] [Green Version]
- Boardman, B.E.; Senft, J.F.; McCabe, G.P.; Ladisch, C.M. Colorimetric analysis in grading black walnut veneer. Wood Fiber Sci. 2007, 24, 99–107. [Google Scholar]
- Momin, M.A.; Yamamoto, K.; Miyamoto, M.; Kondo, N.; Grift, T. Machine vision based soybean quality evaluation. Comput. Electron. Agric. 2017. [Google Scholar] [CrossRef]
- Dawood, T.; Zhu, Z.; Zayed, T. Machine vision-based model for spalling detection and quantification in subway networks. Autom. Constr. 2017. [Google Scholar] [CrossRef]
- Yang, F.; Wang, Y.; Wang, S.; Cheng, Y. Wood Veneer Defect Detection System Based on Machine Vision. Adv. Comput. Sci. Res. 2018, 86, 413–418. [Google Scholar] [CrossRef]
- Park, J.K.; Kwon, B.K.; Park, J.H.; Kang, D.J. Machine learning-based imaging system for surface defect inspection. Int. J. Precis. Eng. Manuf. Green Technol. 2016, 3, 303–310. [Google Scholar] [CrossRef]
- Jung, S.Y.; Tsai, Y.H.; Chiu, W.Y.; Hu, J.S.; Sun, C.T. Defect detection on randomly textured surfaces by convolutional neural networks. In Proceedings of the IEEE/ASME International Conference on Advanced Intelligent Mechatronics, Auckland, New Zealand, 9 July 2018; pp. 1456–1461. [Google Scholar] [CrossRef]
- He, T.; Liu, Y.; Xu, C.; Zhou, X.; Hu, Z.; Fan, J. A fully convolutional neural network for wood defect location and identification. IEEE Access 2019, 7, 123453–123462. [Google Scholar] [CrossRef]
- Urbonas, A.; Raudonis, V.; Maskeliunas, R.; Damaševičius, R. Automated identification of wood veneer surface defects using faster region-based convolutional neural network with data augmentation and transfer learning. Appl. Sci. 2019, 9, 4898. [Google Scholar] [CrossRef] [Green Version]
- Kaiming, H.; Georgia, G.; Piotr, D.; Ross, G. Mask R-CNN. In Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy, 22–29 October 2017; pp. 2961–2969. [Google Scholar]
- Huang, H.; Wei, Z.; Yao, L. A novel approach to component assembly inspection based on mask R-CNN and support vector machines. Information 2019, 10, 282. [Google Scholar] [CrossRef] [Green Version]
- Kai, H.; Baojin, W.; Yi, S.; Jieru, G.; Yi, C. Defect Identification Method for Poplar Veneer Based on Progressive Growing Generated Adversarial Network and MASK R-CNN Model. Bioresources 2018, 15, 3041–3052. [Google Scholar]
- Chiao, J.Y.; Chen, K.Y.; Liao, K.Y.K.; Hsieh, P.H.; Zhang, G.; Huang, T.C. Detection and classification the breast tumors using mask R-CNN on sonograms. Medicine 2019. [Google Scholar] [CrossRef]
- Pham, H.; Guan, M.Y.; Zoph, B.; Le, Q.V.; Dean, J. Efficient Neural Architecture Search via parameter Sharing. In Proceedings of the 35th International Conference on Machine Learning, Stockholm, Sweden, 10–15 July 2018. [Google Scholar]
- Zoph, B.; Le, Q.V. Neural architecture search with reinforcement learning. In Proceedings of the 5th International Conference on Learning Representations, Toulon, France, 24–26 April 2017. [Google Scholar]
- Liu, C.; Chen, L.C.; Schroff, F.; Adam, H.; Hua, W.; Yuille, A.L.; Fei-Fei, L. Auto-deeplab: Hierarchical neural architecture search for semantic image segmentation. In Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA, 18–20 June 2019. [Google Scholar]
- Tan, M.; Chen, B.; Pang, R.; Vasudevan, V.; Sandler, M.; Howard, A.; Le, Q.V. Mnasnet: Platform-aware neural architecture search for mobile. In Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA, 18–20 June 2019. [Google Scholar]
- Xie, S.; Kirillov, A.; Girshick, R.; He, K. Exploring randomly wired neural networks for image recognition. In Proceedings of the IEEE International Conference on Computer Vision, Seoul, Korea, 27–28 October 2019. [Google Scholar]
- Real, E.; Aggarwal, A.; Huang, Y.; Le, Q.V. Regularized Evolution for Image Classifier Architecture Search. In Proceedings of the AAAI Conference on Artificial Intelligence, Honolulu, HI, USA, 27 January–1 February 2019. [Google Scholar] [CrossRef] [Green Version]
- Wistuba, M.; Rawat, A.; Pedapati, T. A Survey on Neural Architecture Search. J. Mach. Learn. Res. 2019, 20, 1–21. [Google Scholar]
- Cai, H.; Chen, T.; Zhang, W.; Yu, Y.; Wang, J. Efficient architecture search by network transformation. In Proceedings of the 32nd AAAI Conference on Artificial Intelligence, New Orleans, LA, USA, 2–7 February 2018. [Google Scholar]
- Elsken, T.; Metzen, J.H.; Hutter, F. Simple and efficient architecture search for convolutional neural networks. In Proceedings of the 6th International Conference on Learning Representations, ICLR 2018-Workshop Track Proceedings, Vancouver, BC, Canada, 30 April–3 May 2018. [Google Scholar]
- Silver, D.; Schrittwieser, J.; Simonyan, K.; Antonoglou, I.; Huang, A.; Guez, A.; Hubert, T.; Baker, L.; Lai, M.; Bolton, A.; et al. Mastering the game of Go without human knowledge. Nature 2017. [Google Scholar] [CrossRef] [PubMed]
- Chollet, F. Xception: Deep learning with depthwise separable convolutions. In Proceedings of the 30th IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2016. [Google Scholar]
- Smith, S.W. Properties of Convolution. In Proceedings of the Digital Signal Processing, Changsha, China, 8–13 October 2003. [Google Scholar]
- Wang, P.; Chen, P.; Yuan, Y.; Liu, D.; Huang, Z.; Hou, X.; Cottrell, G. Understanding Convolution for Semantic Segmentation. In Proceedings of the 2018 IEEE Winter Conference on Applications of Computer Vision, Lake Tahoe, NV, USA, 12–15 March 2018. [Google Scholar]
- Han, C.; Duan, Y.; Tao, X.; Lu, J. Dense Convolutional Networks for Semantic Segmentation. IEEE Access 2019. [Google Scholar] [CrossRef]
- Li, Y.; Bu, R.; Sun, M.; Wu, W.; Di, X.; Chen, B. PointCNN: Convolution on X-transformed points. In Proceedings of the Advances in Neural Information Processing Systems, Montreal, QC, Canada, 3–18 December 2018. [Google Scholar]
- Pang, Y.; Sun, M.; Jiang, X.; Li, X. Convolution in convolution for network in network. IEEE Trans. Neural Networks Learn. Syst. 2018, 29, 1587–1597. [Google Scholar] [CrossRef] [Green Version]
- Hu, Y.Q.; Yu, Y. A technical view on neural architecture search. Int. J. Mach. Learn. Cybern. 2020, 11, 795–811. [Google Scholar] [CrossRef]
- Liu, H.; Simonyan, K.; Vinyals, O.; Fernando, C.; Kavukcuoglu, K. Hierarchical representations for efficient architecture search. In Proceedings of the 6th International Conference on Learning Representations, Vancouver, BC, Canada, 30 April–3 May 2018. [Google Scholar]
- Lu, Z.; Whalen, I.; Boddeti, V.; Dhebar, Y.; Deb, K.; Goodman, E.; Banzhaf, W. NSGA-Net: Neural architecture search using multi-objective genetic algorithm. In Proceedings of the 2019 Genetic and Evolutionary Computation Conference, Prague, Czech Republic, 13–17 July 2019. [Google Scholar]
- Chen, Y.; Yang, T.; Zhang, X.; Meng, G.; Pan, C.; Sun, J. DetNAS: Neural Architecture Search on Object Detection. arXiv 2019, arXiv:1903.10979. [Google Scholar]
- Xie, L.; Yuille, A. Genetic CNN. In Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy, 22–29 October 2017. [Google Scholar]
- Molchanov, P.; Tyree, S.; Karras, T.; Aila, T.; Kautz, J. Pruning convolutional neural networks for resource efficient inference. In Proceedings of the 5th International Conference on Learning Representations ICLR 2017, Toulon, France, 24–26 April 2017; pp. 1–17. [Google Scholar]
- Shojaedini, S.V.; Kasbgar Haghighi, R.; Kermani, A. A new method for defect detection in lumber images: Optimising the energy model by an irregular parametric genetic approach. Int. Wood Prod. J. 2017, 8, 26–31. [Google Scholar] [CrossRef]
- Badrinarayanan, V.; Kendall, A.; Cipolla, R. SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation. IEEE Trans. Pattern Anal. Mach. Intell. 2017. [Google Scholar] [CrossRef]
- Long, J.; Shelhamer, E.; Darrell, T. Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Boston, MA, USA, 7–12 June 2015. [Google Scholar]
Parameter | Range | Type | Parameter | Range | Type |
---|---|---|---|---|---|
Activation Bit | 0: Inactive 1: Active | Enumerated | Strides | 1–5 | Integer |
Layer Type | 1: Cov2D + Maxpooling 2: Dropout | Enumerated | Pool Size | 2–8 | Integer |
Filter Number | 1–128 | Integer | Pool Strides | 2–6 | Integer |
Kernel Size | 1–8 | Integer | rate | 0–1 | Float |
Feature Number | Load Time(s) | Picture 1 (s) | Picture 2 (s) | Picture 3 (s) | Picture 4 (s) | Picture 5 (s) | Average Inference Time(s) |
---|---|---|---|---|---|---|---|
0 | 1.169 | 0.039 | 0.035 | 0.037 | 0.048 | 0.041 | 0.040 |
1 | 1.153 | 0.049 | 0.038 | 0.037 | 0.040 | 0.046 | 0.042 |
2 | 1.143 | 0.043 | 0.039 | 0.044 | 0.050 | 0.043 | 0.043 |
3 | 1.140 | 0.042 | 0.042 | 0.040 | 0.044 | 0.046 | 0.044 |
4 | 1.178 | 0.043 | 0.044 | 0.043 | 0.046 | 0.053 | 0.046 |
5 | 1.140 | 0.049 | 0.046 | 0.043 | 0.046 | 0.046 | 0.046 |
6 | 1.148 | 0.057 | 0.048 | 0.045 | 0.049 | 0.047 | 0.047 |
7 | 1.137 | 0.049 | 0.047 | 0.046 | 0.047 | 0.048 | 0.049 |
8 | 1.135 | 0.051 | 0.053 | 0.049 | 0.052 | 0.048 | 0.050 |
9 | 1.176 | 0.050 | 0.050 | 0.048 | 0.051 | 0.050 | 0.051 |
10 | 1.169 | 0.052 | 0.051 | 0.051 | 0.052 | 0.056 | 0.052 |
Name | Parameter |
---|---|
Memory | 32.00 GB |
CPU | Intel Core i7-8700 CPU @ 3.2 GHz |
Graphics card | NVIDIA GeForce RTX 2080 Ti |
System | Linux Ubuntu 18.04 LST |
Environment Configuration | Python3.6, TensorFlow-GPU 1.14.0, Keras2.0.8 |
Model Order | Number of Filters | Cov2D Kernel Size | Maxpooling2D Pool Size | Detection Rate | False Alarm | Model Accuracy | FLOPs(M) |
---|---|---|---|---|---|---|---|
1 | 6 | 3 | 2 | 99.51% | 5.9% | 96.76% | 14.381 |
2 | 10 | 3 | 2 | 99.75% | 0% | 99.88% | 23.968 |
3 | 14 | 3 | 2 | 99.51% | 9.2% | 95.14% | 33.555 |
4 | 10 | 2 | 2 | 99.50% | 0.76% | 99.37% | 11.984 |
5 | 10 | 5 | 2 | 99.75% | 7.8% | 95.94% | 62.336 |
6 | 10 | 3 | 1 | 99.75% | 5.7% | 97.01% | 22.792 |
7 | 10 | 3 | 4 | 99.75% | 7.6% | 96.03% | 28.673 |
Confidence Rate | Detection Rate | False Alarm | Model Accuracy |
---|---|---|---|
0 | 99.75% | 0.87% | 99.44% |
0.5 | 99.75% | 0.87% | 99.44% |
0.9 | 100% | 2.6% | 98.7% |
Method | OCA (%) 1 | MAP (%) 2 | Inference Time/Batch (s) |
---|---|---|---|
GM-Mask R-CNN (Resnet50) 3 | 98.70 | 95.31 ± 4.5 | 2.5 |
Mask R-CNN (Resnet101) | 98.52 | 93.32 ± 3.2 | 6.1 |
SegNet [48] | 98.45 | 92.27 ± 3.9 | 20.1 |
FCN 4 [49] | 98.45 | 90.67 ± 4.1 | 9.7 |
Defect Types | Live Knot | Crack | Dead Knot | Background |
---|---|---|---|---|
Live knot | 96.74% | 0.93% | 2.33% | 0.00% |
Crack | 0.00% | 100% | 0.00% | 0.00% |
Dead knot | 0.87% | 0.00% | 99.13% | 0.00% |
Background | 0.00% | 0.00% | 0.99% | 99.01% |
© 2020 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 (http://creativecommons.org/licenses/by/4.0/).
Share and Cite
Shi, J.; Li, Z.; Zhu, T.; Wang, D.; Ni, C. Defect Detection of Industry Wood Veneer Based on NAS and Multi-Channel Mask R-CNN. Sensors 2020, 20, 4398. https://doi.org/10.3390/s20164398
Shi J, Li Z, Zhu T, Wang D, Ni C. Defect Detection of Industry Wood Veneer Based on NAS and Multi-Channel Mask R-CNN. Sensors. 2020; 20(16):4398. https://doi.org/10.3390/s20164398
Chicago/Turabian StyleShi, Jiahao, Zhenye Li, Tingting Zhu, Dongyi Wang, and Chao Ni. 2020. "Defect Detection of Industry Wood Veneer Based on NAS and Multi-Channel Mask R-CNN" Sensors 20, no. 16: 4398. https://doi.org/10.3390/s20164398
APA StyleShi, J., Li, Z., Zhu, T., Wang, D., & Ni, C. (2020). Defect Detection of Industry Wood Veneer Based on NAS and Multi-Channel Mask R-CNN. Sensors, 20(16), 4398. https://doi.org/10.3390/s20164398