Dam crack detection method, device and storage medium

By combining a finite element model of the dam body with UAV imagery, the problems of false detection and cause analysis of cracks in dam bodies in existing technologies have been solved, achieving more accurate crack detection and risk assessment.

CN123179840APending Publication Date: 2026-11-27HUNAN WULING POWER TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611658449.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-26
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing methods for detecting cracks in dams rely on image information, which can easily lead to false positives or false negatives. They are also difficult to constrain by the actual stress state of the dam, and the evaluation of crack geometric parameters makes it difficult to distinguish the causes, affecting the accuracy of the detection results and the pertinence of the risk assessment.

Method used

By establishing a finite element model of the dam body, the first principal stress and equivalent stress are obtained. Image features are weighted by combining UAV images. The crack length and width are calculated by cross-referencing the mechanical weight map and the dam surface design surface. The mechanical causes are then evaluated.

Benefits of technology

It improves the accuracy of crack detection, reduces the false detection rate, realizes the correlation between crack geometric measurement, mechanical cause determination and risk assessment, and enhances the detection capability of mechanically sensitive areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123179840A_ABST
    Figure CN123179840A_ABST
Patent Text Reader

Abstract

The application belongs to the field of crack detection, and particularly relates to a dam body crack detection method, equipment and storage medium. The method establishes a finite element model according to dam body geometric parameters, material mechanics parameters and load working conditions, obtains first principal stress and equivalent stress, determines a mechanics concerned area and generates a mechanics weight map; performs projection correction based on a dam surface image of an unmanned aerial vehicle, a camera pose and a dam surface design surface to obtain a dam surface unfolded image; performs multi-scale feature extraction on the corrected image and combines the mechanics weight for weighting to obtain a crack probability map and a crack area; refines the crack area and corrects a skeleton point position to form an ordered skeleton node sequence, and calculates crack length and width based on a first basic shape of the dam surface design surface; combines crack geometric, spatial and morphological characteristics with mechanics parameters to determine crack mechanics causes and perform risk evaluation. The application improves the accuracy of crack evaluation results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of crack detection, specifically relating to a method, equipment, and storage medium for detecting cracks in dam bodies. Background Technology

[0002] During long-term operation, concrete dams are affected by factors such as water pressure, self-weight, temperature changes, material aging, and environmental effects, which may cause cracks of different sizes and shapes to appear on the dam surface. The location, direction, length, width, and development of cracks can reflect the local stress and material condition of the dam body, making them important monitoring targets in dam safety monitoring and operation and maintenance. Traditional dam surface crack detection mainly relies on manual inspection, which is not only inefficient but also presents challenges such as operational difficulties and limited coverage in areas like high dams and steep dam surfaces. With the development of drone inspection and computer vision technology, using drones to collect dam surface images and then identifying cracks through image processing or deep learning methods has become an important technical means for dam surface crack detection.

[0003] Existing methods for detecting cracks on dam surfaces typically rely on images of the dam surface captured by drones as the primary data source. Crack areas are extracted using visual recognition methods such as object detection and semantic segmentation. Further, geometric parameters such as crack length and width are measured based on image scale, photogrammetry results, or 3D reconstruction results. For structures like arch dams with surface curvature, a 3D model of the dam surface can be obtained through oblique photography and point cloud reconstruction, allowing for the quantification of crack location and size in 3D space. Regarding crack evaluation, existing methods usually classify or assess risk based on geometric information such as crack width, length, and location. The detection process primarily focuses on the visual texture features of cracks in the image and the detected geometric dimensions. However, structural mechanical information such as the first principal stress, equivalent stress, and stress gradient reflected in finite element analysis of the dam body is typically not directly involved in the visual crack detection process or the determination of crack causes.

[0004] However, construction joints, water stains, material textures, and surface defects on the dam surface may have similar visual features to cracks. Relying solely on image information for identification can easily lead to false positives or false negatives, making it difficult to further constrain the detection results by considering the actual stress state of the dam. Furthermore, relying on complete 3D reconstruction for crack spatial location and size measurement requires numerous overlapping images and subsequent 3D reconstruction calculations, resulting in a lengthy processing procedure that hinders the efficiency of daily inspections. In addition, evaluating cracks solely based on geometric parameters such as length and width makes it difficult to distinguish cracks caused by different factors such as structural stress, temperature effects, settlement deformation, and material degradation. It also fails to reflect the local stress state at the crack location and its relationship with weak areas in the dam's mechanics. Consequently, there is a lack of effective correlation between crack detection results and the dam's structural mechanical state, affecting the relevance of crack cause analysis and risk assessment results. Summary of the Invention

[0005] The technical problem to be solved by the present invention is to provide a method, equipment and storage medium for detecting cracks in dam bodies, thereby improving the accuracy of crack assessment results.

[0006] A method for detecting cracks in dam bodies, comprising: The geometric parameters, material mechanics parameters, and load conditions of the dam body are obtained. A finite element model of the dam body is established based on the geometric parameters, material mechanics parameters, and load conditions, and finite element calculations are performed to obtain the first principal stress and equivalent stress at each spatial location of the dam body. The mechanical interest region of the dam body is determined based on the magnitude of the first principal stress and the spatial gradient of the equivalent stress. The first principal stress at the dam surface location is normalized and projected onto the dam surface unfolded coordinate system to form a mechanical weight map corresponding to the dam surface location. The process involves acquiring images of the dam surface captured by a drone, along with the camera position and attitude information synchronized with the images. Based on the camera intrinsic parameters and the camera position and attitude information, the spatial projection ray corresponding to each pixel in the dam surface image is determined. The spatial projection ray is then intersected with the dam surface design surface determined based on the dam body design parameters to obtain the dam surface spatial coordinates corresponding to each pixel. Finally, the dam surface spatial coordinates are mapped to the dam surface unfolded coordinate system to obtain the corrected dam surface image. Multi-scale image feature extraction is performed on the corrected dam surface image to obtain image features. The image features are then weighted according to the mechanical weight map and the dam body mechanical interest region to obtain weighted image features. The probability of each pixel belonging to a crack is determined based on the weighted image features to obtain a crack probability map. Crack regions are then determined based on the crack probability map. The crack region is refined to obtain a crack skeleton. For each skeleton point on the crack skeleton, the position offset of the skeleton point is determined according to the crack probability distribution in the neighborhood of the skeleton point, and the corresponding corrected skeleton point is obtained according to the position offset. The corrected skeleton points are sorted according to the topological connectivity of the crack skeleton to obtain an ordered corrected skeleton point sequence. The ordered corrected skeleton point sequence is simplified by polyline analysis to determine the skeleton nodes used to characterize the crack path, forming an ordered skeleton node sequence corresponding to each crack. The deflection quantities along two parameter directions are obtained according to the parametric equation of the dam surface design surface. The first basic shape coefficient of the dam surface design surface is determined by the deflection quantities. For adjacent skeleton nodes in the ordered skeleton node sequence, the parameter increments of the adjacent skeleton nodes in the dam surface unfolded coordinate system are converted into actual arc lengths on the dam surface according to the first basic shape coefficients. The actual arc lengths between each adjacent skeleton node are accumulated to obtain the crack length. The two sides of the crack boundary are determined along the local normal direction of the crack skeleton at each skeleton node. The crack width is obtained according to the actual distance between the two sides of the dam surface. The crack width and crack length are used as the detection results.

[0007] Optionally, the process involves acquiring the geometric parameters, material mechanics parameters, and load conditions of the dam body; establishing a finite element model of the dam body based on these parameters and performing finite element calculations to obtain the first principal stress and equivalent stress at each spatial location of the dam body; determining the dam body's mechanical interest region based on the magnitude of the first principal stress and the spatial gradient of the equivalent stress; normalizing the first principal stress at the dam surface location and projecting it onto the dam surface unfolded coordinate system to form a mechanical weight map corresponding to the dam surface location, including: A three-dimensional geometric model of the dam body is established based on the dam body geometric parameters. The three-dimensional geometric model of the dam body is divided into finite element meshes according to the material partitions of the dam body. The mesh is refined for the preset stress concentration parts. The material mechanical parameters corresponding to different material partitions are assigned to the corresponding finite element mesh elements to obtain the finite element mesh model of the dam body. The loads and boundary constraints acting on the dam body finite element mesh model are determined according to the load conditions, and the loads and boundary constraints are applied to the dam body finite element mesh model to obtain the dam body finite element model. The finite element model of the dam body is solved to obtain the displacement field and stress field of the dam body. The first principal stress and equivalent stress corresponding to each finite element mesh position are extracted from the stress field. The first principal stress field and equivalent stress field corresponding to the spatial position of the dam body are obtained by spatial interpolation. The spatial gradient of the equivalent stress is determined based on the equivalent stress field, and the dam mechanical interest area is determined based on the relationship between the first principal stress and the preset tensile stress threshold and the relationship between the spatial gradient of the equivalent stress and the preset gradient threshold. The spatial correspondence between the dam body mechanical interest area and the dam surface is determined. The dam body mechanical interest area located on the dam surface is mapped to the dam surface unfolded coordinate system to obtain the mechanical interest area corresponding to the spatial position of the corrected dam surface image. The first principal stress corresponding to the dam surface position is normalized and mapped to the dam surface unfolded coordinate system to form the mechanical weight map under the same dam surface unfolded coordinate system as the mechanical interest area.

