1 Introduction

Today, the use of concrete in the field of structural issues is very widely used and one of the important materials in the construction of structures (Alshihri et al. 2019). Among the materials used in the construction of structures, concrete is considered more than other materials because of its suitable applications. Among the advantages of concrete, the use of which is increasing in structures, it can be mentioned its lower price, suitable hardness compared to steel, fire resistance and ease of implementation (Bui et al. 2020). One of the most important parameters to control in concrete structures is to ensure the compressive strength considered in concrete design during execution. Which is classified as one of the most important properties of concrete and it is necessary to estimate it at the right time.

Today, the use of concrete with higher strength that can withstand many deformations without failure is being considered. Extensive research is being done on increasing the strength of concrete with different fibers and even removing the reinforcement, so with the results obtained, it can be understood that adding steel fibers to smooth concrete increases its compressive strength and this increase in strength gradually. It is done gradually by adding different volume percentages and types of fibers. Also, by adding steel fibers in concrete, we can achieve a concrete with higher compressive strength, which is more economical, by increasing the number and size of rebars, or special considerations in the field of concrete mixing design (Li et al. 2022).

Predicting the mechanical properties of concrete reinforced with steel fibers based on artificial neural network models without the need to carry out any laboratory studies will save a lot of money in projects. Unlike classical methods in statistical theories, neural networks do not require any specific model or function along with limiting assumptions to linearize problems (Ramkumar et al. 2020).

Due to the ever-increasing developments in the construction industry, there is always a need to present new methods. On the other hand, determining concrete resistance parameters in a short time and with acceptable accuracy is one of the challenges facing the construction industry. Advances in computer science in recent years have introduced very practical and fast methods into the field of civil engineering and especially the estimation of concrete resistance parameters. In this research, by studying and examining existing algorithms such as Levenberg algorithm and artificial neural networks, it is possible to train an optimal network that can predict the resistance properties of concrete with minimal error.

2 Background research

In 2018 Alton et al. used neural network to estimate lightweight concrete containing steel fibers. For this purpose, cement grade of 35, 400 and 450kg/m3 was used in the mixing designes. In this research, the effect of different amounts of fibers on lightweight concrete was tested. In their experiment, they used fibers at the rate of 10, 20, 30,40,50,60kg/m3. 127 cylindrical samples with dimensions of 300*150mm were made in the laboratory. Their input parameters to the neural network included steel fibers, water, water-cement ratio, sand, gravel and super lubricant. The compressive strength of concrete could be measured in the laboratory by adjusting the laboratory materials. The specific dry weight of sand and gravel was measured in the laboratory as 1.15 and 0.92 kg/cm3, respectively. The fibers used in this experiment had a diameter of 0.75mm and a length of 60mm and a tensile strength of 1050 N/mm2. The results show that the neural network provides a suitable estimate of the data. Neural network can provide more appropriate estimation of data even in case of better training. In this research, due to the high correlation coefficient and the variety in the selection of different parameters, it can be expected that the neural network has more variety in solving different problems than the complex statistical methods (Altun et al. 2018).

To estimate the compressive strength of concrete containing steel fibers used the artificial neural network method in 2015 was another research that was done in this field. Based on the information they had, they designed their neural network based on the lowest error rate or MSE and the highest correlation coefficient or R. The results of their research show that the use of the neural network with the Gauss–Newton algorithm has performed well in this research with a slight difference, and the obtained predictions have a very good correlation with the real data (Uysal and Tanyildizi 2015).

In another research in 2019 Hameed MM studied Prediction of compressive strength of high-performance concrete: hybrid artificial intelligence technique. In the last decade, various methods were used to predict the behaviour of concrete. Meanwhile, the use of neural network has the lowest cost and the most efficiency. It was shown that the use of neural network has a small error. And after many tests, it was found that the results of the laboratory are in good agreement with the results of the neural network (Hameed and AlOmar 2019).

The sensitivity of constituent materials and density of concrete as network inputs and the compressive strength of concrete as the test target or output is study by Erdel In 2013. The neural network predicts and measures the 28-day compressive strength of concrete. In his research, Erdal made the mean square of the error as the evaluation criterion of the network in such a way that the least amount of error indicates the proper performance of the network. In this research, the results show that the artificial neural network measures the data with high accuracy and low error (Erdal 2013).

