# US 2026/0037702 A1 · Method for GNN-BASED Automatic Bay Zoning

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

- Number: US 2026/0037702 A1
- Document ID: US20260037702A1
- Status: Published application
- Kind: A1
- Application number: 19/026,461
- Filed: 2025-01-17
- Published: 2026-02-05
- Earliest claimed: 2024-07-30
- Assignees: Xiamen University
- Applicants: Xiamen University
- Inventors: Shaobin LI; Zhehan HUANG; Nengwang CHEN; Zhongyao LIANG
- Web page: https://patentgrep.com/patent/US20260037702A1

## CPC

- G06F 30/28: using fluid dynamics, e.g. using Navier-Stokes equations or computational fluid dynamics [CFD]
- G06F 30/27: using machine learning, e.g. artificial intelligence, neural networks, support vector machines [SVM] or training a model
- G06N 3/045: Combinations of networks
- G06N 3/08: Learning methods
- G01V 20/00: Geomodelling in general
- G06F 18/29: {Graphical models, e.g. Bayesian networks}
- G06F 2113/08: Fluids
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 7/01: Probabilistic graphical models, e.g. probabilistic networks
- G06V 10/761: {Proximity, similarity or dissimilarity measures}
- G06V 10/7635: {based on graphs, e.g. graph cuts or spectral clustering}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G01V: GEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS (means for indicating the location of accidentally buried, e.g. snow-buried, persons A63B29/02)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A method for GNN-based automatic bay zoning includes the following steps: S1, using a modified data packet to convert an output file of the hydrodynamic model into a .nc file that can be read by Python software; S2, reading the converted .nc file and performing data preprocessing; S3, using a tsfresh data packet to extract time series feature values of different features; S4, using a Delaunay triangulation algorithm and a four-way matrix or an eight-way matrix to determine spatial connectivity, and constructing an adjacency matrix; S5, constructing a convolutional GNN to learn bay characteristics and spatial connectivity; S6, using a Louvain algorithm or a Spectral Clustering algorithm to perform unsupervised classification of bay; S7, post-processing broken edges of bay zoning; and S8, outputting zoning results in the form of a .shp file to realize the automatic bay zoning.

## Claims

### Claim 1

A method for GNN-based automatic bay zoning, comprising the following steps:
S1, using a modified data packet to convert an output file of the hydrodynamic model into a .nc file that can be read by Python software;
the data packet in the S1 is trim2nc, which was originally compiled and run based on matlab software, but now is run through the Python software after modification, and data conversion codes for grid positions, flow velocities, temperatures, and densities are added; and the output file of the hydrodynamic model is in a .dat format, and the hydrodynamic model is one of a Delft3D model and a MIKE model;
S2, reading the converted .nc file and performing data preprocessing;
a specific process of the S2 comprises:
S21, data reading: using the Python software to read the converted .nc file, and obtaining data of each grid of the bay comprising a temperature, a salinity, a friction coefficient, a flow velocity, a topography and a density;
S22, time series data filling: expanding the data comprising the temperature, the salinity, the friction coefficient, the flow velocity, the topography and the density into time series data respectively, and matching cross-sectional data with remaining time series data, wherein the friction coefficient and the topography belong to the cross-sectional data, and the temperature, the salinity, the flow velocity and the density belong to the remaining time series data;
S23, land-sea identification: constructing a land-sea mask matrix according to grid data output by the hydrodynamic model, wherein in the mask matrix, a land grid is encoded as 0 and a sea grid is encoded as 1;
S24, mask extraction: based on results of the land-sea identification, performing the mask extraction of a bay zone through the land-sea mask matrix; and
S25, neighboring interpolation filling: filling a missing value of the flow velocity after averaging through a surrounding 3×3 grid;
S3, using a tsfresh data package to extract time series feature values of different features;
in the S3, the tsfresh data packet in the Python software is used to extract all time series eigenvalues in batches, and the time series eigenvalues include absolute energy, an absolute value of continuous change, unit root test results, and a centroid of a Fourier transform spectrum;
S4, using a Delaunay triangulation algorithm and a four-way matrix or an eight-way matrix to determine spatial connectivity, and constructing an adjacency matrix;
S5, constructing a convolutional GNN to learn bay characteristics and spatial connectivity;
the convolutional GNN in S5 is constructed using an existing graph convolutional network (GCN) framework in a pytorch software data packet, wherein a loss function is calculated by distinguishing positive and negative samples and summing structural losses thereof, with a specific calculation formula as follows:
positive_loss
=
∑
(
i
,
j
)
∈
positive_pairs
⁢

