A structural damage identification method based on graph neural network inference probabilistic graphical model
By combining the graph neural network and the undirected graph model, using the optical flow method and damage-sensitive features, the problems of high structural damage identification cost and low computational efficiency in the existing technology are solved, and fast and accurate structural damage identification is achieved, which is suitable for The structure of dense measurements.
Patent Information
- Application Number
- CN202410065587.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-17
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-01-17
AI Technical Summary
Existing structural damage identification methods rely on a variety of sensors, are high in cost and have low computational efficiency, making it difficult to achieve rapid identification, especially when the model is large and the computational overhead is high.
The graph neural network is combined with the undirected graph model to obtain structural displacement data through the optical flow method, extract damage-sensitive features, establish a probabilistic undirected graph model, and train the graph neural network to achieve fast and accurate structural damage identification.
It achieves efficient and robust structural damage location, has fast calculation speed, is suitable for densely measured structures, and is more accurate and reliable than traditional methods.
Smart Images

Figure CN118072213B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of computer vision and civil engineering, and in particular relates to a structural damage identification method based on a graph neural network inference probability graph model. Background Art
[0002] Civil engineering infrastructure will inevitably be affected by environmental erosion and natural disasters during its service life, resulting in damage to structural components. If these damages are not repaired in time, they may even lead to serious consequences such as structural destruction, causing a large number of casualties and huge economic losses. Structural damage identification can use the structural monitoring data obtained by sensors arranged on the structure to locate structural damage, which is of great significance to ensuring the working performance and safety level of civil engineering structures.
[0003] At present, a large number of structural damage identification methods rely on arranging various types of sensors on the structure to obtain various monitoring data of the structure, but this data acquisition method is costly and requires a lot of manpower and material resources. The rapid development of computer vision technology in recent years has provided a new low-cost data acquisition method. Only by shooting a video of the structural vibration with a camera, the structural displacement at the location of the pixel of interest can be obtained. But the problem that comes with it is that there is redundancy and dependency between a large amount of data, and an efficient and robust way to analyze these data is needed. Probabilistic graphical models are a powerful means to deal with such problems. They can consider the interdependence between variables and represent complex probability distributions, and then obtain the target edge distribution through probabilistic inference. At present, damage identification based on probabilistic graphical models is mainly implemented through the Markov chain Monte Carlo algorithm, but this method has low computational efficiency and high computational overhead when the model is large, making it difficult to achieve rapid structural damage identification.
[0004] Based on the above background, the method described in the present invention uses a graph neural network to realize damage identification of structures modeled by a probabilistic graph model. The graph neural network is similar to an undirected graph model in structure. It only requires combining the operation mode of the graph neural network with the undirected graph model and training the network in advance to quickly and accurately infer the probabilistic graph model using the graph neural network, thereby achieving efficient and robust structural damage location. Summary of the invention
[0005] The purpose of the present invention is to solve the problems in the prior art and propose a structural damage identification method based on a graph neural network inferring a probabilistic graph model. The method is suitable for damage identification of densely measured structures using a probabilistic graph model and a graph neural network.
[0006] The present invention is implemented by the following technical scheme. The present invention proposes a structural damage identification method based on a graph neural network inference probability graph model, and the method comprises the following steps:
[0007] Step 1: Use the optical flow method to obtain the displacement data of multiple key structural components from the structural vibration video, and then calculate the structural damage sensitive feature data based on the displacement data through the feature extraction method;
[0008] Step 2: Establish a probabilistic undirected graphical model for the target structure, determine the structure of the graphical model according to the pseudo sensor network under consideration, and then calculate the parameters of the undirected graphical model based on probability density estimation and mutual information using damage-sensitive feature data;
[0009] Step 3: Train the graph neural network for undirected graph model inference. According to the BP algorithm, the graph neural network architecture is constructed. The undirected graph model with randomly generated parameters is used as the training set. The cross entropy is used as the loss function to optimize the graph neural network, and a graph neural network that can accurately infer the undirected graph model is obtained.
[0010] Step 4: Predict the probability of structural damage. Use the undirected graph model parameters of the structure to calculate the input of the graph neural network and input it into the graph neural network trained in step 3 to predict the damage probability of structural components at each node and realize structural damage identification.
[0011] Furthermore, the step 1 is specifically as follows:
[0012] Step 1.1, use a camera to shoot a video of the structural vibration, determine the key components on the structure whose displacement needs to be measured, regard the position to be measured as installing a pseudo sensor, and calculate the structural displacement at the position to be measured based on the optical flow method;
[0013] Step 1.2: Select the structural mode as the structural damage sensitive feature to avoid the influence of different types of external excitations on the calculation; use the ERA method to calculate the structural modal data and obtain the structural damage sensitive feature data set.
[0014] Furthermore, the step 2 is specifically as follows:
[0015] Step 2.1, consider the mutual influence between key components of the structure, adopt undirected graphical model to model the structure, and use the characteristics of undirected graphical model and Bayesian formula to define the damage identification problem as solving the posterior probability distribution;
[0016] Step 2.2, learning the structure of the undirected graph model established in step 2.1, and determining the structure of the undirected graph model with the pseudo sensor network under consideration;
[0017] Step 2.3: learn the parameters of the undirected graph model established in step 2.1, fit the probability density distribution of the damage sensitive feature data calculated in step 1.2 using the GMM model, and then calculate the parameters of the undirected graph model based on the mutual information.
[0018] Furthermore, in step 2.1, there is an energy function E(x) in the undirected graph model, expressed as
[0019]
[0020] Among them, ω ij Indicates connecting adjacent nodes x i With x j The marginal trend.
[0021] Furthermore, the step three is specifically as follows:
[0022] Step 3.1: Build a graph neural network for inferring undirected graph models, construct the graph neural network architecture based on the BP algorithm structure inferred from the classic undirected graph model, and determine the hyperparameter values in the graph neural network;
[0023] Step 3.2: Generate undirected graph model parameters randomly according to Gaussian distribution. Each set of parameters can constitute a different undirected graph model sample. Obtain the labels of each sample based on enumeration method to obtain the undirected graph model dataset, which is then used to train the graph neural network. The loss function is defined in the form of cross entropy.
[0024] Step 3.3: Test the effect of the trained graph neural network and randomly generate multiple undirected graph models again to ensure that the graph neural network can obtain accurate undirected graph model inference results.
[0025] Furthermore, the graph neural network architecture in step 3.1 is expressed as follows
[0026]
[0027]
[0028]
[0029]
[0030] in, Represents the vector transferred from the adjacent nodes of node i, represents the information transmitted from node i to node j, ω ij ,b i ,b j Represents the input parameters of the graph neural network. F and R both represent an artificial neural network. G represents a recurrent neural network with GRU units. Represents the marginal probability distribution vector of the final output.
[0031] Furthermore, the step 4 is specifically as follows:
[0032] Step 4.1, calculate the input parameters of the graph neural network according to the undirected graph model parameters calculated in steps 2.2 and 2.3;
[0033] Step 4.2: Input the graph neural network calculated in step 4.1 into the graph neural network trained in step 3.2, calculate the damage probability of the structural components at each node, and realize structural damage identification.
[0034] Furthermore, the calculation formula in step 4.1 is
[0035]
[0036]
[0037] Among them, P d and P u They represent the probability values of the mean value of the damage sensitive characteristic data of the current structure in the damage probability density function and the lossless probability density function, respectively, ij The calculation formula is
[0038] p ij =0.5(1+N(y i ,y j )).
[0039] The present invention proposes an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of a structural damage identification method based on a graph neural network inferring a probabilistic graph model are implemented.
[0040] The present invention proposes a computer-readable storage medium for storing computer instructions, which, when executed by a processor, implement the steps of a structural damage identification method based on a graph neural network inferring a probabilistic graph model.
[0041] Beneficial effects of the present invention:
[0042] 1. The present invention proposes a variant of the Ising model, which can realize the conversion of the parameters of the undirected graphical model to the input of the graph neural network.
[0043] 2. The present invention proposes a structural damage identification method based on a graph neural network inferred probabilistic graph model. Compared with traditional methods, it is more accurate and reliable, has a faster calculation speed, and is very suitable for structures that can achieve dense measurements. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0045] Figure 1 This is a flow chart of a method for structural damage identification based on a graph neural network inferring a probabilistic graph model described in the present invention.
[0046] Figure 2 It is a schematic diagram of a truss structure model involved in an embodiment of the present invention.
[0047] Figure 3 It is an undirected graph model established in the embodiment of the present invention.
[0048] Figure 4 Schematic diagram of the effect of the graph neural network trained in an embodiment of the present invention. DETAILED DESCRIPTION
[0049] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0050] The purpose of the present invention is to identify structural damage based on data from multiple key measuring points on the structure, and to propose a structural damage identification method based on a graph neural network inferring a probabilistic graph model. First, the sensitive characteristic data of structural damage at each measuring point is calculated. Then, a probabilistic undirected graph model is established for the target structure, and the structure and parameters of the graph model are determined. Then, the graph neural network used for undirected graph model inference is trained to obtain a graph neural network that can accurately infer the undirected graph model. Finally, the input of the graph neural network is calculated and input into the trained graph neural network to achieve structural damage identification.
[0051] Combination Figure 1-Figure 4 The present invention proposes a structural damage identification method based on a graph neural network inference probability graph model, the method comprising the following steps:
[0052] Step 1: Use the optical flow method to obtain the displacement data of multiple key structural components from the structural vibration video, and then calculate the structural damage sensitive feature data based on the displacement data through the feature extraction method.
[0053] In the second step, a probabilistic undirected graphical model is established for the target structure. The structure of the graphical model is determined according to the pseudo sensor network under consideration. Then, based on probability density estimation and mutual information, the parameters of the undirected graphical model are calculated using damage-sensitive feature data.
[0054] Step three, train the graph neural network for undirected graph model inference. According to the BP algorithm, build the graph neural network architecture, use the undirected graph model with randomly generated parameters as the training set, and use the cross entropy as the loss function to optimize the graph neural network, so as to obtain a graph neural network that can accurately infer the undirected graph model.
[0055] Step 4: Predict the probability of structural damage. Use the undirected graph model parameters of the structure to calculate the input of the graph neural network and input it into the graph neural network trained in step 3 to predict the damage probability of structural components at each node and realize structural damage identification.
[0056] Furthermore, the step 1 is specifically as follows:
[0057] Step 1.1: Use a camera to shoot a video of the structural vibration, determine the key components on the structure whose displacement needs to be measured, regard the position to be measured as a pseudo sensor, and calculate the structural displacement at the position to be measured based on the optical flow method.
[0058] Step 1.2: Select the structural mode as the structural damage sensitive feature to avoid the influence of different types of external excitations on the calculation (other damage sensitive features can also be selected in different cases). Use the ERA method to calculate the structural modal data and obtain the structural damage sensitive feature data set.
[0059] Furthermore, the step 2 is specifically as follows:
[0060] Step 2.1, consider the mutual influence between the key components of the structure, use the undirected graphical model to model the structure, and use the characteristics of the undirected graphical model and the Bayesian formula to define the damage identification problem as solving the posterior probability distribution.
[0061] Step 2.2: Learn the structure of the undirected graph model established in step 2.1, and determine the structure of the undirected graph model based on the pseudo sensor network under consideration.
[0062] Step 2.3: learn the parameters of the undirected graph model established in step 2.1, fit the probability density distribution of the damage sensitive feature data calculated in step 1.2 using the GMM model, and then calculate the parameters of the undirected graph model based on the mutual information.
[0063] Furthermore, in step 2.1, there is an energy function E(x) in the undirected graph model, expressed as
[0064]
[0065] Among them, ω ij Indicates connecting adjacent nodes x i With x j The marginal trend.
[0066] Furthermore, through the characteristics of the undirected graph model and the Bayesian formula, the damage identification problem is expressed in the form of a posteriori probability solution, specifically:
[0067]
[0068] Among them, ψ ij (x i ,x j ) and p(y i |x i ) are all undirected graphical model parameters to be solved.
[0069] Furthermore, in step 2.3, the probability density distribution of the damage sensitive characteristic data at each node obtained by fitting the GMM model is p(y i ), where y i represents the damage sensitive characteristic data of the i-th node. Considering the probability density distribution of the damage sensitive characteristic data of the damaged state and the undamaged state structure, the undirected graph model parameter p(y i |x i ).
[0070] Furthermore, when calculating the correlation between adjacent node data using mutual information, there is a similarity modeling function, which is expressed as
[0071]
[0072] Where p(y i ,y j ) represents the joint probability density distribution of the damage sensitive feature data at the ith node and the ith node. Based on Monte Carlo sampling, the mutual information between adjacent nodes can be obtained by
[0073]
[0074] We get, where I(y i ,y j ) represents the mutual information between the ith node and the ith node, and N represents the number of samples.
[0075] In order to avoid the influence of excessive parameter value on calculation stability, normalization calculation is required.
[0076]
[0077] Among them, i(y i ) indicates that from y iThe result of sampling estimation of the probability density distribution at the edge. After obtaining the normalized mutual information, the undirected graph model parameter ψ can be calculated ij (x i ,x j ).
[0078] Furthermore, the step three is specifically as follows:
[0079] Step 3.1. Build a graph neural network for inferring undirected graph models. Construct the graph neural network architecture based on the BP algorithm structure inferred from the classic undirected graph model, and determine the hyperparameter values in the graph neural network.
[0080] Step 3.2: Randomly generate undirected graph model parameters based on Gaussian distribution. Each set of parameters can constitute a different undirected graph model sample. The labels of each sample are obtained based on the enumeration method to obtain the undirected graph model dataset, which is then used to train the graph neural network, where the loss function is defined in the form of cross entropy.
[0081] Step 3.3: Test the effect of the trained graph neural network and randomly generate multiple undirected graph models again to ensure that the graph neural network can obtain accurate undirected graph model inference results.
[0082] Furthermore, the graph neural network architecture in step 3.1 is expressed as follows
[0083]
[0084]
[0085]
[0086]
[0087] in, Represents the vector transferred from the adjacent nodes of node i, represents the information transmitted from node i to node j, ω ij ,b i ,b j Represents the input parameters of the graph neural network. F and R both represent an artificial neural network. G represents a recurrent neural network with GRU units. Represents the marginal probability distribution vector of the final output.
[0088] Furthermore, the step 4 is specifically as follows:
[0089] Step 4.1: Calculate the input parameters of the graph neural network based on the undirected graph model parameters calculated in steps 2.2 and 2.3.
[0090] Step 4.2: Input the graph neural network calculated in step 4.1 into the graph neural network trained in step 3.2, calculate the damage probability of the structural components at each node, and realize structural damage identification.
[0091] Furthermore, the calculation formula in step 4.1 is
[0092]
[0093]
[0094] Among them, P d and P u They represent the probability values of the mean value of the damage sensitive characteristic data of the current structure in the damage probability density function and the lossless probability density function, respectively, ij The calculation formula is
[0095] p ij =0.5(1+N(y i ,y j )).
[0096] Example
[0097] This embodiment applies the present invention to damage identification of truss structures. Figure 1 A flow chart of the method of the present invention is given. Figure 2 A schematic diagram of a truss structure model involved in an embodiment of the present invention is given. Figure 3 The undirected graph model established in the embodiment of the present invention is given. Figure 4 A schematic diagram of the effect of the graph neural network trained in an embodiment of the present invention is given.
[0098] The step one is specifically as follows: In this embodiment, a vibration video of the left half of the truss structure is shot, and the displacement data at 16 nodes are calculated using the optical flow method to obtain a displacement data set. The vibration mode of the structure is then calculated using the ERA algorithm to obtain a modal data set as a structural damage sensitive feature data set.
[0099] The second step is specifically as follows: an undirected graph model is established for the truss structure. Considering that the mechanical wave cannot be transmitted to other nodes in the truss structure without passing through its adjacent nodes, and the nodes of the measurement data are located at the truss nodes, the structure of the undirected graph model is determined by the truss structure connection method, such as Figure 3 As shown. Then, the probability density function of the data at each node is fitted according to the GMM model, and the mutual information of adjacent nodes is calculated based on this, where the number of samples is 1000. The parameter p(y i |x i ) and ψ ij(x i ,x j ).
[0100] The step three is specifically as follows: construct a graph neural network for inferring undirected graph models, construct a graph neural network architecture based on the BP algorithm structure inferred from the classic undirected graph model, and determine the hyperparameter values in the graph neural network. The hyperparameter values of the graph neural network involved are: the hidden layers in the two multi-layer perceptrons F and R are set to two layers, each with 64 units, and the activation functions of the former and the latter are ReLU function and Sigmoid function, respectively. In the recurrent neural network G, the loop step T is taken as 10. The vector dimension at each node is taken as 5, the input dimension of the entire graph neural network is 5, and the output dimension is 2. Then according to the Gaussian distribution ω ij =ω ij ~N(0,1) and b i =b i ~N(0,0.25 2 ) Randomly generate undirected graph model parameters. Each set of parameters constitutes a different undirected graph model sample. The labels of each sample are obtained by enumeration method. The undirected graph model dataset is obtained and the graph neural network is trained. The trained undirected graph model has been tested and has good performance in both computational efficiency and accuracy. Figure 4 shown.
[0101] The step 4 is specifically as follows: according to the formula and The calculated undirected graph model parameters are used to calculate the input parameters of the graph neural network, which are then input into the trained graph neural network to calculate the damage probability of structural components at each node to achieve structural damage identification.
[0102] The present invention proposes an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of a structural damage identification method based on a graph neural network inferring a probabilistic graph model are implemented.
[0103] The present invention proposes a computer-readable storage medium for storing computer instructions, which, when executed by a processor, implement the steps of a structural damage identification method based on a graph neural network inferring a probabilistic graph model.
[0104] The memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus RAM (DRRAM). It should be noted that the memory of the method described in the present invention is intended to include, but is not limited to, these and any other suitable types of memory.
[0105] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a high-density digital video disc (DVD)), or a semiconductor medium (eg, a solid state disc (SSD)).
[0106] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.
[0107] It should be noted that the processor in the embodiment of the present application can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor can be combined and performed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0108] The above is a detailed introduction to the structural damage identification method based on the graph neural network inference probabilistic graph model proposed in the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A structural damage identification method based on graph neural network inference probabilistic graph model, characterized in that: The method comprises the following steps: Step 1: Use the optical flow method to obtain the displacement data of multiple key structural components from the structural vibration video, and then calculate the structural damage sensitive feature data based on the displacement data through the feature extraction method; Step 2: Establish a probabilistic undirected graphical model for the target structure, determine the structure of the graphical model according to the pseudo sensor network under consideration, and then calculate the parameters of the undirected graphical model based on probability density estimation and mutual information using damage-sensitive feature data; Step 3: Train the graph neural network for undirected graph model inference. According to the BP algorithm, the graph neural network architecture is constructed. The undirected graph model with randomly generated parameters is used as the training set. The cross entropy is used as the loss function to optimize the graph neural network, and a graph neural network that can accurately infer the undirected graph model is obtained. Step 4: Structural damage probability prediction: use the undirected graph model parameters of the structure to calculate the input of the graph neural network and input it into the graph neural network trained in step 3 to predict the damage probability of the structural components at each node and realize structural damage identification; The step 2 is specifically as follows: Step 2.1, consider the mutual influence between key components of the structure, adopt undirected graphical model to model the structure, and use the characteristics of undirected graphical model and Bayesian formula to define the damage identification problem as solving the posterior probability distribution; Step 2.2, learning the structure of the undirected graph model established in step 2.1, and determining the structure of the undirected graph model with the pseudo sensor network under consideration; Step 2.3, learning the parameters of the undirected graph model established in step 2.1, fitting its probability density distribution using the GMM model according to the damage sensitive feature data calculated in step 1.2, and then calculating the parameters of the undirected graph model based on the mutual information; In step 2.1, there is an energy function E(x) in the undirected graph model, expressed as Among them, ω ij Indicates connecting adjacent nodes x i With x j 's marginal potential; The step three is specifically as follows: Step 3.1: Build a graph neural network for inferring undirected graph models, construct the graph neural network architecture based on the BP algorithm structure inferred from the classic undirected graph model, and determine the hyperparameter values in the graph neural network; Step 3.2: Generate undirected graph model parameters randomly according to Gaussian distribution. Each set of parameters can constitute a different undirected graph model sample. Obtain the labels of each sample based on enumeration method to obtain the undirected graph model dataset, which is then used to train the graph neural network. The loss function is defined in the form of cross entropy. Step 3.3: Test the effect of the trained graph neural network and randomly generate multiple undirected graph models again to ensure that the graph neural network can obtain accurate undirected graph model inference results. The graph neural network architecture in step 3.1 is expressed as follows in, Represents the vector transferred from the adjacent nodes of node i, represents the information transmitted from node i to node j, ω ij ,b i ,b j Represents the input parameters of the graph neural network. F and R both represent an artificial neural network. G represents a recurrent neural network with GRU units. Represents the marginal probability distribution vector of the final output; The step 4 is specifically as follows: Step 4.1, calculate the input parameters of the graph neural network according to the undirected graph model parameters calculated in steps 2.2 and 2.3; Step 4.2: Input the graph neural network calculated in step 4.1 into the graph neural network trained in step 3.2, calculate the damage probability of the structural components at each node, and realize structural damage identification; The calculation formula in step 4.1 is Among them, P d and P u They represent the probability values of the mean value of the damage sensitive characteristic data of the current structure in the damage probability density function and the lossless probability density function, respectively, ij The calculation formula is p ij =0.5(1+N(and i ,and j ))。 2. The method according to claim 1, characterized in that The step 1 is specifically as follows: Step 1.1, use a camera to shoot a video of the structural vibration, determine the key components on the structure whose displacement needs to be measured, regard the position to be measured as installing a pseudo sensor, and calculate the structural displacement at the position to be measured based on the optical flow method; Step 1.2: Select the structural mode as the structural damage sensitive feature to avoid the influence of different types of external excitations on the calculation; use the ERA method to calculate the structural modal data and obtain the structural damage sensitive feature data set.
3. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 2 are implemented.
4. A computer-readable storage medium for storing computer instructions, characterized in that: When the computer instructions are executed by a processor, the steps of the method according to any one of claims 1 to 2 are implemented.