[0008] Optionally, the step of intersecting the spatial projection ray with the dam surface design surface determined according to the dam design parameters to obtain the dam surface spatial coordinates corresponding to each pixel, and mapping the dam surface spatial coordinates to a dam surface unfolded coordinate system with the dam surface arc length direction and elevation direction as coordinate axes to obtain the corrected dam surface image includes: Based on the dam body design parameters, establish the parametric equations for the dam surface design. Based on the camera position and attitude information, determine the camera extrinsic parameters, and combine the camera intrinsic parameters to determine the spatial projection ray from the camera optical center to each pixel in the dam surface image; Calculate the intersection points of each spatial projection ray with the dam surface design surface, and use the intersection points as the dam surface spatial coordinates of the corresponding pixels; The spatial coordinates of the dam surface corresponding to each pixel are converted into unfolded coordinates along the arc length and elevation directions of the dam surface, and the dam surface image is resampled according to a preset spatial resolution to obtain the corrected dam surface image.

[0009] Optionally, the step of performing multi-scale image feature extraction on the corrected dam surface image to obtain image features, and then weighting the image features according to the mechanical weight map and the dam body mechanical interest region to obtain weighted image features, includes: The corrected dam surface image is encoded to obtain an encoded feature map. The encoded feature map is then used to extract crack image features of different scales using multiple feature extraction branches with different receptive fields. The crack image features of different scales are then fused to obtain the image features. The mechanical weight map is spatially aligned with the image features, the mechanical interest region of the dam body is used as the spatial interest prior, and the image features are modulated according to the mechanical weights corresponding to each spatial position, so that the image features located at the higher position of the first principal stress obtain a larger feature response weight, thus obtaining the weighted image features. The weighted image features are decoded, and the probability that each pixel belongs to a crack is determined based on the decoding result.

[0010] Optionally, for each skeleton point on the crack skeleton, the position offset of the skeleton point is determined according to the crack probability distribution in the neighborhood of the skeleton point, and the corresponding corrected skeleton point is obtained according to the position offset; the corrected skeleton points are sorted according to the topological connectivity of the crack skeleton to obtain an ordered sequence of corrected skeleton points; the ordered sequence of corrected skeleton points is simplified by polyline analysis to determine the skeleton nodes used to characterize the crack path, forming an ordered sequence of skeleton nodes corresponding to each crack, including: A neighborhood of a preset size is determined with each skeleton point as the center. The weighted center of the crack probability distribution in the neighborhood is calculated based on the crack probability of each pixel in the neighborhood and the position of each pixel relative to the skeleton point. The position offset is determined based on the position difference between the weighting center and the skeleton point, and the position of the skeleton point is corrected based on the position offset to obtain a corrected skeleton point sequence. The skeleton topological connection relationship is determined based on the eight-neighbor connectivity relationship between each skeleton point before correction. The skeleton points are continuously tracked according to the skeleton topological connection relationship, and the corrected skeleton point sequence is arranged according to the tracking order to obtain an ordered corrected skeleton point sequence. The ordered corrected skeleton point sequence is simplified by polyline analysis to determine the skeleton nodes used to characterize the crack path, forming an ordered skeleton node sequence corresponding to each crack.

[0011] Optionally, the step of obtaining the deflection quantities along two parameter directions based on the parametric equation of the dam surface design surface, and determining the first basic shape coefficient of the dam surface design surface based on the deflection quantities; for adjacent skeleton nodes, converting the parameter increments of the adjacent skeleton nodes in the dam surface unfolded coordinate system into actual arc lengths on the dam surface based on the first basic shape coefficients, accumulating the actual arc lengths between each adjacent skeleton node to obtain the crack length; determining the two sides of the crack boundary along the local normal direction of the crack skeleton at each skeleton node, and obtaining the crack width based on the corresponding actual distance between the two sides of the dam surface, including: Based on the parametric equations of the dam surface design surface, the deflection values ​​of the dam surface design surface along the first parameter direction and the second parameter direction are calculated respectively. Based on the inner product relationship between the deflection quantities of the two parameter directions, a first basic shape coefficient is determined to characterize the local length measurement relationship of the dam surface design surface; Determine the parameter increments of adjacent skeleton nodes along two parameter directions in the dam surface unfolded coordinate system. Based on the parameter increments and the first basic shape coefficient corresponding to the location of the adjacent skeleton nodes, determine the actual arc length between the adjacent skeleton nodes along the dam surface design surface. Then, accumulate the actual arc lengths between each adjacent skeleton node to obtain the crack length. The local extension direction of the crack skeleton at each skeleton node is determined based on the positional relationship between each skeleton node and its adjacent skeleton nodes. The width measurement direction perpendicular to the local extension direction is determined in the local tangent plane of the dam surface. The crack boundary is searched along the width measurement direction to both sides of the crack. Based on the parameter increments of the two sides of the crack in the dam surface unfolded coordinate system and the first basic shape coefficient at the corresponding position, the actual distance between the two sides of the crack along the dam surface is determined, the local crack width at each skeleton node is obtained, and the crack width is determined based on the local crack width at each skeleton node.

[0012] Optionally, the step of combining the crack length, crack width, orientation, spatial location, and morphological characteristics with the first principal stress, equivalent stress, and stress gradient at each skeleton node location, and determining the mechanical cause of each crack according to preset mechanical and morphological characteristic judgment conditions corresponding to different crack causes, includes: Based on whether the skeleton nodes of each crack are located in the dam body mechanical interest area, the relationship between the first principal stress and the preset stress threshold, the angle between the crack direction and the first principal stress direction, and the crack morphology characteristics, the structural stress crack judgment result corresponding to the crack is determined. Based on the crack direction, the relationship between the first principal stress and the preset stress threshold, and the crack morphology characteristics, the temperature crack determination result corresponding to the crack is determined. The settlement crack determination result is determined based on the spatial location and morphological characteristics of the crack. The material degradation crack judgment result corresponding to the crack is determined based on the crack distribution pattern, crack width, and stress level at each skeleton node. The mechanical causes of the cracks are determined based on the structural stress crack determination results, temperature crack determination results, settlement crack determination results, and material deterioration crack determination results corresponding to each crack.

[0013] Optionally, the detection results may also include risk assessment results, and the methods for obtaining the risk assessment results include: Based on the spatial coordinates of the dam surface corresponding to the ordered skeleton node sequence of each crack, the first principal stress, equivalent stress, and stress gradient at each skeleton node location are obtained from the finite element calculation results to determine the direction, spatial location, and morphological characteristics of each crack. The crack length, crack width, direction, spatial location, and morphological characteristics are combined with the first principal stress, equivalent stress, and stress gradient at each skeleton node location. Based on the preset mechanical and morphological characteristics judgment conditions corresponding to different crack causes, the mechanical cause of each crack is determined. The risk assessment result of each crack is determined based on the mechanical cause, crack length, crack width, and the dam body region where the crack is located.

[0014] A terminal device includes a memory and a processor. The memory stores a computer program that can run on the processor. When the processor loads and executes the computer program, it employs a dam crack detection method.

[0015] A computer-readable storage medium storing a computer program, which, when loaded and executed by a processor, employs a method for detecting cracks in dam bodies.

