Next Article in Journal
An Intrusion Detection System Using BoT-IoT
Next Article in Special Issue
Non-Destructive Testing in Concrete Maturity Modeling and Master Curve Development
Previous Article in Journal
Spontaneous Osteogenic Potential of Periosteum after Segmental Mandibulectomy in Patients with Medication-Related Osteonecrosis of the Jaw (MRONJ): A Retrospective Study of 14 Cases
Previous Article in Special Issue
A Siphon Drainage Method for Consolidation of Soft Soil Foundation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Discovery and Classification of Defects on Facing Brick Specimens Using a Convolutional Neural Network

1
Department of Transport Systems, Faculty of Roads and Transport Systems, Don State Technical University, 344003 Rostov-on-Don, Russia
2
Department of Engineering Geology, Bases, and Foundations, Don State Technical University, 344003 Rostov-on-Don, Russia
3
Department of Unique Buildings and Constructions Engineering, Don State Technical University, 344003 Rostov-on-Don, Russia
4
Department of Life Safety and Environmental Protection, Faculty of Life Safety and Environmental Engineering, Don State Technical University, 344003 Rostov-on-Don, Russia
5
OOO VDK, SKOLKOVO, Bolshoi Boulevard, 42, 121205 Moscow, Russia
6
Department Hardware and Software Engineering, Faculty of IT-Systems and Technology, Don State Technical University, 344003 Rostov-on-Don, Russia
7
Department of Mathematics and Informatics, Faculty of IT-Systems and Technology, Don State Technical University, 344003 Rostov-on-Don, Russia
*
Author to whom correspondence should be addressed.
Appl. Sci. 2023, 13(9), 5413; https://doi.org/10.3390/app13095413
Submission received: 10 March 2023 / Revised: 24 April 2023 / Accepted: 25 April 2023 / Published: 26 April 2023

Abstract

:
In recent years, visual automatic non-destructive testing using machine vision algorithms has been widely used in industry. This approach for detecting, classifying, and segmenting defects in building materials and structures can be effectively implemented using convolutional neural networks. Using intelligent systems in the initial stages of manufacturing can eliminate defective building materials, prevent the spread of defective products, and detect the cause of specific damage. In this article, the solution to the problem of building elements flaw detection using the computer vision method was considered. Using the YOLOv5s convolutional neural network for the detection and classification of various defects of the structure, the appearance of finished products of facing bricks that take place at the production stage is shown during technological processing, packaging, transportation, or storage. The algorithm allows for the detection of foreign inclusions, broken corners, cracks, and color unevenness, including the presence of rust spots. To train the detector, our own empirical database of images of facing brick samples was obtained. The set of training data for the neural network algorithm for discovering defects and classifying images was expanded by using our own augmentation algorithm. The results show that the developed YOLOv5s model has a high accuracy in solving the problems of defect detection: mAP0.50 = 87% and mAP0.50:0.95 = 72%. It should be noted that the use of synthetic data obtained by augmentation makes it possible to achieve a good generalizing ability from the algorithm, it has the potential to expand visual variability and practical applicability in various shooting conditions.

1. Introduction