In 2020 Nagarajan D et al. study on a comparative prediction models for strength properties of LWA concrete using artificial neural network. In this study, Artificial Neural Network (ANN) model is constructed to predict the compressive strength, split tensile strength and flexural strength of lightweight aggregate concrete made of sintered fly ash aggregate. An empirical relationship between the compressive strength, split tensile strength, and flexural strength was developed and compared with that of experimental results. The models were formulated based on results obtained from laboratory experiments. The variables considered in the study are the quantity of cement and water-cement ratio. Feed forward neural network and Levenberg–Marquardt back propagation algorithm were used for training algorithm in ANN. Amongst the total data, approximately 70% of the data was considered for training, 15% for testing and the remaining 15% has been considered for validation. The developed models had more accuracy with minimum error and had a higher correlation with the correlation coefficients of 0.916 and 0.955 were obtained for the training and testing data of compressive strength prediction, 0.949 and 0.937 respectively for split tensile strength prediction, 0.926 and 0.928 respectively for prediction of flexural strength. The models were compared with the experimental data’s, and the results were discussed (Nagarajan et al. 2020).

In 2023, Pakazad et ell, investigate the Comparison of various machine learning algorithms used for compressive strength prediction of steel fiber-reinforced concrete. The least contributing factors include the maximum size of aggregates (Dmax) and the length-to-diameter ratio of hooked ISFs (L/DISF). Several statistical parameters are also used as metrics to evaluate the performance of implemented models, such as coefficient of determination (R2), mean absolute error (MAE), and mean of squared error (MSE). Among different ML algorithms, convolutional neural network (CNN) with R2 = 0.928, RMSE = 5.043, and MAE = 3.833 shows higher accuracy. On the other hand, K-nearest neighbor (KNN) algorithm with R2 = 0.881, RMSE = 6.477, and MAE = 4.648 results in the weakest performance (Pakzad et al. 2023).

According to the research of others, the use of neural network regarding the estimation of compressive strength of concrete containing waste steel fibers has not been done so far. For this purpose, in this research, the construction of concrete with waste steel fibers and the estimation of compressive strength were investigated by using neural network.

3 Design of neural network

The use of neural networks to model the mechanical properties of each type of concrete can produce very appropriate and accurate results, and by using neural networks to predict concrete strength only once using the modeled laboratory results and achieve instant and accurate resistance prediction (Asteris and Mokos 2020). It is done properly and reduces many concrete sampling costs. It is very beneficial to use these models to further investigate the effective parameters on all types of concrete. The use of more characteristics of aggregates, the type of cement used and the conditions of making the samples, among other input parameters, makes the prediction of resistance more accurate. In this research, to predict the compressive strength of concrete made with polymer fibers, perceptron model artificial neural networks and its combination with particle mass algorithm (to optimize the percentage of fiber consumption) have been used. Particle swarm optimization algorithm has been introduced with other names such as particle swarm algorithm and bird algorithm. The schematic diagram of how to use the neural network is shown in Fig. 1.

Fig. 1
figure 1

The scheme of using artificial neural network in mixing designes

4 The data used to test the artificial neural network

In order to collect the required data, the library method is used in such a way that a wide range of valid articles are studied and finally, after removing a series of inappropriate data, 45 samples from the design of lightweight concrete mixes containing waste and industrial steel fibers are considered for neural network modelling.

The data in Table 1 is intended as the input of the neural network, which is used to build and optimize the network.

Table 1 Neural network input data

5 The method of using artificial neural network of Multilayer Perceptron (MLP)

The number of neurons in the input layer is 11 neurons, after which 11 inputs will be induced into the network, and the output includes one neuron, which is the compressive strength of reinforced concrete with steel fibers and waste fiber. The Fig. 2 shows the method of working with a multilayer perceptron artificial neural network.

Fig. 2
figure 2

The method of working with a multilayer perceptron artificial neural network

