Abstract

A DNN-based cost prediction method is proposed for the difficult problem of cost calculation in engineering cost accounting, combined with deep neural networks. Firstly, we introduce the basic information of artificial neural network and select the DNN structure to calculate the engineering cost price according to the characteristics of the data related to engineering cost price. Secondly, the DNN-based engineering cost price prediction model is constructed, and the two types of index systems, engineering characteristics and list item characteristics, are used as model inputs. In addition, the total quotation and each subitem engineering quotation and tax are used as model outputs by analyzing previous relevant studies. Based on this, simulation experiments are conducted on the DNN-based engineering cost price prediction model, and it is concluded from the training model that the DNN model has a better prediction effect. Among them, the relative error of total price forecast by DNN is 4.203%, and the relative error of integrated unit prices V1 and V2 is 2.98% and 4.52%, respectively, with small relative error. Finally, by reasonably adjusting the integrated unit price, the cost price of the integrated unit price and the cost price of the total offer can be calculated.

1. Introduction

In recent years, with the continuous improvement of China’s economic level and comprehensive national power, construction projects have been developing, and more and more construction enterprises have been born. The surge of construction enterprises brings great pressure and challenges to the construction engineering market, and it is increasingly difficult for construction engineering to gain a foothold in the market and continue to grow and develop. With the slowdown of economic development, construction enterprises should enhance their competitiveness and base themselves on domestic and international markets. The primary task is to reduce the project cost scientifically. The cost of the enterprise is controlled within a reasonable plan to maximize the profit of the enterprise. Therefore, cost forecasting for construction enterprises is an inevitable trend in the current construction industry and is an extremely important task. However, most of the engineering cost forecasting methods on the market at present have problems such as unscientific methods and uncritical processes, which cannot effectively improve the competitiveness of enterprises and are not conducive to the long-term development of construction enterprises [17]. In this regard, Xu et al. proposed to use BP neural network to predict the project cost of substation and introduced sparrow search algorithm (SSA) to optimize the parameters of traditional BP algorithm. The results show that this method has high prediction accuracy. Sharqi and Bhattarai compared several machine learning algorithms such as ELM and PLS and used them to predict the cost of field channels. The results show that the SC model has great potential. Xiaodong et al. used SIMCA-P algorithm to predict the cost of dynamic real estate projects. The results show that the average error of prediction is 0.006582346, showing high accuracy. However, the above methods mainly use the traditional machine learning algorithm.

Based on this research, a DNN-based engineering cost price prediction model is constructed by combining the widely used deep learning and giving full play to its learning and classification characteristics. Through this model, the accurate prediction and classification of construction project cost are realized. It provides a scientific and effective cost prediction method for the construction industry, which has a certain practical significance. The deep learning algorithm to predict the project cost is also an innovation of this paper, giving full play to the characteristics of deep learning and improving the accuracy of prediction.

2. DNN

Compared with other neural network structures, the main feature of DNN is its excellent nonlinear processing capability. Thanks to the compact and efficient nonlinear mapping structure, DNN can handle mathematical and physical problems with larger datasets and more complex features. In addition, DNN can take full advantage of its own multiple hidden layer structure to train a large amount of data, and generally the accuracy of the results used for prediction will be higher. More layers indicate a more complex model, which has better nonlinear characteristics and can learn richer features. Theoretically, the links between the layers of the network structure are fully linked and the neurons of each layer can also be connected to each other [811]. Therefore, combined with experience, DNN is selected. The neural network structure of DNN is shown in Figure 1, which contains multiple hidden layers, an input layer, and an output layer.

As can be seen from the above figure, the DNN structure mainly consists of an input layer, a hidden layer, and an output layer. The network is characterized by the inclusion of multiple implicit layers. The input layer is represented as , which is an n-dimensional column vector. The input data can be wind power, wind speed, wind direction, temperature, etc. In the input layer, the activation function is the standard constant function, and the input quantity needs to be transformed by the standard constant function and then output to the first layer. denotes the weight parameter for the n implied layers and the threshold parameter . The data in the hidden layer are derived from the input of the upper layer. After nonlinear processing of the input variables using the activation function of this layer, the output of the processed data is then passed to the lower layer, and the final output combined with y is obtained, which is the value of wind power to be predicted.

The DNN can be expressed as follows [1215].

The output value after the data into the classification water processing is transferred to the hidden layer using the input layer, and the first relationship of hidden layer input and output is obtained and expressed aswhere denotes the output matrix of the first hidden layer and and denote the weight parameter and threshold parameter between the input layer and the first hidden layer, respectively.