In the current situation, enterprises of the construction complex are striving for automation and intellectualization of routine work, creating a common digital space. Flexible and intelligent systems are being created that carry out automated management of the life cycle of building materials and structures, which can significantly improve the quality of production and eliminate most defective products [1,2]. Modern methods of artificial intelligence (AI) play a significant role in increasing the level of automation of the construction industry. AI algorithms make it possible to implement a model that imitates the cognitive functions of an expert, whose “eyes” are computer vision algorithms [3]. Due to computing power, this technology is able to store, process, systematize, visualize, and analyze unstructured information, including in real time [4,5,6]. The implemented flaw detection technologies based on computer vision algorithms show a high level of reliability and stability, which corresponds to, and in some cases even exceeds, the expert one. Intelligent algorithms prevent the spread of defective products, help determine the cause of a particular damage, and give a timely management response based on the analytical findings of the expert system [5,7].
To detect defects in building materials, structures, and buildings made of innovative supplies, many different methods are used, including artificial intelligence [8]. At the same time, the types of materials, structures, as well as the results obtained are quite diverse. A fairly common method for detecting damage and destruction of various building materials and structures is the acoustic emission method [9]. It is used in scenarios heavily polluted by residual noise and helps to predict and characterize the type of failure. Rolled steel defects were detected using advanced models YOLOv5s-GCE [10], adaptive bounding box annotation and lightweight MobilenetV2 [11], MSFT-YOLO based on a single-stage detector [12], and ACA-Net (adaptive convolution and anchor) [13]. All models showed an improvement in accuracy over the original model. In addition, a random forest and artificial neural network with an error of less than 0.6% was used to detect cracks and determine their severity in steel beams [14]. A comparison of different time-of-flight (ToF) algorithms and a ToF self-diagnostic approach based on a Defect Peak Tracking Model (DPTM) has been successfully applied in [15] to detect and analyze pipeline defects. Additionally, the use of computer vision in detecting defects in railway tracks has already been studied [16,17]. Machine learning methods have been successfully applied in order to detect and monitor surface defects of photovoltaic panels (PV) [18,19]. The improved MobilenetV1-YOLOv4 network has been successfully used to detect insulation defects and thereby improve the security of power lines [20]. The work [21] describes the use of a model for monitoring the state of a conveyor belt structure using machine learning and connecting to the Internet of things, as well as an ultra-high-frequency RFID sensor [21]. The YOLO-RFF method, based on an extended field of sensations and feature fusion, has proven itself in the accurate and high-speed detection of various industrial defects [22]. The ResNeXt + YOLO v3, Inception v3 + YOLO v3, and YOLO v3 models, which have an integrated structure, were studied in order to categorize and locate defects in ceramic substrates to reduce the human resource costs associated with manual re-inspection [23].
Machine learning methods have shown their high accuracy in detecting and monitoring defects in buildings (multiscale feature fusion method: 3ScaleNetwork deep convolutional neural network, local binary pattern, simple linear iterative clustering) [24], retaining walls (machine vision combined with drones) [25], bridges (improved YOLOv3 network, combining high- and low-resolution element images) [26], and pavements (model BV-YOLOv5S (BiFPN Varifocal Loss-YOLOv5S)) [27]. There are quite a variety of methods for detecting and monitoring defects on the surface and inside concrete [28,29,30,31]. Compared to manual instrumentation methods such as ultrasonic [31], non-destructive non-contact inspection methods using thermal imaging and AI are preferable to control the depth of cracks in concrete [29,30].
Of great importance for this study was the already available information on the research and application of various methods for detecting, measuring, and monitoring defects in brick and brick masonry structures [32,33,34,35,36,37]. A sensor technology based on smart bricks—piezoresistive brick sensors for a structural health monitoring system—has been used to monitor deformations and early detection of cracks in shear brickwork [32]. Non-destructive electro-acoustic methods (resonant pulse method or ultrasonic pulse method) were applied in order to discover and analyze defects in the internal structure of bricks. The most successful model of the resonant pulse method had a success rate of up to 85% [33]. Using a break of ordinary quartz optical fibers (6–12 pieces) attached to the surface of the masonry with epoxy adhesive to detect and monitor structural cracks in brickwork, with a detection probability tending to one, allowed us to determine the residual life of structural elements of a building exposed to natural and man-made anomalous phenomena [34]. Automatic brick segmentation and image crack quantification using machine learning was implemented using various AI methods. The accuracy of checking the brick detection model was 96.86% [35]. The DeepLabV3 model for efficient automatic crack segmentation in masonry and actual measurement of crack length in masonry has outperformed previous state-of-the-art crack segmentation models according to the authors of [37]. The Convolutional Neural Network (CNN) model showed better results in detecting cracks in brickwork images taken from the Internet (81.0% accuracy) than in laboratory images (61.5%). The features were built from grayscale image fragments that were focused on dark areas indicating the appearance of cracks [36].
The work [38] presents an improved SSD (Single Shot MultiBox Detector) algorithm, which is used to detect cracks in the workpiece. The algorithm can effectively detect small cracks; the image detection accuracy is over 80%. In recent years, systems for recognizing pavement cracks based on computer vision have become widespread. Thus, in this study [39], a technology for autonomous identification of road cracks is proposed. It is noted that the heterogeneity of the intensity of cracks, and the complexity of the background, complicate the detection. The researchers concluded that an SSD is best suited for this task. In [40], Faster R-CNN and Mask R-CNN are compared and analyzed. The results show that the joint training strategy is very efficient and can ensure that both Faster R-CNN and Mask R-CNN perform the crack detection task with over 90% accuracy when trained with more than 130 images, and it can outperform YOLOv3. However, the collaborative learning strategy causes a decrease in the performance of the bounding box found by Mask R-CNN. In [41], for the detection of cracks in concrete structures, the trained AlexNet model, the prediction accuracy was 99.9%. AlexNet neural networks used a new non-linearity activation function, ReLU, which avoided the gradient disappearing problem. By analyzing the considered architectures of neural networks, it can be noted that the YOLO class operates in a wide range and has high robustness and, when using the SSD network, both large and small objects are determined in one network run; a series of architectures based on R-CNN is not always applicable when detecting objects in real time.
Based on the results of the literature review, it can be summarized that AI methods used throughout the entire life cycle of construction projects are increasingly relevant and popular in assessing the properties, defects, and residual life of building products and buildings, as well as their structures [42,43,44]. AI is needed where it is necessary to accelerate and stabilize the processes of intellectual activity.
YOLO (You Only Look Once) is a neural network architecture designed to detect objects in an image. YOLOv5 “refers to the One-stage detector architecture—an approach that predicts the coordinates of a certain number of Bounding boxes with the results of classification and the probability of finding an object” [45]. Accordingly, “YOLOv5s, YOLOv5m, YOLOv5l and YOLOv5x mean small (s), medium (m), large (l), and very large (x) models. Each model has its pros and cons, but ultimately the differences lie in their complexity, performance, and overall accuracy” [46].
A lack of research has been found on the identification and monitoring of various defects in facing bricks that occur at various stages of its manufacture. The scientific novelty of the research lies in:
-
application of the developed augmentation algorithm to increase the accumulated database of images of facing bricks [47];
-
development of an algorithm that allows the detection of foreign inclusions, broken corners, cracks, and uneven coloring, including the presence of rusty spots on facing bricks;
-
creation, optimization, and testing of the computer vision model based on the CNN YOLOv5s.
In this paper, we consider the solution to the problems from the field of building flaw detection using the computer vision method. The main goal was to use the YOLOv5s convolutional neural network to discover and classify various violations of the structure and appearance of finished products of facing bricks that occurred in the production stage during processing, packaging, transportation, or storage. The tasks of this study are as follows:
-
creating a database of images of facing brick samples;
-
substantiation and description of the selected YOLOv5s detector;
-
carrying out the process of augmentation to expand the training data set;
-
implementation, optimization, debugging, and testing of the algorithm using the CNN YOLOv5s;
-
determination of the quality of the metrics of the implemented model.
The practical value of this study lies in the development of an applied algorithm capable of acting as the basis for intelligent online control of defects in conveyor production products.

2. Materials and Methods

2.1. Markup and Image Augmentation

For the development of a neural network algorithm for detecting and classifying defects, the stage of preparing a training data set is important, on the qualitative and quantitative characteristics of which further accuracy depends. The initial data for this study were 16 images of facing brick samples with various types of defects. For photography, a Canon EOS 60D camera (Tokyo, Japan) with a 22.3 × 14.9 mm matrix and an image resolution of 18 megapixels was used.

2.1.1. Image Markup