To separate test data and training data randomly by the program, so that 75% of the data is used for the training process, 15% of the data is used for testing, and 15% is used for validation. Was taken the input layer receives the input data and sends it to the hidden layer neurons (10 neurons).

6 Data used in neural network

In order to predict the compressive strength of concrete mixed with different amounts of water, the amount of steel fibers, water, the amount of coarse grain, the amount of fine grain, the amount of cement and also the age of concrete were considered in Table 2 and the compressive strength of their concrete was also estimated. The increasing of cement content from 250 to 450 kg/m3 at middle levels of slump. Mixture proportions for 1 m3 of concrete [kg/m3].

Table 2 Data used in neural network

The mixes containing hooked industrial steel fibers and their 28-day compressive strength (tested by 150 mm cubic samples) were collected from the literature (Han et al. 2019; Zhu et al. 2019; Al-Baghdadi et al. 2021; Atiş and Karahan 2009; Caggiano et al. 2017; Graeff et al. 2009; Hu et al. 2018; Leone et al. 2018; Martinelli et al. 2015). Some of the mixes were omitted because of lacking the information of mixing components (such as fine aggregates, super plasticizer, etc.). Eventually, 45 mixes were selected for training the models in predicting the compressive strength of steel fiber reinforced concrete. The input information for training the neural network is the data of each of the mixing designs and the target data of compressive strength of concrete samples at the ages of 7, 28 and 60 days are considered, in total 135 data are considered as targets.

7 The structure of the neural network

The training of this neural network has been done with the help of Levenberg algorithm and using MATLAB software. In the structure of this network, 75% of the data is randomly considered as training data, 15% as target data and 15% of data as validation. As shown in the Fig. 3, the constructed neural network is stopped after 5 times of training and this point is considered as the best point to stop the training. The Fig. 3 shows the degree of correlation in each of the stages of training, evaluation and testing for the selected neural network.

Fig. 3
figure 3

The stopping point of the training in the desired neural network

Figure 4 shows the correlation between laboratory data and neural network regarding the data of training, evaluation and compressive resistance test in neural network.

Fig. 4
figure 4

Linear relationship between measured and estimated values of compressive strength using Levenberg's algorithm

The neural network built in this research has 6 hidden layers which was obtained by trial and error, 11 input layers, and 1 output layers, and the training results of this network are the final output layer. The desired neural network is trained with Levenberg algorithm.

The coefficient of determination or R2 is a measure that provides information about the goodness of fit of model. In the context of regression it is a statistical measure of how well the regression line approximates the actual data. It is therefore important when a statistical model is used either to predict future outcomes or in the testing of hypotheses. There are a number of variants, the one presented Eq. 1 widely used:

$$\begin{array}{c}{R}^{2}= 1 - \frac{Sum\ squared\ regression\ \left(SSR\right)}{total\ sum\ of\ squres\ \left(SST\right)}\\ =1-\frac{\sum {({y}_{i}-{\widetilde{y}}_{i})}^{2}}{\sum {({y}_{i}-\overline{y })}^{2}}\end{array}$$
(1)

Validate this statement just for some point in order to achieve the coefficient:

For point (0.2, 0.2)

$$\begin{array}{c} \hat{y}=1*Target+0.0022\\ =1*0.2+0.0022=0.2022\end{array}$$

The actual for y is 0.2.

$$\begin{array}{c}{r}_{1}= y_{i} - \hat{y}_{i}\\ =0.2-0.2022= -0.0022\end{array}$$

For point (0.3, 0.35)

$$\begin{array}{c} \text{Residual}\ = \text{actual y value} - \text{Predicted y value}\\ \hat{y} = 1\ \ast\ Target + 0.0022\\ = 1\ \ast\ 0.3 + 0.0022 = 0.3020\end{array}$$

The actual for y is 0.35.

$$\begin{array}{c} \text{Residual}\ = \text{actual y value} - \text{Predicted y value}\\ r_{1} = y_{i} - \hat{y}_{i}\\ =0.35-0.3022= 0.0478\end{array}$$

To find the residuals squared we need to square each of r1 and r2 and sum them.

