Impact of Tuning Parameters in Deep Convolutional Neural Network Using a Crack Image Dataset

Mahe Zabin, Ho-Jin Choi, Md. Monirul Islam, Jia UddinarXiv 2025 · DOI

Abstract

This study investigates the influence of various hyperparameters—specifically pooling layers, activation functions, and optimizers—on the performance of Deep Convolutional Neural Networks (DCNNs) for crack detection. Using a balanced dataset of 800 crack images, the researchers evaluated multiple configurations to identify optimal settings for structural health monitoring tasks. The results indicate that a combination of Max Pooling, the Adam optimizer, and the Tanh activation function achieves superior classification accuracy, highlighting the sensitivity of DCNNs to internal component selection in niche binary classification tasks.

Introduction

Deep Learning has significantly advanced image recognition, yet selecting the right hyperparameters often remains a trial-and-error process, particularly for specialized datasets. In structural health monitoring, where detecting cracks in concrete or pavement requires high precision, understanding the impact of model "knobs" is crucial. This paper addresses the lack of a definitive configuration for small-scale binary classification by systematically testing the sensitivity of a standard DCNN to various internal components.

Methods

The study employed a DCNN architecture featuring two convolutional layers, two pooling layers, one dropout layer, and a final dense layer. To isolate the impact of specific parameters, the researchers conducted a comparative analysis across three categories:

  • Optimizers: SGD, AdaGrad, AdaDelta, RMSProp, and Adam.
  • Activation Functions: ReLU, Tanh, GeLU, ELU, SeLU, SiLU, Softmax, and Softplus.
  • Pooling Layers: Max Pooling vs. Average Pooling.
Overview of the DCNN tuning parameters including activation functions, pooling layers, and optimizers.

By maintaining a constant architecture and swapping these components, the study identifies how each choice affects training and validation accuracy.

Dataset

The experiments utilized a Crack Image Dataset consisting of 800 RGB images (227x227 pixels). The dataset is perfectly balanced, with 400 images labeled "Positive" (containing cracks) and 400 labeled "Negative" (no cracks). This controlled environment allows for a clear observation of how hyperparameter adjustments influence a model's generalization capabilities on limited data.

Sample images from the dataset showing (a) non-crack surfaces and (b) surfaces with cracks.

Results and Discussion

The study revealed several key insights into the behavior of DCNN components:

  • Max Pooling Superiority: Max Pooling consistently outperformed Average Pooling. By focusing on the most salient features and rejecting less relevant data, Max Pooling is better suited for identifying the thin, sharp features characteristic of cracks.
  • Tanh vs. ReLU: While ReLU is often preferred for avoiding vanishing gradients, Tanh achieved the highest training accuracy (100%) in this specific study. The authors suggest that Tanh's range (-1 to 1) may provide a more effective mapping for this binary task compared to ReLU's 0 to 1 range.
  • Adam Optimizer: Adam proved to be the most robust optimizer, successfully combining the benefits of AdaGrad and RMSProp to handle both sparse gradients and non-stationary objectives.

The top-performing configuration—Max Pooling + Adam + Tanh—reached a validation accuracy of 95.42%. Interestingly, while ReLU with Adam achieved a slightly higher validation accuracy of 96.67%, Tanh demonstrated greater stability during the training phase. Conversely, configurations using Softplus or AdaDelta performed poorly, often yielding results close to random chance (50% accuracy).

Conclusion

This research underscores the importance of hyperparameter tuning in specialized image classification. While the study was limited to a specific two-layer DCNN architecture and a relatively small dataset, it provides a valuable baseline for researchers in structural health monitoring. Future work will explore deeper architectures, such as ResNet or Inception, and a broader range of parameters like kernel sizes and dropout rates across larger, more diverse datasets.

Summary updated

Abstract

The performance of a classifier depends on the tuning of its parame ters. In this paper, we have experimented the impact of various tuning parameters on the performance of a deep convolutional neural network (DCNN). In the ex perimental evaluation, we have considered a DCNN classifier that consists of 2 convolutional layers (CL), 2 pooling layers (PL), 1 dropout, and a dense layer. To observe the impact of pooling, activation function, and optimizer tuning pa rameters, we utilized a crack image dataset having two classes: negative and pos itive. The experimental results demonstrate that with the maxpooling, the DCNN demonstrates its better performance for adam optimizer and tanh activation func tion.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Crack image dataset (negative and positive classes)DCNN with Adam optimizer, tanh activation, and max poolingTraining accuracy1split: train · pooling=max · optimizer=Adam · activation=tanh
Source quote
L92: 1
Crack image dataset (negative and positive classes)DCNN with Adam optimizer, tanh activation, and max poolingValidation accuracy0.9542split: val · pooling=max · optimizer=Adam · activation=tanh
Source quote
L93: 0.9542
Crack image dataset (negative and positive classes)DCNN with Adam optimizer, tanh activation, and average poolingTraining accuracy1split: train · pooling=average · optimizer=Adam · activation=tanh
Source quote
L94: 1
Crack image dataset (negative and positive classes)DCNN with Adam optimizer, tanh activation, and average poolingValidation accuracy0.9083split: val · pooling=average · optimizer=Adam · activation=tanh
Source quote
L95: 0.9083 gelu
BibTeX
@misc{zabin2025impact,
  author = {Mahe Zabin and Ho-Jin Choi and Md. Monirul Islam and Jia Uddin},
  title = {{Impact of Tuning Parameters in Deep Convolutional Neural Network Using a Crack Image Dataset}},
  year = {2025},
  eprint = {2506.03184},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.03184},
}
Figure