Image annotation is one of the key steps in creating an effective computer vision system. This process converts the information into a format that can be understood by the image analysis algorithm. During markup, the original image is supplemented with metadata about the location and class of the defect if it is fixed by an expert technologist.
Figure 1 shows an image of a product annotated with the Image Labeler, where red Bounding Boxes are the “cracks” class, purple are the “rust” class, green are the “broken corners” class, and blue are the “inclusion” class. The Bounding Box stores the coordinates of an object and is thus used to determine the location of an object in space.
A MAT file with bounding box coordinates will be the result of this step in the form of an exported labeled dataset.

2.1.2. Image Augmentation

In the case when there is little data for training and it is necessary to achieve a good generalization ability from the algorithm, researchers usually resort to data manipulation. The use of synthetic data obtained in the process of augmentation improves the quality of the work of CNN and reduces the amount of necessary “real” data by simulating various shooting conditions using image processing methods [7].
However, when a high-quality set of initial data appears, it is necessary to mark up an additional set of images. To automatically recalculate the bounding box for each new image, a custom MATLAB script was proposed that performs the following steps (Figure 2).
  • Adding original photos without changes to the training set.
  • Image representation horizontally and vertically.
  • Shift of the original image by a random value along the Ox and Oy axes.
  • Rotation of the image at angles: 90°, 180°, and 270°.
  • Application of filters to change brightness, contrast, and saturation.
Image augmentation made it possible to expand the dataset of 16 photographs to 400.

2.2. Development of an Intelligent Algorithm Based on the YOLOv5s Convolutional Neural Network

In this study, the lightest YOLOv5s network is selected for reasons of recognition accuracy and speed. Figure 3 shows the structure of YOLOv5s. “It consists of: the input layer (Input), the backbone network (backbone), the bottleneck layer network (neck), and the detection layer (output). The backbone and neck are composed of Focus, CBL (Convolutional, Batch normalization, Leaky Relu), CSP (Cross Stage Partial), and SPP (Space Pyramid Pooling)” [48]. The “backbone part focuses on extracting feature information from input images, the neck part combines the extracted feature information and generates feature maps at three scales, and the output part detects features from these generated feature maps” [49].
The implementation of YOLOv5s CNN is based, among other things, on the choice of parameters for its training, the main parameters are presented in Table 1.
The model was trained on NVIDIA Tesla T4 accelerators (Santa Clara, CA, USA) and took 96 min. For software that works in real time (which is assumed in the future), it is necessary to have the best ratio of speed of work to recognition accuracy. For the efficient use of computing resources (memory) in the training of the CNN, BatchSize = 10 is used. The Number of epochs = 500 parameter, since the error changes slightly with further training. The values of the Learning rate and Solver parameters are used by default.

3. Results and Discussion

3.1. Description of Facing Brick

Facing the facades of buildings plays not only the role of decor, but also performs several structural functions: improving heat and sound insulation and protecting walls from environmental influences, thereby increasing the calendar duration of the functioning of structural elements and the building as a whole. A variety of different building materials are presented on the market, and they differ in their pricing policy and various properties, which makes it possible to satisfy the needs of any consumer.
Among the variety of facing materials, it is worth highlighting brick, which is the oldest building material that is constantly being improved, offering a huge selection of textures and decorative possibilities. Facing bricks are universal materials and are used not only for the facade of the house. They are actively used for the construction of fences, the improvement of buildings on the site, and the construction of partitions in the house that do not require finishing.
The indicators of the appearance of facing bricks directly affect their physical and mechanical properties. The finished product has dimensions of 515 mm × 105 mm × 38 mm. Quality is determined by the absence of violations of the structure and appearance of finished products.
Facing bricks may have various defects that occur both during transportation and storage and during their manufacture. EN 771-1:2011 [50] and EN 771-2:2011 [51] regulate possible brick defects, as well as their number. If the quantity of defective bricks is within the normative requirements, then such a batch is considered to be of high quality. However, even factories with a good reputation are not immune to the appearance of defective batches of goods. To determine the quality of products, it is necessary to carry out a visual inspection method that will save money on dismantling and re-purchasing building materials. Most of the defects are visually distinguishable, which makes it impossible for the manufacturer or dealer to sell such bricks.
Figure 4 shows defects on a facing brick sample: foreign inclusions, broken corners, cracks, and color unevenness, including the presence of rust spots. This markup was carried out manually by a specialist technologist. It takes from one to three minutes to mark one photo. The process of detecting foreign inclusions is the longest due to their small size.
Such defects may occur in a case of violation of production technology, improper transportation, or non-compliance with storage conditions. In our case, foreign inclusions are a manufacturing defect—broken corners, cracks—and are the result of mechanical action during the transportation of the sample; the uneven coloring, including the presence of rust spots, is a result of non-compliance with storage conditions. In order to speed up the process of visual inspection and identify defects of a different nature on facing brick samples, we proposed the development of an intelligent algorithm that simulates the cognitive functions of an expert technologist, whose “eyes” are a computer vision algorithm based on a CNN.

3.2. Implementation, Optimization, Debugging, and Testing of the Algorithm Using the CNN YOLOv5s

