Steel structure building crack detection method and system based on near-infrared hyperspectrum
Through the combination of near-infrared hyperspectral imager and damage identification model, cracks in steel structure buildings can be detected quickly and accurately, which solves the problem of insufficient detection speed and accuracy in the existing technology and achieves high efficiency and accuracy of on-site detection.
Patent Information
- Application Number
- CN202410448738.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-15
- Publication Date
- 2024-08-23
AI Technical Summary
Existing technology is difficult to quickly and accurately detect cracks in steel structure buildings, especially during on-site maintenance. Traditional methods have problems such as high technical requirements, radiation pollution, large equipment size, and inability to accurately position.
A detection method based on near-infrared hyperspectral is used to obtain the hyperspectral data information of the building through a near-infrared hyperspectral imager, and input it into the preset damage identification model to determine the crack location and size information.
The method realizes rapid and accurate detection of the crack position and size of steel structure buildings, and solves the problem of insufficient detection speed and accuracy in the existing technology.
Smart Images

Figure CN118533788A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of building safety assessment, and in particular to a method and system for detecting cracks in steel structures based on near-infrared hyperspectroscopy. Background Art
[0002] In the field of civil engineering, steel structures are widely used. During their service life, due to the combined effects of environmental erosion, material aging, long-term fatigue effects of loads, and overload effects of sudden accidents, steel structures will inevitably cause cracks to grow and expand in the structural system, leading to accumulated structural damage and resistance attenuation, and reducing the ability of the structure to resist natural disasters and even service loads. When the cracks in key components expand to a certain extent and are not discovered and handled in time, the cracks will evolve rapidly until the entire component fails, causing the destruction of the overall structure.
[0003] According to the state of the object after testing, the detection methods of steel structure surface damage can be divided into destructive testing and non-destructive testing. Destructive testing is a destructive test, including conventional mechanical testing, physical testing, chemical testing and metallographic testing, etc. that cause damage to the parts to be tested; while non-destructive testing will not damage the parts to be tested and will not affect the working performance of the parts to be tested. Conventional non-destructive testing methods include visual testing, X-ray testing, ultrasonic testing, magnetic particle testing, penetration testing, eddy current testing and infrared thermal imaging testing.
[0004] At present, the laboratory testing method of destructive testing cannot meet the application needs of rapid on-site maintenance of in-service steel structures; manual testing, ultrasonic testing and magnetic particle testing all require high skills and experience of the testing personnel; X-ray testing will cause radiation pollution and environmental pollution caused by the difficulty in recovering the developer and fixer; penetration testing requires that the surface of the test object is smooth and has notches; eddy current testing cannot accurately locate the crack position; infrared testing is greatly affected by external environmental radiation, the equipment is large in size, and it is not convenient for field application; visual inspection only distinguishes different types of damage through images (i.e., the geometric features of the target), and cannot distinguish the damage category by detecting the physical and chemical properties of the target, so there are obvious limitations, such as it cannot distinguish between damage and stains of the same shape and color; in summary, the current detection method is not conducive to the rapid and accurate detection of steel structure buildings, and needs further improvement. Summary of the invention
[0005] Based on this, the embodiment of the present application provides a steel structure building crack detection method and system based on near-infrared hyperspectroscopy to solve the problem that the prior art is not conducive to rapid and accurate detection.
[0006] In a first aspect, an embodiment of the present application provides a method for detecting cracks in a steel structure building based on near-infrared hyperspectroscopy, the method comprising:
[0007] Based on the preset near-infrared hyperspectral imager, the measured hyperspectral data information of the building to be inspected is obtained;
[0008] The measured hyperspectral data information is input into the preset damage identification model to determine the location information and size information of the building cracks.
[0009] Compared with the prior art, the beneficial effect is that the steel structure building crack detection method based on near-infrared hyperspectral provided in the embodiment of the present application, the terminal device can first obtain the measured hyperspectral data information of the building to be detected based on the near-infrared hyperspectral imager, and then input the measured hyperspectral data information into a preset damage identification model to determine the building crack location information and building crack size information, thereby realizing rapid and accurate detection of steel structure buildings, and rapidly and accurately determining the crack location and crack size of steel structure buildings, which to a certain extent solves the current problem of being unfavorable for rapid and accurate detection of steel structure buildings.
[0010] In a second aspect, an embodiment of the present application provides a steel structure building crack detection system based on near-infrared hyperspectroscopy, the system comprising:
[0011] Measured hyperspectral data information acquisition module: used to obtain measured hyperspectral data information of the building to be inspected based on a preset near-infrared hyperspectral imager;
[0012] Building crack determination module: used to input the measured hyperspectral data information into the preset damage identification model to determine the building crack location information and building crack size information.
[0013] In a third aspect, an embodiment of the present application provides a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method of the first aspect described above when executing the computer program.
[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method of the first aspect described above are implemented.
[0015] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.
[0017] Figure 1 It is a flow chart of a method for detecting cracks in a steel structure building provided in one embodiment of the present application;
[0018] Figure 2 It is a schematic diagram of the process before step S200 in the steel structure building crack detection method provided in one embodiment of the present application;
[0019] Figure 3 It is a flow chart of step S102 in the steel structure building crack detection method provided in one embodiment of the present application;
[0020] Figure 4 It is a flow chart of step S103 in the steel structure building crack detection method provided in one embodiment of the present application;
[0021] Figure 5 It is a module block diagram of a steel structure building crack detection system provided by an embodiment of the present application;
[0022] Figure 6 It is a schematic diagram of a terminal device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0023] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0024] In the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0025] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0026] In order to illustrate the technical solution described in this application, a specific embodiment is provided below for illustration.
[0027] See also Figure 1 , Figure 1 : is a flow chart of a steel structure building crack detection method based on near-infrared hyperspectral provided in an embodiment of the present application. In this embodiment, the execution subject of the steel structure building crack detection method is a terminal device. It is understandable that the types of terminal devices include but are not limited to mobile phones, tablet computers, laptops, ultra-mobile personal computers (Ultra-Mobile Personal Computer, UMPC), netbooks, personal digital assistants (Personal Digital Assistant, PDA), etc., and the embodiments of the present application do not impose any restrictions on the specific types of terminal devices.
[0028] See also Figure 1 The steel structure building crack detection method provided in the embodiment of the present application includes but is not limited to the following steps:
[0029] In S100, based on a preset near-infrared hyperspectral imager, measured hyperspectral data information of the building to be inspected is obtained.
[0030] Specifically, the terminal device can first obtain the measured hyperspectral data information of the building to be inspected based on the preset near-infrared hyperspectral imager, where the building to be inspected is used to describe the steel structure building that actually needs to be inspected; the measured hyperspectral data information is used to describe the data collected from the building to be inspected based on the near-infrared hyperspectral imager.
[0031] In S200, the measured hyperspectral data information is input into a preset damage identification model to determine the building crack location information and building crack size information.
[0032] Specifically, the terminal device can input the measured hyperspectral data information into a preset damage identification model to quickly and accurately determine the building crack location information and building crack size information, where the building crack location information is used to describe the crack location of the steel structure building, and the building crack size information is used to describe the crack size of the steel structure building.
[0033] Among some possible implementations, in order to facilitate the rapid and accurate inspection of steel structures, please refer to Figure 2 Before step S200, the method further includes but is not limited to the following steps:
[0034] In S101, original hyperspectral data information of the prepared specimen is obtained based on a preset near-infrared hyperspectral imager.
[0035] Specifically, the terminal device can obtain the original hyperspectral data information of the prepared specimen based on the preset near-infrared hyperspectral imager, wherein the prepared specimen is used to describe the sample that is representative and of a specified size taken from the building to be inspected, and the original hyperspectral data information is used to describe the data collected from the prepared specimen based on the near-infrared hyperspectral imager.
[0036] In a possible implementation, the material and spray coating used to prepare the specimen are the same as those of the building to be inspected; the length, width and height of the dimensions of the specimen may be 50 mm × 50 mm × 10 mm, and there may be six types of crack sizes for the specimen, namely (1) 8 mm in length and 1.5 mm to 2 mm in width; (2) 18 mm in length and 2 mm to 3 mm in width; (3) 28 mm in length and 2 mm to 2.5 mm in width; (4) 9 mm in length and 2 mm in width; (5) 14 mm in length and 3 mm to 3.5 mm in width; and (6) 30 mm in length and 1 mm to 3 mm in width.
[0037] It should be noted that in order to reduce the adverse effects of test errors on test results, at least three test specimens may be prepared for each crack size.
[0038] Without loss of generality, before step S101, the inspector may first build an indoor near-infrared hyperspectral nondestructive testing system. For example, the inspector may first select a near-infrared hyperspectral imager, then build a scanning frame, configure a halogen lamp, and then adjust the camera parameters, determine the starting position and focal length, and determine the movement speed and exposure time.
[0039] In a possible implementation, the model of the hyperspectral instrument used can be the push-broom near-infrared hyperspectral imager of Image-λ-N17E; the size of the scanning frame can be 90 cm in length, 80 cm in width and 100 cm in height; the lighting system can be composed of 8 halogen lamps; the starting position can be adjusted according to the size and position of the specimen; the sum of the camera height and the starting position can be less than 70 cm; the forward speed and the retracting speed can be fixed at 2.5 cm / s; the exposure time can be adjusted according to the ambient light; and the frame rate can be fixed at 60fps.
[0040] In S102, the original hyperspectral data information is preprocessed to generate optimized data information.
[0041] Specifically, after the terminal device acquires the original hyperspectral data information of the prepared specimen, the terminal device may preprocess the original hyperspectral data information to generate optimized data information, wherein the optimized data information is used to describe the original hyperspectral data information after the preprocessing.
[0042] In S103, a damage identification model is built based on the optimized data information.
[0043] Specifically, after the terminal device generates optimized data information, the terminal device can build an effective damage identification model based on the optimized data information.
[0044] Among some possible implementations, in order to facilitate the rapid and accurate inspection of steel structures, please refer to Figure 3 Step S102 includes but is not limited to the following steps:
[0045] In S1021, calibration reflectance information is generated according to the original hyperspectral data information and a preset reflectance calibration function.
[0046] Specifically, the terminal device can accurately generate calibration reflectance information based on the original hyperspectral data information and the preset reflectance calibration function, thereby reducing the intensity variation of the light source on the target plane and the large amount of noise generated by the dark current effect in the camera for certain bands with lower light intensity. The calibration reflectance information is used to describe the calibrated reflectance information.
[0047] In some possible implementations, the reflectivity calibration function may be:
[0048]
[0049] In the formula, R may be calibration reflectance information, I may be original hyperspectral data information, H may be preset first reference data information, exemplarily, the first reference data information may be black reference data; W may be preset second reference data information, exemplarily, the second reference data information may be white reference data.
[0050] In S1022, reflectance calibration processing is performed on the original hyperspectral data information according to the calibration reflectance information to generate calibration data information.
[0051] Specifically, after the terminal device generates the calibration reflectance information, the terminal device can perform reflectance calibration processing on the original hyperspectral data information based on the calibration reflectance information to generate calibration data information, wherein the calibration data information is used to describe the original hyperspectral data information after the calibration reflectance information.
[0052] In S1023, based on a preset image classification algorithm, image classification processing is performed on the calibration data information to determine the target area information.
[0053] Specifically, the terminal device can perform image classification processing on the calibration data information based on a preset image classification algorithm to determine the target area information, that is, select the target area of the collected hyperspectral data in a graphical segmentation manner, thereby retaining the required target area, reducing the amount of data to be processed, and achieving a more efficient recognition process. Among them, the image classification algorithm can be an image segmentation method, a rectangular area method, a likelihood classification method, or a minimum distance classification method; illustratively, the image segmentation method can be an image segmentation algorithm based on threshold segmentation, an image segmentation algorithm based on region growing, or an image segmentation algorithm based on a level set method; the target area information represents the region of interest of the hyperspectral image, that is, the required target area.
[0054] In S1024 , based on the target area information, the hyperspectral data cube information is determined.
[0055] Specifically, the terminal device can determine the hyperspectral data cube information based on the target area information, that is, perform data segmentation according to the different areas where the scratches are located to obtain a hyperspectral data cube, wherein the hyperspectral data cube information is used to describe the data structure with richer material composition and property information compared to traditional RGB images, and is used to store and represent hyperspectral images.
[0056] In S1025, based on a preset feature extraction algorithm and a preset feature selection algorithm, data dimension reduction processing is performed on the hyperspectral data cube information to generate dimension reduction data information.
[0057] Without loss of generality, the spectral response of a material is related to its composition, structure and physical properties. Cracks in steel structures may lead to changes in light reflection, transmission and material properties, such as shape, surface texture or material reflectivity. Compared with ordinary color images, hyperspectral images can provide dozens or hundreds of continuous, narrow spectral bands. Cracks in steel structures can show different spectral responses, and these changes can be captured in hyperspectral images. By analyzing spectral features, using spectral classification algorithms and image processing techniques, combined with spectral information and spatial resolution in hyperspectral images, it is possible to identify spectral feedback related to cracks and achieve automatic detection and positioning of cracks.
[0058] Specifically, the terminal device can perform data dimensionality reduction processing on the hyperspectral data cube information based on a preset feature extraction algorithm and a preset feature selection algorithm, and quickly generate reduced-dimensional data information, thereby reducing image data redundancy and reducing data processing complexity, wherein the data dimensionality reduction processing can be divided into feature extraction processing and feature selection processing; illustratively, the feature extraction algorithm can be a principal component analysis method, a linear discriminant analysis method, or an independent component analysis method, that is, a feature extraction algorithm based on principal component analysis (PCA) technology, a feature extraction algorithm based on linear discriminant analysis (LDA) technology, or a feature extraction algorithm based on independent component analysis (ICA) technology; the feature selection algorithm can be a Filter mode (also known as a filtering method), a Wrapper mode (also known as a packaging method), or an Embedded mode (also known as an embedding method), that is, a feature selection algorithm based on a Filter mode, a feature selection algorithm based on a Wrapper mode, or a feature selection algorithm based on an Embedded mode.
[0059] In S1026, cluster center point information is determined based on the dimension reduction data information and a preset unsupervised classification algorithm.
[0060] Specifically, the terminal device can determine the cluster center point information based on the dimensionality reduction data information and the preset unsupervised classification algorithm, and realize "blind" classification of the spectral characteristics and distribution patterns of the object, divide the samples into different categories, and complete unsupervised classification. Among them, the unsupervised classification algorithm can be a clustering algorithm, which can divide the data set into several groups, use the K-means method to measure the category relationship, make the data points within the group similar to each other, and the data points between the groups are different, construct a complete category relationship, and evaluate its reliability, and extract a center at the same time, which is the cluster center point information; the clustering algorithm can be a clustering algorithm based on K-means clustering, a clustering algorithm based on hierarchical clustering, a clustering algorithm based on DBSCAN, a clustering algorithm based on spectral clustering, a clustering algorithm based on Gaussian mixture model, a clustering algorithm based on self-organizing map, or a clustering algorithm based on non-negative matrix decomposition, etc.
[0061] In S1027, based on the cluster center point information and a preset spectral matching algorithm, the dimension reduction data information is divided to generate sample class set information.
[0062] Specifically, the terminal device can divide the dimension reduction data information based on the cluster center point information and the preset spectral matching algorithm, generate sample class set information, compare each pixel with the training sample and divide it into the most similar sample class according to different rules, wherein the spectral matching algorithm can be a spectral matching algorithm based on spectral angle matching (SA), a spectral matching algorithm based on Mahalanobis distance (MD), a spectral matching algorithm based on spectral information divergence (SID) and / or a spectral matching algorithm based on spectral correlation coefficient (SCC); the pixel represents the smallest information unit of the hyperspectral image.
[0063] Without loss of generality, the sample class set information includes first class sample information and second class sample information, the first class sample information includes first positive classification sample information and first negative classification sample information, the second class sample information includes second positive classification sample information and second negative classification sample information, the first positive classification sample information is used to describe the first class sample information that is accurately classified, the first negative classification sample information is used to describe the second class sample information that is classified into the first class sample information, the second positive classification sample information is used to describe the second class sample information that is accurately classified, and the second negative classification sample information is used to describe the first class sample information that is classified into the second class sample information.
[0064] In some possible implementations, in order to facilitate rapid and accurate detection of steel structure buildings, after step S1027, the method further includes but is not limited to the following steps:
[0065] In S1028, based on the sample class set information, first number information, second number information, third number information, fourth number information and total sample number information are obtained.
[0066] Specifically, the terminal device can obtain the first number information, the second number information, the third number information, the fourth number information, and the total sample number information based on the sample class set information, wherein the first number information is used to describe the number of the first positive classification sample information; the second number information is used to describe the number of the first negative classification sample information; the third number information is used to describe the number of the second positive classification sample information; and the fourth number information is used to describe the number of the second negative classification sample information.
[0067] Accordingly, the above step S103 includes but is not limited to the following steps:
[0068] In S1031, the accuracy information is determined according to the first number information, the second number information, the third number information, the fourth number information, the total sample number information and a preset accuracy information calculation function.
[0069] Specifically, the terminal device can input the first number information, the second number information, the third number information, the fourth number information and the total sample number information into a preset accuracy information calculation function to determine the accuracy information, wherein the accuracy information is used to measure the accuracy of various algorithms.
[0070] In some possible implementations, the accuracy information calculation function may be:
[0071]
[0072] In the formula, μ a It can be accuracy information; n can be total sample number information; n 11 Can be the first number information; n 12 Can be the fourth number information; n 21 Can be the second number information; n 22 It can be the third number information.
[0073] In S1032, the consistency strength information is determined according to the accuracy information and a preset consistency strength information evaluation function.
[0074] Specifically, the terminal device can accurately determine the consistency strength information based on the accuracy information and a preset consistency strength information evaluation function.
[0075] In some possible implementations, the consistency strength information evaluation function may be:
[0076]
[0077] Where, Consistency Strength It can be consistency strength information. When κ≤0, the consistency strength information is lacking; when 0<κ≤0.2, the consistency strength information is extremely low; when 0.2<κ≤0.4, the consistency strength information is relatively low; when 0.4<κ≤0.6, the consistency strength information is general; when 0.6<κ≤0.8, the consistency strength information is medium; when 0.8<κ≤0.9, the consistency strength information is relatively high; when 0.9<κ≤1, the consistency strength information is extremely high, indicating that it is almost perfect, thereby improving the accuracy of the damage identification model.
[0078] Where, κ can be the Kappa coefficient, which is used to measure the accuracy of various algorithms again; μ a It can be accuracy information; μ e It can be comprehensive accuracy information; n can be total sample number information; n 11 Can be the first number information; n 12Can be the fourth number information; n 21 Can be the second number information; n 22 It can be the third number information.
[0079] In S1033, a damage identification model is determined according to the accuracy information and the consistency strength information.
[0080] Specifically, the terminal device can determine the final damage identification model based on the accuracy information and consistency strength information.
[0081] The implementation principle of the steel structure building crack detection method based on near-infrared hyperspectral in the embodiment of the present application is as follows: the terminal device can first obtain the measured hyperspectral data information of the building to be detected based on the near-infrared hyperspectral imager, and then input the measured hyperspectral data information into a preset damage identification model to determine the building crack location information and building crack size information, thereby realizing rapid and accurate detection of steel structure buildings, and rapidly and accurately determining the crack location and crack size of steel structure buildings.
[0082] It should be noted that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0083] The embodiment of the present application also provides a steel structure building crack detection system based on near infrared hyperspectroscopy. For ease of description, only the parts related to the present application are shown, such as Figure 5 As shown, the system 50 includes:
[0084] The measured hyperspectral data information acquisition module 51 is used to acquire the measured hyperspectral data information of the building to be inspected based on a preset near-infrared hyperspectral imager;
[0085] The building crack determination module 52 is used to input the measured hyperspectral data information into a preset damage identification model to determine the building crack location information and the building crack size information.
[0086] Optionally, the system 50 further includes:
[0087] Original hyperspectral data information acquisition module: used to acquire original hyperspectral data information of the prepared specimen based on a preset near-infrared hyperspectral imager;
[0088] Optimized data information generation module: used to pre-process the original hyperspectral data information and generate optimized data information;
[0089] Damage identification model building module: used to build a damage identification model based on optimized data information.
[0090] Optionally, the above-mentioned optimization data information generation module includes:
[0091] Calibration reflectance information generation submodule: used to generate calibration reflectance information according to the original hyperspectral data information and the preset reflectance calibration function, wherein the reflectance calibration function is:
[0092]
[0093] Wherein, R is the calibration reflectance information, I is the original hyperspectral data information, H is the preset first reference data information, and W is the preset second reference data information;
[0094] Calibration data information generation submodule: used to perform reflectance calibration processing on the original hyperspectral data information according to the calibration reflectance information to generate calibration data information;
[0095] Target area information determination submodule: used to perform image classification processing on the calibration data information based on a preset image classification algorithm to determine the target area information;
[0096] Hyperspectral data cube information determination submodule: used to determine the hyperspectral data cube information based on the target area information;
[0097] Dimensionality reduction data information generation submodule: used to perform data dimensionality reduction processing on the hyperspectral data cube information based on a preset feature extraction algorithm and a preset feature selection algorithm to generate dimension reduction data information;
[0098] Cluster center information determination submodule: used to determine cluster center information based on dimensionality reduction data information and a preset unsupervised classification algorithm;
[0099] Sample class set information generation submodule: used to divide the dimension reduction data information based on cluster center point information and a preset spectral matching algorithm, and generate sample class set information, wherein the sample class set information includes first-class sample information and second-class sample information, the first-class sample information includes first positive classification sample information and first negative classification sample information, the second-class sample information includes second positive classification sample information and second negative classification sample information, the first positive classification sample information is used to describe the first-class sample information that is accurately classified, the first negative classification sample information is used to describe the second-class sample information that is classified into the first-class sample information, the second positive classification sample information is used to describe the second-class sample information that is accurately classified, and the second negative classification sample information is used to describe the first-class sample information that is classified into the second-class sample information.
[0100] Optionally, the system 50 further includes:
[0101] A number information acquisition module: used to acquire first number information, second number information, third number information, fourth number information and total sample number information based on sample class set information, wherein the first number information is used to describe the number of first positive classification sample information, the second number information is used to describe the number of first negative classification sample information, the third number information is used to describe the number of second positive classification sample information, and the fourth number information is used to describe the number of second negative classification sample information;
[0102] Accordingly, the above damage identification model building module includes:
[0103] The accuracy information determination submodule is used to determine the accuracy information according to the first number information, the second number information, the third number information, the fourth number information, the total sample number information and the preset accuracy information calculation function;
[0104] A consistency strength information determination submodule: used to determine consistency strength information according to accuracy information and a preset consistency strength information evaluation function;
[0105] Damage identification model determination submodule: used to determine the damage identification model based on accuracy information and consistency strength information.
[0106] Optionally, the accuracy information calculation function is:
[0107]
[0108] In the formula, μ a is the accuracy information; n is the total number of samples; n 11 is the first number information; n 12 For the fourth number information; n 21 is the second number information; n 22 It is the third number information.
[0109] Optionally, the consistency strength information evaluation function is:
[0110]
[0111] Where, Consistency Strength is the consistency strength information, κ is the Kappa coefficient, μ a is the accuracy information, μ e is the comprehensive accuracy information, n is the total number of samples; 11 is the first number information; n 12 For the fourth number information; n 21 is the second number information; n 22 It is the third number information.
[0112] It should be noted that the information interaction, execution process and other contents between the above-mentioned modules are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0113] The present application also provides a terminal device, such as Figure 6 As shown, the terminal device 60 of this embodiment includes: a processor 61, a memory 62, and a computer program 63 stored in the memory 62 and executable on the processor 61. When the processor 61 executes the computer program 63, the steps in the above-mentioned steel structure building crack detection method embodiment are implemented, for example Figure 1 Steps S100 to S200 shown; or, when the processor 61 executes the computer program 63, the functions of each module in the above device are realized, for example Figure 5 The functions of modules 51 to 52 are shown.
[0114] The terminal device 60 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server, and the terminal device 60 includes but is not limited to a processor 61 and a memory 62. Those skilled in the art will appreciate that Figure 6 It is only an example of the terminal device 60 and does not constitute a limitation of the terminal device 60. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device 60 may also include input and output devices, network access devices, buses, etc.
[0115] Among them, the processor 61 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.; the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0116] The memory 62 may be an internal storage unit of the terminal device 60, such as a hard disk or memory of the terminal device 60, or an external storage device of the terminal device 60, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 60; further, the memory 62 may include both an internal storage unit and an external storage device of the terminal device 60, and the memory 62 may also store a computer program 63 and other programs and data required by the terminal device 60, and the memory 62 may also be used to temporarily store data that has been output or is to be output.
[0117] One embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the steps of each of the above method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc.; the computer-readable medium may include: any entity or device that can carry computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0118] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, all equivalent changes made according to the methods, principles, and structures of the present application should be included in the protection scope of the present application.
Claims
1. A method for detecting cracks in steel structures based on near-infrared hyperspectroscopy. It is characterized in that The method comprises: Based on the preset near-infrared hyperspectral imager, the measured hyperspectral data information of the building to be inspected is obtained; The measured hyperspectral data information is input into a preset damage identification model to determine the building crack location information and building crack size information.
2. The method according to claim 1, It is characterized in that Before inputting the measured hyperspectral data information into a preset damage identification model to determine the building crack location information and building crack size information, the method further includes: Based on the preset near-infrared hyperspectral imager, the original hyperspectral data information of the prepared specimen is obtained; Preprocessing the original hyperspectral data information to generate optimized data information; Based on the optimized data information, the damage identification model is constructed.
3. The method according to claim 2, It is characterized in that The preprocessing of the original hyperspectral data information to generate optimized data information includes: The calibration reflectance information is generated according to the original hyperspectral data information and a preset reflectance calibration function, wherein the reflectance calibration function is: Wherein, R is the calibration reflectance information, I is the original hyperspectral data information, H is the preset first reference data information, and W is the preset second reference data information; Performing reflectance calibration processing on the original hyperspectral data information according to the calibration reflectance information to generate calibration data information; Based on a preset image classification algorithm, image classification processing is performed on the calibration data information to determine target area information; Based on the target area information, determining hyperspectral data cube information; Based on a preset feature extraction algorithm and a preset feature selection algorithm, performing data dimensionality reduction processing on the hyperspectral data cube information to generate dimensionality reduction data information; Determine cluster center point information according to the dimension reduction data information and a preset unsupervised classification algorithm; Based on the cluster center point information and a preset spectral matching algorithm, the dimension reduction data information is divided to generate sample class set information, wherein the sample class set information includes a first class of sample information and a second class of sample information, the first class of sample information includes a first positive classification sample information and a first negative classification sample information, the second class of sample information includes a second positive classification sample information and a second negative classification sample information, the first positive classification sample information is used to describe the first class of sample information that is accurately classified, the first negative classification sample information is used to describe the second class of sample information that is classified into the first class of sample information, the second positive classification sample information is used to describe the second class of sample information that is accurately classified, and the second negative classification sample information is used to describe the first class of sample information that is classified into the second class of sample information.
4. The method according to claim 3, It is characterized in that After dividing the dimension reduction data information based on the cluster center point information and the preset spectral matching algorithm to generate sample class set information, the method further includes: Based on the sample class set information, obtain first number information, second number information, third number information, fourth number information and total sample number information, wherein the first number information is used to describe the number of first positive classification sample information, the second number information is used to describe the number of first negative classification sample information, the third number information is used to describe the number of second positive classification sample information, and the fourth number information is used to describe the number of second negative classification sample information; Accordingly, the damage identification model is constructed based on the optimization data information, including: Determine the accuracy information according to the first number information, the second number information, the third number information, the fourth number information, the total sample number information and a preset accuracy information calculation function; Determining consistency strength information according to the accuracy information and a preset consistency strength information evaluation function; Determining the damage identification model according to the accuracy information and the consistency strength information, Wherein, the accuracy information calculation function is: In the formula, μ a is the accuracy information; n is the total number of samples; n 11 is the first number information; n 12 For the fourth number information; n 21 is the second number information; n 22 It is the third number information.
5. The method according to claim 4, It is characterized in that The consistency strength information evaluation function is: Where, Consistency Strength is the consistency strength information, κ is the Kappa coefficient, μ a is the accuracy information, μ e is the comprehensive accuracy information, n is the total number of samples; 11 is the first number information; n 12 For the fourth number information; n 21 is the second number information; n 22 It is the third number information.
6. A steel structure building crack detection system based on near-infrared hyperspectroscopy, It is characterized in that The system comprises: Measured hyperspectral data information acquisition module: used to obtain measured hyperspectral data information of the building to be inspected based on a preset near-infrared hyperspectral imager; Building crack determination module: used to input the measured hyperspectral data information into a preset damage identification model to determine the building crack location information and building crack size information.
7. The system according to claim 6, It is characterized in that The system further comprises: Original hyperspectral data information acquisition module: used to acquire original hyperspectral data information of the prepared specimen based on a preset near-infrared hyperspectral imager; Optimized data information generation module: used to pre-process the original hyperspectral data information to generate optimized data information; Damage identification model building module: used to build the damage identification model based on the optimized data information.
8. A terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
9. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