[0016] The beneficial effects of this invention are: 1. A finite element model is established based on the dam's geometric parameters, material mechanics parameters, and load conditions to obtain the first principal stress, its direction, equivalent stress, and its spatial gradient. Based on this, the mechanically relevant region and mechanical weight map of the dam are determined. Then, the image features extracted from the corrected dam surface image are weighted using these regions and weight maps, giving greater feature response weights to crack image features located at higher first principal stresses. This allows the dam's structural mechanics information to be incorporated into the crack visual detection process. Crack identification now relies not only on dam surface texture features but also on the actual stress state at the crack's location, thereby enhancing the detection capability for cracks in mechanically sensitive areas and reducing the possibility of false detections caused by non-crack features such as water stains, construction joints, and surface textures.

[0017] 2. By intersecting the camera's projected ray with the dam's design surface, the pixels of the UAV image are mapped to a unified dam surface coordinate system. The increments of the skeleton nodes in the parameter domain are converted into actual distances on the dam surface using the first fundamental shape coefficient of the dam surface design, achieving surface-compensated measurements of crack length and width. Simultaneously, the crack's length, width, orientation, spatial location, and morphological characteristics are correlated with the first principal stress, equivalent stress, and stress gradient at the skeleton nodes. The cause of the crack is determined based on the mechanical and morphological characteristics corresponding to different crack origins, and further risk assessment is conducted in conjunction with the dam area where the crack is located. This allows for the correlation between crack geometric measurement, mechanical cause determination, and risk assessment without relying on a single indicator of crack geometry, improving the accuracy of crack assessment results. Attached Figure Description

[0018] Figure 1 This is a schematic diagram of a dam crack detection method according to the present invention. Detailed Implementation

[0019] A method for detecting cracks in dam bodies, such as Figure 1 As shown, the present invention includes: S1. Obtain the geometric parameters, material mechanics parameters, and load conditions of the dam body. Based on the geometric parameters, material mechanics parameters, and load conditions of the dam body, establish a finite element model of the dam body and perform finite element calculations to obtain the first principal stress, the direction of the first principal stress, and the equivalent stress corresponding to the spatial location of the dam body. Obtain the first principal stress and equivalent stress at each spatial location of the dam body. Determine the mechanical interest area of ​​the dam body based on the magnitude of the first principal stress and the spatial gradient of the equivalent stress. Normalize the first principal stress at the dam surface location and project it onto the dam surface unfolded coordinate system to form a mechanical weight map corresponding to the dam surface location. Obtain the geometric parameters, material mechanics parameters, and load conditions of the dam body. Based on these parameters, establish a finite element model of the dam body and perform finite element calculations to obtain the first principal stress and equivalent stress at each spatial location of the dam body. Determine the region of interest in the dam body's mechanics based on the magnitude of the first principal stress and the spatial gradient of the equivalent stress. Normalize the first principal stress at the dam face location and project it onto the dam face's expanded coordinate system to form a mechanical weight map corresponding to the dam face location, including: A three-dimensional geometric model of the dam body is established based on the dam body's geometric parameters. The three-dimensional geometric model of the dam body is divided into finite element meshes according to the material partitions of the dam body. The meshes are refined for the preset stress concentration areas. The material mechanical parameters corresponding to different material partitions are assigned to the corresponding finite element mesh elements to obtain the finite element mesh model of the dam body. The loads and boundary constraints acting on the dam body finite element mesh model are determined based on the load conditions. The loads and boundary constraints are then applied to the dam body finite element mesh model to obtain the dam body finite element model. Solve the finite element model of the dam body to obtain the displacement field and stress field of the dam body. Extract the first principal stress, the direction of the first principal stress and the equivalent stress corresponding to each finite element mesh position from the stress field. Obtain the first principal stress field and the equivalent stress field corresponding to the spatial position of the dam body through spatial interpolation. The spatial gradient of the equivalent stress is determined based on the equivalent stress field. The region of interest in dam mechanics is determined based on the relationship between the first principal stress and the preset tensile stress threshold, as well as the relationship between the spatial gradient of the equivalent stress and the preset gradient threshold. The spatial correspondence between the dam body mechanical interest area and the dam surface is determined. The dam body mechanical interest area located on the dam surface is mapped to the dam surface unfolded coordinate system to obtain the mechanical interest area corresponding to the spatial position of the corrected dam surface image. The first principal stress corresponding to the dam surface position is normalized and mapped to the dam surface unfolded coordinate system to form a mechanical weight map under the same dam surface unfolded coordinate system as the mechanical interest area.

[0020] Specifically, the first principal stress is the maximum value among the three principal stresses of the stress tensor; this specification assumes tensile stress to be positive. The mechanical weighting diagram is a two-dimensional weighted field obtained by normalizing the first principal stress of the dam surface and mapping it to the dam surface unfolded coordinate system. The dam body mechanical interest region refers to the region with a high stress level or a relatively drastic stress change identified from the overall dam body region based on the spatial gradients of the first principal stress and equivalent stress at each spatial location calculated according to the dam body finite element model. The first principal stress characterizes the maximum principal stress state at each spatial location of the dam body, and the spatial gradient of the equivalent stress characterizes the degree of drastic change of the equivalent stress with spatial location. By judging the magnitude of the first principal stress and the spatial gradient of the equivalent stress at each spatial location, and combining them with preset judgment conditions, the dam body mechanical interest region is determined. The dam body mechanical interest region is used to characterize the areas in the dam body that require focused crack detection and serves as the basis for subsequent weighted processing of dam surface image features, allowing spatial information related to the dam body's mechanical state to participate in the crack identification process, thereby improving the focus of crack detection on potential crack areas.

[0021] Based on the dam design drawings, as-built drawings, or a verified 3D model, establish the solid geometry of the dam body, including at least the upstream face, downstream face, dam foundation contact surface, gallery, orifice, and the main geometric structures affecting local stress. For arch dams, the dam body surface can be established according to the parameters of the arch crown beam and horizontal arch ring; for gravity dams, a 3D model can be established according to the cross-section of a typical dam section and its spatial position along the dam axis.

[0022] Material zoning was determined based on concrete age, pouring zones, roller-compacted / normal concrete type, dam foundation rock mass, and contact interfaces, and the elastic modulus was also determined. Poisson's ratio Material density Coefficient of linear expansion Parameters are assigned to the corresponding elements. The mesh is refined at preset stress concentration locations such as dam heel, dam toe, gallery, orifice, geometric abrupt changes, and material interfaces.

[0023] The self-weight, upstream / downstream water pressure, uplift pressure, temperature load, and other static loads to be considered are applied based on the proposed evaluation conditions. The dam foundation boundary adopts displacement constraints or a foundation-dam coupling boundary consistent with the engineering calculation model. Multiple conditions can be solved and saved separately for subsequent selection of the condition closest to the drone inspection date. Water pressure calculation is as follows:

[0024] in, water depth h The hydrostatic pressure acting on the dam face, It is the acceleration due to gravity. To calculate the water depth at the point, This is the density of water.

[0025] Temperature loads are determined based on stratified data of air temperature at the dam site and water temperature in the reservoir to determine the temperature field of the dam body; material parameters are assigned values ​​according to the material zones of the dam body.

[0026] The linear elastic static solution of the finite element model of the dam body after applying loads and boundary conditions is performed. The governing equations of the finite element solution are:

[0027] in, The overall stiffness matrix, Let be the nodal displacement vector. This is the equivalent nodal load vector. This formula is used to solve the dam displacement field; after obtaining the displacement results, the stress field is obtained through finite element post-processing, and the first principal stress, the direction of the first principal stress, and the von Mises equivalent stress at each finite element mesh location are extracted from the stress field.

[0028] The spatial gradient of the equivalent stress is determined by the equivalent stress field, and the first principal stress is compared with the preset tensile stress threshold, and the spatial gradient of the equivalent stress is compared with the preset gradient threshold. The criteria for determining the region of interest are as follows:

[0029]

[0030] in, This is the design value of the axial tensile strength of concrete. This represents the spatial gradient magnitude of the von Mises equivalent stress. This is the stress gradient threshold. This gradient threshold can be taken as the 30th percentile value of the maximum stress gradient of the dam body. The spatial location of point 1 constitutes a mechanically weak area that requires focused visual inspection. Simultaneously, the normalized first principal stress field... Projected onto the dam surface and unfolded into a coordinate system, this serves as a mechanical attention weighting diagram. .

