Building structure damage identification method and system based on RBFNN and Bayesian integration
Through the combination of Latin hypercube sampling and Bayesian network, the problem that RBFNN relies on experience in parameter selection in building structure damage identification is solved, more accurate and robust damage identification is achieved, and the intelligence and automation of the system are enhanced.
Patent Information
- Application Number
- CN202410721221.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-09-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing technology, RBFNN relies on empirical adjustments for the selection of the number of hidden layer nodes, node centers and widths in building structure damage identification, resulting in unstable models and difficulty in achieving accurate identification.
Latin hypercube sampling technology is used to improve the accuracy of Monte Carlo simulation, combined with Bayesian network to integrate multiple information sources, reducing the empirical adjustment of RBFNN parameters, and improving the accuracy of damage identification through Bayesian inference.
It achieves accurate identification of building structure damage, improves the robustness and robustness of identification, reduces dependence on experience, enhances the intelligence and automation of the system, and detects potential risks in a timely manner.
Smart Images

Figure CN118709071A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of building engineering, and in particular to a method and system for identifying building structure damage based on RBFNN and Bayesian integration. Background Art
[0002] As buildings age, problems such as structural aging and material degradation will gradually become more prominent. Through regular building damage assessments, potential safety hazards such as cracks, leakage, and structural deformation can be discovered and resolved in a timely manner, thereby effectively preventing safety accidents.
[0003] Some existing technologies use radial basis function neural network (RBFNN) as a proxy model to predict building damage. Although it has certain effects, it also has some obvious disadvantages. The performance of RBFNN depends largely on the number of hidden layer nodes, node center and width, which mainly rely on empirical adjustment. Therefore, the traditional RBFNN model shows instability due to improper parameter selection.
[0004] To this end, the present invention proposes a building structure damage identification method and system based on RBFNN and Bayesian integration. Summary of the invention
[0005] In view of this, the embodiment of the present invention hopes to provide a method and system for identifying building structure damage based on RBFNN and Bayesian integration to solve or alleviate the technical problems existing in the prior art, that is, how to adjust the number of hidden layer nodes, node centers and widths without relying on experience to achieve building structure damage identification, and at least provide a beneficial option for this; the technical solution of the present invention is implemented as follows:
[0006] First, a building structure damage identification method based on RBFNN and Bayesian integration:
[0007] 1. Overview:
[0008] The present invention aims to solve the above technical problems. RBFNN is a forward neural network that describes the mapping relationship between input and output. By introducing LHS technology to approximate random sampling from multivariate parameter distribution, the accuracy of Monte Carlo simulation is improved, and the correlation between input variables is reduced, thereby improving the training efficiency and accuracy of the RBFNN proxy model. At the same time, multiple information sources are fused based on the Bayesian network to improve the accuracy of damage identification. The RBFNN does not rely on experience to adjust the number of hidden layer nodes, node centers and widths, so as to achieve damage identification of building structures.
[0009] (II) Technical solution:
[0010] The present invention aims to achieve the above technical requirements and includes the following steps S1 to S5.
[0011] 2.1 Step S1, data preparation:
[0012] Collect historical data of building structures in different damage states to form data set D, including structural response, environmental conditions and load conditions. The data can also be pre-processed by conventional cleaning, normalization and other operations to eliminate the impact of outliers and dimensional differences on model training.
[0013] There are N data samples, each of which consists of a structural response R, an environmental condition E, and a load case L. The data set D is:
[0014] D={(R1,E1,L1),(R2,E2,L2),...,(R N ,E N ,L N )};
[0015] Where: R i Represents the structural response data of the i-th sample. i Represents the environmental condition data of the i-th sample. i represents the load case data of the ith sample. N is the total number of samples in the dataset D.
[0016] 2.2 Step S2, Latin Hypercube Sampling (LHS):
[0017] For data set D, the parameters that need to be sampled are clearly defined as load conditions. The LHS technique is used to sample in the parameter space of data set D to generate a set of representative sample points.
[0018] Set the cumulative distribution function CDF of the load condition to F(x); perform sampling according to the following steps:
[0019] 1) Divide the CDF into M intervals of equal probability, that is, the probability of each interval is 1 / M.
[0020] 2) For each interval, find the corresponding quantile point x i , satisfying F(x i )=i-1 / M, where i=1,2,...,N.
[0021] 3) In each interval F -1 (i-1 / M,)FF -1 A point is randomly selected as a sample point within (i / N), where F -1 is the inverse function of CDF.
[0022] 4) Repeat the above process until M sample points are generated.
[0023] 2.3 Step S3, read the radial basis neural network (RBFNN) proxy model:
[0024] Read the network structure of RBFNN, including input layer, hidden layer and output layer. The input layer corresponds to the M sample points obtained by sampling, and the output layer corresponds to the degree of structural damage. Use the sample points generated by LHS and their corresponding structural response data to train RBFNN, adjust the network weights and parameters, so that the network can accurately map the relationship between input and output.
[0025] 2.3.1 Step S300, read the network structure:
[0026] Input layer: receives M sample points obtained by sampling as input data.
[0027] Hidden layer: Use radial basis function as activation function.
[0028] Output layer: outputs the degree of structural damage.
[0029] 2.3.2 Step S301, read radial basis function: Each neuron in the hidden layer uses a radial basis function to calculate the similarity between the input and the neuron center. Use Gaussian radial basis function:
[0030]
[0031] Where: φ j (x) is the output of the jth hidden layer neuron. x is the input vector. c j is the center of the jth hidden layer neuron. j is the width parameter of the jth hidden layer neuron.
[0032] 2.3.3 Step S302, linear combination: The output layer linearly combines the output of the hidden layer to generate the final structural damage degree prediction:
[0033]
[0034] Where: y is the output of the network, representing the degree of structural damage. j is the weight from the jth hidden layer neuron to the output layer. b is the bias term of the output layer. J is the number of hidden layer neurons.
[0035] 2.5 Model training:
[0036] Although the above step S3 constructs the RBFNN proxy model, it still needs to be trained before it can be implemented, including the following steps:
[0037] 2.5.1 Step 1: Data preparation:
[0038] Divide the dataset D into training set D train , test set D test , validation set D val .
[0039] 2.5.2 Step 2: RBFNN proxy model training:
[0040] Use the training set D train Train the RBFNN proxy model. During the training process, the model attempts to learn the mapping relationship from input data to output data through the backpropagation algorithm and the gradient descent optimization algorithm (SGD). The goal of the training process is to minimize the mean absolute error (MAE):
[0041]
[0042] Among them, y i is the true value, is the model prediction value.
[0043] 2.5.3 Step 3: Hyperparameter Optimization:
[0044] Hyperparameters (including learning rate, batch size, number of network layers, and number of neurons) have an important impact on the performance of the model. In order to select the optimal hyperparameter combination, the k-fold cross-validation method is used to divide the training data into k identical subsets, and then one of the subsets is used as the validation set and the remaining k-1 subsets are used as the training set for training. The optimal combination is selected by comparing the performance of different hyperparameter combinations on the validation set.
[0045] 2.5.4 Step 4: Monitor the training process:
[0046] During the training process, the mean absolute error (MAE) of the model is monitored by calculating the performance metric on the validation set at the end of each training cycle (epoch) to ensure that the model is gradually improving and is not overfitting if the performance on the validation set starts to degrade.
[0047] 2.5 Step S4, Bayesian network integration:
[0048] Based on the output Y of building structure damage identification, a Bayesian network is constructed. The Bayesian network integrates the output of RBFNN with historical data and real-time monitoring data.
[0049] 2.5.1 Step S400, defining nodes, including:
[0050] Y: represents the output of building structure damage identification, that is, the prediction result of RBFNN.
[0051] H: represents the damage-related information provided by historical data.
[0052] R: Represents damage-related information provided by real-time monitoring data.
[0053] D: Represents the final determined degree of damage to the building structure.
[0054] In a Bayesian network, it is necessary to define the conditional probability distribution between nodes. P(D|Y,H,R) represents the probability distribution of the degree of damage to the building structure given the RBFNN output, historical data, and real-time monitoring data. Then, we first assume that the output of the RBFNN, historical data, and real-time monitoring data are independent of each other. Given the degree of damage d to the building structure, we can use the Bayesian theorem to calculate the posterior probability:
[0055] P(D|Y,H,R)=P(Y|D)P(H|D)P(R|D)P(D) / P(Y,H,R);
[0056] Where: P(D|Y,H,R) is the probability that the damage degree of the building structure is D given Y, H and R. P(Y|D), P(H|D) and P(R|D) are the conditional probability distributions of RBFNN output, historical data and real-time monitoring data respectively when the damage degree D is given. P(D) is the prior probability distribution of the damage degree of the building structure. P(Y,H,R) is the joint probability distribution of RBFNN output, historical data and real-time monitoring data, which is used as a normalization constant.
[0057] 2.5.2 Step S401, calculate probability distribution:
[0058] The maximum likelihood estimation or Bayesian estimation method is used to calculate the probability value of P(D|Y,H,R) to form the recognition result a.
[0059] 2.6 Step S5, result analysis and decision support:
[0060] The identification result a of the Bayesian network is analyzed to obtain the location, degree and type of building damage.
[0061] 2.6.1 Step S500, damage location determination:
[0062] The output of the Bayesian network is the damage probability for different parts of the building. The damage location can be determined by the part with the highest probability value. If there are n possible damage locations, the damage probability of each location is P i (D|Y,H,R), where (i=1,2,...,n), the damage location L can be determined by the following formula:
[0063] L = argmax i P i(D|Y,H,R)
[0064] The location with the highest probability is selected as the damage location.
[0065] 2.6.2 Step S501, damage degree assessment:
[0066] The damage level can be evaluated by mapping the probability value to the predefined damage level category. Define several damage level intervals, including slight, moderate, and severe, and classify the damage into the corresponding interval according to the probability value output by the Bayesian network. This is achieved by setting the threshold:
[0067]
[0068] Among them, T1 and T2 are thresholds set based on experience or expert knowledge.
[0069] 2.6.3 Step S502, damage type determination:
[0070] The damage type is determined by analyzing the probability output of different damage types. Similar to the damage location, the damage type T is determined by the type with the highest probability value:
[0071] T = argmax j P j (D|Y,H,R)
[0072] Among them, P j (D j |Y,H,R) represents the probability of the jth damage type, and j traverses all possible damage types.
[0073] (III) Mechanism for solving technical problems:
[0074] The Latin Hypercube Sampling (LHS) technique is used to efficiently sample the data to ensure comprehensive coverage of the sample space and provide a high-quality data set for subsequent model training. Traditionally, the configuration of RBFNN (such as the number of hidden layer nodes, node centers and width) needs to be adjusted based on experience. However, in addition to the output of the RBFNN neural network, the present invention also integrates information from other sources, uses a Bayesian network to integrate this information, and obtains a comprehensive judgment probability through Bayesian reasoning, thereby improving the accuracy of damage identification. The mechanism is that Bayesian integration can naturally handle uncertainty, making the identification results more robust. This allows RBFNN to adjust the number of hidden layer nodes, node centers and widths without relying on experience, thereby achieving damage identification of building structures.
[0075] Second, a building structure damage identification system based on RBFNN and Bayesian integration:
[0076] The system includes a processor and a memory connected to the processor, wherein program instructions are stored in the memory. When the program instructions are executed by the processor, the processor executes the building structure damage identification method as described above and feeds back the analysis results to a display.
[0077] Compared with the prior art, the present invention has the following beneficial effects:
[0078] 1. Improve the accuracy of damage identification: The method of the present invention combines the powerful approximation ability of RBFNN and the probabilistic reasoning ability of Bayesian network, which can more accurately identify the damage of building structures. RBFNN can capture nonlinear relationships in data, while Bayesian network can fuse multi-source information and model uncertainty, thereby improving the accuracy of identification.
[0079] Second, reduce the dependence on experience: In traditional methods, the configuration of RBFNN (such as the number of hidden layer nodes, node center and width) is often adjusted based on experience. The method of the present invention reduces this dependence on experience through optimization algorithms and integration technology, making damage identification more objective and repeatable.
[0080] 3. Multi-source information fusion: The method of the present invention can fuse information from different sources, such as historical data, real-time monitoring data, etc., so as to more comprehensively evaluate the damage status of the building structure. This fusion of multi-source information improves the robustness and reliability of recognition. By analyzing the recognition results, the method of the present invention can provide decision makers with clear information about the location, degree and type of damage to the building structure, which is helpful for formulating targeted maintenance and reinforcement plans.
[0081] 4. Enhance the intelligence and automation of the system: The present invention reduces the need for manual intervention and improves the intelligence and automation of the damage identification system by automatically configuring RBFNN parameters and using Bayesian networks for reasoning. The method of the present invention has strong adaptability to different types of building structures and different degrees of damage. Through training and learning, RBFNN can gradually adapt to various complex situations and improve the accuracy and flexibility of identification.
[0082] 5. Timely detection of potential risks: Through continuous monitoring and real-time analysis of building structures, the present invention can timely detect potential damage and risks, so as to take necessary preventive measures to ensure the safety and stability of the building structure. BRIEF DESCRIPTION OF THE DRAWINGS
[0083] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0084] Figure 1 It is a schematic diagram of the method flow of the present invention;
[0085] Figure 2 It is a schematic diagram of the system composition of the present invention;
[0086] Figure 3 It is a schematic diagram of the model training method of the present invention;
[0087] Figure 4 This is a schematic diagram of the Python execution program of step S1 of the present invention;
[0088] Figure 5 This is a schematic diagram of the Python execution program of step S2 of the present invention;
[0089] Figure 6 This is a schematic diagram of the Python framework program of step S3 of the present invention;
[0090] Figure 7 This is a schematic diagram of a Python execution program according to Embodiment 2 of the present invention;
[0091] Figure 8 This is a schematic diagram of the Python execution program of step S4 of the present invention;
[0092] Fig. 9 This is a schematic diagram of the Python execution program of step S5 of the present invention. DETAILED DESCRIPTION
[0093] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below;
[0094] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0095] Example 1: Please refer to Figure 1 This embodiment discloses a building structure damage identification method based on RBFNN and Bayesian integration, including the following steps S1 to S5.
[0096] In this embodiment, regarding step S1, data preparation: the main purpose of this stage is to collect and organize relevant data of the building structure under different damage states to provide accurate and effective data support for subsequent model training. First, collect historical data of the building structure under different damage states. These data cover structural response, environmental conditions and load conditions, which are crucial for a comprehensive understanding of the performance and state of the building structure. Structural response data may include parameters such as displacement, stress, and vibration, reflecting the performance of the structure under external effects. Environmental condition data involves environmental factors such as temperature and humidity, which may affect the performance and damage of the structure. The load condition data records the various loads borne by the structure, such as static loads, dynamic loads, etc., and is an important reference for analyzing structural damage.
[0097] The collected data are organized into a data set D, which contains N data samples. Each sample consists of three parts: structural response R, environmental conditions E, and load conditions L. Data set D can be expressed as:
[0098] D={(R1,E1,L1),(R2,E2,L2),...,(R N ,E N ,L N )};
[0099] Where: R i Represents the structural response data of the i-th sample. i Represents the environmental condition data of the i-th sample. i represents the load case data of the ith sample. N is the total number of samples in the dataset D.
[0100] Furthermore, in order to ensure the accuracy and consistency of the data, we also need to perform routine preprocessing operations such as cleaning and normalization on the data. Data cleaning is mainly to eliminate outliers, which may be caused by measurement errors, equipment failures or other reasons. Their existence will seriously affect the training effect of the model. Normalization is to eliminate the dimensional differences between different parameters so that all data are at the same order of magnitude, thereby improving the training efficiency and accuracy of the model.
[0101] It is understandable that through comprehensive data collection, we can more accurately understand the actual performance and damage status of the building structure; secondly, data preprocessing operations can ensure the accuracy and consistency of the data, providing high-quality data support for subsequent model training; finally, it is organized into a standard data set to facilitate subsequent data analysis and model training operations. The data preparation stage of step S1 is the basis and key of the entire building structure damage identification method. Through this stage of work, we can obtain accurate and effective data support, providing a solid foundation for subsequent building structure damage identification.
[0102] Furthermore, the Python execution program of step S1 is as follows Figure 4 As shown in the figure, the principle is: use the read_csv function of the pandas library to read the CSV file that stores the building structure data. This file should contain all the data we need, namely the structural response, environmental conditions and load conditions. Use the dropna function to remove rows containing missing values. Depending on the actual situation, other cleaning steps can also be added, such as using the IQR (interquartile range) method to remove outliers. Use
[0103] sklearn.preprocessing.StandardScaler is used for normalization, which converts the data into a standard normal distribution with a mean of 0 and a standard deviation of 1. After the data is normalized, it is divided into structural response data R, environmental condition data E, and load condition data L according to the nature of the data. Then, we use the zip function to combine these three parts of data into tuple form, each tuple represents a data sample, and all tuples constitute the data set D.
[0104] In this embodiment, regarding step S2, Latin Hypercube Sampling (LHS): LHS is a statistical method for generating a set of representative sample points that can evenly cover the parameter space, thereby improving the prediction accuracy and reliability of the model. First, it is clear that the parameters to be sampled are load conditions. Load conditions are an important factor in the identification of damage in building structures because they directly affect the response and performance of the structure. Sampling load conditions through LHS technology can ensure that the impact of different load conditions on structural damage is fully considered in subsequent analysis.
[0105] Next, the LHS technique is used to sample in the parameter space of the data set D. Set the cumulative distribution function CDF of the load condition to F(x); perform sampling according to the following steps:
[0106] 1) Divide the CDF into M intervals of equal probability, that is, the probability of each interval is 1 / M. This ensures that the sample points in each interval have the same representativeness, thereby avoiding the aggregation or sparseness of sample points in the parameter space.
[0107] 2) For each interval, find the corresponding quantile point x i , satisfying F(x i )=i-1 / M, where i=1,2,...,N. The quantile points represent the boundary values of each interval and are used to determine the value range of the sample points.
[0108] 3) In each interval F -1 (i-1 / M,)FF -1 A point is randomly selected as a sample point within (i / N), where F -1 is the inverse function of CDF. This ensures that a representative sample point is randomly generated in each interval, while ensuring that these points are evenly distributed in the parameter space.
[0109] 4) Repeat the above process until M sample points are generated. These sample points will be used for subsequent RBFNN and Bayesian integrated analysis to improve the accuracy and reliability of building structure damage identification.
[0110] It can be understood that the sample points generated by the LHS technique are evenly distributed in the parameter space, which can more comprehensively reflect the actual situation of the load conditions, thereby improving the prediction accuracy and reliability of the model. Compared with the traditional random sampling method, the LHS technique can achieve higher accuracy with the same number of samples. This means that in the process of building structure damage identification, fewer sample points can be used for analysis, thereby reducing computational costs and improving efficiency. Since the LHS technique can generate a representative set of sample points, the RBFNN and Bayesian ensemble models trained based on these sample points will have stronger robustness and generalization capabilities, and can better cope with complex situations in actual building structure damage identification.
[0111] Furthermore, the Python execution program of step S2 is as follows Figure 5As shown in the figure, the principle is that the latin_hypercube_sampling function receives three parameters: the number of samples M, the inverse cumulative distribution function CDF_inv, and the parameter range parameter_bounds. Use np.linspace to create M+1 equally spaced points between 0 and 1, thereby dividing M equally probable intervals. Then for each interval, we randomly select a value u (between the two endpoints of the current interval), and then use the inverse cumulative distribution function CDF_inv to map this value to the actual parameter space. This ensures that the samples are evenly distributed in the parameter space. Use the np.clip function to ensure that all generated samples are within the specified parameter range to avoid out-of-range samples due to the characteristics of the inverse CDF function. Finally, the range of the load condition is read and 100 samples are generated using the defined LHS function.
[0112] In this embodiment, regarding step S3, a radial basis neural network (RBFNN) proxy model is read: the network structure of the RBFNN is read, including an input layer, a hidden layer, and an output layer. The input layer corresponds to the M sample points obtained by sampling, and the output layer corresponds to the degree of structural damage. The sample points generated by LHS and their corresponding structural response data are used to train the RBFNN, and the network weights and parameters are adjusted so that the network can accurately map the relationship between input and output.
[0113] Specifically, step S300, read the network structure:
[0114] (1) Input layer: receives M sample points obtained by sampling as input data.
[0115] (2) Hidden layer: Use radial basis function as the activation function.
[0116] (3) Output layer: outputs the degree of structural damage.
[0117] The input layer is responsible for receiving M sample points obtained by Latin Hypercube Sampling (LHS), which represent different load conditions. The hidden layer uses radial basis function to process these input data, and the output layer outputs the degree of structural damage.
[0118] Specifically, step S301, read the radial basis function: each neuron in the hidden layer uses a radial basis function to calculate the similarity between the input and the neuron center. Use Gaussian radial basis function:
[0119]
[0120] Where: φ j (x) is the output of the jth hidden layer neuron. x is the input vector. c jis the center of the jth hidden layer neuron. j is the width parameter of the jth hidden layer neuron.
[0121] Gaussian radial basis function calculates the center c of the input vector x and the jth hidden layer neuron j The Euclidean distance between j To adjust the shape of the function. When the input vector is close to the center of the neuron, the output value of the function is large; conversely, when the input vector is far away from the center of the neuron, the output value of the function decreases rapidly. This feature enables RBFNN to capture the local features of the input data.
[0122] Specifically, step S302, linear combination: the output layer linearly combines the output of the hidden layer to generate the final structural damage degree prediction:
[0123]
[0124] Where: y is the output of the network, representing the degree of structural damage. j is the weight from the jth hidden layer neuron to the output layer. b is the bias term of the output layer. J is the number of hidden layer neurons.
[0125] The output of each hidden layer neuron is multiplied by a corresponding weight w j , and then add these weighted outputs and add a bias term b to get the final output y of the network. This output represents the degree of damage to the building structure under different load conditions.
[0126] It can be understood that by training RBFNN with representative sample points generated by LHS, it can be ensured that the network can accurately predict the degree of structural damage under different load conditions. This improves the accuracy of building structure damage identification. The hidden layer of RBFNN uses radial basis function as the activation function, which makes the network more efficient when processing input data. By combining LHS and RBFNN, this technical solution realizes an intelligent and autonomous building structure damage identification method. It does not need to rely on manual experience to adjust parameters such as the number of hidden layer nodes, node center and width, but automatically optimizes these parameters in a data-driven manner. This improves the versatility and adaptability of the method.
[0127] Furthermore, the Python framework program of step S3 is as follows Figure 6As shown in the figure, the principle is that in the constructor of the RBFNN class, we initialize the center and width of the hidden layer neurons, as well as the weights and biases from the hidden layer to the output layer. These parameters will be optimized during the training process. The gaussian_rbf function implements the Gaussian radial basis function, which calculates the similarity between the input vector x and the center of the neuron center. The similarity decreases exponentially as the distance between x and center increases, and the width of the function is controlled by the width parameter width. The forward function implements the forward propagation process of RBFNN. First, it calculates the output of each hidden layer neuron, which is done by passing the input data X to the Gaussian radial basis function. Then, it multiplies the output of the hidden layer with the weight matrix and adds the bias to get the output of the output layer. When used, create an RBFNN instance and read a batch of input data X and the corresponding label y. Then, we can use the forward function to predict the input data. The framework initializes and optimizes the parameters of RBFNN in a data-driven way, thereby reducing the reliance on manual experience. Through the training process, the network can automatically learn the relationship between input and output and make accurate predictions based on it. This intelligent autonomy enables RBFNN to adapt to different data sets and task requirements.
[0128] In this embodiment, regarding step S4, the Bayesian network integration:
[0129] Based on the output Y of building structure damage identification, a Bayesian network is constructed. The Bayesian network integrates the output of RBFNN with historical data and real-time monitoring data.
[0130] Specifically, step S400, defining a node, includes:
[0131] (1) Node Y represents the output of building structure damage identification, that is, the prediction result of RBFNN. Through learning and training, RBFNN can predict the damage of building structures based on the input feature data.
[0132] (2) Node H represents damage-related information provided by historical data. Historical data may include past building structure inspection results, maintenance records, etc., which provide valuable context for identifying the current damage status.
[0133] (3) Node R represents the damage-related information provided by real-time monitoring data. Real-time monitoring data is collected in real time by sensors installed on the building structure and can reflect the current status of the building structure.
[0134] (4) Node D represents the final determined damage degree of the building structure. This is the target node of the Bayesian network, and we infer the value of D by fusing the information of Y, H, and R.
[0135] In a Bayesian network, the relationship between nodes is defined by a conditional probability distribution. For the target node D, we are concerned with the probability distribution of the degree of damage D of the building structure given the RBFNN output Y, historical data H, and real-time monitoring data R, that is, P(D|Y,H,R). In order to calculate this conditional probability distribution, we first assume that Y, H, and R are independent of each other given D. Because the output of RBFNN, historical data, and real-time monitoring data are usually obtained from different sources, the correlation between them can be ignored. According to Bayes' theorem, we can express P(D|Y,H,R) as:
[0136] P(D|Y,H,R)=P(Y|D)P(H|D)P(R|D)P(D) / P(Y,H,R);
[0137] Where: P(D|Y,H,R) is the probability that the damage degree of the building structure is D given Y, H and R. P(Y|D), P(H|D) and P(R|D) are the conditional probability distributions of RBFNN output, historical data and real-time monitoring data respectively when the damage degree D is given. P(D) is the prior probability distribution of the damage degree of the building structure. P(Y,H,R) is the joint probability distribution of RBFNN output, historical data and real-time monitoring data, which is used as a normalization constant.
[0138] Specifically, step S401, calculate the probability distribution: when calculating the probability value of P(D|Y,H,R), we can use maximum likelihood estimation or Bayesian estimation. These methods are based on training data to estimate the parameters of conditional probability distribution. Exemplary methods include:
[0139] (1) Maximum Likelihood Estimation: This method estimates the parameters of the probability distribution by maximizing the likelihood function of the training data. It assumes that the training data are independent and identically distributed and seeks the parameter value that maximizes the probability of the occurrence of these data.
[0140] (2) Bayesian estimation: Unlike maximum likelihood estimation, Bayesian estimation treats parameters as random variables and assigns them a prior distribution. It then uses training data to update this prior distribution to obtain the posterior distribution of the parameters. This method is better able to handle small data sets and uncertainty.
[0141] It is understandable that by calculating the probability distribution of P(D|Y,H,R), we can form the recognition result a, which integrates the information of RBFNN output, historical data and real-time monitoring data, and is therefore more accurate and reliable than a single recognition method. At the same time, the structure and parameters of the Bayesian network can be automatically adjusted through learning, so that this method can adapt to different building structures and damage conditions.
[0142] Furthermore, the Python execution program of step S4 is as follows Figure 8 As shown in the figure, the principle is that the Bayesian network integrator is initialized in the __init__ method. Including the prior probability distribution prior_D of the building structure damage and the conditional probability distribution (i.e., likelihood function) of the RBFNN output Y, historical data H, and real-time monitoring data R when the damage degree D is given. In the posterior_D_given_YHR method, the posterior probability distribution of the building structure damage degree D is calculated given the RBFNN output Y, historical data H, and real-time monitoring data R. By traversing the possible values of the damage degree D, the value of the joint likelihood function under each D value is calculated, and it is multiplied by the prior probability to obtain the unnormalized posterior probability distribution. Finally, we obtain the final posterior probability distribution by normalization.
[0143] In this embodiment, regarding step S5, result analysis and decision support: this step mainly conducts in-depth analysis on the identification results integrated through the Bayesian network in order to accurately determine the location, extent and type of building damage, thereby providing decision support for subsequent maintenance and reinforcement work.
[0144] Specifically, step S500, damage location determination: use the output of the Bayesian network to determine the specific location of the building damage. The output of the Bayesian network provides the damage probability of different parts of the building, and these probability values reflect the possibility of damage in each part. In order to determine the damage location, we select the part with the highest probability value as the location where the damage occurs. If there are n possible damage locations, the damage probability of each location is P i (D|Y,H,R), where (i=1,2,...,n), the damage location L can be determined by the following formula:
[0145] L = argmax i P i (D|Y,H,R)
[0146] The location with the highest probability is selected as the damage location. This method is based on the principle of probability maximization, that is, the most likely event is the most worthy of attention.
[0147] Specifically, step S501, damage degree assessment: After determining the damage location, the next step is to assess the damage degree. We achieve this by mapping the probability values output by the Bayesian network to predefined damage degree categories. These categories may include minor, moderate, and severe, etc., which are used to describe different degrees of damage:
[0148]
[0149] Among them, T1 and T2 are thresholds set based on experience or expert knowledge. These two thresholds are set based on experience or expert knowledge and are used to divide different damage degree intervals. When the probability value is lower than T1, we consider the damage degree to be mild; when the probability value is between T1 and T2, the damage degree is moderate; when the probability value is higher than T2, the damage degree is judged to be severe.
[0150] Specifically, step S502, damage type determination: determine the specific damage type by analyzing the probabilities of different damage types output by the Bayesian network. Similar to the method of determining the damage location, we select the damage type with the highest probability value as the final determination result.
[0151] Suppose there are j possible damage types, and the probability of each type is Pj(Dj|Y,H,R). We traverse all possible damage types and compare their probability values. The damage type T with the highest probability value is considered to be the actual damage type. This method also makes decisions based on the principle of probability maximization:
[0152] T = argmax j P j (D|Y,H,R)
[0153] Among them, P j (D j |Y,H,R) represents the probability of the jth damage type, and j traverses all possible damage types.
[0154] Furthermore, the Python execution program of step S5 is as follows Fig. 9 As shown in the figure, the principle is that the DecisionSupport class is initialized in the __init__ method, and the thresholds required for damage assessment are passed in. These thresholds will be used to divide the damage level. The determine_damage_location method receives a list containing the probability of each potential damage location. This method determines the damage location by finding the location with the highest probability. It returns the index of the location with the highest probability. The assess_damage_level method assesses the damage level based on the incoming damage probability and predefined thresholds. If the probability is lower than the first threshold T1, the damage is considered to be minor. If the probability is between the two thresholds T1 and T2, the damage is considered to be moderate. If the probability is higher than the second threshold T2, the damage is considered to be severe. The determine_damage_type method receives a dictionary in which the key is the damage type and the value is the corresponding probability. This method determines the actual damage type by finding the damage type with the highest probability and returns the type.
[0155] Embodiment 2: Based on the RBFNN proxy model constructed in step S3 of embodiment 1, this embodiment further provides a training method thereof. Figure 3 As shown, the following steps are included:
[0156] Step 1: Data Preparation:
[0157] Divide the dataset D into training set D train , test set D test , validation set D val The training set is used to train the RBFNN proxy model to learn the mapping relationship from input data to output data; the test set is used to evaluate the performance of the trained model; and the validation set is used to monitor the performance of the model and adjust hyperparameters during the training process.
[0158] Step 2: RBFNN proxy model training:
[0159] Using the training set D train Train the RBFNN proxy model. During the training process, the model learns the mapping relationship of the data through the backpropagation algorithm and the gradient descent optimization algorithm (SGD). The backpropagation algorithm is a supervised learning algorithm that adjusts the weights and biases of the network according to the error of the output layer so that the predicted output of the model is closer to the true value. The gradient descent optimization algorithm is used to update the network parameters in each iteration to minimize the mean absolute error (MAE). MAE is an indicator to measure the difference between the model's predicted value and the true value:
[0160]
[0161] Among them, y i is the true value, is the model prediction value.
[0162] Step 3: Hyperparameter optimization:
[0163] Hyperparameters are key factors that affect model performance, including learning rate, batch size, number of network layers, and number of neurons. In order to find the optimal hyperparameter combination, k-fold cross-validation is used. The specific method is to divide the training data into k identical subsets, and then use one of the subsets as the validation set and the remaining k-1 subsets as the training set for training. By comparing the performance of different hyperparameter combinations on the validation set, the optimal hyperparameter combination is selected. This method can effectively evaluate the impact of different hyperparameters on model performance and find the hyperparameter settings that best suit the current data.
[0164] Step 4: Monitor the training process:
[0165] During the training process, in order to ensure that the model is gradually improving and not overfitting, it is necessary to calculate the performance indicators on the validation set at the end of each training cycle (epoch). By monitoring the mean absolute error (MAE) on the validation set, it is possible to detect whether the model is overfitting in a timely manner. If the performance on the validation set begins to decline, it means that the model may have begun to overfit the training data. At this time, appropriate measures can be taken to prevent overfitting, such as adding regularization terms, reducing network complexity, etc. In this way, it can be ensured that the trained RBFNN proxy model has good generalization ability and can accurately identify building structure damage in practical applications.
[0166] Further, the Python execution program of this embodiment is as follows Figure 7 As shown in the figure, the principle is: an objective function objective is defined, which calculates the mean absolute error (MAE) of the model on the training set. Then, we use the scipy.optimize.minimize function to minimize this objective function. This function adjusts the weights and biases of the RBFNN to find the parameter value that minimizes the MAE on the training set. The learning rate is optimized by traversing a predefined learning rate list. For each learning rate, we retrain the model and calculate the MAE on the validation set. Finally, we select the learning rate that minimizes the MAE on the validation set. The performance indicator (MAE) on the validation set is calculated after each training cycle (epoch).
[0167] All the above embodiments only express the implementation methods of the relevant practical applications of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be based on the attached claims.
[0168] For those skilled in the art, it can be further appreciated that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0169] At the same time, those skilled in the art can understand that all or part of the processes in all the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in this application and used in the embodiments can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
Claims
1. A building structure damage identification method based on RBFNN and Bayesian integration, comprising, characterized in that: Follow these steps: S1, data preparation: collect historical data of building structures under different damage states to form data set D, including structural response, environmental conditions and load conditions; S2, Latin hypercube sampling: Use LHS technique to sample in the parameter space of data set D to generate a set of representative sample points; S3, read the radial basis neural network proxy model RBFNN: read the network structure of RBFNN; use the sample points generated by LHS and their corresponding structural response data to train RBFNN; S4, Bayesian network integration: Based on the output Y of building structure damage identification, a Bayesian network is constructed to integrate the output of RBFNN as well as historical data and real-time monitoring data; S5, result analysis: Analyze the identification result a of the Bayesian network to obtain the location, degree and type of building damage.
2. The building structure damage identification method according to claim 1, characterized in that: In S1, Dataset D: D={(R1,E1,L1),(R2,E2,L2),...,(R N ,E N ,L N )}; Where: R i represents the structural response data of the i-th sample; E i represents the environmental condition data of the i-th sample; L i represents the load case data of the i-th sample; N is the total number of samples in the data set D.
3. The building structure damage identification method according to claim 1, characterized in that: In S2, the cumulative distribution function CDF of the load condition is set to F(x); sampling is performed according to the following steps: 1) Divide the CDF into M intervals of equal probability; 2) For each interval, find the corresponding quantile point x i , satisfying F(x i )=i-1 / M, where i=1,2,...,N; 3) In each interval F -1 (i-1 / M,)FF -1 A point is randomly selected as a sample point within (i / N), where F -1 It is the inverse function of CDF; 4) Repeat the above process until M sample points are generated.
4. The building structure damage identification method according to claim 1, characterized in that: In the S3, the network structure includes: Input layer: receives M sample points obtained by sampling as input data; Hidden layer: Use radial basis function as activation function; Output layer: outputs the degree of structural damage.
5. The building structure damage identification method according to claim 4, characterized in that: In the hidden layer, each neuron uses a Gaussian radial basis function to calculate the similarity between the input and the neuron center: Where: φ j (x) is the output of the jth hidden layer neuron; x is the input vector; c j is the center of the jth hidden layer neuron; σ j is the width parameter of the jth hidden layer neuron.
6. The building structure damage identification method according to claim 5, characterized in that: The output layer linearly combines the outputs of the hidden layers to produce the final structural damage prediction: Among them: y is the output of the network, representing the degree of structural damage; w j is the weight from the jth hidden layer neuron to the output layer; b is the bias term of the output layer; J is the number of hidden layer neurons.
7. The building structure damage identification method according to claim 1, 4 or 5, characterized in that: In S4, nodes are defined, including: Y: represents the output of building structure damage identification; H: represents the damage-related information provided by historical data; R: represents the damage-related information provided by real-time monitoring data; D: represents the final determined degree of damage to the building structure; Use Bayes' theorem to calculate the posterior probability: P(D|Y,H,R)=P(Y|D)P(H|D)P(R|D)P(D) / P(Y,H,R); Where: P(D|Y,H,R) is the probability that the damage degree of the building structure is D given Y, H and R; P(Y|D), P(H|D) and P(R|D) are the conditional probability distributions of RBFNN output, historical data and real-time monitoring data respectively when the damage degree D is given; P(D) is the prior probability distribution of the damage degree of the building structure; P(Y,H,R) is the joint probability distribution of RBFNN output, historical data and real-time monitoring data.
8. The building structure damage identification method according to claim 7, characterized in that: In S4, the identification result a of the Bayesian network is analyzed to obtain the location, degree and type of the building damage.
9. The building structure damage identification method according to claim 1, 4 or 5, characterized in that: In S5, the location, extent and type of building damage are obtained by: L=argmax i P i (D∣Y,H,R); Among them, L is the damage location, and the location with the highest probability is selected as the damage location; Among them, T1 and T2 are preset thresholds in different intervals; T=argmax j P j (D∣Y,H,R); Where T is the damage type, P j (D j |Y,H,R) represents the probability of the jth damage type, and j traverses all possible damage types.
10. A building structure damage identification system based on RBFNN and Bayesian integration, characterized by: The system includes a processor and a memory connected to the processor, wherein program instructions are stored in the memory, and when the program instructions are executed by the processor, the processor executes the building structure damage identification method as described in any one of claims 1-9.
Citation Information
Cited By
Building structure damage identification method and building structure damage identification device
CN123178866A
