# US 2026/0308858 A1 · Underwater dam defect detection method, system, and storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0308858 A1
- Document ID: US20260308858A1
- Status: Published application
- Kind: A1
- Application number: 19/233,325
- Filed: 2025-06-10
- Published: 2026-10-08
- Earliest claimed: 2025-03-26
- Assignees: Hohai University
- Applicants: Hohai University
- Inventors: Pengfei SHI; Yueyue LIU; Yuanxue XIN; Jinyun LIU; Yingjuan XIE; Lihua DENG; Jianjun NI; Changchun CAI; Weidong CAO; Yang GU; Zhuo ZHANG
- Web page: https://patentgrep.com/patent/US20260308858A1

## CPC

- E02B 7/06: Earth-fill dams; Rock-fill dams
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06V 20/05: Underwater scenes
- E02B 2201/00: Devices, constructional details or methods of hydraulic engineering not otherwise provided for
- E02B: HYDRAULIC ENGINEERING (ship-lifting E02C; dredging E02F)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Disclosed is an underwater dam defect detection method, system, and storage medium, belonging to the technical field of underwater dam defect detection. The method includes: acquiring original underwater dam images; inputting the original underwater dam images into a pre-constructed defect detection model to output defect detection results. The construction of the defect detection model includes: acquiring an encoder-decoder model; replacing the output layer of the CASS module in the encoder with a dual-branch collaborative attention module, and replacing the fusion module with a dual-domain feature aggregation module to obtain the constructed defect detection model.

## Claims

### Claim 1

An underwater dam defect detection method, comprising:
acquiring original underwater dam images;
inputting the original underwater dam images into a pre-constructed defect detection model to output dam defect detection results;
where the construction of the defect detection model comprises:
acquiring an encoder-decoder model;
replacing the output layer of the CASS module in the encoder with a dual-branch collaborative attention module, and replacing the fusion module with a dual-domain feature aggregation module to obtain the constructed defect detection model.

### Claim 2 (depends on 1)

The underwater dam defect detection method according to claim 1, characterized in that the processing steps of the defect detection model comprise:
performing Zigzag feature scanning on the original underwater dam images in the encoder to obtain scanned features, and performing dual-branch feature extraction on the scanned features through a dual-branch collaborative attention module to obtain output feature maps;
performing dual-domain feature aggregation on the output feature maps in the dual-domain feature aggregation module to obtain aggregated features;
decoding and reconstructing the aggregated features in the decoder to obtain dam defect detection results.

### Claim 3 (depends on 2)

The underwater dam defect detection method according to claim 2, characterized in that the Zigzag feature scanning of the original underwater dam images to obtain scanned features comprises:
performing continuous row-wise feature scanning on the original underwater dam images to obtain horizontal scanned features;
performing continuous column-wise feature scanning on the original underwater dam images to obtain vertical scanned features;
dividing the original underwater dam images into multiple windows, and performing feature scanning on each window to obtain local scanned features.

### Claim 4 (depends on 3)

The underwater dam defect detection method according to claim 3, characterized by comprising:
when the original underwater dam images is scanned to the end of a row or column, reversing the direction based on a preset scan position mapping table and continuing feature scanning on adjacent positions until all positions are scanned.

### Claim 5 (depends on 2)