[0031] S2. Acquire the dam surface image collected by the UAV and the camera position and attitude information synchronized with the dam surface image. Based on the camera intrinsic parameters and the camera position and attitude information, determine the spatial projection ray corresponding to each pixel in the dam surface image. Intersect the spatial projection ray with the dam surface design surface determined according to the dam body design parameters to obtain the dam surface spatial coordinates corresponding to each pixel. Map the dam surface spatial coordinates to the dam surface unfolded coordinate system with the dam surface arc length direction and elevation direction as coordinate axes to obtain the corrected dam surface image. The spatial projection ray is intersected with the dam surface design surface determined according to the dam design parameters to obtain the spatial coordinates of the dam surface corresponding to each pixel. These spatial coordinates are then mapped to a dam surface unfolded coordinate system with the dam surface arc length and elevation directions as coordinate axes to obtain the corrected dam surface image, including: Establish the parametric equations for the dam surface design based on the dam body design parameters; The camera's extrinsic parameters are determined based on the camera's position and attitude information, and the spatial projection rays of each pixel in the image from the camera's optical center to the dam surface are determined by combining the camera's intrinsic parameters. Calculate the intersection points of each spatial projection ray with the dam surface design surface, and use the intersection points as the dam surface spatial coordinates of the corresponding pixels; The spatial coordinates of the dam surface corresponding to each pixel are converted into unfolded coordinates along the arc length and elevation directions of the dam surface, and the dam surface image is resampled according to the preset spatial resolution to obtain the corrected dam surface image.

[0032] Specifically, camera intrinsic parameters are used to describe imaging parameters such as camera focal length and principal point, are obtained from camera calibration, and are used to determine the projection direction of image pixels in the camera coordinate system.

[0033] Camera position and attitude information, including UAV POS data and gimbal attitude information, is used to determine the camera optical center and camera extrinsic parameters, enabling the image projection ray to be transformed into the dam engineering coordinate system.

[0034] The spatial projection ray originates from the camera's optical center and passes through a specified pixel in the image. The intersection of this ray and the dam surface design surface is the spatial location of the dam surface corresponding to that pixel.

[0035] The dam surface design surface is a parametric surface established based on the dam body design parameters, used to describe the ideal geometric position of the dam surface.

[0036] The dam surface unfolded coordinate system is a two-dimensional coordinate system with the arc length and elevation directions of the dam surface as coordinate axes. It is used to uniformly express the corrected dam surface image, mechanical weight map, and crack detection results.

[0037] The corrected dam surface image is obtained by resampling the original dam surface image through a mapping relationship between pixels, dam surface spatial coordinates, and unfolded coordinates.

[0038] Acquire images of the dam surface and synchronize camera position and attitude information: A drone equipped with a high-resolution visible light camera conducts inspections along a predetermined route on the dam surface, acquiring a sequence of images of the dam surface and simultaneously recording the camera position, drone attitude, and gimbal attitude. One set of implementation parameters is as follows: camera resolution of no less than 24 megapixels, flight distance of approximately 3 to 8 meters from the dam surface, flight speed of approximately 1.0 to 2.5 meters per second, forward overlap of no less than 70%, lateral overlap of no less than 50%, and the angle between the camera optical axis and the local tangent plane of the dam surface not exceeding ±15 degrees.

[0039] Using the intrinsic parameters and distortion coefficients obtained from camera calibration, radial and tangential distortion corrections are performed on the original image. The mathematical expression for distortion correction is as follows, first calculated:

[0040] Then, the two pixel coordinate components are corrected based on the radial and tangential distortion coefficients:

[0041]

[0042] in, , , The radial distortion coefficient is... , The tangential distortion coefficient is... , as well as , These are the principal point and focal length related parameters in the camera's intrinsic parameters. , These are the pixel coordinates of the distorted image. x , y These are the corresponding normalized coordinates used in the distortion model. r Radial distance, u and v This is the corrected standard pixel unit.

[0043] The camera's extrinsic parameters are determined based on the synchronous camera's position and attitude information, and the spatial projection rays from the camera's optical center to each pixel in the dam surface image are determined in conjunction with the camera's intrinsic parameters. The intersection point between the spatial projection ray corresponding to each pixel and the dam surface design is calculated, and this intersection point is used as the dam surface spatial coordinates of the corresponding pixel. For cases with multiple candidate intersection points, the valid intersection point is determined based on the relationship between the camera orientation and the dam surface visibility.

[0044] The spatial coordinates of the dam surface corresponding to each pixel are converted into unfolded coordinates along the arc length and elevation directions of the dam surface, and the dam surface image is resampled according to the preset spatial resolution to obtain the corrected dam surface image. In this embodiment, the spatial resolution of the unfolded image is uniformly set to 0.15 mm / pixel.

[0045] The corrected dam surface image output by S2 and the dam surface mechanical interest area and mechanical weight map output by S1 use the same dam surface unfolded coordinate system, which enables spatial alignment in S3.

[0046] S3. Multi-scale image feature extraction is performed on the corrected dam surface image to obtain image features. The image features are weighted according to the mechanical weight map and the mechanical interest area of ​​the dam body to obtain weighted image features. Based on the weighted image features, the probability of each pixel belonging to a crack is determined to obtain a crack probability map. Crack areas are determined based on the crack probability map. Multi-scale image feature extraction is performed on the corrected dam surface image to obtain image features. These features are then weighted according to the mechanical weight map and the region of interest in dam mechanical structure to obtain weighted image features, including: The corrected dam surface image is encoded to obtain an encoded feature map. The encoded feature map is then used to extract crack image features at different scales using multiple feature extraction branches with different receptive fields. The crack image features at different scales are then fused to obtain the image features. The mechanical weight map is spatially aligned with the image features. The mechanical interest area of ​​the dam body is used as the spatial interest prior. The image features are modulated according to the mechanical weights corresponding to each spatial position, so that the image features located at the higher position of the first principal stress obtain a larger feature response weight, thus obtaining weighted image features. The weighted image features are decoded, and the probability of each pixel belonging to a crack is determined based on the decoding results.

[0047] Specifically, the encoded feature map is a high-dimensional image feature obtained after encoding the corrected dam surface image, and it serves as the input for subsequent multi-scale crack feature extraction.

[0048] Multi-scale image features are crack features obtained and fused from multiple feature extraction branches using different receptive fields, used to simultaneously characterize fine cracks and larger-scale cracks.

[0049] Mechanical modulation utilizes a mechanical weighting map to adjust the spatial location-related response of image features, so that features at higher positions of the first principal stress receive greater response weights.

[0050] The dam mechanics focus area is the identified mechanically weak area, which serves as the spatial focus prior.

[0051] The crack probability map is the probability distribution of each pixel belonging to the crack category in the decoding result.

[0052] The corrected dam surface image is encoded to obtain an encoded feature map, and crack image features at different scales are extracted using multiple feature extraction branches with different receptive fields. A DeepLabV3+ encoder-decoder architecture is adopted, with ResNet-101 as the backbone network, and an ASPP module is set after the encoder, with hole ratios of 1, 6, 12, and 18. ASPP feature fusion is performed according to the following formula:

[0053] in, The input ASPP module features are encoded as feature maps. 、 、 、 The symbols represent branches with different hole rates, and GAP represents the global average pooling branch. Concat This indicates that the features of each branch are concatenated. This indicates the convolutional fusion after splicing. These are image features.

[0054] Mechanical weighting diagram Spatial alignment with image features is performed, and the dam's mechanically relevant region is used as a spatial prior. The mechanically guided feature modulation function is as follows:

[0055] in, For the encoder in spatial position ( ),aisle Output characteristics at that location For mechanical weights at the same position, This is the mechanical modulation intensity coefficient. This coefficient can be between 0.3 and 0.5. Positions with higher first principal stresses correspond to larger... This allows the image features at that location to receive a higher response.

[0056] The characteristics of ASPP fusion are as follows:

[0057] This formula is used to directly modulate multi-scale fusion features, and the modulated features are... Proceed to the subsequent decoding process. These are weighted image features.

[0058] Area of ​​Concern in Dam Mechanics Spatial alignment with image features, to =1 The region is designated as a key focus area, and within this region, the mechanical weighting diagram is applied. Mechanical modulation of image features.

[0059] The mechanically modulated multi-scale features are fed into the decoder to restore the original spatial resolution, and the probability of each pixel belonging to a crack is output. To address the issue of the low proportion of crack pixels and the higher importance of detecting mechanically weak regions, the combined loss function is:

[0060] The mechanical sensing loss term is calculated according to the following formula:

[0061] in, For Dice's loss, For weighted cross-entropy loss, For mechanical sensing loss, Total number of pixels For pixels The x and y coordinates, For the first i Pixel prediction probability, To correspond to the real tags, γ As the mechanical loss weight, γ 0.2 is acceptable. This is the loss weight. This loss term gives extra attention to the prediction error at locations with higher mechanical weights.

