Figure 4: Example of image type for which experiment  1 
fails. 
For  these  types  of  images  of  brick  walls  of 
Figure  4,  experiment  1  failed  because  the  joining 
points of the bricks appeared as cracks; however, in 
reality, those were not cracks. The joining points of 
the bricks are dark and may appear similar to cracks. 
When using a large dataset for CNN training and for 
crack  detection,  then  most  similarity  between  the 
crack  images  of  large  training  dataset  and  these 
types of images of Figure 4 was observed, rendering 
experiment 1 a failure. 
Experiment  2  was  successful  for  these  types  of 
brick  walls,  as  shown  in  Figure  4,  because  sub-
datasets  were  generated,  using  which  the  CNN 
learning  was  performed.  For  crack  detection,  the 
learned  CNN  was  selected  by  matching  the  test 
image with the generated sub-datasets. The selected 
CNN  was  trained  using  the  sub-dataset  that 
contained  only  the  images  that  were  similar  to  the 
test image. Thus, experiment 2 was a success. 
The advantage of the proposed method is that the 
values of the performance metrics are improved for 
the test images of brick walls. However, a limitation 
of  the  method is  that  the threshold  value (C
D
) used 
for  the  Color Distance parameter  changes  with  a 
change in the images of the training dataset. 
6  CONCLUSIONS 
In this study, a new method consisting of sub-dataset 
generation  and  matching  was  proposed  to  improve 
the  performance  of  CNN  for the  crack detection  in 
brick  walls.  The  proper  learned  CNN  was  selected 
for crack detection by matching the attributes of the 
sub-datasets used for  learning  with those of  the test 
image. The results show that the proposed method 
improves  the  performance  of  crack  detection  in 
different types of brick walls. 
In  this  study,  the  images  of  the  training  dataset 
were  prepared  manually,  with  400  images  being 
prepared  for  CNN  learning.  The  dataset  generation 
by manual process is laborious and time consuming. 
For  this  reason,  manual  dataset  generation  is 
difficult in industrial practices.  
In  future  research,  we  plan  to  develop  a 
systematic  method  for  dataset  preparation  with  a 
capacity  to  produce  a  large  number  of  images  (as 
high as 10,000 images) for CNN learning. In detail, 
we  plan  to  develop  datasets  generation  method  not 
only  for  brick  walls  but  also  for  concrete  walls 
which will be used for the purpose of maintenance. 
Systematic  method  of  datasets  generation  will 
reduce  the  required  time  for  datasets  generation  as 
well as reduce the cost of maintenance. 
REFERENCES 
American  Society  of  Civil  Engineers  (ASCE),  (2017). 
Infrastructure Report Card. 
Andrushia,  A.  D.,  Anand  N.,  Godwin,  I.  A.  (2018). 
Analysis  of  edge  detection  algorithms  for  concrete 
crack  detection.  International journal of mechanical 
engineering and technology. 9(11), 689–695. 
Baratloo, A., Hosseini, M., Negida, A.,  Ashal, G. (2015). 
Simple  definition  and  calculation  of  accuracy, 
sensitivity and specificity. Emergency. 3 (2), 48–49. 
Bianconi,  F.,  Harvey,  R.,  Southam,  P.,  Fernandez,  A. 
(2011).  Theoretical  and  experimental  comparison  of 
different  approaches  for  colour  texture  classification. 
Journal of electronic imaging, 20 (4), 1–20. 
Cha,  Y.  J.,  Choi,  W.  (2017).  Deep  learning-based  crack 
damage detection using convolutional neural networks. 
Computer-aided civil and infrastructure engineering. 
32, 361–378. 
Choi, D., Jeon, Y., Lee, S. J., Yun J. P., Kim, S. W. (2014). 
Algorithm  for  detecting  seam  cracks  in  steel  plates 
using  a  Gabor  filter  combination  method.  Applied 
Optics. 53 (22), 4865–4872. 
Dais,  D.,  Bal,  I.,  E.,  Smyrou,  E.,  Sarhosis,  V.  (2021). 
Automatic  crack  classification  and  segmentation  on 
masonry surfaces using convolutional neural networks 
and transfer learning. Automation in construction. 125, 
1–18. 
Dung,  C.  V.,  Anh,  L.  D.  (2019).  Autonomous  concrete 
crack  detection  using  deep  fully convolutional  neural 
network. Automation in construction. 99, 52–58. 
Hoang,  N.  D.,  Nguyen,  Q.  L.,  Tran,  V.  D.  (2018). 
Automatic  recognition  of  asphalt  pavement  cracks 
using  metaheuristic  optimized  edge  detection 
algorithms  and  convolution  neural  network. 
Automation in construction, 94, 203–213. 
Huyan,  J.,  Li,  W.,  Tighe,  S.,  Zhai,  J.,  Xu,  Z.,  Chen,  Y. 
(2019).  Detection  of  sealed  and  unsealed cracks  with 
complex backgrounds using deep convolutional neural 
network. Automation in construction. 107, 1–14. 
Jacob,  K.,  Mark,  D.  J.,  Peter,  B.,  Mike,  M.,  Gordon,  M. 
(2019). A convolutional  neural network for  pavement 
surface crack segmentation using residual connections