The underwater dam defect detection method according to claim 2, characterized in that the dual-branch feature extraction on the scanned features to obtain the output feature maps comprises:
F
g
=
ℛ
⁡
(
F
i
⁢
n
,
G
)
;
F
h
=
AvgPool
h
(
F
g
)
,
(
F
w
=
AvgPool
w
(
F
h
)
⊤
;
)
F
~
h
=
σ
⁡
(
Γ
⁡
(
Concat
k
=
3
,
5
,
7
(
Conv
⁢
1
⁢
D
k
(
F
h
(
m
)
)
m
=
1
N
)
)
)
;
F
~
w
=
σ
⁡
(
Γ
⁡
(
Concat
k
=
3
,
5
,
7
(
Conv
⁢
1
⁢
D
k
(
F
w
(
m
)
)
m
=
1
N
)
)
)
;
C
1
=
F
~
h
⊙
F
~
w
⊙
F
~
g
;
F
conv
=
Conv
⁢
3
×
3
⁢
(
F
g
)
;
M
=
σ
⁡
(
Softmax
⁢
(
C
1
)
⊗
1
H
×
W
⁢
∑
i
=
1
H
∑
j
=
1
W
F
conv
(
i
,
j
)
+
1
H
×
W
⁢
∑
i
=
1
H
∑
j
=
1
W
C
1
(
i
,
j
)
⊗
Softmax
⁢
(
F
conv
)
)
;
F
out
=
M
⊙
F
g
;
where, Fg represents the features obtained after grouping the input feature maps; Fh denotes the features obtained by average pooling Fg along the height dimension; Fw denotes the features obtained by average pooling Fg along the width dimension; {tilde over (F)}h denotes the features further processed from Fh; {tilde over (F)}w denotes the features further processed from Fw; C1 denotes the features obtained by element-wise multiplication of {tilde over (F)}h, {tilde over (F)}w and Fg; Fconv denotes the result of applying a 3×3 convolution to Fg; M denotes the generated attention weight matrix; Fout denotes the output feature maps; Fin denotes the input feature maps; G denotes the number of groups; (•) denotes the group-wise dimension transformation operation; AvgPoolh(•) denotes average pooling along the height dimension; AvgPoolw(•) denotes average pooling along the width dimension;
F
h
(
m
)
denotes the m-th sub-segment of Fh; N denotes the number of sub-segments; Conv1Dk(•) denotes a 1D convolution with a kernel size of k; Concat(•) denotes concatenation of multiple feature dimensions; k=(3,5,7) denotes different convolution kernel sizes; Γ(•) denotes GroupNorm processing; σ(•) denotes the Sigmoid activation function;
F
w
(
m
)
denotes the m-th sub-segment of Fw; Conv3×3(•) denotes a 3×3 convolution; Softmax(•) denotes the Softmax activation function; H W denotes the height and width of the image; ⊙ denotes element-wise multiplication; ⊗ denotes matrix multiplication.

### Claim 6 (depends on 2)