The YOLOv5s loss function consists of three parts (Figure 5):
-
box_loss—loss of regression of the bounding box (root mean square error);
-
obj_loss—confidence in the presence of an object is a loss of objectivity;
-
cls_loss—classification loss (Cross Entropy).
Mean Average Precision (mAP) is used to evaluate computer vision models; to calculate it, you must first determine the Precision (P), Recall (R), and Average Precision (AP) indicators.
Calculation of P and R values is carried out according to the formulas:
Precision   P = TP   /   TP + FP
Recall   R = TP   /   TP + FN ,
“here true positive (TP) is the correct detection made by the model; false positive (FP) is incorrect detection made by the detector; false negative (FN) is a true result missed (not detected) by the detector” [7].
An auxiliary metric Intersection over Union (IoU) is used to determine AP. IoU shows how much our predicted boundary overlaps with the true (real object boundary). Figure 6 schematically shows the calculation of IoU where the intersection area is divided by the area of the union of the true and predicted frames.
The area of intersection of the regions in Figure 6 is divided by the area of the union between the true and predicted frames. The IoU metric, also known as the Jaccard index, is a number from zero to one that shows how much two objects (reference and predicted by the neural network) have the same internal “volume”.
AP@α is an area under Precision–Recall Curve (AUC–PR) that is estimated at threshold α IoU. The formula for the calculation is as follows:
AP @ α = 0 1 P R d r
Mean Average Precision (mAP) is equal to the average of Average Precision over all classes in the model. Table 2 estimates mAP for the test set, averaged over IoU ∈ [0.50:0.95] (standard COCO metric) and mAP0.50 (PASCAL VOC metric).
It is worth noting that the “broken corners” and “inclusion” classes are defined less precisely than the “cracks” and “rust” classes. This is due to the geometric parameters of the defects themselves: cracks and rust spots are most noticeable to the expert at the marking stage and, hence, to the detector. Smaller defects of the “inclusion” type can be missed by a specialist when marking, and therefore will not be taken into account in the process of training a neural network, which entails a decrease in accuracy when this class is detected. Careful markup of these objects is required, and was performed. The effect of interference was taken into account in the process of data augmentation by changing the brightness, contrast, and saturation of images. Figure 7 shows the Confusion Matrix, which is a classification performance metric.
Figure 8 shows the results of the developed algorithm. The model shows bounding boxes indicating the predicted feature class and how confident the network is in its prediction.
The results show that the detector detects and classifies defects in photographs subjected to changes during the augmentation process, namely, changing lighting conditions and shooting angles: Figure 8a,c is shifted along the OX axis, Figure 8e is changed brightness. Thus, various survey factors are taken into account in the learning process, and they do not reduce the efficiency of the detection algorithm.
The results obtained correspond to the needs of the problems of detection and classification of defects of various natures in the facing building material and are of practical value.
Thus, the expansion of the training set through the use of the author’s augmentation algorithm of the own empirical database of facing brick images based on simulating various shooting conditions, the selection of parameters, training, and optimization of the detector based on the YOLOv5s CNN, made it possible to obtain an algorithm that has a high accuracy in the tasks of building flaw detection. The values of the mAP0.50 and mAP0.50:0.95 metrics for the developed model were 87% and 72%, which is not inferior to the average accuracy (AP) of the model of a one-stage crack detection network consisting of the EfficientNetB0 backbone network and a detector (76.4%) [28], and AlexNet proposed in [52] (89.31%) outperforms the FPN model proposed for detecting and segmenting cracks on the surface of marble slabs (71.35%) [53], as well as the YOLACT model for detecting cracks in concrete with ResNet-50 main architectures and ResNet-10 (37.39% and 36.05%) [54].
Comparison of the obtained results with the results of other studies showed a rather high accuracy of the developed model aimed at detecting and classifying defects. The model can be improved by expanding the training data set and improving the augmentation algorithm by introducing additional lighting conditions and shooting angles, as well as a combination of various noises and effects. These transformations contribute to the expansion of variations of possible representations of the original image and, thus, have a positive effect on the training of the detector. Expanding the sample leads to more efficient training of the detector, improving its degree of recognition of new objects.
The obtained results should also be discussed in terms of scientific novelty and practical significance. The scientific novelty of this study and, accordingly, its scientific result will be, primarily, the created empirical base, which will allow using the new methodology to determine defects in facing materials, namely in bricks. The novelty lies in the fact that, earlier in construction practice, this approach was based on a physical examination of the condition of facing materials and the detection of defects either with the help of magnifying glasses or with the naked eye. Our approach is methodologically new, as it is based on the introduction of the artificial intelligence method and its verification by laboratory studies of real brick samples. Pilot testing of this method is possible in two ways. These two ways are approbation at the stage of brick production, that is, at construction industry enterprises, and approbation at the stage of erection of buildings and structures in masonry. Thus, in view of the fact that the physical experiment under conditions of simulation of real operating conditions, on the samples selected in real conditions, showed good convergence with the proposed methods of artificial intelligence, the proposed method can be considered effective and accurate. At the same time, the practical significance of this study should be noted. Such a study makes it possible to detect defects in facing products at the production stage with greater efficiency, accuracy, and the least labor costs. At the stage of construction and operation, this method will allow monitoring of the technical condition and construction control over the construction of buildings and structures. Finally, a certain phenomenological base has been laid for future scientific research, based on an integrated approach that combines a physical experiment with the method of artificial intelligence. Thus, summing up the results of this study, it can be noted that from the point of view of information technology, the existing ideas about the methods of artificial intelligence in the construction industry and construction have been developed. From the point of view of construction, a new methodology has been developed for managing the life cycle at the stage of production, construction, operation, and monitoring of facing products and structures of buildings, as well as structures made from them.
The use of machine learning algorithms is becoming an increasingly relevant method for solving both scientific problems and business needs. The results obtained in this study can be considered as a flexible and scalable tool that does not require special operating conditions. The developed algorithm has a high speed, high accuracy, and reliability of results. However, it should be noted that data processing by artificial intelligence methods is an auxiliary tool for making a decision, and it is not the final verdict on the quality of a building material.

4. Conclusions