[0062] The above combined loss function is used in the training phase of the crack detection network, where the true label... Cracks are obtained from the training samples. After the network training is completed, the corrected dam surface image is input into the trained network for forward computation during the actual dam surface crack detection process, without the need to calculate the combined loss function again.

[0063] The crack probability map is obtained based on the decoded pixel crack probability. The crack region is obtained by thresholding based on the crack probability map.

[0064] S4. Refine the crack region to obtain the crack skeleton; for each skeleton point on the crack skeleton, determine the position offset of the skeleton point according to the crack probability distribution in the neighborhood of the skeleton point, and obtain the corresponding corrected skeleton point according to the position offset; sort the corrected skeleton points according to the topological connectivity of the crack skeleton to obtain an ordered corrected skeleton point sequence; simplify the ordered corrected skeleton point sequence by polyline analysis to determine the skeleton nodes used to characterize the crack path, forming an ordered skeleton node sequence corresponding to each crack. For each skeleton point on the crack skeleton, the position offset of the skeleton point is determined according to the crack probability distribution in its neighborhood, and the corresponding corrected skeleton point is obtained based on the position offset; the corrected skeleton points are sorted according to the topological connectivity of the crack skeleton to obtain an ordered sequence of corrected skeleton points; the ordered sequence of corrected skeleton points is simplified by polyline analysis to determine the skeleton nodes used to characterize the crack path, forming an ordered sequence of skeleton nodes corresponding to each crack, including: A neighborhood of a preset size is determined with each skeleton point as the center. The weighted center of the crack probability distribution in the neighborhood is calculated based on the crack probability of each pixel in the neighborhood and the position of each pixel relative to the skeleton point. The position offset is determined based on the position difference between the weighted center and the skeleton point, and the position of the skeleton point is corrected based on the position offset to obtain the corrected skeleton point sequence. The skeleton topological connection relationship is determined based on the eight-neighbor connectivity relationship between each skeleton point before correction. The skeleton points are continuously tracked based on the skeleton topological connection relationship, and the corrected skeleton point sequence is arranged according to the tracking order to obtain an ordered corrected skeleton point sequence. The ordered corrected skeleton point sequence is simplified by polyline analysis to determine the skeleton nodes used to characterize the crack path, forming an ordered skeleton node sequence corresponding to each crack.

[0065] The skeleton points are integer pixel positions obtained from the thinning algorithm. The corrected skeleton points are coordinates after sub-pixel correction via probabilistic centroids. The skeleton nodes are corrected skeleton points arranged according to the topology tracing order.

[0066] Specifically, the crack skeleton is a single-pixel wide centerline obtained after refining the crack region, used to express the crack's topology and extension path.

[0067] The skeleton point neighborhood is a local pixel range selected centered on a given skeleton point. In this embodiment, a 3×3 neighborhood is used.

[0068] The weighted center of the crack probability distribution is the local center position calculated using the crack probability of each pixel in the neighborhood as the weight, which is used to determine the sub-pixel offset of the integer pixel skeleton point.

[0069] Eight-neighbor connectivity refers to the connection between a pixel and its horizontal, vertical, and diagonal adjacent pixels in a two-dimensional pixel grid. It is used to maintain the skeleton topology and determine the node tracking order.

[0070] The ordered skeleton node sequence is a sequence of skeleton point coordinates arranged in the order of the crack skeleton's connected paths, and it serves as the input for calculating the crack length and width.

[0071] The crack probability map is binarized to obtain a crack mask, and a thinning algorithm is used to extract the single-pixel wide crack skeleton. The binarization threshold is set to 0.5, and the Zhang-Suen parallel thinning algorithm is used until the skeleton converges and the topological connectivity remains unchanged.

[0072] Calculate the weighted center of the crack probability distribution in the neighborhood of each skeleton point, and correct the position of the skeleton point.