embeddings
⁢
[
i
]
-
embeddings
⁢
[
j
]

2
❘
"\[LeftBracketingBar]"
positive_pairs
❘
"\[RightBracketingBar]"
negative_loss
=
∑
(
i
,
j
)
∈
negative_pairs
⁢
max
⁢
(
0
,
margin
-

embeddings
[
i
]
-
embeddings
[
j
]

)
2
❘
"\[LeftBracketingBar]"
negative_pairs
❘
"\[RightBracketingBar]"
total_loss
=
positive_loss
+
negative_loss
in the formula, positive_loss represents a positive sample loss; (i, j)_represents a grid located at an ith row and a jth column; embeddings represents a feature embedding matrix of nodes; embeddings[i] represents an embedding vector of an ith node; embeddings[j] represents an embedding vector of a jth node; positive_pairs represents a set of all positive sample pairs in a graph; negative_loss represents a negative sample loss; negative pairs represents a set of all negative sample pairs in the graph; margin is a hyperparameter used to define an interval between negative sample pairs; and total_loss represents a total loss;
S6, using a Louvain algorithm or a Spectral Clustering algorithm to perform unsupervised classification of bay;
S7, post-processing broken edges of bay zoning through a neighboring grid consistency method; and
S8, based on the convolutional GNN, outputting zoning results in the form of a .shp file to realize the automatic bay zoning.

### Claim 2 (depends on 1)

The method for GNN-based automatic bay zoning according to claim 1, wherein in the S4, the spatial connectivity of the sea grid is determined; four-way connectivity indicates that each grid is connected to four adjacent grids, eight-way connectivity indicates that each grid is connected to eight adjacent grids (i.e., upper, lower, left, right, and diagonal grids), and a corresponding position in the adjacency matrix is marked as 1 to indicate the spatial connectivity; the Delaunay triangulation algorithm constructs a large triangle containing all grids, then repeatedly inserts central points of internal grids to split the triangle, makes a small triangle meet Delaunay triangulation conditions through edge flipping, finally removes an external triangle, and also marks grids corresponding to three vertices of the split small triangle as 1 at corresponding positions of the adjacency matrix to indicate the spatial connectivity.

### Claim 3 (depends on 1)

The method for GNN-based automatic bay zoning according to claim 1, wherein in the S6, the learned convolutional GNN is used for the unsupervised classification, wherein the number of clusters of the Louvain algorithm is not optional, and modularity is optimized based on a greedy algorithm, wherein a calculation formula of the modularity is as follows:
Q
=
1
2
⁢
m
⁢
∑
i
,
j
[
A
i
,
j
-
k
i
⁢
k
j
2
⁢
m
]
⁢
δ
⁡
(
c
i
,
c
j
)
in the formula, Q represents the modularity; m represents a sum of weights of all edges in the GNN; Ai,j represents an adjacency matrix of the GNN; ki represents a degree of the ith node; kj represents a degree of the jth node; ci represents a community to which the ith node belongs; cj represents a community to which the jth node belongs; δ(ci, cj) is an indicator function, and when ci=cj, δ(ci, cj) is 1, otherwise δ(ci, cj) is 0;
the number of clusters of the Spectral Clustering algorithm is manually specified, and calculation thereof requires construction of a similarity matrix, a degree matrix, and a Laplacian matrix, with specific calculation formulas as follows:
A
i
,
j
=
exp
⁢
(
-

x
i
-
x
j

2
2
⁢
σ
)
D
i
,
i
=
∑
j
A
i
,
j
L
=
D
-
A
in the formula, A is the similarity matrix; D is the degree matrix; L is the Laplacian matrix; ∥xi−xj∥2 represents a square of a Euclidean distance between the ith node and the jth node; σ is a bandwidth parameter of a Gaussian kernel; and Di,j represents an element in the degree matrix.

### Claim 4 (depends on 1)

The method for GNN-based automatic bay zoning according to claim 1, wherein a specific process of the S7 comprises: using the neighboring grid consistency method to gradually determine whether the largest number of grids among 3×3, 5×5 to 11×11 grids surrounding central grids thereof are consistent with the central grids in category; in case of consistency, stopping executing the current algorithm, otherwise modifying the category of the central grid until all grids meet this criterion.

### Claim 5 (depends on 1)

The method for GNN-based automatic bay zoning according to claim 1, wherein in the S8, different zones are encoded as different digital numbers and input as field information into a newly created field class of the .shp file output by the hydrodynamic model, thereby realizing a visual presentation of zoning information.