Based on the results obtained, the following conclusions have been formulated.
(1)
An empirical database of images of facing bricks has been created, which has various violations of the structure and appearance which have arisen at the production stage during technological processing, packaging, transportation, and storage.
(2)
We developed, optimized, and tested a computer vision model based on the YOLOv5s convolutional neural network. By applying a custom augmentation algorithm, synthetic images were created for the training dataset. The application of the developed algorithm in practice became possible with the help of a model trained on its own set of data obtained by simulating the shooting conditions, the angle of rotation, object deformation, and light distortion by image processing methods.
(3)
The developed algorithm detects defects both in images taken under normal shooting conditions and in the presence of color/light distortions. In the work, it was taken into account that defects that are small in size can be missed by a specialist when marking and, therefore, will not be taken into account in the process of training a neural network. Careful markup of these objects is required, which was performed in this study, which made it possible to achieve an accuracy of mAP0.50 = 87% for the “inclusion” class.
(4)
The developed algorithm has a high accuracy in the problems of detection and classification of defects: mAP0.50 = 87% and mAP0.50:0.95 = 72%.
(5)
Behind the conclusion about the quality of products based on intelligent control, there is always a specialist who can adequately respond outside the machine protocol, taking into account the real factors of production, transportation, and storage of products.
The prospect of improving the model is to expand the visual variability in the generation of images in the process of augmenting the original data set, as well as to adapt software tools for intelligent online control of surface defects in conveyor production products.
The developed defect detection and classification model can also be applied to other facing materials and products, such as stone, clinker facade tiles, facade panels, and plaster for more complete control of the degree of defectiveness of each product. The developed model is quite versatile and can be used for most building materials and products that are subject to increased requirements for appearance.

5. Patents

Beskopylny, A.N.; Mailyan, L.R.; Stel’makh, S.A.; Shcherban’, E.M.; Razveeva, I.F.; Beskopylny, N.A.; Dotsenko, N.A.; El’shaeva, D.M. The program for determining the mechanical properties of highly functional lightweight fiber-reinforced concrete based on artificial intelligence methods. Russian Federation Computer program 2022668999, 14 October 2022. Available online: https://www.fips.ru/registers-doc-view/fips_servlet?DB=EVM&DocNumber=2022668999&TypeFile=html (accessed on 9 March 2023).
Beskopylny, A.N.; Stel’makh, S.A.; Shcherban’, E.M.; Razveeva, I.F.; Kozhakin, A.N.; Beskopylny, N.A.; Onore, G.S. Image Augmentation Program. Russian Federation Computer program 2022685192, 21 December 2022. Available online: https://www.fips.ru/registers-doc-view/fips_servlet?DB=EVM&DocNumber=2022685192&TypeFile=html (accessed on 9 March 2023).

Author Contributions

Conceptualization, S.A.S., E.M.S., A.N.B. and I.R.; methodology, S.A.S., E.M.S. and I.R.; software, I.R., A.K. and N.B.; validation, I.R., A.K., S.A.S., E.M.S. and A.N.B.; formal analysis, I.R., G.O. and N.B.; investigation, L.R.M., S.A.S., E.M.S., A.N.B., A.K., G.O. and I.R.; resources, B.M.; data curation, S.A.S., E.M.S., A.K., G.O., N.B., D.E. and I.R.; writing—original draft preparation, I.R., S.A.S., E.M.S., D.E. and A.N.B.; writing—review and editing, I.R., S.A.S., E.M.S. and A.N.B.; visualization, I.R., S.A.S., E.M.S., A.N.B., D.E. and N.B.; supervision, L.R.M. and B.M.; project administration, L.R.M. and B.M.; funding acquisition, A.N.B. and B.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The study did not report any data.

Acknowledgments