[0073] For skeleton points ( , A 3×3 neighborhood is selected centered on this point. The sub-pixel position is calculated based on the relative position of the pixels within the neighborhood to the skeleton point and the corresponding crack probability. The formula for correcting the horizontal coordinate is:

[0074] The formula for correcting the ordinate is:

[0075] in, 、 This indicates the horizontal and vertical offsets of neighboring pixels relative to the current skeleton point. This represents the crack probability of the corresponding pixel. ∑P This represents the sum of the crack probability values ​​within that neighborhood. and These are the corrected subpixel coordinates. The skeleton point positions are corrected, causing the skeleton to move towards the center of the local crack probability distribution.

[0076] The skeleton topology is established based on the eight-neighbor connectivity of the skeleton points before correction, and an ordered sequence of skeleton nodes is formed.

[0077] First, the skeleton topology is determined based on the eight-neighbor connectivity between the integer pixel skeleton points before correction. Then, continuous tracing is performed from the crack endpoints or branch nodes according to the topological relationship. The tracing order is determined by the original skeleton connectivity, and the node coordinates are the sub-pixel coordinates corrected in the previous step. The corrected skeleton points are traced in an ordered manner with 8-adjacency connectivity, and the Douglas-Peucker algorithm (tolerance 1.0 pixel) is used for polyline simplification.

[0078] S5. Based on the parametric equations of the dam surface design, obtain the deflection quantities along the two parameter directions. Determine the first basic shape coefficient of the dam surface design based on the deflection quantities. For adjacent skeleton nodes, convert the parameter increments of adjacent skeleton nodes in the dam surface unfolded coordinate system into actual arc lengths on the dam surface based on the first basic shape coefficients. Accumulate the actual arc lengths between each adjacent skeleton node to obtain the crack length. Determine the two sides of the crack boundary along the local normal direction of the crack skeleton at each skeleton node. Obtain the crack width based on the actual distance between the two sides of the dam surface. The deflection quantities along two parameter directions are obtained based on the parametric equations of the dam surface design. The first fundamental shape coefficient of the dam surface design is determined from these deflection quantities. For adjacent skeleton nodes, the parameter increments of the adjacent skeleton nodes in the dam surface unfolded coordinate system are converted into actual arc lengths on the dam surface based on the first fundamental shape coefficients. The actual arc lengths between each adjacent skeleton node are accumulated to obtain the crack length. The two sides of the crack boundary are determined along the local normal direction of the crack skeleton at each skeleton node. The crack width is obtained based on the corresponding actual distance between the two sides of the dam surface, including: Based on the parametric equations of the dam surface design, the deflection quantities of the dam surface design along the first parameter direction and the second parameter direction are calculated respectively. Based on the inner product relationship between the deflection quantities of the two parameter directions, the first basic shape coefficient used to characterize the local length measurement relationship of the dam surface design surface is determined; Determine the parameter increments of adjacent skeleton nodes along two parameter directions in the dam surface unfolded coordinate system. Based on the parameter increments and the first basic shape coefficients corresponding to the positions of adjacent skeleton nodes, determine the actual arc lengths between adjacent skeleton nodes along the dam surface design surface. Then, accumulate the actual arc lengths between each adjacent skeleton node to obtain the crack length. The local extension direction of the crack skeleton at each skeleton node is determined based on the positional relationship between each skeleton node and its adjacent skeleton nodes. The width measurement direction perpendicular to the local extension direction is determined in the local tangent plane of the dam surface. The crack boundary is searched along the width measurement direction to both sides of the crack. Based on the parameter increments of the two sides of the crack in the dam surface unfolded coordinate system and the first basic shape coefficient at the corresponding position, the actual distance between the two sides of the crack along the dam surface is determined, the local crack width at each skeleton node is obtained, and the crack width is determined based on the local crack width at each skeleton node.

[0079] Specifically, the parametric surface of the dam surface is a surface representation that describes the three-dimensional position of the dam surface using two parameters. Let θ represent the parametric surface of the arch dam, where θ represents the central angle parameter and z represents the elevation parameter.

[0080] Based on the mapping relationship between the dam surface spatial coordinates and the dam surface unfolded coordinates established in S2, the unfolded coordinates corresponding to each skeleton node are converted into parametric coordinates of the dam surface design surface. The arc length unfolded coordinates correspond to the first parametric direction, and the second unfolded coordinates correspond to the elevation parameter z, thereby obtaining the parametric positions of each skeleton node. .

[0081] The deflection vector is the first-order variation vector of the parameterized surface of the dam surface along two parameter directions, denoted as […]. and .

[0082] The first basic form is a local length measurement relationship determined by the inner product of the two parameter directional deviations of the dam surface, which is used to convert the increment in the parameter domain into the actual distance of the dam surface.

[0083] The first basic form coefficients E, F, and G are three local metric coefficients in the first basic form, used to represent the length scale of each of the two parameter directions and the coupling relationship between the two parameter directions.

[0084] Local normal direction of the crack: This is the direction perpendicular to the local extension direction of the crack skeleton within the local tangent plane of the dam surface, and is used to search for the boundary from the center of the skeleton to both sides of the crack.

[0085] The local crack width is the actual distance between the two crack boundaries at a certain skeleton node, obtained by searching along the local normal direction.

[0086] For the parametric surface of the dam Find along each direction and Directional deviation and The first fundamental form coefficient is:

[0087] In this formula, E, F, and G are determined by the inner product of the directional deviations of the two parameters. This formula is used to establish a metric relationship between the local parameter increments of the dam surface and the actual length.

[0088] The parameter increments are converted into the actual arc length of the dam surface using the first basic form: In the dam surface parameter domain, the small increments along the two parameter directions are respectively and At that time, the actual arc length relationship of the dam surface is as follows:

[0089] This formula is used to convert local increments in the dam surface parameter domain into actual arc lengths on the surface, thus achieving dam surface curvature compensation. In practical applications, the parameter increments are determined according to the corresponding parameter positions of adjacent skeleton nodes, and the corresponding E, F, and G values ​​are queried at the adjacent node positions.

[0090] Calculate the crack length: After mapping the ordered skeleton nodes to the dam surface space, the dam surface distances between adjacent nodes are accumulated according to the tracking order of the skeleton nodes. The formula for calculating the crack length is:

[0091] in, and For adjacent skeleton nodes, This represents the spatial location of the skeleton node on the designed curved surface of the dam face, where N is the number of skeleton nodes for that crack. This formula is used to obtain the length L of the entire crack.

[0092] For each pair of adjacent skeleton nodes, the actual arc length between adjacent skeleton nodes along the dam surface design is determined by the first basic shape relationship based on their parameter increments and the first basic shape coefficients at the corresponding positions. The actual arc lengths between each pair of adjacent skeleton nodes are then accumulated according to the order of the ordered skeleton nodes to obtain the crack length L.

[0093] Search for the two sides of the crack along the local normal direction of the crack skeleton and calculate the width: The local crack extension direction is determined based on the positional relationship between each skeleton node and its adjacent skeleton nodes. A width measurement direction perpendicular to this local extension direction is then determined within the local tangential plane of the dam surface. The location where the crack probability decreases to 0.5 along this direction is used as the boundary to obtain the local crack width at each skeleton node. The maximum width and average width are:

[0094] in, For the first i The width of the local crack at each skeleton node This represents the number of skeleton nodes that participate in the width statistics. Indicates the maximum crack width. This represents the average crack width.

[0095] Optional calculation of crack area: When the crack area needs to be output, it can be calculated based on the number of crack mask pixels, the ground sampling distance, and the local curvature correction factor of the first basic shape:

[0096] in, For binary crack masking, GSD This refers to the spatial resolution corresponding to a single pixel. This is the curvature correction factor from the unit area of ​​the parameter domain to the actual area of ​​the dam surface.

[0097] S6. The detection results also include risk assessment results, and the methods for obtaining risk assessment results include: Based on the spatial coordinates of the dam surface corresponding to the ordered skeleton node sequence of each crack, the first principal stress, equivalent stress, and stress gradient at each skeleton node location are obtained from the finite element calculation results to determine the direction, spatial location, and morphological characteristics of each crack. The crack length, crack width, direction, spatial location, and morphological characteristics are combined with the first principal stress, equivalent stress, and stress gradient at each skeleton node location. Based on the preset mechanical and morphological characteristics judgment conditions corresponding to different crack causes, the mechanical cause of each crack is determined. The risk assessment result of each crack is determined based on the mechanical cause, crack length, crack width, and the dam body region where the crack is located.

[0098] The crack length, crack width, orientation, spatial location, and morphological characteristics are combined with the first principal stress, equivalent stress, and stress gradient at each skeleton node location. Based on preset mechanical and morphological characteristic judgment conditions corresponding to different crack causes, the mechanical causes of each crack are determined, including: Based on whether the skeleton nodes of each crack are located in the area of ​​concern of dam mechanics, the relationship between the first principal stress and the preset stress threshold, the angle between the crack direction and the direction of the first principal stress, and the crack morphology characteristics, the structural stress crack judgment result corresponding to the crack is determined. Based on the crack direction, the relationship between the first principal stress and the preset stress threshold, and the crack morphology characteristics, the temperature crack determination result corresponding to the crack is determined. The settlement crack determination result is determined based on the spatial location and morphological characteristics of the crack. The material degradation crack judgment result corresponding to the crack is determined based on the crack distribution pattern, crack width, and stress level at each skeleton node. The mechanical causes of the cracks are determined based on the results of the structural stress crack determination, temperature crack determination, settlement crack determination, and material deterioration crack determination corresponding to each crack.

[0099] Specifically, the direction of the crack is determined by the spatial extension direction of the ordered skeleton nodes, which is used to describe the main direction of the crack on the dam surface.

[0100] The spatial location of a crack refers to its position in the three-dimensional space of the dam face and its positional relationship with specific areas of the dam body, such as the dam foundation contact surface and material partition interfaces.

[0101] Crack morphology features are characteristics used to describe the appearance and distribution of cracks, including wedge shape, network, tortoise shell pattern, presence of directionality, and crack width variation.

[0102] Structural stress cracks are cracks that correspond clearly to the local high tensile stress in the dam body, the area of ​​mechanical concern, and the direction of the principal stress.

[0103] Temperature cracks are cracks that are related to temperature gradients and temperature-constrained deformation, and have corresponding orientation and stress level characteristics.

[0104] Settlement cracks are cracks that are related to the contact surface of the dam foundation, the interface between different material zones, and the location of differential deformation.

[0105] Material degradation cracks are caused by factors related to material degradation, such as freeze-thaw cycles, alkali-aggregate reactions, and chemical corrosion. They often manifest as cracks in a tortoise-shell pattern or a network pattern.

[0106] The risk assessment results are a comprehensive evaluation of the crack's cause, length, width, and the area of ​​the dam body where the crack is located, and are used to determine the priority of crack treatment.

[0107] Spatial correlation between crack skeleton nodes and finite element mechanics results: Based on the dam surface spatial coordinates corresponding to each ordered skeleton node of the crack, the first principal stress, the direction of the first principal stress, the von Mises equivalent stress, and the stress gradient at each skeleton node location are obtained from the finite element calculation results, and it is recorded whether each node is within the region of interest in dam mechanics.

[0108] Determine the direction, spatial location, and morphological characteristics of the crack: The overall direction and local extension direction of the cracks are determined based on the ordered skeleton nodes; the spatial relationship between the cracks and the dam foundation contact surface, the interface between different materials, and other key parts of the dam body is determined based on the spatial coordinates of the skeleton nodes; and whether the cracks are wedge-shaped, net-like, or tortoise-crack-like is determined based on the crack skeleton and width distribution.

[0109] Determine structural stress cracks: When a crack skeleton node is located in the area of ​​concern for dam mechanics, the first principal stress at the skeleton node reaches a high level, the crack orientation is approximately orthogonal to the direction of the first principal stress, and the crack exhibits a structural stress-related morphology, the structural stress crack determination result is obtained. The stress determination conditions are:

[0110] This condition is consistent with the tensile stress condition used in the area of ​​mechanical interest, and is used to explain that the location of the crack has a high first principal stress. This is the design value of the axial tensile strength of concrete. This is the first principal stress.

[0111] Identifying temperature cracks: The temperature crack determination result is determined based on the crack orientation, the level of the first principal stress, and the crack morphology. The crack orientation tends to be horizontal, with an orientation angle between 0 and 30 degrees or between 150 and 180 degrees, and the first principal stress at the skeleton node satisfies:

[0112] This stress condition is used to indicate that the location of the crack is not controlled by high structural tensile stress. If data from previous inspections is available, it can also be combined with the seasonal variation pattern of the crack width for further judgment.

[0113] Determining settlement cracks: Settlement crack assessment results are determined based on the spatial location and morphological characteristics of the cracks. Typical characteristics include: cracks located near the dam foundation contact surface, such as within approximately 5 meters above the dam foundation, or at the interface between different material zones; significant dislocations on both sides of the crack; and high shear stress at the skeleton node locations. Material deterioration cracks are also assessed. The material degradation crack assessment result is determined based on the crack distribution morphology, crack width, and stress level at each skeleton node location. Typical characteristics include: cracks distributed in a tortoise-shell or network pattern, crack width without obvious directionality, crack density significantly higher than the surrounding area, and the first principal stress at the skeleton node satisfying:

[0114] This condition is used to characterize the relatively low level of structural tensile stress at the location of material deterioration cracks, and needs to be judged together with the network or tortoise shell-like distribution pattern.

[0115] The main mechanical cause of the crack was determined based on multiple assessment results: The criteria for identifying structural stress cracks, temperature cracks, settlement cracks, and material degradation cracks may overlap. Therefore, the degree to which different characteristics satisfy the corresponding causes can be quantified. The cause confidence formula is:

[0116] in, For the first Membership function of each feature to its corresponding cause This is the feature weight. For the first The features used to determine the cause of cracks For the first Confidence level of crack origin. After calculating the confidence level of different origins for the same crack, the origin with the highest confidence level can be used as the primary classification label for the crack. When the highest confidence level is below 0.5, the crack can be marked as unclassified and manually verified.

[0117] The causal confidence level is a weighted combination of the degree to which a crack satisfies different mechanical and morphological judgment conditions, and is used to determine the main cause among multiple candidate causes.

[0118] The risk assessment results were determined based on the mechanical causes, crack length and width, and the location of the crack within the dam body. After determining the mechanical causes of the cracks, the crack width, crack length, and the importance of the region where the crack is located are combined to form a differentiated risk assessment. The risk scoring model is as follows:

[0119] in, For the first k Risk score for the crack As the weight of crack formation, , , Weights for width, length, and region items. This is the width grade function corresponding to the maximum crack width. For the first k Crack length, This is the maximum length used for normalized comparisons. For the dam body region where the crack is located, This is the regional correction coefficient corresponding to the cause.

[0120] In this embodiment, the cause weight of structural stress cracks is 1.0, that of settlement cracks is 0.7, that of material deterioration cracks is 0.5, and that of temperature cracks is 0.2; for structural stress cracks, the correction coefficient for the dam heel region can be 1.5; for temperature cracks, the correction coefficient for the region can be 1.0.

[0121] Through the above processing, each crack can output the crack spatial location, crack length, crack width, crack direction, crack morphological characteristics, mechanical state along the crack, mechanical cause determination results, and risk assessment results.

[0122] This application also discloses a terminal device, including a memory and a processor. The memory stores a computer program that can run on the processor. When the processor loads and executes the computer program, a dam crack detection method is used.

[0123] The terminal device can be a computer device such as a desktop computer, a laptop computer, or a cloud server. The terminal device includes, but is not limited to, a processor and a memory. For example, the terminal device may also include input / output devices, network access devices, and buses.

[0124] The processor can be a central processing unit (CPU). Of course, depending on the actual use, it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc., and this application does not limit it.

[0125] The memory can be an internal storage unit of the terminal device, such as a hard disk or RAM of the terminal device, or an external storage device of the terminal device, such as a plug-in hard disk, smart memory card (SMC), secure digital card (SD), or flash memory card (FC) equipped on the terminal device. Furthermore, the memory can be a combination of internal storage units and external storage devices of the terminal device. The memory is used to store computer programs and other programs and data required by the terminal device. The memory can also be used to temporarily store data that has been output or will be output. This application does not limit this.

[0126] In this terminal device, the dam crack detection method in the above embodiment is stored in the terminal device's memory and loaded and executed on the terminal device's processor for convenient use.

[0127] This application also discloses a computer-readable storage medium, which stores a computer program, wherein when the computer program is executed by a processor, it employs the dam crack detection method described in the above embodiments.

[0128] The computer program can be stored in a computer-readable medium. The computer program includes computer program code, which can be in the form of source code, object code, executable file, or certain middleware. The computer-readable medium includes any entity or device capable of carrying computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the computer-readable medium includes, but is not limited to, the above-mentioned components.

[0129] The dam crack detection method described in the above embodiments is stored in the computer-readable storage medium and loaded and executed on the processor to facilitate the storage and application of the above method.

[0130] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of protection of this application is limited to these examples; under the concept of this application, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of one or more embodiments of this application as described above, which are not provided in detail for the sake of brevity.

[0131] One or more embodiments in this application are intended to cover all such substitutions, modifications, and variations that fall within the broad scope of this application. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of one or more embodiments in this application should be included within the protection scope of this application.

Claims

1. A method for detecting cracks in dam bodies, characterized in that, include: Obtain the geometric parameters, material mechanics parameters, and load conditions of the dam body. Based on the geometric parameters, material mechanics parameters, and load conditions of the dam body, establish a finite element model of the dam body and perform finite element calculations to obtain the first principal stress and equivalent stress at each spatial location of the dam body. Based on the magnitude of the first principal stress and the spatial gradient of the equivalent stress, the mechanical interest area of ​​the dam body is determined. The first principal stress at the dam surface location is normalized and projected onto the dam surface unfolded coordinate system to form a mechanical weight map corresponding to the dam surface location. Acquire images of the dam surface collected by the UAV, as well as the camera position and attitude information synchronized with the images of the dam surface. Based on the camera intrinsic parameters and the camera position and attitude information, determine the spatial projection ray corresponding to each pixel in the images of the dam surface. The spatial projection ray is intersected with the dam surface design surface determined according to the dam design parameters to obtain the dam surface spatial coordinates corresponding to each pixel. The dam surface spatial coordinates are then mapped to the dam surface unfolded coordinate system to obtain the corrected dam surface image. Multi-scale image feature extraction is performed on the corrected dam surface image to obtain image features. The image features are then weighted according to the mechanical weight map and the dam body mechanical interest region to obtain weighted image features. The probability of each pixel belonging to a crack is determined based on the weighted image features to obtain a crack probability map. Crack regions are then determined based on the crack probability map. The crack region is refined to obtain a crack skeleton. For each skeleton point on the crack skeleton, the position offset of the skeleton point is determined according to the crack probability distribution in the neighborhood of the skeleton point, and the corresponding corrected skeleton point is obtained according to the position offset. The corrected skeleton points are sorted according to the topological connectivity of the crack skeleton to obtain an ordered corrected skeleton point sequence. The ordered corrected skeleton point sequence is simplified by polyline analysis to determine the skeleton nodes used to characterize the crack path, forming an ordered skeleton node sequence corresponding to each crack. The deflection quantities along two parameter directions are obtained according to the parametric equation of the dam surface design surface. The first basic shape coefficient of the dam surface design surface is determined by the deflection quantities. For adjacent skeleton nodes in the ordered skeleton node sequence, the parameter increments of the adjacent skeleton nodes in the dam surface unfolded coordinate system are converted into actual arc lengths on the dam surface according to the first basic shape coefficients. The actual arc lengths between each adjacent skeleton node are accumulated to obtain the crack length. The two sides of the crack boundary are determined along the local normal direction of the crack skeleton at each skeleton node. The crack width is obtained according to the actual distance between the two sides of the dam surface. The crack width and crack length are used as the detection results.

2. The method for detecting cracks in dam bodies according to claim 1, characterized in that, The geometric parameters, material mechanics parameters, and load conditions of the dam body are obtained. Based on the geometric parameters, material mechanics parameters, and load conditions of the dam body, a finite element model of the dam body is established and finite element calculations are performed to obtain the first principal stress and equivalent stress at each spatial location of the dam body. Based on the magnitude of the first principal stress and the spatial gradient of the equivalent stress, the region of interest in dam mechanics is determined. The first principal stress at the dam face location is normalized and projected onto the dam face expansion coordinate system to form a mechanical weight map corresponding to the dam face location, including: A three-dimensional geometric model of the dam body is established based on the geometric parameters of the dam body. The three-dimensional geometric model of the dam body is divided into finite element meshes according to the material partitions of the dam body. The mesh is refined for the preset stress concentration parts. The material mechanical parameters corresponding to different material partitions are assigned to the corresponding finite element mesh elements to obtain the finite element mesh model of the dam body. The loads and boundary constraints acting on the dam body finite element mesh model are determined according to the load conditions, and the loads and boundary constraints are applied to the dam body finite element mesh model to obtain the dam body finite element model. The finite element model of the dam body is solved to obtain the displacement field and stress field of the dam body. The first principal stress and equivalent stress corresponding to each finite element mesh position are extracted from the stress field. The first principal stress field and equivalent stress field corresponding to the spatial position of the dam body are obtained by spatial interpolation. The spatial gradient of the equivalent stress is determined based on the equivalent stress field, and the dam mechanical interest area is determined based on the relationship between the first principal stress and the preset tensile stress threshold and the relationship between the spatial gradient of the equivalent stress and the preset gradient threshold. The spatial correspondence between the dam body mechanical interest area and the dam surface is determined. The dam body mechanical interest area located on the dam surface is mapped to the dam surface unfolded coordinate system to obtain the mechanical interest area corresponding to the spatial position of the corrected dam surface image. The first principal stress corresponding to the dam surface position is normalized and mapped to the dam surface unfolded coordinate system to form the mechanical weight map under the same dam surface unfolded coordinate system as the mechanical interest area.

3. The method for detecting cracks in dam bodies according to claim 1, characterized in that, The process of intersecting the spatial projection ray with the dam surface design surface determined according to the dam design parameters to obtain the dam surface spatial coordinates corresponding to each pixel, and mapping the dam surface spatial coordinates to a dam surface unfolded coordinate system with the dam surface arc length direction and elevation direction as coordinate axes to obtain a corrected dam surface image includes: Based on the dam body design parameters, establish the parametric equations for the dam surface design. Based on the camera position and attitude information, determine the camera extrinsic parameters, and combine the camera intrinsic parameters to determine the spatial projection ray from the camera optical center to each pixel in the dam surface image; Calculate the intersection points of each spatial projection ray with the dam surface design surface, and use the intersection points as the dam surface spatial coordinates of the corresponding pixels; The spatial coordinates of the dam surface corresponding to each pixel are converted into unfolded coordinates along the arc length and elevation directions of the dam surface, and the dam surface image is resampled according to a preset spatial resolution to obtain the corrected dam surface image.

4. The method for detecting cracks in dam bodies according to claim 1, characterized in that, The process involves multi-scale image feature extraction from the corrected dam surface image to obtain image features. These features are then weighted according to the mechanical weight map and the dam's mechanically relevant region to obtain weighted image features, including: The corrected dam surface image is encoded to obtain an encoded feature map. The encoded feature map is then used to extract crack image features of different scales using multiple feature extraction branches with different receptive fields. The crack image features of different scales are then fused to obtain the image features. The mechanical weight map is spatially aligned with the image features, the mechanical interest region of the dam body is used as the spatial interest prior, and the image features are modulated according to the mechanical weights corresponding to each spatial position, so that the image features located at the higher position of the first principal stress obtain a larger feature response weight, thus obtaining the weighted image features. The weighted image features are decoded, and the probability that each pixel belongs to a crack is determined based on the decoding result.

5. The method for detecting cracks in dam bodies according to claim 1, characterized in that, For each skeleton point on the crack skeleton, the position offset of the skeleton point is determined according to the crack probability distribution in the neighborhood of the skeleton point, and the corresponding corrected skeleton point is obtained according to the position offset; the corrected skeleton points are sorted according to the topological connectivity of the crack skeleton to obtain an ordered corrected skeleton point sequence; the ordered corrected skeleton point sequence is simplified by polyline analysis to determine the skeleton nodes used to characterize the crack path, forming an ordered skeleton node sequence corresponding to each crack, including: A neighborhood of a preset size is determined with each skeleton point as the center. The weighted center of the crack probability distribution in the neighborhood is calculated based on the crack probability of each pixel in the neighborhood and the position of each pixel relative to the skeleton point. The position offset is determined based on the position difference between the weighting center and the skeleton point, and the position of the skeleton point is corrected based on the position offset to obtain a corrected skeleton point sequence. The skeleton topological connection relationship is determined based on the eight-neighbor connectivity relationship between each skeleton point before correction. The skeleton points are continuously tracked according to the skeleton topological connection relationship, and the corrected skeleton point sequence is arranged according to the tracking order to obtain an ordered corrected skeleton point sequence. The ordered corrected skeleton point sequence is simplified by polyline analysis to determine the skeleton nodes used to characterize the crack path, forming an ordered skeleton node sequence corresponding to each crack.

6. The method for detecting cracks in dam bodies according to claim 1, characterized in that, The deflection quantities along two parameter directions are obtained according to the parametric equation of the dam surface design surface, and the first basic shape coefficient of the dam surface design surface is determined by the deflection quantities; for adjacent skeleton nodes, the parameter increment of the adjacent skeleton nodes in the dam surface unfolded coordinate system is converted into the actual arc length on the dam surface according to the first basic shape coefficient, and the actual arc lengths between each adjacent skeleton node are accumulated to obtain the crack length. The two sides of the crack are determined along the local normal direction of the crack skeleton at each skeleton node. The crack width is obtained based on the actual distance between the corresponding dam surfaces between the two sides, including: Based on the parametric equations of the dam surface design surface, the deflection values ​​of the dam surface design surface along the first parameter direction and the second parameter direction are calculated respectively. Based on the inner product relationship between the deflection quantities of the two parameter directions, a first basic shape coefficient is determined to characterize the local length measurement relationship of the dam surface design surface; Determine the parameter increments of adjacent skeleton nodes along two parameter directions in the dam surface unfolded coordinate system. Based on the parameter increments and the first basic shape coefficient corresponding to the location of the adjacent skeleton nodes, determine the actual arc length between the adjacent skeleton nodes along the dam surface design surface. Then, accumulate the actual arc lengths between each adjacent skeleton node to obtain the crack length. The local extension direction of the crack skeleton at each skeleton node is determined based on the positional relationship between each skeleton node and its adjacent skeleton nodes. The width measurement direction perpendicular to the local extension direction is determined in the local tangent plane of the dam surface. The crack boundary is searched along the width measurement direction to both sides of the crack. Based on the parameter increments of the two sides of the crack in the dam surface unfolded coordinate system and the first basic shape coefficient at the corresponding position, the actual distance between the two sides of the crack along the dam surface is determined, the local crack width at each skeleton node is obtained, and the crack width is determined based on the local crack width at each skeleton node.

7. The method for detecting cracks in dam bodies according to claim 1, characterized in that, The test results also include risk assessment results, and the methods for obtaining the risk assessment results include: Based on the spatial coordinates of the dam surface corresponding to the ordered skeleton node sequence of each crack, the first principal stress, equivalent stress, and stress gradient at each skeleton node location are obtained from the finite element calculation results to determine the direction, spatial location, and morphological characteristics of each crack. The crack length, crack width, direction, spatial location, and morphological characteristics are combined with the first principal stress, equivalent stress, and stress gradient at each skeleton node location. Based on the preset mechanical and morphological characteristics judgment conditions corresponding to different crack causes, the mechanical cause of each crack is determined. The risk assessment result of each crack is determined based on the mechanical cause, crack length, crack width, and the dam body region where the crack is located.

8. The method for detecting cracks in dam bodies according to claim 7, characterized in that, The process involves combining the crack length, crack width, orientation, spatial location, and morphological characteristics with the first principal stress, equivalent stress, and stress gradient at each skeleton node location. Based on preset mechanical and morphological characteristic judgment conditions corresponding to different crack causes, the mechanical cause of each crack is determined, including: Based on whether the skeleton nodes of each crack are located in the dam body mechanical interest area, the relationship between the first principal stress and the preset stress threshold, the angle between the crack direction and the first principal stress direction, and the crack morphology characteristics, the structural stress crack judgment result corresponding to the crack is determined. Based on the crack direction, the relationship between the first principal stress and the preset stress threshold, and the crack morphology characteristics, the temperature crack determination result corresponding to the crack is determined. The settlement crack determination result is determined based on the spatial location and morphological characteristics of the crack. The material degradation crack judgment result corresponding to the crack is determined based on the crack distribution pattern, crack width, and stress level at each skeleton node. The mechanical causes of the cracks are determined based on the structural stress crack determination results, temperature crack determination results, settlement crack determination results, and material deterioration crack determination results corresponding to each crack.

9. A terminal device, comprising a memory and a processor, characterized in that, The memory stores a computer program that can run on a processor, and when the processor loads and executes the computer program, it employs the method described in any one of claims 1 to 8.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is loaded and executed by the processor, it employs the method described in any one of claims 1 to 8.