From Dataset Creation to Defect Detection: A Proposed Procedure for a Custom CNN Approach for Polishing Applications on Low-Performance PCs
Abstract
:1. Introduction
- Gap in Reflective Surface Recognition: Despite advances in AI and robotics, there remains a gap in the effective recognition of reflective objects through neural networks, particularly in environments with limited computational resources;
- Development of a Public Dataset: The creation of an evolving public dataset for the recognition of surface defects related to light reflection;
- Defect Detection in Low-Computational-Capacity Environments: This demonstration will illustrate how defect detection can be effectively performed on less powerful hardware, with a focus on the achievable performance metrics;
- Network Development Methodology: A description of the adopted methodology, including the creation of the network on lower performing PCs and the training of weights on more powerful devices;
- Creation and Publication of Weights for Transfer Learning: The development and sharing of weights to facilitate transfer learning;
2. Flexible Framework for Polishing
2.1. Challenges in Polishing Tasks
2.2. Framework for Post Processing
3. System Overview
3.1. System Configuration and Preparation for Training
3.2. System Performance
CUDA and cuDNN
3.3. Network Training Procedure
4. Dataset Description
4.1. Procedure to Obtain Images for the Dataset
4.2. Dataset Images Description
5. Network Design
5.1. Network Description
5.1.1. Convolutional Layers
- Size: The size of the kernel (e.g., 3 × 3).
- Filters: The number of filters, which also determines the number of features extracted and the depth of the output volume.
- Stride: The number of pixels by which the filter moves at each step.
- Padding: Adds pixels to the edges of the input to allow the filter to work on the edges.
- Activation: The activation function, often ReLU or variants (like leaky ReLU), which introduces nonlinearity.
5.1.2. Max Pooling Layers
- Size: The size of the pooling window (e.g., 2 × 2).
- Stride: The number of pixels by which the pooling window moves at each step.
5.2. Network Functioning
6. Results and Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Abbreviations
MDPI | Multidisciplinary Digital Publishing Institute |
DOAJ | Directory of Open Access ournals |
TLA | Three-Letter Acronym |
LD | Linear Dichroism |
AI | Artificial Intelligence |
CNN | Convolutional Neural Network |
FPS | Frames Per Second |
GPU | Graphics Processing Unit |
CUDA | Compute Unified Device Architecture |
cuDNN | CUDA Deep Neural Network |
SSD | Single-Shot Multibox Detector |
DCNN | Deep Convolutional Neural Network |
ANNs | Artificial Neural Networks |
MNIST | Modified National Institute of Standards and Technology database |
EMNIST | Extended MNIST |
RAS | Robotic Autonomous Systems |
SM | Smart Manufacturing |
ICTs | Information and Communication Technologies |
SMEs | Small- and Medium-Sized Enterprises |
References
- Garcia, M.; Rauch, E.; Salvalai, D.; Matt, D. AI-based human-robot cooperation for flexible multi-variant manufacturing. In Proceedings of the 11th Annual International Conference on Industrial Engineering and Operations Management, Singapore, Singapore, 7–11 March 2021. [Google Scholar]
- Sowa, K.; Przegalinska, A.; Ciechanowski, L. Cobots in knowledge work: Human—AI collaboration in managerial professions. J. Bus. Res. 2021, 125, 135–142. [Google Scholar] [CrossRef]
- Bohušík, M.; Stenchlák, V.; Císar, M.; Bulej, V.; Kuric, I.; Dodok, T.; Bencel, A. Mechatronic Device Control by Artificial Intelligence. Sensors 2023, 23, 5872. [Google Scholar] [CrossRef] [PubMed]
- Bhardwaj, A.; Kishore, S.; Pandey, D.K. Artificial Intelligence in Biological Sciences. Life 2022, 12, 1430. [Google Scholar] [CrossRef] [PubMed]
- Nanjangud, A.; Blacker, P.C.; Bandyopadhyay, S.; Gao, Y. Robotics and AI-Enabled On-Orbit Operations With Future Generation of Small Satellites. Proc. IEEE 2018, 106, 429–439. [Google Scholar] [CrossRef]
- Carbonari, L.; Forlini, M.; Scoccia, C.; Costa, D.; Palpacelli, M.C. Disseminating Collaborative Robotics and Artificial Intelligence Through a Board Game Demo. In Proceedings of the 2022 18th IEEE/ASME International Conference on Mechatronic and Embedded Systems and Applications (MESA), Taipei, Taiwan, 28–30 November 2022; IEEE: Piscataway, NJ, USA, 2022. [Google Scholar] [CrossRef]
- Kaczmarek, W.; Lotys, B.; Borys, S.; Laskowski, D.; Lubkowski, P. Controlling an Industrial Robot Using a Graphic Tablet in Offline and Online Mode. Sensors 2021, 21, 2439. [Google Scholar] [CrossRef] [PubMed]
- Pandiyan, V.; Shevchik, S.; Wasmer, K.; Castagne, S.; Tjahjowidodo, T. Modelling and monitoring of abrasive finishing processes using artificial intelligence techniques: A review. J. Manuf. Process. 2020, 57, 114–135. [Google Scholar] [CrossRef]
- Kim, D.H.; Kim, T.J.Y.; Wang, X.; Kim, M.; Quan, Y.J.; Oh, J.W.; Min, S.H.; Kim, H.; Bhandari, B.; Yang, I.; et al. Smart Machining Process Using Machine Learning: A Review and Perspective on Machining Industry. Int. J. Precis. Eng. Manuf.-Green Technol. 2018, 5, 555–568. [Google Scholar] [CrossRef]
- Luo, Q.; Fang, X.; Liu, L.; Yang, C.; Sun, Y. Automated Visual Defect Detection for Flat Steel Surface: A Survey. IEEE Trans. Instrum. Meas. 2020, 69, 626–644. [Google Scholar] [CrossRef]
- Davis, J.; Edgar, T.; Graybill, R.; Korambath, P.; Schott, B.; Swink, D.; Wang, J.; Wetzel, J. Smart Manufacturing. Annu. Rev. Chem. Biomol. Eng. 2015, 6, 141–160. [Google Scholar] [CrossRef]
- Mittal, S.; Khan, M.A.; Romero, D.; Wuest, T. Smart manufacturing: Characteristics, technologies and enabling factors. Proc. Inst. Mech. Eng. Part B J. Eng. Manuf. 2017, 233, 1342–1361. [Google Scholar] [CrossRef]
- Rezaei, M.; Diepeveen, D.; Laga, H.; Jones, M.G.; Sohel, F. Plant disease recognition in a low data scenario using few-shot learning. Comput. Electron. Agric. 2024, 219, 108812. [Google Scholar] [CrossRef]
- Duan, R.; Li, D.; Tong, Q.; Yang, T.; Liu, X.; Liu, X. A survey of few-shot learning: An effective method for intrusion detection. Secur. Commun. Netw. 2021, 2021, 4259629. [Google Scholar] [CrossRef]
- Parnami, A.; Lee, M. Learning from few examples: A summary of approaches to few-shot learning. arXiv 2022, arXiv:2203.04291. [Google Scholar]
- Chang, M.C.; Alaeddini, A. Few-shot classification with prototypical neural network for hospital flow recognition under uncertainty. Netw. Model. Anal. Health Inform. Bioinform. 2024, 13, 19. [Google Scholar] [CrossRef]
- Li, W.; Zhang, L.; Wu, C.; Cui, Z.; Niu, C. A new lightweight deep neural network for surface scratch detection. Int. J. Adv. Manuf. Technol. 2022, 123, 1999–2015. [Google Scholar] [CrossRef]
- Ullah, A.; Muhammad, K.; Ding, W.; Palade, V.; Haq, I.U.; Baik, S.W. Efficient activity recognition using lightweight CNN and DS-GRU network for surveillance applications. Appl. Soft Comput. 2021, 103, 107102. [Google Scholar] [CrossRef]
- Paluru, N.; Dayal, A.; Jenssen, H.B.; Sakinis, T.; Cenkeramaddi, L.R.; Prakash, J.; Yalavarthy, P.K. Anam-Net: Anamorphic depth embedding-based lightweight CNN for segmentation of anomalies in COVID-19 chest CT images. IEEE Trans. Neural Netw. Learn. Syst. 2021, 32, 932–946. [Google Scholar] [CrossRef] [PubMed]
- Peng, X.; Kong, L.; Fuh, J.Y.; Wang, H. A Review of Post-Processing Technologies in Additive Manufacturing. J. Manuf. Mater. Process. 2021, 5, 38. [Google Scholar] [CrossRef]
- Lane, B.; Moylan, S.; Whitenton, E. Post-process machining of additive manufactured stainless steel. In Proceedings of the 2015 ASPE Spring Topical Meeting: Achieving Precision Tolerances in Additive Manufacturing, Raleigh, NC, USA, 27 April 2015. [Google Scholar]
- Mishra, P.; Sood, S.; Pandit, M.; Khanna, P. Additive Manufacturing: Post Processing Methods and Challenges. Adv. Eng. Forum 2021, 39, 21–42. [Google Scholar] [CrossRef]
- Schneberger, J.H.; Kaspar, J.; Vielhaber, M. Post-processing and testing-oriented design for additive manufacturing—A general framework for the development of hybrid AM parts. Procedia CIRP 2020, 90, 91–96. [Google Scholar] [CrossRef]
- Bajrami, A.; Palpacelli, M.C. A Flexible Framework for Robotic Post-Processing of 3D Printed Components. In Proceedings of the Volume 7: 19th IEEE/ASME International Conference on Mechatronic and Embedded Systems and Applications (MESA), Boston, MA, USA, 20–23August 2023; IDETC-CIE2023. American Society of Mechanical Engineers: New York, NY, USA, 2023. [Google Scholar] [CrossRef]
- Symbiotic Human-Robot Solutions for Complex Surface Finishing Operations. Available online: https://cordis.europa.eu/project/id/637080 (accessed on 13 December 2023).
- Wang, C.; Endo, T.; Hirofuchi, T.; Ikegami, T. Speed-up Single Shot Detector on GPU with CUDA. In Proceedings of the 2022 23rd ACIS International Summer Virtual Conference on Software Engineering, Artificial Intelligence, Networking and Parallel/Distributed Computing (SNPD-Summer), Kyoto City, Japan, 4–7 July 2022; IEEE: Piscataway, NJ, USA, 2022. [Google Scholar] [CrossRef]
- Singh, S.; Paul, A.; Arun, M. Parallelization of digit recognition system using Deep Convolutional Neural Network on CUDA. In Proceedings of the 2017 Third International Conference on Sensing, Signal Processing and Security (ICSSS), Chennai, India, 4–5 May 2017; IEEE: Piscataway, NJ, USA, 2017. [Google Scholar] [CrossRef]
- Pendlebury, J.; Xiong, H.; Walshe, R. Artificial Neural Network Simulation on CUDA. In Proceedings of the 2012 IEEE/ACM 16th International Symposium on Distributed Simulation and Real Time Applications, Dublin, Ireland, 25–27 October 2012; IEEE: Piscataway, NJ, USA, 2012. [Google Scholar] [CrossRef]
- A Recipe for Training Neural Networks. Available online: https://karpathy.github.io/2019/04/25/recipe/ (accessed on 19 December 2023).
- Chaoub, A.; Cerisara, C.; Voisin, A.; Iung, B. Deep Learning Representation Pre-Training for Industry 4.0. PHM Soc. Eur. Conf. 2022, 7, 571–573. [Google Scholar] [CrossRef]
- Şimşek, M.A.; Orman, Z. A Study on Deep Learning Methods in the Concept of Digital Industry 4.0. In Advances in E-Business Research; IGI Global: Hershey, PA, USA, 2021; pp. 318–339. [Google Scholar] [CrossRef]
- Kapusi, T.P.; Erdei, T.I.; Husi, G.; Hajdu, A. Application of Deep Learning in the Deployment of an Industrial SCARA Machine for Real-Time Object Detection. Robotics 2022, 11, 69. [Google Scholar] [CrossRef]
- SPADD-Dataset: Early Set of Varied Images Displaying Unpolished Surface Defects on Aluminum. Available online: https://github.com/AlbinEV/SPADD-Dataset (accessed on 13 December 2023).
- Jiang, T.; Cheng, J. Target Recognition Based on CNN with LeakyReLU and PReLU Activation Functions. In Proceedings of the 2019 International Conference on Sensing, Diagnostics, Prognostics, and Control (SDPC), Beijing, China, 15–17 August 2019; IEEE: Piscataway, NJ, USA, 2019. [Google Scholar] [CrossRef]
- Mastromichalakis, S. ALReLU: A different approach on Leaky ReLU activation function to improve Neural Networks Performance. arXiv 2020. [Google Scholar] [CrossRef]
- Redmon, J.; Farhadi, A. YOLOv3: An Incremental Improvement. arXiv 2018, arXiv:1804.02767. [Google Scholar]
- Github, AlexeyAB/Yolo_Mark. Available online: https://github.com/AlexeyAB/Yolo_mark (accessed on 19 December 2023).
Designation | Operating System | Kernel Version | GPU Model | GPU Architecture | GPU Driver Version | CUDA Version | CUDA Driver Number |
---|---|---|---|---|---|---|---|
Training | Ubuntu 22.04.3 LTS | 6.2.0-37-generic | NVIDIA GeForce RTX 3060 Lite Hash Rate | Ampere | 470.223.02 | 12.2 | 3584 |
User | Ubuntu 16.04 xenial | 4.15.0-142-generic | NVIDIA GeForce 710M + Intel HD Graphics | Fermi | 384.130 | - | 96 |
Metric | With Data Augmentation | Without Data Augmentation |
---|---|---|
mAP | 76.37% | 95.02% |
Recall | 0.6923 | 0.9500 |
Precision | 0.9730 | 0.9560 |
F1 Score | 0.81 | 0.95 |
Average IoU | 76.17% | 73.62% |
Network Size (Px) | Speed with CPU (FPS) | Speed with GPU (FPS) |
---|---|---|
32 × 32 | 15 | 15 |
160 × 160 | 12 | 15 |
320 × 320 | 3 | 15 |
416 × 416 | 2 | 15 |
608 × 608 | <1 | 8 |
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. |
© 2024 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
Bajrami, A.; Palpacelli, M.C. From Dataset Creation to Defect Detection: A Proposed Procedure for a Custom CNN Approach for Polishing Applications on Low-Performance PCs. Machines 2024, 12, 453. https://doi.org/10.3390/machines12070453
Bajrami A, Palpacelli MC. From Dataset Creation to Defect Detection: A Proposed Procedure for a Custom CNN Approach for Polishing Applications on Low-Performance PCs. Machines. 2024; 12(7):453. https://doi.org/10.3390/machines12070453
Chicago/Turabian StyleBajrami, Albin, and Matteo Claudio Palpacelli. 2024. "From Dataset Creation to Defect Detection: A Proposed Procedure for a Custom CNN Approach for Polishing Applications on Low-Performance PCs" Machines 12, no. 7: 453. https://doi.org/10.3390/machines12070453
APA StyleBajrami, A., & Palpacelli, M. C. (2024). From Dataset Creation to Defect Detection: A Proposed Procedure for a Custom CNN Approach for Polishing Applications on Low-Performance PCs. Machines, 12(7), 453. https://doi.org/10.3390/machines12070453