The authors would like to acknowledge the administration of Don State Technical University for their resources and financial support.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Beskopylny, A.; Lyapin, A.; Anysz, H.; Meskhi, B.; Veremeenko, A.; Mozgovoy, A. Artificial Neural Networks in Classification of Steel Grades Based on Non-Destructive Tests. Materials 2020, 13, 2445. [Google Scholar] [CrossRef]
  2. Peixoto, J.; Sousa, J.; Carvalho, R.; Santos, G.; Mendes, J.; Cardoso, R.; Reis, A. Development of an Analog Gauge Reading Solution Based on Computer Vision and Deep Learning for an IoT Application. Telecom 2022, 3, 564–580. [Google Scholar] [CrossRef]
  3. Hütten, N.; Meyes, R.; Meisen, T. Vision Transformer in Industrial Visual Inspection. Appl. Sci. 2022, 12, 11981. [Google Scholar] [CrossRef]
  4. Ai, D.; Xue, J.; Wang, M. Multiple-Parallel Morphological Anti-Aliasing Algorithm Implemented in FPGA. Telecom 2022, 3, 526–540. [Google Scholar] [CrossRef]
  5. Salem, T.; Dragomir, M. Digital Twins for Construction Projects—Developing a Risk Systematization Approach to Facilitate Anomaly Detection in Smart Buildings. Telecom 2023, 4, 135–145. [Google Scholar] [CrossRef]
  6. Hadi, M.U. Practical Demonstration of 5G NR Transport Over-Fiber System with Convolutional Neural Network. Telecom 2022, 3, 103–117. [Google Scholar] [CrossRef]
  7. Beskopylny, A.N.; Shcherban’, E.M.; Stel’makh, S.A.; Mailyan, L.R.; Meskhi, B.; Razveeva, I.; Kozhakin, A.; El’shaeva, D.; Beskopylny, N.; Onore, G. Detecting Cracks in Aerated Concrete Samples Using a Convolutional Neural Network. Appl. Sci. 2023, 13, 1904. [Google Scholar] [CrossRef]
  8. Jaber, A.; Sattarpanah Karganroudi, S.; Meiabadi, M.S.; Aminzadeh, A.; Ibrahim, H.; Adda, M.; Taheri, H. On Smart Geometric Non-Destructive Evaluation: Inspection Methods, Overview, and Challenges. Materials 2022, 15, 7187. [Google Scholar] [CrossRef]
  9. Ciaburro, G.; Iannace, G. Machine-Learning-Based Methods for Acoustic Emission Testing: A Review. Appl. Sci. 2022, 12, 10476. [Google Scholar] [CrossRef]
  10. Zhou, S.; Zeng, Y.; Li, S.; Zhu, H.; Liu, X.; Zhang, X. Surface Defect Detection of Rolled Steel Based on Lightweight Model. Appl. Sci. 2022, 12, 8905. [Google Scholar] [CrossRef]
  11. Yang, L.; Huang, X.; Ren, Y.; Huang, Y. Steel Plate Surface Defect Detection Based on Dataset Enhancement and Lightweight Convolution Neural Network. Machines 2022, 10, 523. [Google Scholar] [CrossRef]
  12. Guo, Z.; Wang, C.; Yang, G.; Huang, Z.; Li, G. MSFT-YOLO: Improved YOLOv5 Based on Transformer for Detecting Defects of Steel Surface. Sensors 2022, 22, 3467. [Google Scholar] [CrossRef]
  13. Chen, F.; Deng, M.; Gao, H.; Yang, X.; Zhang, D. ACA-Net: An Adaptive Convolution and Anchor Network for Metallic Surface Defect Detection. Appl. Sci. 2022, 12, 8070. [Google Scholar] [CrossRef]
  14. Gillich, N.; Tufisi, C.; Sacarea, C.; Rusu, C.V.; Gillich, G.-R.; Praisach, Z.-I.; Ardeljan, M. Beam Damage Assessment Using Natural Frequency Shift and Machine Learning. Sensors 2022, 22, 1118. [Google Scholar] [CrossRef]
  15. Yang, F.; Shi, D.; Lo, L.-Y.; Mao, Q.; Zhang, J.; Lam, K.-H. Auto-Diagnosis of Time-of-Flight for Ultrasonic Signal Based on Defect Peaks Tracking Model. Remote Sens. 2023, 15, 599. [Google Scholar] [CrossRef]
  16. Hu, J.; Qiao, P.; Lv, H.; Yang, L.; Ouyang, A.; He, Y.; Liu, Y. High Speed Railway Fastener Defect Detection by Using Improved YoLoX-Nano Model. Sensors 2022, 22, 8399. [Google Scholar] [CrossRef]
  17. Wei, D.; Wei, X.; Jia, L. Automatic Defect Description of Railway Track Line Image Based on Dense Captioning. Sensors 2022, 22, 6419. [Google Scholar] [CrossRef]
  18. Li, L.; Wang, Z.; Zhang, T. GBH-YOLOv5: Ghost Convolution with BottleneckCSP and Tiny Target Prediction Head Incorporating YOLOv5 for PV Panel Defect Detection. Electronics 2023, 12, 561. [Google Scholar] [CrossRef]
  19. Fu, Y.; Li, X.; Ma, X. Deep-Learning-Based Defect Evaluation of Mono-Like Cast Silicon Wafers. Photonics 2021, 8, 426. [Google Scholar] [CrossRef]
  20. Xu, S.; Deng, J.; Huang, Y.; Ling, L.; Han, T. Research on Insulator Defect Detection Based on an Improved MobilenetV1-YOLOv4. Entropy 2022, 24, 1588. [Google Scholar] [CrossRef]
  21. Zohra, F.T.; Salim, O.; Masoumi, H.; Karmakar, N.C.; Dey, S. Health Monitoring of Conveyor Belt Using UHF RFID and Multi-Class Neural Networks. Electronics 2022, 11, 3737. [Google Scholar] [CrossRef]
  22. Li, G.; Zhao, S.; Zhou, M.; Li, M.; Shao, R.; Zhang, Z.; Han, D. YOLO-RFF: An Industrial Defect Detection Method Based on Expanded Field of Feeling and Feature Fusion. Electronics 2022, 11, 4211. [Google Scholar] [CrossRef]
  23. Huang, C.-Y.; Lin, I.-C.; Liu, Y.-L. Applying Deep Learning to Construct a Defect Detection System for Ceramic Substrates. Appl. Sci. 2022, 12, 2269. [Google Scholar] [CrossRef]
  24. Yadav, D.P.; Kishore, K.; Gaur, A.; Kumar, A.; Singh, K.U.; Singh, T.; Swarup, C. A Novel Multi-Scale Feature Fusion-Based 3SCNet for Building Crack Detection. Sustainability 2022, 14, 16179. [Google Scholar] [CrossRef]
  25. Mo, D.-H.; Wu, Y.-C.; Lin, C.-S. The Dynamic Image Analysis of Retaining Wall Crack Detection and Gap Hazard Evaluation Method with Deep Learning. Appl. Sci. 2022, 12, 9289. [Google Scholar] [CrossRef]
  26. Teng, S.; Liu, Z.; Li, X. Improved YOLOv3-Based Bridge Surface Defect Detection by Combining High- and Low-Resolution Feature Images. Buildings 2022, 12, 1225. [Google Scholar] [CrossRef]
  27. Du, F.-J.; Jiao, S.-J. Improvement of Lightweight Convolutional Neural Network Model Based on YOLO Algorithm and Its Research in Pavement Defect Detection. Sensors 2022, 22, 3537. [Google Scholar] [CrossRef]
  28. Wang, W.; Su, C.; Fu, D. Automatic detection of defects in concrete structures based on deep learning. Structures 2022, 43, 192–199. [Google Scholar] [CrossRef]
  29. Islam, M.M.; Hossain, M.B.; Akhtar, M.N.; Moni, M.A.; Hasan, K.F. CNN Based on Transfer Learning Models Using Data Augmentation and Transformation for Detection of Concrete Crack. Algorithms 2022, 15, 287. [Google Scholar] [CrossRef]
  30. Park, M.J.; Kim, J.; Jeong, S.; Jang, A.; Bae, J.; Ju, Y.K. Machine Learning-Based Concrete Crack Depth Prediction Using Thermal Images Taken under Daylight Conditions. Remote Sens. 2022, 14, 2151. [Google Scholar] [CrossRef]
  31. Mailyan, L.R.; Stel’makh, S.A.; Shcherban’, E.M.; Khalyushev, A.K.; Smolyanichenko, A.S.; Sysoev, A.K.; Parinov, I.A.; Cherpakov, A.V. Investigation of Integral and Differential Characteristics of Variatropic Structure Heavy Concretes by Ultrasonic Methods. Appl. Sci. 2021, 11, 3591. [Google Scholar] [CrossRef]
  32. Meoni, A.; D’Alessandro, A.; Saviano, F.; Lignola, G.P.; Parisi, F.; Ubertini, F. Strain Monitoring and Crack Detection in Masonry Walls under In-Plane Shear Loading Using Smart Bricks: First Results from Experimental Tests and Numerical Simulations. Sensors 2023, 23, 2211. [Google Scholar] [CrossRef] [PubMed]
  33. Bartoň, V.; Dvořák, R.; Cikrle, P.; Šnédar, J. Predicting the Durability of Solid Fired Bricks Using NDT Electroacoustic Methods. Materials 2022, 15, 5882. [Google Scholar] [CrossRef] [PubMed]
  34. Khotiaintsev, S.; Timofeyev, V. Assessment of Cracking in Masonry Structures Based on the Breakage of Ordinary Silica-Core Silica-Clad Optical Fibers. Appl. Sci. 2022, 12, 6885. [Google Scholar] [CrossRef]
  35. Loverdos, D.; Sarhosis, V. Automatic image-based brick segmentation and crack detection of masonry walls using machine learning. Autom. Constr. 2022, 140, 104389. [Google Scholar] [CrossRef]
  36. Hallee, M.J.; Napolitano, R.K.; Reinhart, W.F.; Glisic, B. Crack Detection in Images of Masonry Using CNNs. Sensors 2021, 21, 4929. [Google Scholar] [CrossRef]
  37. Dang, L.M.; Wang, H.; Li, Y.; Nguyen, L.Q.; Nguyen, T.N.; Song, H.-K.; Moon, H. Deep learning-based masonry crack segmentation and real-life crack length measurement. Constr. Build. Mater. 2022, 359, 129438. [Google Scholar] [CrossRef]
  38. Ziying, M.; Shaolin, H.; Xiaomin, H.; Ye, K. Fine Crack Detection Algorithm Based on Improved SSD. Int. J. Data Sci. Technol. 2022, 8, 43–47. [Google Scholar] [CrossRef]
  39. Duragkar, A.; Guhe, S.; Sortee, A.; Singh, S.; Chandankhede, C. Comparison Between YOLOv5 and SSD for Pavement Crack Detection. Lect. Notes Netw. Syst. 2023, 520, 257–263. [Google Scholar] [CrossRef]
  40. Xu, X.; Zhao, M.; Shi, P.; Ren, R.; He, X.; Wei, X.; Yang, H. Crack Detection and Comparison Study Based on Faster R-CNN and Mask R-CNN. Sensors 2022, 22, 1215. [Google Scholar] [CrossRef]
  41. Rajadurai, R.-S.; Kang, S.-T. Automated Vision-Based Crack Detection on Concrete Surfaces Using Deep Learning. Appl. Sci. 2021, 11, 5229. [Google Scholar] [CrossRef]
  42. Stel’makh, S.A.; Shcherban’, E.M.; Beskopylny, A.N.; Mailyan, L.R.; Meskhi, B.; Razveeva, I.; Kozhakin, A.; Beskopylny, N. Prediction of Mechanical Properties of Highly Functional Lightweight Fiber-Reinforced Concrete Based on Deep Neural Network and Ensemble Regression Trees Methods. Materials 2022, 15, 6740. [Google Scholar] [CrossRef] [PubMed]
  43. Beskopylny, A.N.; Stel’makh, S.A.; Shcherban’, E.M.; Mailyan, L.R.; Meskhi, B.; Razveeva, I.; Chernil’nik, A.; Beskopylny, N. Concrete Strength Prediction Using Machine Learning Methods CatBoost, k-Nearest Neighbors, Support Vector Regression. Appl. Sci. 2022, 12, 10864. [Google Scholar] [CrossRef]
  44. Beskopylny, A.N.; Mailyan, L.R.; Stel’makh, S.A.; Shcherban’, E.M.; Razveeva, I.F.; Beskopylny, N.A.; Dotsenko, N.A.; El’shaeva, D.M. The Program for Determining the Mechanical Properties of Highly Functional Lightweight Fiber-Reinforced Concrete Based on Artificial Intelligence Methods. Russian Federation Computer Program 2022668999. 14 October 2022. Available online: https://www.fips.ru/registers-doc-view/fips_servlet?DB=EVM&DocNumber=2022668999&TypeFile=html (accessed on 7 March 2023).
  45. Demidchik, N.N.; Tulepbergenov, D.B.; Kintonova, A.Z.; Glazyrina, N.S.; Furayeva, I.I.; Senkovskaya, A.A. Using Yolo for Mask Recognition. In Proceedings of the 2022 International Conference on Smart Information Systems and Technologies (SIST), Nur-Sultan, Kazakhstan, 28–30 April 2022. [Google Scholar]
  46. Dlužnevskij, D.; Stefanovič, P.; Ramanauskaitė, S. Investigation of YOLOv5 Efficiency in iPhone Supported Systems. Baltic J. Modern Computing 2021, 9, 333–344. [Google Scholar] [CrossRef]
  47. Beskopylny, A.N.; Stel’makh, S.A.; Shcherban’, E.M.; Razveeva, I.F.; Kozhakin, A.N.; Beskopylny, N.A.; Onore, G.S. Image Augmentation Program. Russian Federation Computer Program 2022685192. 21 December 2022. Available online: https://www.fips.ru/registers-doc-view/fips_servlet?DB=EVM&DocNumber=2022685192&TypeFile=html (accessed on 7 March 2023).
  48. Wang, H.; Lin, Y.; Xu, X.; Chen, Z.; Wu, Z.; Tang, Y. A Study on Long-Close Distance Coordination Control Strategy for Litchi Picking. Agronomy 2022, 12, 1520. [Google Scholar] [CrossRef]
  49. Zhu, L.; Geng, X.; Li, Z.; Liu, C. Improving YOLOv5 with Attention Mechanism for Detecting Boulders from Planetary Images. Remote Sens. 2021, 13, 3776. [Google Scholar] [CrossRef]
  50. EN 771-1:2011+A1:2015 Specification for Masonry Units—Part 1: Clay Masonry Units. Available online: https://standards.iteh.ai/catalog/standards/cen/c5c16e11-db44-4a0f-9c98-f94f78ffb7c8/en-771-1-2011a1-2015 (accessed on 24 April 2023).
  51. EN 771-2:2011+A1:2015 Specification for Masonry Units—Part 2: Calcium Silicate Masonry Units. Specifications. Available online: https://standards.iteh.ai/catalog/standards/cen/820e5c2e-548e-4ca6-8123-6e069f095b96/en-771-2-2011a1-2015 (accessed on 24 April 2023).
  52. Ali, S.B.; Wate, R.; Kujur, S.; Singh, A.; Kumar, S. Wall Crack Detection Using Transfer Learning-based CNN Models. In Proceedings of the 2020 IEEE 17th India Council International Conference (INDICON), New Delhi, India, 10–13 December 2020. [Google Scholar]
  53. Vrochidou, E.; Sidiropoulos, G.; Ouzounis, A.; Lampoglou, A.; Tsimperidis, I.; Papakostas, G.; Sarafis, I.; Kalpakis, V.; Stamkos, A. Towards Robotic Marble Resin Application: Crack Detection on Marble Using Deep Learning. Electronics 2022, 11, 3289. [Google Scholar] [CrossRef]
  54. Piyathilaka, L.; Preethichandra, D.M.G.; Izhar, U.; Kahandawa, G. Real-Time Concrete Crack Detection and Instance Segmentation using Deep Transfer Learning. Eng. Proc. 2020, 2, 91. [Google Scholar] [CrossRef]