The underwater dam defect detection method according to claim 2, characterized in that performing dual-domain feature aggregation on the output feature maps to obtain aggregated features comprises:
S
1
fuse
=
BN
⁡
(
GConv
3
×
3
(
E
n
-
k
)
)
⊕
BN
⁡
(
GConv
3
×
3
(
D
k
)
)
;
S
2
ap
=
AvgPool
⁡
(
AvgPool
⁡
(
ReLU
⁡
(
•
)
)
)
;
S
3
detail
=
ReLU
⁡
(
BN
⁡
(
Conv
⁡
(
S
1
fuse
⊖
S
2
ap
)
)
)
⊕
S
1
fuse
;
S
3
multiply
=
ReLU
⁡
(
BN
⁡
(
Conv
⁡
(
S
1
fuse
⊗
S
2
ap
)
)
)
;
S
3
merge
=
Concat
⁡
(
S
3
multiply
,
S
3
detail
)
;
F
s
=
BN
(
PWC
(
Concat
⁡
(
S
1
fuse
,
PWC
⁡
(
S
3
merge
)
)
;
A
1
,
H
1
,
V
1
,
D
1
=
DWT
⁡
(
E
n
-
k
)
;
A
2
,
H
2
,
V
2
,
D
2
=
DWT
⁡
(
D
k
)
;
F
1
low
=
PWC
⁡
(
DWC
⁡
(
A
1
)
)
⊕
PWC
⁡
(
DWC
⁡
(
A
2
)
)
;
F
2
high
=
PWC
⁡
(
Concat
⁡
(
H
1
,
V
1
,
D
1
)
)
⊕
PWC
⁡
(
Concat
⁡
(
H
2
,
V
2
,
D
2
)
)
;
F
f
=
BN
⁡
(
IDWT
⁡
(
F
1
low
,
F
2
high
)
⊕
E
n
-
k
⊕
D
k
)
;
F
k
=
AGFS
⁡
(
F
s
,
F
f
)
;
where,
S
1
fuse
denotes the fused features obtained through group convolution and normalization;
S
2
ap
denotes the features after dual average pooling;
S
3
detail
denotes detailed features captured by the difference branch;
S
3
multiply
denotes the features extracted by the multiplication branch;
S
3
merge
denotes the merged features; Fg denotes the spatially aggregated features;
F
1
low
denotes the fused features of low-frequency components after concatenation and depthwise separable convolution;
F
2
high
denotes the fused features of high-frequency components after concatenation and pointwise convolution; Ff denotes the features after wavelet reconstruction and residual connection; En-k denotes the encoder input features; Dk denotes the decoder input features; ⊕ denotes element-wise addition; GConov3×3(•) denotes group convolution with a 3×3 kernel; BN(•) denotes batch normalization; ReLU(•) denotes the rectified linear unit activation function; AvgPool(•) denotes average pooling; Conv(•) denotes a standard convolution operation; Concat(•) denotes concatenation of multiple feature dimensions; PWC(•) denotes pointwise convolution; A1 denotes the low-frequency component of encoder features; H1 denotes the horizontal high-frequency component of encoder features; V1 denotes the vertical high-frequency component of encoder features; D1 denotes the diagonal high-frequency component of encoder features; A2 denotes the low-frequency component of decoder features; H2 denotes the horizontal high-frequency component of decoder features; V2 denotes the vertical high-frequency component of decoder features; D2 denotes the diagonal high-frequency component of decoder features; DWT(•) denotes discrete wavelet transform; DWC(•) denotes depthwise convolution; IDWT(•) denotes inverse discrete wavelet transform; Fk denotes the output feature maps; AGFS(•) denotes adaptive global feature selection.

### Claim 7 (depends on 1)

The underwater dam defect detection method according to claim 1, characterized in that the training of the defect detection model comprises:
training the defect detection model using a weighted sum of a Binary Cross-Entropy loss function and a Dice loss function as a combined loss function, to obtain a trained defect detection model.

### Claim 8 (depends on 7)

The underwater dam defect detection method according to claim 7, characterized in that the combined loss function is calculated by:
Loss
BCE
(
y
pred
,
y
gt
)
=
-
y
gt
⁢
ln
⁢
y
pred
+
(
1
-
y
gt
)
⁢
ln
⁡
(
1
-
y
pred
)
;
Loss
Dice
(
y
pred
,
y
gt
)
=
1
-
2
⁢
❘
"\[LeftBracketingBar]"
y
pred
⋂
y
gt
❘
"\[RightBracketingBar]"
❘
"\[LeftBracketingBar]"
y
pred
❘
"\[RightBracketingBar]"
+
❘
"\[LeftBracketingBar]"
y
gt
❘
"\[RightBracketingBar]"
;
Loss
Total
=
Loss
BCE
(
y
pred
,
y
gt
)
+
Loss
Dice
(
y
pred
,
y
gt
)
.
where, LossBCE(ypred,ygt) denotes a Binary Cross-Entropy loss function; LossDice(ypred,ygt) represents a Dice loss function; LossTotal is a combined loss function; ypred is the predicted result from the segmentation network, ygt is the ground truth corresponding to the input image.

### Claim 9

An underwater dam defect detection system, characterized by comprising:
an image acquisition module configured to acquire original underwater dam images;
an imaging detection module configured to input the original underwater dam images into a pre-constructed defect detection model and output dam defect detection results;
a model construction module configured to construct the defect detection model; where the construction of the defect detection model comprises:
acquiring an encoder-decoder model;
replacing the output layer of the CASS module in the encoder with a dual-branch collaborative attention module; and replacing the fusion module with a dual-domain feature aggregation module to construct the defect detection model.

### Claim 10 (depends on 1)

A computer-readable storage medium having stored thereon computer programs, characterized in that when executed by a processor, the computer programs implement the steps of the underwater dam defect detection method according to claim 1.
