Bridge damage diagnosis method based on k-nearest neighbor algorithm
Through the bridge damage diagnosis method based on the k-nearest neighbor algorithm, we build and train the model, and process the working condition information with noise reduction, which solves the problems of low bridge damage monitoring efficiency and large error in the existing technology, and achieves efficient and reliable bridge damage diagnosis.
Patent Information
- Application Number
- CN202111017460.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-31
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-08-31
AI Technical Summary
Existing bridge damage monitoring technology has low efficiency, high cost and large errors, making it difficult to effectively diagnose bridge damage.
A bridge damage diagnosis method based on the k-nearest neighbor algorithm is adopted. By constructing a bridge damage diagnosis model, making a training data set, collecting and denoising the working condition information, the k-nearest neighbor algorithm is used to calculate the distance between data points to identify the type of bridge damage.
It improves the robustness and efficiency of bridge damage diagnosis and ensures the reliability and validity of diagnosis results.
Smart Images

Figure CN113722996B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of bridge monitoring, and in particular to a bridge damage diagnosis method based on a k-nearest neighbor algorithm. Background Art
[0002] As the number of bridges increases, the maintenance and management of bridges becomes increasingly difficult. In particular, during the operation of bridges, due to the effects and influences of traffic and the environment, bridges often develop cracks, structural damage, and corrosion of building materials, which in turn weakens the bearing capacity of bridges. In the long run, this can cause major bridge accidents.
[0003] Currently, monitoring or diagnosis of bridge damage is often carried out through observation and simple data analysis. These technologies have long monitoring cycles, low efficiency, high costs, and large errors in the monitoring or diagnostic results. Summary of the invention
[0004] In view of this, the purpose of the present invention is to overcome the defects in the prior art and provide a bridge damage diagnosis method based on the k-nearest neighbor algorithm, which can obtain reliable and effective bridge damage diagnosis results, has a simple operation process and high diagnostic efficiency.
[0005] The bridge damage diagnosis method based on the k-nearest neighbor algorithm of the present invention comprises the following steps:
[0006] S1. Construct bridge damage diagnosis model based on k-nearest neighbor algorithm;
[0007] S2. Prepare a training data set, and input the training data set into the bridge damage diagnosis model for model training to obtain a trained bridge damage diagnosis model;
[0008] S3. Collect bridge working condition information;
[0009] S4. Performing noise reduction processing on the bridge operating condition information to obtain processed bridge operating condition information;
[0010] S5. Input the processed bridge operating condition information into the trained bridge damage diagnosis model, and output the diagnosis result of the bridge damage.
[0011] Furthermore, the distance between data point X and data point Y in the k nearest neighbor algorithm is determined according to the following formula:
[0012]
[0013] The coordinates of the data point X are (x1, x2, ..., x i ,...,x k ); the coordinates of the data point Y are (y1,y2,...,y i ,...,y k); m is the exponent.
[0014] Further, the training data set is prepared according to the following steps:
[0015] S21. Obtaining bridge information; the bridge information includes bridge vibration data, bridge deformation data and bridge strain data;
[0016] S22. Determine the data matrix D of the bridge information;
[0017] S23. Whitening the data matrix D to obtain the eigenvector of the data matrix D;
[0018] S24. Use the data corresponding to the feature vector as a training data set.
[0019] Further, the data matrix D is determined according to the following formula:
[0020] D = BR;
[0021] Wherein, B is a mixing matrix; the mixing matrix B is a square matrix; R is the source data; the source data R=(r1,r2,...,r i ,...,r n ), r i is the i-th variable sequence. The n variable sequences in the source data R are statistically independent of each other and all obey non-Gaussian distribution.
[0022] Furthermore, the bridge working condition information is subjected to noise reduction processing, specifically including:
[0023] S41. Divide the bridge working condition information into sub-datasets (d1, d2, ..., d j ,...); the number of data in each sub-dataset is the same, d j is the jth sub-dataset;
[0024] S42. Calculate the average value of each sub-data set respectively, and use the average value to replace all data in the corresponding sub-data set.
[0025] The beneficial effects of the present invention are as follows: a bridge damage diagnosis method based on a k-nearest neighbor algorithm disclosed by the present invention trains a bridge damage diagnosis model by preparing a training data set, thereby obtaining a trained bridge damage diagnosis model, thereby ensuring the robustness of the bridge damage diagnosis model; by performing noise reduction processing on the collected bridge operating condition information, the bridge operating condition information is made more objective and true, thereby ensuring the validity of the collected data; and by inputting the collected bridge operating condition information into the bridge damage diagnosis model, a reliable bridge damage diagnosis result is obtained. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The present invention will be further described below in conjunction with the accompanying drawings and embodiments:
[0027] Figure 1 It is a schematic diagram of the method flow of the present invention. DETAILED DESCRIPTION
[0028] The present invention is further described below in conjunction with the accompanying drawings, as shown in the drawings:
[0029] The bridge damage diagnosis method based on the k-nearest neighbor algorithm of the present invention comprises the following steps:
[0030] S1. Constructing a bridge damage diagnosis model based on a k-nearest neighbor algorithm; wherein the bridge damage diagnosis model is constructed by using a computer embedded with a k-nearest neighbor algorithm, the computer adopts existing technology, which will not be described in detail here;
[0031] S2. Prepare a training data set, and input the training data set into the bridge damage diagnosis model for model training to obtain a trained bridge damage diagnosis model; wherein, by preparing the training data set, the training data set determines several bridge damage conditions;
[0032] S3. Collecting bridge working condition information; wherein the bridge working condition information is collected by sensors arranged at multiple target positions of the bridge;
[0033] S4. performing noise reduction processing on the bridge working condition information to obtain processed bridge working condition information; wherein, since random errors or deviations may occur in the collected bridge working condition information, the collected data contains a large amount of noise data. If the collected data is directly used, a large error may occur in the subsequent diagnosis result;
[0034] S5. Input the processed bridge working condition information into the trained bridge damage diagnosis model and output the bridge damage diagnosis result. The value of k in the k nearest neighbor algorithm is set according to the actual working condition; the processed bridge working condition information is used as the monitored bridge working condition data point. When the k value is determined, the distance between the monitored bridge working condition data point and a number of data points for determining the bridge damage working condition is calculated to determine which type of bridge damage working condition the monitored bridge working condition belongs to, thereby obtaining the bridge damage diagnosis result.
[0035] In this embodiment, the distance between data point X and data point Y in the k-nearest neighbor algorithm is determined according to the following formula:
[0036]
[0037] The coordinates of the data point X are (x1, x2, ..., x i ,...,x k); the coordinates of the data point Y are (y1,y2,...,y i ,...,y k ), m is an exponent. The value of m can be 2, 1 or infinity.
[0038] In this embodiment, the training data set is prepared according to the following steps:
[0039] S21. Obtain bridge information; the bridge information includes bridge vibration data, bridge deformation data and bridge strain data; wherein the target bridge information can be obtained by querying historical data.
[0040] S22. Determine the data matrix D of the bridge information;
[0041] S23. Performing whitening on the data matrix D to obtain the eigenvector of the data matrix D; wherein, through the whitening process, a linear transformation of the data matrix D can be achieved, thereby ensuring the integrity and validity of the data;
[0042] S24. Use the data corresponding to the feature vector as a training data set.
[0043] In this embodiment, the data matrix D is determined according to the following formula:
[0044] D = BR;
[0045] Wherein, B is a mixing matrix; the mixing matrix B is a square matrix; R is the source data; the source data R=(r1,r2,...,r i ,...,r n ), r i is the i-th variable sequence, and the n variable sequences in the source data R are statistically independent of each other and all obey non-Gaussian distribution. According to the above formula, the data matrix D can be generated by solving the source data R. The above calculation formula is simplified by assuming that the mixing matrix B and the source data R are both zero mean.
[0046] In this embodiment, the bridge operating condition information is subjected to noise reduction processing, specifically including:
[0047] S41. Divide the bridge working condition information into sub-datasets (d1, d2, ..., d j ,...); the number of data in each sub-dataset is the same, d j is the jth sub-dataset; wherein, the attributes can be set according to the structural dynamic characteristics of the bridge to obtain several attribute values, and the bridge working condition information can be divided and classified by different attribute values;
[0048] S42. Calculate the average value of each sub-data set respectively, and use the average value to replace all data in the corresponding sub-data set.
[0049] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution of the present invention, which should be included in the scope of the claims of the present invention.
Claims
1. A bridge damage diagnosis method based on k-nearest neighbor algorithm, characterized by: The steps include: S1. Construct bridge damage diagnosis model based on k-nearest neighbor algorithm; S2. Prepare a training data set, and input the training data set into the bridge damage diagnosis model for model training to obtain a trained bridge damage diagnosis model; Create a training dataset according to the following steps: S21. Obtaining bridge information; the bridge information includes bridge vibration data, bridge deformation data and bridge strain data; S22. Determine the data matrix D of the bridge information; determine the data matrix D according to the following formula: D = BR; Wherein, B is a mixing matrix; the mixing matrix B is a square matrix; R is the source data; the source data R=(r1,r2,...,r i ,...,r n ), r i is the i-th variable sequence, and the n variable sequences in the source data R are statistically independent of each other and all obey non-Gaussian distribution; S23. Whitening the data matrix D to obtain the eigenvector of the data matrix D; S24. Using the data corresponding to the feature vector as a training data set; S3. Collect bridge working condition information; S4. Performing noise reduction processing on the bridge operating condition information to obtain processed bridge operating condition information; S5. Input the processed bridge operating condition information into the trained bridge damage diagnosis model, and output the diagnosis result of the bridge damage.
2. The bridge damage diagnosis method based on the k-nearest neighbor algorithm according to claim 1 is characterized in that: The distance between data point X and data point Y in the k nearest neighbor algorithm is determined according to the following formula: The coordinates of the data point X are (x1, x2, ..., x i ,...,x k ); the coordinates of the data point Y are (y1,y2,...,y i ,...,y k ); m is the exponent.
3. The bridge damage diagnosis method based on the k-nearest neighbor algorithm according to claim 1 is characterized in that: The bridge working condition information is subjected to noise reduction processing, including: S41. Divide the bridge working condition information into sub-datasets (d1, d2, ..., d j ,...); the number of data in each sub-dataset is the same, d j is the jth sub-dataset; S42. Calculate the average value of each sub-data set respectively, and use the average value to replace all data in the corresponding sub-data set.
Citation Information
Patent Citations
Real-time bridge structure damage state recognition method and system
CN111523572A