Figure 1. Annotated image.
Figure 1. Annotated image.
Applsci 13 05413 g001
Figure 2. Image augmentation: (a) original image, (b) shift of the original image by a random value along the Ox and Oy axes, (c) image representation vertically, (d) image representation horizontally, (e) image rotation 90°, 180°, 270°, (f) apply filters to change brightness, contrast, and saturation of an image.
Figure 2. Image augmentation: (a) original image, (b) shift of the original image by a random value along the Ox and Oy axes, (c) image representation vertically, (d) image representation horizontally, (e) image rotation 90°, 180°, 270°, (f) apply filters to change brightness, contrast, and saturation of an image.
Applsci 13 05413 g002aApplsci 13 05413 g002b
Figure 3. YOLOv5s architecture.
Figure 3. YOLOv5s architecture.
Applsci 13 05413 g003
Figure 4. Defects on a facing brick sample. Colored circles show different types of defects.
Figure 4. Defects on a facing brick sample. Colored circles show different types of defects.
Applsci 13 05413 g004
Figure 5. Loss functions.
Figure 5. Loss functions.
Applsci 13 05413 g005
Figure 6. Computing Intersection over Union.
Figure 6. Computing Intersection over Union.
Applsci 13 05413 g006
Figure 7. Confusion Matrix.
Figure 7. Confusion Matrix.
Applsci 13 05413 g007
Figure 8. Results of the detector operation: (a,c,e) original image; (b,d,f) result of the detector operation.
Figure 8. Results of the detector operation: (a,c,e) original image; (b,d,f) result of the detector operation.
Applsci 13 05413 g008aApplsci 13 05413 g008b
Table 1. Basic training parameters of the YOLOv5s CNN.
Table 1. Basic training parameters of the YOLOv5s CNN.
NumParameterValue
1Number of images in the training set300 (60%)
2Number of images in the validation set100 (20%)
3Number of images in the test set100 (20%)
4BatchSize10
5Number of epochs500
6Number of iterations5000
7Learning rate0.01
8SolverStochastic gradient descent
Table 2. Model Quality Estimates.
Table 2. Model Quality Estimates.
NumParameterInstancesmAP0.50mAP0.50:0.95
1all8250.870.72
2broken corners980.840.68
3cracks1060.890.84
4inclusion610.860.60
5rust5600.880.77
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.