If the first hidden layer variable is denoted as , i.e., the th variable, denotes the th cause in the th row of the weight matrix between the input layer and the first hidden layer, denotes the th variable value in the threshold vector between the input layer and the first hidden layer, and then each output value in is the value obtained from the original column vector transformed by the activation function as follows:

According to the principle of DNN, the output of the previous hidden layer is the input of the next hidden layer, and then the output expression of the th hidden layer of the DNN model is

The input quantity X is processed by the input layer and transmitted to the hidden layer, and after performing the hidden layer processing, it is transmitted to the output layer, which can be expressed aswhere and denote the weight parameter and the threshold parameter between the last hidden layer and the output layer, respectively, denotes the activation function of output layer in DNN.

The activation function is a tool for nonlinear processing of the output quantity of each layer, which can enhance the data processing and optimization ability of neural networks. The common activation function sigmoid can be expressed as [1619]where indicates the input variable and indicates the constant, which takes the value of 2.7183.

3. Cost Prediction Model Construction Based on DNN

Combining the good nonlinear mapping ability and strong generalization ability of DNN, this paper uses the DNN model to predict engineering cost.

3.1. Inputs to the DNN Model

There are many factors affecting the cost price of construction projects, and these factors influence and relate to each other. In order to analyze the project cost comprehensively, this paper refers to the research results of some scholars and divides these influencing factors into engineering characteristics and list item characteristics.

3.1.1. Engineering Characteristics

For the engineering characteristics, the indicators are divided as shown in Table 1.

3.1.2. List Item Characteristics

The list items are usually coded with 12 bits, and the first 9 bits of the code are set according to the different categories. Based on this, conversions are made between the inventory codes and the model. The last 3 bits of the code are coded in order from 001 according to the specific conditions of the construction drawings, and the item code cannot be repeated.

The list item characteristics are the same as the engineering characteristics, which need to be classified and given the corresponding values according to the description of the item characteristics, and if there is no subitem in the list, it will be given 0. Due to the large amount of inventory item data, quantification of the entire engineering characteristics has great complexity, so this paper takes the two subprojects of solid brick walls and beamed slabs as examples for quantification, as shown in Table 2.

3.2. Outputs of the DNN Model

When judging the project cost, we usually use methods such as checking and comparing to reasonably judge the total quotation and each subitem project quotation and tax, among which the total quotation and subitem project quotation are the main judging contents. For this feature, it is used as the output of the DNN model to reasonably predict the price, and thus a reference is provided for the expert’s evaluation. In summary, the inputs and outputs of the DNN model are shown specifically in Table 3.

3.3. DNN Structure Design
3.3.1. Network Parameter Selection

(1) Activation Functions. In order to make the DNN model more expressive, a nonlinear function needs to be introduced as the activation function. The commonly used activation functions include sigmoid function, ReLU function, and tanh function. Since the DNN model is prone to gradient disappearance or explosion when reverse transfer is performed, the ReLU function can solve this problem, and the convergence speed of the ReLU function is faster, so the ReLU function is used as the activation function in this paper. Its function image is shown in Figure 2.

(2) Loss Functions. The loss function is used to represent the difference between the true value and the predicted value of the model. If the loss function is smaller, the model has stronger fitting ability and higher precision. In general, the loss function is denoted by , and its standard form is [20]

(3) Weight Initialization. Before the model is trained, the weights need to be initialized. The current weight initialization methods include two main types: one is to initialize the weights to very small values, and the other is to set the weights to +1 and −1 with equal numbers. Considering that the second method is too subjective, in order to reach better effect of the model training, the first method is used in this paper to initialize the weights with random numbers in the range of that fit the normal distribution.

(4) Network Structure. The network structure mainly includes network nodes and hidden layer, which directly affect the performance of DNN. Generally, only one hidden layer is considered, and under this hidden layer, the optimal hidden node is found. Figure 3 shows the error of different nodes under a hidden layer after 500 calculations. According to the results of Table 4, when the hidden node is 23, the error is the smallest, but it is still difficult to meet the requirements.

Generally speaking, the more the hidden layers, the higher the accuracy of the model, so a DNN model with 2 hidden layers is used. After determining the number of hidden layers, the number of hidden layer nodes is determined. Generally speaking, if the number of nodes in the hidden layer is insufficient, it will cause poor learning ability of the model, thus increasing the error; if it is too large, it will cause overfitting phenomenon and reduce the generalization ability of the model. By analyzing the previous experience, the optimal ratio of the number of nodes in first hidden layer to that in second hidden layer is 3 : 1. Therefore, when the number of nodes in the two layers is set to 15 and 5, respectively, the final DNN structure is shown in Figure 3 [2124].

