A method for predicting the cost of renovation of existing buildings
By generating pseudo data using a Generative Adversarial Network (GAN) and processing the data using a Self-Attention Mechanism Neural Network (SANN), the problem of cost prediction complexity and accuracy in existing building renovation projects is solved, achieving more efficient and accurate renovations. Cost forecasting to support the successful implementation of building renovation projects.
Patent Information
- Application Number
- CN202410781067.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-06-18
AI Technical Summary
Cost predictions in existing building renovation projects are complex and inaccurate, lacking detailed data basis. Traditional methods are difficult to handle complex data and individual differences, and are greatly affected by external factors, making it difficult to achieve dynamic adjustments.
Generative adversarial network (GAN) is used to generate pseudo data similar to the distribution of the real building renovation data set, and combined with self-attention mechanism neural network (SANN) to train and predict the data. The data is processed through binning and entity embedding layers to improve predictions. Precision and efficiency.
It significantly improves the accuracy and efficiency of building renovation cost predictions, overcomes the limitations of traditional methods, provides more accurate and reliable cost predictions, and supports the successful implementation of building renovation projects.
Smart Images

Figure CN118350880B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of machine learning, and in particular relates to a method for predicting the cost of existing building renovation. Background Art
[0002] With the acceleration of urbanization and the increase in the service life of buildings, the renovation and upgrading of existing buildings has become an indispensable and important part of urban development. Due to many restrictions such as economic conditions, construction technology, and design standards, early buildings have problems such as insufficient earthquake resistance, low fire protection performance, high operating energy consumption, and poor use functions. As time goes by, the safety and use functions of these buildings are gradually unable to meet modern standards and social needs. Renovation and upgrading of existing buildings can not only extend their service life and improve their use functions, but also save social resources and achieve the goal of energy conservation and emission reduction.
[0003] Cost prediction of existing building renovation projects is a complex and critical task. Due to their age, the information of many existing buildings during the construction process has been lost or damaged, resulting in a lack of detailed cost estimation basis during the renovation process. In addition, the conditions and renovation needs of each existing building are different. The renovation cost has large individual differences due to differences in factors such as the degree of damage, building structure type, and renovation content. The renovation cost is affected by multiple factors, and there is a complex nonlinear relationship between these factors. Traditional cost prediction methods are difficult to handle these complex data. Moreover, external environmental factors such as material prices and labor costs change over time, which puts forward the need for dynamic adjustment of the prediction of renovation costs. Traditional engineering project cost prediction methods mainly include qualitative methods and quantitative methods. Qualitative methods such as expert scoring methods and empirical estimation methods rely on expert experience and are easily affected by subjective factors. Quantitative methods such as moving average methods, exponential smoothing methods, and gray prediction methods are not affected by subjective factors, but have high requirements on data and are difficult to handle complex relationships between data. Building renovation cost data is difficult to collect. In order to solve these problems, the present invention proposes a generative adversarial network (GAN) combined with a self-attention neural network (Self-Attention Neural Network). A cost prediction method for existing building renovation based on the SANN (Status Allocation Network).
[0004] By processing and quantifying the small amount of collected data, a building renovation cost data set is obtained, and then the data set is expanded through the GAN model to obtain a large number of data samples, thereby achieving the purpose of data expansion. Subsequently, SANN is used to train, verify and test the generated data, which significantly improves the accuracy and efficiency of renovation cost prediction. Compared with other prediction models, the GAN-SANN building renovation cost prediction model has significant advantages in prediction accuracy and efficiency. This method provides a new way to quickly calculate the cost of existing building renovation projects and has broad application prospects. By introducing deep learning technology, especially GAN and SANN models, the limitations of traditional methods in the prediction of existing building renovation costs can be effectively overcome, the accuracy and reliability of the prediction can be improved, and strong technical support can be provided for the successful implementation of building renovation projects. Summary of the invention
[0005] The present invention provides a method for predicting the cost of existing building renovation. In order to solve the problems of few samples and insufficient sample quantity, it is proposed to use a GAN model to generate pseudo data with a distribution similar to that of a real building renovation data set. In addition, a SANN model is introduced to train and predict the expanded data. The model converts the original data through a binning and entity embedding layer, and processes the original data into data suitable for input into a self-attention layer. Subsequently, the self-attention layer fully improves the accuracy of building renovation cost prediction by mining the potential features of the data and the correlation between the attributes.
[0006] In order to realize the above-mentioned technical solution, the present invention specifically comprises the following steps:
[0007] S1. Collect data sets related to building renovation costs, including relevant attribute values and target variables, and perform preprocessing operations on the collected data;
[0008] S2, adoption Normalization: normalize the building renovation cost dataset described in S1, and divide the normalized data into a training set and a test set;
[0009] S3. Use the GAN model to expand the data of the building renovation cost training set. The specific steps are as follows:
[0010] S31. The generator in the GAN model receives a noise data that follows a Gaussian distribution. The output of the generator is a pseudo data. The generator tries to deceive the discriminator as much as possible.
[0011] S32. The discriminator in GAN receives real data and fake data. The discriminator needs to be trained continuously to distinguish real data from fake data as much as possible.
[0012] S33, repeating steps S31 and S32 until the generator and the discriminator reach the set epoch parameter value, merging the expanded pseudo data with the real training set to form a new training set;
[0013] S4. Use the SANN model to fit the new training set. The specific steps are:
[0014] S41, using the decision tree binning strategy to perform binning on the new training set described in step S33, and after the binning is completed, calculating the center value of each box;
[0015] S42. For each feature value, calculate the inverse of the distance from the center value of each box to determine the embedding weight, use the function to normalize these weights, multiply the normalized weights by the weights of the embedding layer, and sum the results to obtain the embedding representation of the feature, and repeat this step for each feature;
[0016] S43, aggregate the embedding vectors of all features into an embedding matrix as the input of the model's self-attention layer;
[0017] S5. Input the embedding vector into the self-attention layer. The output of the self-attention layer passes through the feed-forward layer to output the final predicted result.
[0018] Furthermore, in step S1, the building renovation cost data includes eight features, namely, floor area, building area, number of floors, structure type, foundation type, staircase area, on-site environmental conditions, and door and window area. In addition, there is a target variable cost. Samples with a large number of missing values in the collected data are deleted, and a small number of missing attributes are filled with the mean.
[0019] Furthermore, in step S2, the data collected in step S1 is normalized to eliminate the differences in attribute values due to different units. The normalization formula is as follows:
[0020] ;
[0021] In the formula, is the value of the building renovation cost data before normalization, is the normalized value of the building renovation cost data, is the minimum value in the building renovation cost data, It is the maximum value in the building renovation cost data.
[0022] Furthermore, in step S3, the loss function of the generator described in S31 is:
[0023] ;
[0024] In the formula, To minimize the loss function of the generator, is the noise that follows Gaussian distribution, is the output of the generator after receiving noise, is the judgment value of the discriminator on the data generated by the generator, The smaller it is, the more realistic the building renovation cost data generated by the generator is; the training result of step S31 is that the generator generates pseudo data with a distribution similar to that of real data, and the discriminator cannot distinguish between real data and pseudo data.
[0025] Furthermore, in step S3, the loss function of the discriminator described in S32 is:
[0026] ;
[0027] In the formula, To maximize the loss function of the discriminator, is the output of the discriminator for the real data, is the judgment value of the discriminator on the data generated by the generator, and The difference is used as the output value of the discriminator. The smaller the difference is, the higher the performance of the discriminator is. The training result in step S32 is that the output value of the discriminator is close to 0, that is, the discriminator cannot distinguish between real data and false data.
[0028] Furthermore, in step S4, the number of boxes divided by the decision tree in step S41 is 40, and the split point that can maximize the information gain is selected as the optimal split point. The information gain formula is as follows:
[0029] ;
[0030] In the formula, is the information gain value, For the The probability of the class, is the number of categories, each leaf node represents a bin, which includes the intervals of all split points on the path from the root node to the leaf node. The generated bins are used to transform the original data, and the continuous variables are mapped to the corresponding bin intervals. The binning operation can not only reduce the interference of noise on the model but also simplify the complexity of continuous data, so that the model can more easily capture the nonlinear relationship in the data. By converting continuous features into "category" features, entity embedding can be used to learn the vector representation of these "categories".
[0031] Further, in step S4, S42 determines the embedding weight by calculation , The calculation formula is as follows:
[0032] ;
[0033] In the formula, is the embedding weight, For the sample properties, For the The center value of the box, is a constant with a value of 1e-7. For data With box The distance to the center value; and the weights of the embedding layer Multiply to get features The embedding representation is repeated for all features. The formula is as follows:
[0034] ;
[0035] In the formula, Features The embedding representation of is the embedding weight, is the weight of the embedding layer, Indicates the number of bins.
[0036] Further, in step S4, S43 all features Aggregate into an embedding matrix , the formula is as follows:
[0037] ;
[0038] In the formula, is the embedding vector of all features of the sample, is the embedding layer weight, is the embedding matrix;
[0039] In step S43, the original data is converted into a data format suitable for the input of the self-attention layer, the attributes of the sample are converted into an embedding vector, and each sample is converted into an embedding matrix. Through entity embedding, the model can more effectively learn and capture the complex relationships within the features, especially when some relationships are not easy to represent in the original space. The principle is to calculate the distance from each feature value to each center value.
[0040] Furthermore, in step S5, the data processed by the entity embedding layer is input into the self-attention layer. The principle formula of the self-attention layer is as follows:
[0041] ;
[0042] In the formula, is a constant, is the query matrix, which is used to query information at other locations and measure the relevance of the current input to other inputs. is the feature at each position in the input sequence, used to match the query matrix, for The transposed matrix of The feature value of each position in the input sequence is calculated, and the correlation calculation result will be used for weighted summation to generate the output of self-attention, and the output value will be calculated by the neuron to obtain the final prediction value.
[0043] In summary, by adopting the above-mentioned technical method, the beneficial effects of the present invention are as follows: the technical solution provided by the present invention proposes a data generation technology GAN, which innovatively uses the adversarial training of the discriminator and the generator in GAN to generate pseudo data similar to the real data. The adversarial training mechanism of GAN can not only generate high-quality pseudo data, but also effectively avoid potential biases and deficiencies in the data set, thereby improving the diversity and representativeness of the data set. At the same time, the SANN model is introduced to effectively learn the data set, thereby improving the prediction accuracy of the building renovation cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 The figure is a flow chart of a method for predicting the cost of renovation of existing buildings.
[0045] Figure 2 This is the structural diagram of the GAN model.
[0046] Figure 3 This is the structure diagram of the self-attention mechanism.
[0047] Figure 4 This is the SANN model structure diagram.
[0048] Figure 5 This is the fitting diagram of the predicted value and the true value of the GAN-SANN model. DETAILED DESCRIPTION
[0049] The technical method in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, rather than all the embodiments; based on the embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0050] See also Figure 1-Figure 5 , the present invention provides a technical solution: the present invention aims to propose a data generation technology GAN and a SANN model for predicting building renovation costs, and provides an existing building renovation cost prediction method, the specific steps are as follows Figure 1 shown.
[0051] S1. Collect data sets related to building renovation costs, including relevant attribute values and target variables. The building renovation cost data contains eight features, namely, floor area, building area, number of floors, structure type, foundation type, staircase area, on-site environmental conditions, and door and window area. In addition, there is a target variable cost. Samples with a large number of missing values in the collected data are deleted, and a small number of missing attributes are filled with the mean. The missing value filling formula is as follows:
[0052] ;
[0053] In the formula, The value of the building renovation cost to be filled in for calculation, is the number of samples in the building renovation cost dataset, The numerical values of other samples of building renovation cost except missing values of this attribute.
[0054] Furthermore, in step S2, after cleaning and filling missing values of the data collected in step S1, Normalization is performed on the building renovation cost dataset, and the original data is linearly transformed so that the result value is mapped between 0 and 1 to eliminate the difference in attribute values caused by different units. The normalization formula is as follows:
[0055] ;
[0056] In the formula, is the value of the building renovation cost data before normalization, is the normalized value of the building renovation cost data, is the minimum value in the building renovation cost data, It is the maximum value in the building renovation cost data.
[0057] Furthermore, in step S31, the generator in the GAN model receives a noise data that obeys a Gaussian distribution, and the output of the generator is a pseudo data, and the generator deceives the discriminator as much as possible; the loss function of the generator in S31 is:
[0058] ;
[0059] In the formula, To maximize the loss function of the discriminator, is the output of the discriminator for the real data, is the judgment value of the discriminator on the data generated by the generator, and The difference is used as the output value of the discriminator. The smaller the value, the higher the performance of the discriminator.
[0060] refer to Figure 2 Generator part, the generator receives random noise that conforms to the normal distribution , Generate fake samples through the generator , followed by the pseudo sample The discriminator outputs a judgment value; the training result of step S31 is that the generator generates pseudo data that is similar to the distribution of real data, and the discriminator cannot distinguish between real data and pseudo data.
[0061] Furthermore, in step S32, the discriminator in the GAN receives real data and fake data, and the discriminator needs to be continuously trained to distinguish real data from fake data as much as possible. The loss function of the discriminator in S32 is:
[0062] ;
[0063] In the formula, To maximize the loss function of the discriminator, is the output of the discriminator for the real data, is the judgment value of the discriminator on the data generated by the generator, and The difference is used as the output value of the discriminator. The smaller the value, the higher the performance of the discriminator.
[0064] refer to Figure 2 The discriminator receives real samples. And generate samples , while the discriminator strives to distinguish the real data And the pseudo data generated by the generator , the two are trained against each other. In the training process of GAN, the discriminator usually uses Activation function, which converts the output into a probability prediction for a binary classification problem, The formula is as follows:
[0065] ;
[0066] In the formula, For the discriminator in GAN The input value of the layer;
[0067] The training result in step S32 is that the output value of the discriminator is close to 0, that is, the discriminator cannot distinguish between real data and false data.
[0068] Further, steps S31 and S32 are repeated until the generator and the discriminator reach the set epoch parameter values. The present invention determines that the epoch value range is between 100 and 10000, and the expanded pseudo data is merged with the real training set to form a new training set.
[0069] Furthermore, in step S4, the training set data is binned using the decision tree binning strategy. After the binning is completed, the center value of each box is calculated. The center value calculation formula is as follows:
[0070] ;
[0071] In the formula, For the The center value of the box, For the box values, is the number of data in the box; the number of boxes divided by decision tree in S41 is 40, and the split point that can maximize the information gain is selected as the optimal split point. The information gain formula is as follows:
[0072] ;
[0073] In the formula, is the information gain value, For the The probability of the class, is the number of categories, each leaf node represents a bin, which contains the intervals of all split points on the path from the root node to the leaf node. The generated bins are used to transform the original data and map the continuous variables to the corresponding bin intervals.
[0074] refer to Figure 3 Binning operation: The data of attribute s is divided into 40 boxes through the decision tree binning strategy. The binning operation can not only reduce the interference of noise on the model but also simplify the complexity of continuous data, so that the model can more easily capture the nonlinear relationship in the data. By converting continuous features into "category" features, entity embedding can be used to learn the vector representation of these "categories".
[0075] Furthermore, in step S42, for each feature value, the inverse of the distance to the center value of each bin is calculated to determine the embedding weight, and these weights are normalized using a function, and the normalized weights are multiplied by the weights of the embedding layer, and the results are summed to obtain the embedding representation of the feature. This step is repeated for each feature, and the embedding weight is determined by calculation. , The calculation formula is as follows:
[0076] ;
[0077] In the formula, is the embedding weight, For the sample properties, For the The center value of the box, is a constant with a value of 1e-7. For data With box The distance to the center value; and the weights of the embedding layer Multiply to get features The embedding representation is repeated for all features. The formula is as follows:
[0078] ;
[0079] In the formula, Features The embedding representation of is the embedding weight, is the weight of the embedding layer, Indicates the number of bins.
[0080] refer to Figure 3 In the entity embedding part, the value of the s attribute is calculated by calculating the inverse of the distance from the center value of each box and the center value of each bin to determine the embedding weight. These weights are normalized using a function, and the normalized weights are multiplied by the weights of the embedding layer and the results are summed to obtain the embedding representation of the feature.
[0081] Further, in step S4, S43 all features Aggregate into an embedding matrix , the formula is as follows:
[0082] ;
[0083] In the formula, is the embedding vector of all features of the sample, is the embedding layer weight, is the embedding matrix;
[0084] In step S43, the original data is converted into a data format suitable for the input of the self-attention layer, the attributes of the sample are converted into an embedding vector, and each sample is converted into an embedding matrix. Through entity embedding, the model can more effectively learn and capture the complex relationships within the features, especially when some relationships are not easy to represent in the original space. The principle is to calculate the distance from each feature value to each center value.
[0085] Furthermore, in step S5, the data processed by the entity embedding layer is input into the self-attention layer, and the embedding matrix is input ,like Figure 4 As shown, through three different linear transformation matrices , and Convert and generate query vectors respectively , key vector Sum value vector , through the query vector and key vector The dot product operation between them is used to determine the similarity, as shown in the formula:
[0086] ;
[0087] In the formula, for and similarity;
[0088] After calculating the similarity, use Normalization, as shown in the formula:
[0089] ;
[0090] Calculate the output of each unit after the self-attention layer, as shown in the formula:
[0091] ;
[0092] The principle formula of the self-attention layer is as follows:
[0093] ;
[0094] In the formula, is a constant, is the query matrix, which is used to query information at other locations and measure the relevance of the current input to other inputs. is the feature at each position in the input sequence, used to match the query matrix, for The transposed matrix of The feature value of each position in the input sequence is calculated, and the correlation calculation result will be used for weighted summation to generate the output of self-attention, and the output value will be calculated by the neuron to obtain the final prediction value.
[0095] like Figure 5As shown in the figure, the degree of fit between the real data and the predicted value, where the curve is the real cost data, and the dots are the predicted data of the GAN-SANN model. It can be seen from the figure that the difference between the predicted value and the real value is small, which can meet the actual needs; the present invention provides a data generation technology GAN, which generates pseudo data that is highly similar to the real data by innovatively using the adversarial training of the discriminator and the generator in GAN. This method provides a reliable and efficient technical means for the generation of building renovation cost data sets. Compared with traditional data generation methods, the adversarial training mechanism of GAN can not only generate high-quality pseudo data, but also effectively avoid potential deviations and deficiencies in the data set, thereby improving the diversity and representativeness of the data set. At the same time, the present invention introduces a method based on S The learning method of the ANN model can effectively learn and model the generated data set. The SANN model has strong adaptive capabilities and can automatically adjust its own parameters according to changes in input data, thereby more accurately capturing the complex changing laws of building renovation costs. Through in-depth study and analysis of the data set, the SANN model significantly improves the accuracy of building renovation cost prediction. In summary, the technical solution of the present invention not only solves the problem of generating building renovation cost data, but also improves the accuracy of building renovation cost prediction by introducing the SANN model, providing solid technical support for cost control and budget management of building renovation projects. This method has high practical value and broad application prospects, and is expected to be widely promoted and applied in the field of construction engineering.
Claims
1. A method for predicting the cost of renovation of existing buildings, It is characterized in that The following steps are involved: S1. Collect data sets related to building renovation costs, including relevant attribute values and target variables, and perform preprocessing operations on the collected data; S2, normalizing the data set described in step S1 using Max-Min normalization, and dividing the normalized data into a training set and a test set; S3. Introduce the GAN model to expand the data of the building renovation cost training set. The specific steps are as follows: S31. The generator in the GAN model receives a noise data that follows a Gaussian distribution. The output of the generator is a pseudo data. The goal of the generator is to deceive the discriminator as much as possible. S32. The discriminator in GAN receives the real data and pseudo data of the building renovation cost and distinguishes them. The discriminator needs to be continuously trained to improve its ability to identify real data and pseudo data. S33, repeating steps S31 and S32 until the generator and the discriminator reach a preset number of epoch training times, and mixing the generated pseudo data with the real training set to form a new training set; S4. Introduce the SANN model to fit the new training set. The specific steps are: S41, applying the decision tree binning strategy to bin the new training set described in step S33, and calculating the central value of each bin; S42, for each feature value, calculate the inverse of the distance between it and the center value of each bin, which is used to determine the embedding weight, use the normalization function to process the embedding weight, multiply the normalized weight with the weight of the embedding layer and sum them to obtain the embedding representation of the feature, and repeat this operation for each feature; S43, aggregate the embedding vectors of all features into an embedding matrix as the input of the subsequent model layer; S5. Input the embedding matrix into the self-attention layer. The output of the self-attention layer is processed by the feedforward layer to generate the prediction result.
2. A method for predicting the cost of renovation of existing buildings according to claim 1, It is characterized in that In step S2, the data described in step S1 of claim 1 is normalized to eliminate the differences in attribute values due to different units. The Max-Min normalization formula is as follows: Where x is the value of the building renovation cost data before normalization, X normal is the normalized value of the building renovation cost data, x min is the minimum value in the building renovation cost data, x max It is the maximum value in the building renovation cost data.
3. A method for predicting the cost of renovation of existing buildings according to claim 1, It is characterized in that In step S3, the loss function of the generator described in S31 is: min G L(D,G)=-D(G(z)); In the formula, min G L(D, G) is the loss function that minimizes the generator, z is the noise that follows the Gaussian distribution, G(z) is the output of the generator after receiving the noise, D(G(z)) is the judgment value of the discriminator on the data generated by the generator, min G The smaller L(D, G) is, the more realistic the building renovation cost data generated by the generator is; the training result of step S31 is that the generator generates pseudo data with a distribution similar to that of real data, and the discriminator cannot distinguish between real data and pseudo data.
4. A method for predicting the cost of renovation of existing buildings according to claim 1, It is characterized in that In step S3, the loss function of the discriminator described in S32 is: max D L(D,G)=D(x)-D(G(z)); In the formula, max D L(D, G) is the loss function that maximizes the discriminator, D(x) is the output of the discriminator for real data, D(G(z)) is the judgment value of the discriminator for the data generated by the generator, and the difference between D(x) and D(G(z)) is the output value of the discriminator. The smaller the output value, the higher the performance of the discriminator. The training result in step S32 is that the output value of the discriminator is close to 0, that is, the discriminator cannot distinguish between real data and false data.
5. A method for predicting the cost of renovation of existing buildings according to claim 1, It is characterized in that In step S3, step S33 repeats steps S31 and S32 until the generator and the discriminator reach a preset number of epoch training times, and the pseudo data generated by the generator is mixed with the real training set to obtain a new training set.
6. A method for predicting the cost of renovation of existing buildings according to claim 1, It is characterized in that In step S4, the new training set obtained in step S33 is binned in step S41, and 40 bins are used for the decision tree binning. The split point that can maximize the information gain is selected as the optimal split point. The information gain formula is as follows: In the formula, H(D) is the information gain value, p k is the probability of the kth category, n is the number of categories, each leaf node represents a bin, which contains the intervals of all split points on the path from the root node to the leaf node. The generated bins are used to transform the original data and map the continuous variables to the corresponding bin intervals. After the bins are completed, the center value of each box is calculated. The formula for calculating the center value is as follows: In the formula, c j is the center value of the jth box, y s is the sth value in the box, and m is the number of data in the box.
7. A method for predicting the cost of renovation of existing buildings according to claim 1, It is characterized in that In step S4, S42 determines the embedding weight W by calculation ij , W ij The calculation formula is as follows: Where W ij is the embedding weight, x1′ i is the i-th attribute of the sample, c j is the center value of the jth box, ε is a constant with a value of 1e-7, |x1′ i -c j | is the data x1′ i With box c j The distance from the center value; W ij and the weight E of the embedding layer j Multiply to get feature x1′ i The embedding representation is repeated for all features. The formula is as follows: In the formula, R i is feature x1′ i The embedding representation W ij is the embedding weight, E j is the weight of the embedding layer, and N represents the number of bins.
8. A method for predicting the cost of renovation of existing buildings according to claim 1, It is characterized in that In step S4, S43, all the features R i Aggregate into an embedding matrix R, the formula is as follows: R = WE; Where W is the embedding vector of all features of the sample, E is the embedding layer weight, and R is the embedding matrix; In step S43, the building renovation cost data is converted into a data format suitable for the input of the self-attention layer, and the attributes of the samples are converted into embedding vectors. The principle of converting into embedding vectors is to calculate the distance from each eigenvalue to each center value, and each sample is converted into an embedding matrix; through entity embedding, the model can more effectively learn and capture complex relationships that are not easy to represent in the original space.
9. A method for predicting the cost of renovation of existing buildings according to claim 1, It is characterized in that In step S5, the data processed by the entity embedding layer is input into the self-attention layer. The principle formula of the self-attention layer is as follows: In the formula, is a constant, Q is the query matrix, which is used to query information at other positions and measure the correlation between the current input and other inputs. K is the feature at each position in the input sequence, which is used to match the query matrix. T is the transposed matrix of K, V is the eigenvalue of each position in the input sequence, and the correlation calculation result will be used for weighted summation to generate the output of self-attention, and the output value will be calculated by the neuron to obtain the final prediction value.
Citation Information
Patent Citations
Power distribution network measurement data missing reconstruction method based on generative adversarial and double semantic perception
CN110212528A
Technical engineering calculation method and system based on digital modeling
CN115169818A
Intelligent data virtual element block platform
CN116703340A
Intelligent stationing cost optimization method
CN117933456A
Neural network model cost budgeting method and device and electronic equipment
CN118195710A