$$\begin{array}{c}\sum(y_{i} - \hat{y}_{i}) =\sum {r}_{i}\\ ={r}_{1}^{2}+{r}_{2}^{2}={\left(-0.022\right)}^{2}+{\left(0.0478\right)}^{2}+\dots =0.0039688\end{array}$$

To find \(\sum {({y}_{i}-\overline{y })}^{2}\) first we need to find the mean of the y values.

$$\bar{y}=\frac{\sum y}{n}=\frac{0.2+0.35}{2}=0.275$$

Now we can calculate \(\sum (y_{i} - \bar{y})^{2}\)

$$\sum (y_{i} - \bar{y})^{2} ={\left(0.2-0.275\right)}^{2}+{\left(0.35-0.275\right)}^{2}+\dots =2.21125$$

Therefore

$$\begin{array}{c}{R}^{2}=1-\frac{Sum\ squared\ regression\ \left(SSR\right)}{total\ sum\ of\ squres\ \left(SST\right)}\\ =1-\frac{\sum (y_{i} - \tilde{y}_{i})^{2}}{\sum (y_{i} - \bar{y})^{2}}=1-0.00179=0.99821\end{array}$$

Correlation of training, testing and validation data shows that these data are correlated with each other with correlation coefficients of 0.99, 0.99 and 0.99%, respectively, and it shows that the well-designed neural network has the ability to predict the desired outputs.

8 Comparison of designed neural network results and laboratory results in predicting compressive strength

The results of the 7-day compressive strength estimated with the help of the neural network constructed with the results of the laboratory compressive strength are shown in Fig. 5.

Fig. 5
figure 5

Comparison of predicted values and experimental values 7-day compressive strength

As shown in Figs. 5 and 6, the 7-day compressive strength estimated by artificial neural network is very close to the compressive strength obtained in the laboratory.

Fig. 6
figure 6

Comparison between predicted values and experimental values of 7-day compressive strength

The results of the 28-day compressive strength estimated with the help of the neural network built with the results of the laboratory compressive strength are given in Fig. 7.

Fig. 7
figure 7

Comparison of predicted values and experimental values 28- day compressive strength

As shown in Figs. 7 and 8, the 28- day compressive strength estimated with the artificial neural network is very close to the compressive strength obtained in the laboratory.

Fig. 8
figure 8

Comparison between predicted values and experimental values of 28-day compressive strength

The results of the 60- day compressive strength estimated with the neural network built with the results of the laboratory compressive strength are given in Fig. 9.

Fig. 9
figure 9

Comparison of predicted values and experimental values 60-day compressive strength

As shown in Figs. 9 and 10, the 60-day compressive strength estimated with the artificial neural network is very close to the compressive strength obtained in the laboratory.

Fig. 10
figure 10

Comparison between predicted values and experimental values of 60-day compressive strength

9 Conclusion

The results shows that the ANN has the ability to estimate the compressive strength of concrete at different ages.

The use of steel fibers in reinforced concrete increases the compressive strength of the samples, and this increase in strength has been done gradually. Also, the increase in compressive strength resulting from this increase in the percentage of fibers can be considered due to the proper placement of fibers and their uniform distribution in the cement matrix, or in other words, the optimal number of desired fibers in the concrete itself.

The compressive strength ANN model was trained by using the Levenberg algorithm, The input information for training the neural network is the data of each of the mixing designs and the target data of compressive strength of concrete samples at the ages of 7, 28 and 60 days are considered, in total 135 data are considered as targets. Out of this number, 101 samples were used for training and 20 samples were used for testing. These samples were randomly and experimentally selected and after normalizing the data, they were given to the grid to estimate the compressive strength of concrete. The predicted values were fairly close to the experimental results for both the training and testing data sets in the proposed model. The compressive strengths predicted by the neural network have shown a correlation of about 99% for the test data, which indicates the proper performance of the neural network in data analysis.

Predicting the mechanical properties of concrete reinforced with steel fibers based on artificial neural network models without the need to perform any laboratory studies can save a lot of costs in projects. Because experiment results and ANN.

Model exhibited good correlation, the proposed ANN is a valid alternative approach to prediction and programming using artificial neural networks.

Unlike the classic methods in statistical theories, neural networks do not need any specific model or function along with limiting assumptions to linearize the problem.