4. Simulation Experiments

4.1. DNN Model Training
4.1.1. Model Training Samples and Environment

The sample data of this model come from an engineering cost website, in which nearly 20 sets of engineering cost data from a certain region are selected as samples, including 15 sets of training samples and 5 set of testing samples. The model writing procedure uses the Spyder software in Python environment, and the model is trained using an improved BP algorithm that introduces a momentum term, which allows the error surface to avoid falling into local minimum and thus obtains a more optimal solution. Let the learning rate be 0.001, momentum coefficient be 0.8, iterations be 5000, and the error range be less than 0.001.

4.1.2. Model Training and Results

Before conducting the model training, the sample data need to be normalized to control the data output and input within the interval, and the error value is about 0.00289 after 5000 iterations of this model calculation, as shown in Figure 4. The fitted curves of the total quotation and the integrated unit price of the branch subitem project are shown in Figure 5, from which it can be seen that the curve fitting effect of the sample value and the actual value is consistent.

In order to compare the prediction effect of DNN, BP neural network is introduced while DNN prediction is carried out. The comparison results show that the prediction of DNN is closer to the real price, while the error between BP neural network and the real value is large. It is concluded that the prediction effect of DNN is better.

In order to verify the effectiveness of the DNN model in practical applications, the trained DNN model is used to test the test sample, i.e., by analyzing the test sample error, if it is within the error range, it means the DNN model has validity. In this paper, a set of test samples is randomly selected for testing, and the output values are shown in Table 5.

As can be seen from the above table, the relative errors between the output values of DNN model and the true values are all below 5%, which indicates that the DNN model can predict the engineering cost well.

4.2. Determination of Cost

The project cost has been predicted above, but the prediction result is not the cost price because (1) the model sample is random and does not consider factors such as individual enterprise management ability, so the predicted value of the model only belongs to the social average and (2) when the model is trained, its output value is the settlement price, including the enterprise profit, while the cost price should be the difference between the settlement price and the profit. Therefore, the model predictions need to be adjusted in order to obtain the cost price.

4.2.1. Cost Price of Branch Subitem Project

Considering the characteristics of the branch subitem project cost and the proportion of the integrated unit price, this paper adopts the weighted average algorithm to multiply the integrated unit price by the adjustment factor to obtain the cost price, and the adjustment method is shown in Table 6. Assuming that P denotes the cost price and V denotes the model output value, the adjustment equations are shown in equations (7) and (8) [2529].

Because of the different proportions of the various costs of the integrated unit price, statistics on the percentage of the integrated unit price costs are required. According to the first 9 digits of the code, the computer finds the matching list items, and using Table 6 as an example for proportional calculation, we can get the percentage of labor cost as follows:

In the same way, , , , and . Then, the cost coefficients of the integrated unit price are calculated. According to the relevant research, the labor costs, material costs, construction tool usage costs, and enterprise management costs are generally not lower than the average social components of 90%, 98%, 70%, and 70%, respectively, while some enterprises can make use of zero profit to expand the market, so the profit can be ignored. In this regard, the integrated unit cost factors are shown in Table 7.

Substituting the above table data into formula (7), the integrated unit price adjustment factor of solid brick wall can be calculated as 0.85. Since the integrated unit price output of the solid brick wall is $468, the cost price is

According to the above method, each integrated unit price can be adjusted to obtain the corresponding cost price. The total cost price of the total quotation can be obtained by aggregating the adjusted cost prices.

5. Conclusion

In summary, the key to solving the cost pricing problem lies in the accurate calculation of the project cost price. Based on previous research, this paper constructs a DNN engineering cost price prediction model, divides the engineering index system into two categories: engineering characteristics and project characteristics, and then randomly selects 20 sets of sample data to train and predict the model. The results show that the DNN prediction model has less error and can effectively predict the engineering cost. Since the engineering cost prediction is random in nature and the result output is the settlement price, the DNN prediction result is reasonably adjusted. Specifically, the weighted average algorithm is used to calculate the cost price of the integrated unit price of each subitem project and the cost of the total quotation, and finally the cost price of the whole project is obtained. Also, the study provides new ideas for the information budget of engineering cost.

Data Availability

The experimental data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest

The authors declare that they have no conflicts of interest.