Share and Cite

MDPI and ACS Style

Beskopylny, A.N.; Shcherban’, E.M.; Stel’makh, S.A.; Mailyan, L.R.; Meskhi, B.; Razveeva, I.; Kozhakin, A.; El’shaeva, D.; Beskopylny, N.; Onore, G. Discovery and Classification of Defects on Facing Brick Specimens Using a Convolutional Neural Network. Appl. Sci. 2023, 13, 5413. https://doi.org/10.3390/app13095413

AMA Style

Beskopylny AN, Shcherban’ EM, Stel’makh SA, Mailyan LR, Meskhi B, Razveeva I, Kozhakin A, El’shaeva D, Beskopylny N, Onore G. Discovery and Classification of Defects on Facing Brick Specimens Using a Convolutional Neural Network. Applied Sciences. 2023; 13(9):5413. https://doi.org/10.3390/app13095413

Chicago/Turabian Style

Beskopylny, Alexey N., Evgenii M. Shcherban’, Sergey A. Stel’makh, Levon R. Mailyan, Besarion Meskhi, Irina Razveeva, Alexey Kozhakin, Diana El’shaeva, Nikita Beskopylny, and Gleb Onore. 2023. "Discovery and Classification of Defects on Facing Brick Specimens Using a Convolutional Neural Network" Applied Sciences 13, no. 9: 5413. https://doi.org/10.3390/app13095413

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop