Dental model neck line detection method based on probability field regression and ring graph convolution
By using probabilistic field regression and ring graph convolution, a downsampled point cloud of a 3D dental model is constructed and dynamic graph convolution feature extraction is performed. Combined with a neural curve generation network for message passing on a ring topology, this solves the problems of long processing time and insufficient topological integrity in existing cervical margin detection methods, and achieves high-precision automatic cervical margin detection.
Patent Information
- Application Number
- CN202611627862.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-21
- Publication Date
- 2026-11-20
AI Technical Summary
Existing methods for detecting the cervical margin are time-consuming, subjective, and difficult to accurately locate in areas with gingival margin morphological variations. Existing deep learning methods lack an end-to-end generative framework, resulting in insufficient detection accuracy and topological integrity.
A method based on probabilistic field regression and ring graph convolution is adopted. By constructing a downsampled point cloud of a 3D dental model, multi-scale geometric features are extracted using a probabilistic field regression encoder. Combined with a neural curve generation network, message passing is performed on a fixed ring topology to output the final control point coordinates of the cervical margin.
It achieves end-to-end automatic detection of the cervical margin line on a three-dimensional dental model with sub-millimeter accuracy, improving the automation level and patient adaptability of the detection method, and solving problems such as topological fracture and serrated artifacts. It is suitable for the prosthodontic design process of dental CAD/CAM systems.
Smart Images

Figure CN123141997A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of image processing, and in particular relates to a method for detecting the cervical margin line of a dental model based on probability field regression and ring graph convolution. Background Technology
[0002] Precise positioning of the cervical margin (also known as the gingival margin or gingival edge line) is a core parameter determining the marginal fit of a restoration. The cervical margin defines the boundary between the restoration and the natural tooth or gingival tissue, and its accuracy directly affects the restoration's fit, periodontal health, and long-term clinical success rate. Clinical studies have shown that a deviation of more than 0.2 mm in cervical margin positioning can lead to microleakage at the restoration margin, subsequently causing complications such as secondary caries and periodontal inflammation. Therefore, how to accurately and automatically detect the cervical margin on a three-dimensional dental mesh model is a key technical problem that urgently needs to be solved in the field of digital dental restorations.
[0003] The existing methods for detecting the cervical margin mainly have the following technical problems: (1) Manual annotation is time-consuming and subjective, usually taking 3 to 5 minutes per tooth, and the annotation consistency between different operators is poor; (2) In areas such as edentulous areas where the gingival margin morphology varies significantly due to alveolar bone resorption and soft tissue remodeling, the semi-automatic method based on geometric curvature has blurred boundary curvature features, which makes the path search easily deviate from the real boundary, and has limited adaptability to different patient anatomical structures, requiring repeated parameter adjustments; (3) The post-processing method based on deep learning segmentation obtains the tooth-gingival boundary through face-by-face or vertex-by-vertex classification and then extracts the cervical margin through post-processing. The boundary quality of the segmentation result is heavily dependent on the segmentation accuracy. The post-processing process cannot guarantee the topological integrity and smoothness of the curve, and is prone to problems such as topological breakage, jagged artifacts and non-closed curves; (4) Existing deep learning methods lack a dedicated end-to-end generation framework for closed spatial curves, and cannot solve the three sub-problems of boundary probability perception, curve initialization and closed topology generation in a unified model at the same time. Summary of the Invention
[0004] To address the aforementioned technical problems, this invention provides a method for detecting the cervical margin line of a dental model based on probability field regression and ring graph convolution, comprising: A three-dimensional dental triangular mesh model to be detected is obtained, and a downsampled point cloud of the three-dimensional dental triangular mesh model is constructed based on the local geometric features of each vertex in the three-dimensional dental triangular mesh model. The downsampled point cloud is input into a pre-trained probability field regression encoder, which performs dynamic graph convolution feature extraction on the downsampled point cloud and outputs the continuous probability value of each sampling point in the downsampled point cloud corresponding to the neckline based on the extracted multi-scale geometric features, thus forming a spatial probability field. Based on the probability distribution of the spatial probability field, candidate ridge points whose probability values satisfy the preset ridge point conditions are extracted, and clustering, outlier removal, and curve fitting operations are performed on the candidate ridge points to obtain an initial curve. The control point information of the initial curve, the global context features of the spatial probability field, and the local geometric features of the three-dimensional dental triangular mesh model are input into a pre-trained neural curve generation network. The neural curve generation network performs multiple message passes on a fixed ring topology and predicts the bounded offset based on the control points of the initial curve, outputting the final control point coordinates of the cervical margin.
[0005] Optionally, the downsampling point cloud for constructing the three-dimensional dental triangular mesh model includes: After obtaining the three-dimensional dental triangular mesh model, a unit sphere normalization preprocessing is performed on the three-dimensional dental triangular mesh model; Calculate the four-dimensional geometric feature vector of each vertex in the three-dimensional dental triangular mesh model. The four-dimensional geometric feature vector includes the average curvature based on the cotangent weight discrete Laplace-Beltrami operator, the Gaussian curvature based on the angular defect, the surface roughness represented by the standard deviation of the neighborhood normal vector, and the local density represented by the inverse of the neighborhood average distance. Then, the four-dimensional geometric feature vector is standardized. Based on the curvature value of each vertex of the three-dimensional dental triangular mesh model, a hybrid sampling probability distribution is constructed that integrates the uniform distribution component and the normalized curvature component. Then, sampling without replacement is performed from the original vertex set of the three-dimensional dental triangular mesh model according to the hybrid sampling probability distribution to obtain the downsampled point cloud.
[0006] Optionally, the formation of the spatial probability field includes: The downsampled point cloud is input into the probability field regression encoder. The multi-layer dynamic graph convolutional layer of the probability field regression encoder constructs a k-nearest neighbor graph for each sampling point in the current feature space of each layer. Edge feature convolution and maximum value neighborhood aggregation are performed on the constructed k-nearest neighbor graph to extract the multi-scale geometric features of the downsampled point cloud. The multi-scale geometric features are input into the regression head, which outputs a scalar logit for each sampling point through multiple fully connected layers. The scalar logit is then scaled according to a learnable scaling parameter and mapped by a sigmoid activation function to obtain the continuous probability value of each sampling point corresponding to the neckline, thus forming the spatial probability field.
[0007] Optionally, obtaining the initial curve includes: The spatial probability field is subjected to power-law sharpening, and points whose sharpened probability values exceed the first threshold and are located within the preset percentile of the probability values are selected as candidate ridge points. Density clustering is performed on the candidate ridge points, and a probability-weighted cluster selection strategy is used to select the cluster with the highest median probability value from the clustering results as the target ridge point cluster. Statistical outlier removal is then performed on the target ridge point cluster. A coarse fit is performed on the target ridge cluster with a high smoothing parameter as an anti-pollution reference curve. The residuals of each ridge point in the target ridge cluster to the anti-pollution reference curve are calculated. Ridge points whose residuals are less than the sum of the median and a preset multiple of the absolute median difference are retained to obtain the pruned ridge points. Principal component analysis is performed on the pruned ridge points and projected onto a two-dimensional plane. After sorting by polar angle, periodic cubic B-spline fitting is performed to obtain an initial curve with a preset number of control points.
[0008] The step of performing principal component analysis on the pruned ridge points and projecting them onto a two-dimensional plane, sorting them by polar angle, and then performing periodic cubic B-spline fitting to obtain an initial curve with a preset number of control points, further includes: For the pruned ridge point, candidate fitting is performed at least once using the periodic cubic B-spline fitting and PCA ellipse fitting respectively to obtain multiple candidate initial curves. The optimal fitting result is selected from the multiple candidate initial curves as the initial curve using the bidirectional chamfer distance as the selection criterion. When the fitting result of the periodic cubic B-spline fitting fails the preset quality check, B-spline fitting with multiple smoothing factors and uniform subsampling are performed sequentially to supplement the multiple candidate initial curves. The PCA ellipse fitting includes: performing elliptic algebraic fitting using the direct least squares method under preset ellipse constraints on a two-dimensional plane obtained by the principal component analysis projection to obtain ellipse geometric parameters; back-projecting the ellipse geometric parameters to three-dimensional space to determine a spatial elliptic curve; and uniformly sampling a preset number of points along the spatial elliptic curve as control points for candidate initial curves.
[0009] Optionally, outputting the final control point coordinates of the neckline includes: Define a preset number of learnable query tokens, initialize each query token on a unit circle and attach a learnable position code to obtain an initialized query token; Based on the multidimensional feature vectors of each vertex in the three-dimensional dental triangular mesh model, the global context features of the spatial probability field are extracted by global pooling, and the global context features are fused with the initial query token to obtain the fused query features. The fused query features are input into the multi-layer residual gated graph convolutional module. The residual gated graph convolutional module of each layer performs gated message calculation and neighborhood mean aggregation on the edge set of the fixed ring topology. After residual update and layer normalization, the updated query features are output. After the output of the first-layer residual gated graph convolution module, the coordinates of the control points of the initial curve are linearly projected and added to the updated query features to obtain the query features after injecting anchor points. The query features after the injection of anchor points are input into the coordinate prediction head. The coordinate prediction head outputs a three-dimensional offset through multiple fully connected layers. The three-dimensional offset is truncated and multiplied by the maximum offset norm. The final control point coordinates of the neckline are obtained by adding the truncated three-dimensional offset to the control point coordinates of the initial curve.
[0010] Optionally, the edge set of the fixed ring topology includes adjacent connections and skip connections; the gating message calculation includes calculating a gating coefficient based on the current query characteristics, and weighting the query characteristics of neighboring nodes based on the gating coefficient.
[0011] Optionally, the probability field regression encoder is pre-trained using a joint loss function, which includes mean squared error loss, Laplacian smoothing regularization loss, and geometric-probability contrast loss. The geometric-probability contrastive loss constructs a first-direction InfoNCE loss using geometric features as anchors and probabilistic features as positive samples, and constructs a second-direction InfoNCE loss using probabilistic features as anchors and geometric features as positive samples. The geometric-probability contrastive loss is activated after a preset number of training rounds.
[0012] On the other hand, the present invention also provides an electronic device including a memory, a processor, and a computing program stored in the memory and executable on the processor, wherein the processor implements the method when executing the computing program.
[0013] On the other hand, the present invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method.
[0014] Compared with the prior art, the present invention has the following advantages and technical effects: This method replaces traditional discrete segmentation with continuous probability field regression, preserving gradient direction information in the vicinity of the cervical margin. This allows downstream ridge point extraction to utilize the topological structure of the probability field, enabling accurate boundary localization even in scenarios with blurred curvature features, such as edentulous areas, overcoming the insufficient robustness of purely geometric methods. RANSAC-style contamination pruning and probability-weighted cluster selection ensure strong robustness of B-spline initialization against false positive ridge points. A multi-candidate parallel initialization strategy guarantees initialization success rate, effectively improving the automation and patient adaptability of the detection method. PCA ellipse fitting relies on a global ellipse shape prior, making it insensitive to local ridge point loss and contamination outliers. It exhibits higher initialization success rate and stability in scenarios with significant gingival margin morphological variations, such as edentulous areas. Parallel candidate selection and bidirectional chamfer distance optimization further ensure the quality of the initial curve. By using convolution of a ring topology graph to naturally adapt to a closed curve structure, and combining topological invariant loss based on Jordan's curve theorem, the generated curve is mathematically guaranteed to be a simple closed curve. Bounded residual design prevents catastrophic extrapolation, solving problems such as curve topology breakage, non-closure, and serrated artifacts in post-segmentation processing methods. It achieves end-to-end automatic detection of the cervical margin line on a three-dimensional dental model, reaching sub-millimeter accuracy, and is suitable for the prosthesis design process of dental CAD / CAM systems. Attached Figure Description
[0015] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings: Figure 1 This is a schematic diagram of the method flow according to an embodiment of the present invention; Figure 2 This is a schematic diagram of the network structure of the probability field regression encoder according to an embodiment of the present invention; Figure 3 This is a flowchart illustrating the robust anchor point initialization process according to an embodiment of the present invention. Figure 4 This is a schematic diagram of the neural curve generation network according to an embodiment of the present invention; Figure 5 This is a schematic diagram of a single-layer calculation of the residual gated graph convolution module in an embodiment of the present invention; Figure 6 This is a schematic diagram illustrating the composition of the composite loss function in an embodiment of the present invention. Detailed Implementation
[0016] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0017] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.
[0018] Example 1 like Figure 1-6 As shown, this embodiment provides a method for detecting the cervical margin line of a dental model based on probability field regression and ring graph convolution, including: A three-dimensional dental triangular mesh model to be detected is obtained, and a downsampled point cloud of the three-dimensional dental triangular mesh model is constructed based on the local geometric features of each vertex in the three-dimensional dental triangular mesh model. The downsampled point cloud is input into a pre-trained probability field regression encoder, which performs dynamic graph convolution feature extraction on the downsampled point cloud and outputs the continuous probability value of each sampling point in the downsampled point cloud corresponding to the neckline based on the extracted multi-scale geometric features, thus forming a spatial probability field. Based on the probability distribution of the spatial probability field, candidate ridge points whose probability values satisfy the preset ridge point conditions are extracted, and clustering, outlier removal, and curve fitting operations are performed on the candidate ridge points to obtain an initial curve. The control point information of the initial curve, the global context features of the spatial probability field, and the local geometric features of the three-dimensional dental triangular mesh model are input into a pre-trained neural curve generation network. The neural curve generation network performs multiple message passes on a fixed ring topology and predicts the bounded offset based on the control points of the initial curve, outputting the final control point coordinates of the cervical margin.
[0019] The specific process includes: S1. Obtain the three-dimensional dental triangular mesh model to be detected. The three-dimensional dental triangular mesh model is acquired by an intraoral scanner and obtained through digital reconstruction. After performing unit sphere normalization preprocessing on the model, calculate the four-dimensional geometric feature vector of each vertex. The four-dimensional geometric features include the average curvature H based on the cotangent weight discrete Laplace-Beltrami operator, the Gaussian curvature K based on the angular defect, the surface roughness represented by the standard deviation of the neighborhood normal vector, and the local density represented by the inverse of the neighborhood average distance. The four-dimensional features are then standardized column-by-column by z-score and used for subsequent processing.
[0020] S2. Perform geometry-aware downsampling on the three-dimensional dental triangular mesh model, sampling from the original vertex set according to a probability distribution that fuses geometric importance metrics to obtain a downsampled point cloud. The probability distribution fuses a uniform distribution component and a normalized curvature component, wherein the curvature component has a mixed weight. Curvature values were truncated to the 99th percentile and then normalized to suppress outliers. Sampling without replacement was used to obtain a higher sampling probability in high curvature regions. The total number of samples... Each sampling point retains three-dimensional coordinates and a unit normal vector to form a 6-dimensional input feature.
[0021] S3. The downsampled point cloud is input into a pre-trained probability field regression encoder. A local neighborhood map is constructed on the downsampled point cloud through a dynamic graph convolutional network, and multi-scale geometric features are extracted layer by layer. The regression head outputs the continuous probability value of each sampling point corresponding to the neckline, forming a spatial probability field. The probability field regression encoder includes an L1-layer cascaded dynamic graph convolutional layer. Each layer constructs a k-nearest neighbor graph in the current feature space. A block-based kNN computation strategy is adopted (block size ∈ [1024, 4096]) to avoid memory overflow. The number of output channels for each layer is as follows: Neighborhood aggregation uses max pooling; the regression head outputs a scalar logit through multiple fully connected layers (hidden dimensions ∈ [64, 256]), which is then scaled by a learnable parameter s (truncated to...). The probability values are obtained by activating the sigmoid and sigmoid.
[0022] The training process of the probabilistic field regression encoder employs a joint optimization of mean squared error loss, Laplacian smoothing regularization, and geometric-probability contrastive loss; the mean squared error loss supervises the approximation between the predicted probability and the Gaussian heatmap soft label, and the Gaussian heatmap bandwidth... The number of nearest neighbors used in the Laplacian smoothing regularization constraint probability field within the Laplacian smoothing regularization term. Local smoothness within, weights The geometric-probability contrastive loss constructs positive and negative sample pairs based on a bidirectional InfoNCE contrastive learning mechanism between the probability space and the geometric space. Positive samples are taken from edge regions where the GT heatmap value is higher than the first threshold (∈[0.4,0.8]), and negative samples are taken from flat regions where the heatmap value is lower than the second threshold (∈[0.1,0.4]). When there are insufficient candidates, quantile adaptive threshold backoff is used. Temperature parameters... Embedding dimension ∈ [16, 64], patch size ∈ [8, 32], positive and negative samples ∈ [16, 64], the geometric-probability contrastive loss is warmed up in the number of rounds before training. Preheating is performed, followed by weighting. activation.
[0023] S4. Perform robust anchor point initialization on the spatial probability field: first perform power-law sharpening on the probability field. pi is the continuous probability value corresponding to the i-th sampling point. Then select the sharpened version whose probability value exceeds the threshold. And located in front For percentile candidate ridge points, perform DBSCAN density clustering (adaptively set neighborhood radius to 0). (using the median nearest neighbor distance), a probability-weighted cluster selection strategy is employed to select the cluster with the highest median probability value, and then... Outliers were removed by removing outliers at double the standard deviation; then, RANSAC-style pruning was performed, using a highly smooth coarse fit as an anti-pollution reference, retaining outliers that satisfy the condition that residuals are less than 100%. The point, where MAD is the median absolute deviation, and the weighting coefficient of the median absolute deviation (MAD) is... At least 50% of the points are retained; PCA projection to a 2D plane, polar sorting, and outlier rejection threshold parameters are applied to the pruned ridge points. After rejecting outliers by a factor of one standard deviation, least squares fitting is performed using periodic cubic B-splines, with Tikhonov regularization applied during the fitting process (regularization coefficient). Using a second-order difference matrix as a regularization operator, we obtain a result with Initial curves at control points; after fitting, oscillation detection is performed (anchor point span exceeds...). (Reject if ridge span exceeds 100%) and residual quality gating (mean residual exceeds 100%). Then reject); in parallel with the periodic cubic B-spline fitting, perform PCA elliptic fitting (Fitzgibbon direct least squares method, constrained) on the two-dimensional plane obtained by PCA projection. Multiple candidate initial curves are constructed, and the optimal initialization is selected based on the bidirectional chamfer distance. When the quality check of the B-spline fitting result fails, B-spline fitting with various smoothing factors and uniform subsampling are tried as supplementary candidates in turn. Finally, the curves exceeding the specified initial values are selected. The anchor point of the sphere bounded by GT is projected back onto the sphere.
[0024] S5. Input the control point information of the initial curve, the global context features of the spatial probability field, and the local geometric features into a pre-trained neural curve generation network. The neural curve generation network includes M ∈ [32, 128] learnable query token nodes, each token having a dimension d. model∈[32,128], initialized on the unit circle and then subjected to linear projection with an additional learnable positional encoding; the probability field global context encoding module adopts a PointNet-style architecture, with the input being a multi-dimensional feature vector [xyz(3)+normal(3)+probability(1)+curvature(4)] for each grid vertex, totaling 11 dimensions, where xyz(3) is the three-dimensional spatial coordinates (x, y, z) of each vertex, normal(3) is the unit normal vector (nx, ny, nz) of each vertex, probability(1) is the neckline probability value corresponding to each vertex, and curvature(4) is the four-dimensional geometric feature vector of each vertex. After passing through an MLP (hidden dimensions ∈[64,256], including ReLU and Dropout), global max pooling is performed to obtain the global context vector, and forced FP32 precision is calculated; the query initialization module fuses the query token, positional encoding, and global context through broadcast addition; the L2∈[6,16] layer residual gated graph convolution module has a hidden dimension d h ∈[64,256], message passing is performed on a fixed ring topology, the edge set of which includes adjacent connections (i,(i+1)mod M) and skip connections (i,(i+S)mod M) with a skip span S∈[2,4]. Each layer performs gated message computation, neighborhood mean aggregation, residual update and layer normalization, and applies Dropout (dropout rate ∈[0.10,0.30]) between layers; the anchor point position injection module injects the initial curve anchor point coordinates through linear projection (3→d) after the first layer graph convolution output. h The coordinate prediction head is then added to the hidden state; the coordinate prediction head outputs the three-dimensional offset through a multi-layer MLP (hidden dimensions ∈ [64, 256]), the final layer is initialized with a small-gain Xavier (gain ∈ [0.01, 0.1]), truncated by tanh, and multiplied by the maximum offset norm δmax ∈ [0.05, 0.30], the final coordinates are the anchor coordinates plus the bounded offset; the confidence prediction head outputs the reliability score of each control point, and the confidence score is lower than the threshold θ. conf Control points ∈ [0.3, 0.7] are marked as pending manual review.
[0025] The training process of the neural curve generation network employs a composite loss function, which includes: a data fidelity term, comprising a curvature-weighted bidirectional chamfer distance loss (weights w1∈[1.5,5.0], where GT points are assigned [w1] based on local curvature). min ,w max Range weight, w min ∈[0.3,0.7], w maxThe data fidelity term includes the following loss terms: ∈[1.5,3.0]), point-to-point nearest GT loss (weight w2∈[0.1,0.5]), centroid alignment loss (weight w3∈[1.0,5.0]), and scale-invariant loss (weight w4∈[0.3,1.5]); the total weight of the data fidelity term accounts for more than 60% of the total weight of the composite loss function; the geometric regularization term includes the side length uniformity loss (cosine annealing: w...). edge_max ∈[0.001,0.01]→w edge_min ∈[0.0005,0.003]), Laplacian smoothing loss (alignment-smoothing scheduling: the weight of the first ralign ∈[0.4,0.6] rounds is zero, and the weight of the subsequent (1-ralign) rounds increases linearly to w). lap_max The loss consists of: ∈[0.0002,0.002]), surface projection loss (weight w5∈[0.01,0.1]), and closure consistency loss (weight w6∈[0.005,0.05]); probability field constraint terms, including region probability loss (weight w7∈[0.0005,0.005]), which employs a dual-mechanism design, comprising a logarithmic probability term (generating an explosive gradient when the probability approaches zero) and a high-probability attraction term (obtaining probability values from kNN through inverse distance-weighted probability interpolation); and topological constraint terms, including topological invariant loss (weight w8∈[0.001,0.005], training the Eth... topostart ∈[40,80] rounds later, activated via E ramp (∈[10,30] wheel linear preheating), the topological invariant loss is based on the Jordan curve theorem, the control points are projected onto a plane perpendicular to the long axis of the tooth through the Gram-Schmidt orthogonal basis, the number of turns W and the total rotation angle ΣΔθ are calculated, and the loss is (|W|-1)²+α turn ×(|ΣΔθ|-2π)²,α turn ∈[0.05,0.2]; Anchor point preservation regularization terms include offset regularization loss (weight w9∈[0.2,1.0]), which constrains the offset of the control point relative to the initial curve anchor point.
[0026] The training process also employs the following strategies: anchor noise enhancement (Gaussian noise σanchor∈[0.2,1.0]mm, linearly decaying to zero as training progresses); vertex jitter enhancement (standard deviation σjitter∈[0.002,0.008] normalized coordinates, simulating intraoral scanning noise, linearly decaying); GT curve compaction (compacting the sparse GT to Ndense∈[150,300] points through periodic cubic B-spline interpolation); and exponential moving average (decay coefficient βEMA∈[0.99,0.9999], using a smoothing parameter during inference).
[0027] Example 2 This embodiment provides a method for detecting the cervical margin line of a dental model based on probability field regression and ring graph convolution, including: A three-dimensional dental triangular mesh model to be detected is obtained, and a downsampled point cloud of the three-dimensional dental triangular mesh model is constructed based on the local geometric features of each vertex in the three-dimensional dental triangular mesh model. The downsampled point cloud is input into a pre-trained probability field regression encoder, which performs dynamic graph convolution feature extraction on the downsampled point cloud and outputs the continuous probability value of each sampling point in the downsampled point cloud corresponding to the neckline based on the extracted multi-scale geometric features, thus forming a spatial probability field. Based on the probability distribution of the spatial probability field, candidate ridge points whose probability values satisfy the preset ridge point conditions are extracted, and clustering, outlier removal, and curve fitting operations are performed on the candidate ridge points to obtain an initial curve. The control point information of the initial curve, the global context features of the spatial probability field, and the local geometric features of the three-dimensional dental triangular mesh model are input into a pre-trained neural curve generation network. The neural curve generation network performs multiple message passes on a fixed ring topology and predicts the bounded offset based on the control points of the initial curve, outputting the final control point coordinates of the cervical margin.
[0028] The specific process includes: Step S1: Obtain a three-dimensional dental model and calculate multidimensional geometric features; A 3D scan of the patient's oral cavity was performed using an intraoral scanner to obtain a triangular mesh model of the tooth and jaw surfaces. This model was in STL or PLY format. The obtained triangular mesh model M=(V,F) contains a set of vertices. Dough sheet collection ,in, To represent the last vertex in the model, This is the last face in the model, where each vertex... Having three-dimensional spatial coordinates ,in, Let x be the x-axis coordinate component of the i-th point in the three-dimensional rectangular coordinate system. Let be the y-axis coordinate components of the i-th point in the three-dimensional rectangular coordinate system. Let z be the z-axis coordinate component of the i-th point in the three-dimensional rectangular coordinate system. Given a three-dimensional real space, this means that the coordinate vector consists of three real components.
[0029] Perform unit sphere normalization preprocessing on the triangular mesh model: ,in For the center of mass of the point cloud, This represents the maximum radial distance.
[0030] Calculate the four-dimensional geometric eigenvector of each vertex: (a) Mean curvature H. The Laplace-Beltrami operator is discretized using cotangent weights for each vertex. Calculate the value of each edge in its one-ring neighborhood N(i). , cotangent weight ,in and This is the opposite angle of the side in two adjacent triangles. The Laplace-Beltrami vector is: ; in, vertex The Laplace-Beltrami vector at that location, As vertex The Voronoi dual area. Represents a vertex Summing the vertices of all one-ring neighborhood vertices, and These represent the three-dimensional spatial coordinate vectors of two adjacent vertices in the triangular mesh model. Represents an edge ( , The cotangent weight of ). (ii) Gaussian curvature K. Calculation of Gaussian curvature based on angular defects. ,in As vertex The interior angle of the j-th adjacent face. As vertex The sum of the interior angles of all adjacent triangles.
[0031] (iii) Surface roughness. Calculate the vertex. The standard deviation of all unit normal vectors within a ring neighborhood is used to characterize the degree of irregularity of the local surface of that vertex.
[0032] (iv) Local density. Calculate the vertex. The reciprocal of the average Euclidean distance to its k nearest neighbors is used to characterize the local sampling density of the region where the vertex is located.
[0033] The z-score standardization is performed column by column on the above four-dimensional features, that is, each dimension is subtracted from its mean and then divided by its standard deviation to eliminate the dimensional differences between the features.
[0034] Step S2: Geometric perceptual downsampling; The original triangular mesh model typically contains tens of thousands to hundreds of thousands of vertices. To reduce the cost of subsequent computation, this embodiment performs a geometry-aware downsampling operation.
[0035] Construct a hybrid sampling probability distribution that integrates the uniform distribution component and the normalized curvature component. For each vertex... Its sampling probability Determined by the following formula: ; in The original total number of vertices. For robust normalized curvature values, For curvature blending weights, values range from 1.0 to 3.0. When When = 0, the above probability distribution degenerates into uniform sampling; when As the curvature increases, regions with high curvature receive a higher sampling probability.
[0036] Sampling without replacement is performed from the original vertex set according to the above mixed sampling probability distribution, and the total number of samples is... Take 4096 to 16384 points. Construct a downsampled point cloud from the sampled points. ,in These are the three-dimensional spatial coordinates of the point. This is the unit normal vector corresponding to that point.
[0037] Step S3: Probability field regression encoding; Input the downsampled point cloud P into a pre-trained probability field regression encoder. For example... Figure 2 As shown, the encoder includes L A single-layer cascaded dynamic graph convolutional layer (EdgeConv). L The value of 1 ranges from 2 to 5.
[0038] For each layer l, search for k nearest neighbors for each point i in the current feature space, where k ranges from 8 to 32. A block-based kNN strategy is used during computation (block size from 1024 to 4096) to avoid memory overflow caused by constructing an N×N distance matrix. Edge features are then constructed and convolution operations are performed. ; in, Let be the output feature vector of the i-th point in the (l+1)-th layer, LeakyReLU be the modified linear unit activation function with negative slope, BN be the batch normalization layer, and Conv1×1 be the 1×1 convolutional layer (used for feature channel transformation). To concatenate the difference features between neighboring point j and center point i with the center point features along the channel dimension, Let j be the feature vector of the j-th neighboring point in the l-th layer. Let i be the feature vector of the i-th center point in the l-th layer. This is a vector concatenation operation.
[0039] The number of output channels for each layer is C1 (values from 32 to 128), C2 (values from 64 to 256), and C3 (values from 128 to 384), respectively. The encoded features are processed by a multilayer perceptron regression head (with hidden dimensions ranging from 64 to 256) to output a scalar logit for each sampling point. The probability output is: ; in, Let be the predicted neckline probability value for the i-th sampling point, sigmoid be the sigmoid activation function, and s be the learnable scaling parameter (truncated to [0.3, 15.0]). This is the scalar logit value of the i-th sampling point output by the regression head.
[0040] The training loss function for the probability field regression encoder is: ; in, For mean square error loss, , Let be the probability value predicted by the network that the i-th sampling point belongs to the neckline. Soft labels for Gaussian heatmaps; , , N represents the total number of sampling points, ∑ represents the summation symbol, i represents the index of the sampling point, and j represents the index of the actual neckline control point. Here, is the Laplacian smoothing regularization term, and mean is the mean function. For the i-th point in the current feature space The set of nearest neighbors, Let j be the predicted probability of the j-th nearest neighbor. This represents the number of local nearest neighbors (values range from 4 to 16). The weighting coefficients for the Laplacian smoothing regularization term (ranging from 0.05 to 0.3).
[0041] The loss function is geometric-probabilistic contrastive. Positive sample patches are taken from edge regions where the ground truth heatmap value is above a first threshold, and negative sample patches are taken from flat regions where the heatmap value is below a second threshold. The kNN mean pooling geometric features and probabilistic statistical features of the patches are extracted. The image is mapped to the embedding space via a projection head (Linear→BN→ReLU→Linear+L2 normalization). This is the mean, reflecting the average probability level of being predicted as the neckline within this local area. The standard deviation reflects the degree of dispersion of the probability distribution within that region. The range represents the maximum fluctuation range of probability values within that region.
[0042] The bidirectional InfoNCE loss is: ; ; in, For geometric-probability contrastive loss, The weighting coefficients for the geometric-probability contrastive loss (ranging from 0.01 to 0.05). The InfoNCE loss is defined by using geometric features as anchor points and probabilistic features as the positive sample direction. The InfoNCE loss is defined by using probabilistic features as anchors and geometric features as the positive sample direction. For InfoNCE comparison loss, For negative logarithm operations, It is a natural exponential function. Let be the cosine similarity between the anchor feature and the positive sample feature, where 'a' is the anchor feature (the feature corresponding to the anchor direction) and 'p' is the positive sample feature (the positive sample corresponding to the anchor direction). Here, is the temperature parameter (ranging from 0.03 to 0.15), ∑ represents the summation sign, and j is the index of the negative sample. For the j-th negative sample feature, Let be the cosine similarity between the anchor feature and the j-th negative sample feature.
[0043] Direction 1 uses geometric features as anchors and probabilistic features as positive samples, while Direction 2 uses probabilistic features as anchors and geometric features as positive samples. The geometric-probabilistic contrastive loss is applied first. A warm-up period (with a weight of zero) is conducted within one round (values ranging from 15 to 50), after which the weight is adjusted accordingly. (Values range from 0.01 to 0.05) Activate.
[0044] Step S4: Robust anchor point initialization; like Figure 3 As shown, this step includes the following sub-steps: (a) Power-law sharpening of the probability field. Perform power-law sharpening on the probability field output in step S3: , Let be the probability value of the i-th sampling point after power-law sharpening. γ is the predicted probability value output by the probability field regression encoder for the i-th sampling point, and γ is the exponential parameter for power-law sharpening (ranging from 2.0 to 5.0). The probability distribution is pushed to extreme values to enhance the contrast between the ridge region and the background region.
[0045] (II) Robust ridge point extraction. Selecting ridge points that meet the following criteria... ( (Values range from 0.3 to 0.7) and are located before the probability value. ( Points within the 10th to 25th percentile (values range from 10% to 25%) are selected as candidate ridge points. DBSCAN density clustering is performed on the candidate ridge points, with the neighborhood radius eps adaptively set to... Where βeps ranges from 1.5 to 4.0, and medianNNdist is the median distance from all points to their nearest neighbors. After clustering, a probability-weighted cluster selection strategy is adopted: the median probability value of each cluster is calculated, and the cluster with the highest median probability is selected as the target cluster, ensuring that the selected cluster is indeed located in the high-probability region of the neckline. The selected cluster is then processed... Outlier removal by multiple standard deviations The value ranges from 1.5 to 3.0.
[0046] (III) RANSAC-style pollution trimming. A coarse fit is performed on the target cluster using high smoothing parameters. The resulting curve is used as the anti-pollution reference curve, and the residual from each ridge point to the reference curve is calculated. The curve that satisfies the following conditions is retained. The ridge points, among which The value ranges from 2.0 to 4.0, MAD is the median absolute deviation of the residuals, res is the residual, and median is the median. The above pruning is performed iteratively until convergence, and at least 50% of the original number of points is retained.
[0047] (iv) Periodic cubic B-spline fitting. Principal component analysis (PCA) is performed on the pruned ridge points, projecting them onto the plane corresponding to the two largest eigenvalues. After sorting by polar angle, outlier rejection is performed using nrej times the standard deviation (nrej values range from 2.0 to 4.0). Then, periodic cubic B-spline least squares fitting is performed using cumulative chord length parameterization. The objective function for fitting is: ; in is the Tikhonov regularization coefficient, with a value ranging from 10⁻³ to 10⁻²; This is a second-order difference operator, with the subscript modulo the total number of control points K; K is the number of control points, ranging from 32 to 128. Input the coordinates of the ridge point; Let tk be the interpolation point of the B-spline curve at the parameter tk.
[0048] After fitting, a quality check is performed: oscillation detection; if the anchor span exceeds Rosc times the ridge span (Rosc values are 2 to 5), the fitting result is rejected; residual quality gating; if the average residual exceeds... ( If the value is between 0.05 and 0.20, the fitting result is rejected.
[0049] (V) Multiple Candidate Initialization and Optimal Selection. PCA elliptic fitting is performed in parallel with the periodic cubic B-spline fitting: using the Fitzgibbon direct least squares method, elliptic algebraic fitting is performed on the two-dimensional plane obtained by the PCA projection under the constraint 4ac-b²=1, extracting geometric parameters such as the ellipse center, semi-axis length, and rotation angle. This is then back-projected into three-dimensional space to determine the spatial elliptic curve. A preset number of K points are uniformly sampled along the spatial elliptic curve as control points for candidate initial curves. The optimal initialization result is selected from the candidate initial curves of the periodic cubic B-spline fitting and PCA elliptic fitting, using the bidirectional chamfer distance as the selection criterion. If the quality check of the B-spline fitting result fails, B-spline fitting with multiple smoothing factors and uniform subsampling are performed sequentially to supplement the candidate initial curves, and the selection is re-executed. If the chamfer distance of the final anchor point exceeds... ( If the value is between 1.5 and 3.0, the multi-initialization process will be re-executed and the better result will be obtained.
[0050] (vi) GT region clipping. (This will extend beyond the target area.) The anchor point, whose radius is twice that of the actual neckline, is projected back onto the sphere. The value is set to 1.2 to 2.0 to prevent the initialization from deviating significantly from the true boundary.
[0051] Step S5: Neural curve generation; like Figure 4 As shown, the neural curve generation network comprises the following components: (a) Learnable query tokens. Define M learnable query tokens, where M ranges from 32 to 128, and each query token has the following dimensions. , Values range from 32 to 128. Each query token is initialized at a position on the unit circle. Where k is the token index (k=0,1,...,M-1), mapped linearly to A 3D feature space is added, along with learnable positional encodings.
[0052] (b) Global Context Encoding of the Probability Field. The input is an 11-dimensional feature vector of all vertices in the 3D dental triangular mesh model. This feature vector is composed of 3D spatial coordinates xyz (3D), unit normal vector (3D), probability value output in step S3 (1D), and 4D geometric feature curvature calculated in step S1 (4D). After processing by a multilayer perceptron (with hidden dimensions ranging from 64 to 256, including ReLU activation function and Dropout layer), global max pooling is performed to obtain the global context vector. FP32 precision is enforced during the calculation to avoid overflow of low-precision values.
[0053] (c) Query Initialization. The learnable query token, learnable location code, and global context vector are fused together using broadcast addition, i.e. , This is the fused query feature vector. To initialize the learnable query token features after linear projection onto the unit circle, For learnable positional encoding, This is the global context vector obtained through full max pooling.
[0054] (d) such as Figure 5 As shown, using Layer residual gated graph convolution module, The value ranges from 6 to 16, and the hidden dimension dh ranges from 64 to 256. Message passing is performed on a fixed ring topology. The edge set of this ring topology includes adjacent connections. and jump connection Where S is the jump span, with a value ranging from 2 to 4. Each layer is calculated in the following order: Gating factor: ,in Let σ be the gating coefficient from node j to node i, and σ be the sigmoid activation function. The learnable weight matrix is calculated for the gating coefficients. To transform the feature vector of node i The feature vector xj of the neighboring node j is concatenated along the channel dimension. For bias terms; Gated messages: ,in For gated messages passed from node j to node i, For element-wise multiplication, Learnable weight matrix computed for the message. For bias terms; Neighborhood aggregation: ,in The aggregated message is sent to node i, where mean is the mean aggregation function. Let i be the set of all neighboring nodes of node i in the ring topology; Residual update: ,in Let `i` be the updated feature vector of node `i`, and `LayerNorm` be the layer normalization operation. To update the learnable weight matrix, For bias terms; The activation function used is LeakyReLU, with a negative slope ranging from 0.1 to 0.3. Dropout regularization is applied between layers, with a dropout rate ranging from 0.10 to 0.30. A gating mechanism enables the network to adaptively adjust the message passing strength: for converged control points, the gating coefficient approaches zero; for control points requiring significant adjustment, the gating coefficient approaches one.
[0055] (e) Anchor point injection. Anchor point injection is performed only after the output of the first-layer residual gated graph convolution module: Wherein, Linear is a linear projection layer, which transforms the initial curve anchor point coordinates (anchors, 3D) obtained in step S4 through linear projection to... After adding the feature space, it is directly added to the current hidden state x.
[0056] (f) Coordinate prediction head. The 3D offset is output via a multilayer perceptron (hidden dimensions ranging from 64 to 256). The final linear layer is initialized with parameters using a small-gain Xavier initialization strategy, with a gain ranging from 0.01 to 0.1, to minimize the initial residual. A bounded offset strategy is employed. ,in is the original 3D offset output by the coordinate prediction head, and tanh is the hyperbolic tangent function (constraining the offset to the (-1,1) interval). The maximum offset norm is defined, with values ranging from 0.05 to 0.30. The final control point coordinates are calculated as follows: .
[0057] (g) Confidence prediction head. After passing through a multilayer perceptron, a sigmoid activation function is used to output the reliability score for each control point. A confidence score lower than [a certain value] indicates a lower confidence level. ( Control points with values ranging from 0.3 to 0.7 are marked as pending manual review.
[0058] The composite loss function for neural curve generation networks: like Figure 6 As shown, the composite loss function during the training phase is expressed as: ; The definitions of each loss are as follows: Curvature-weighted bidirectional chamfer distance loss is applied. Points in the true neckline point cloud are weighted according to their local curvature, with the weight range being [w]. min ,w max ](w min The value ranges from 0.3 to 0.7, w max The value ranges from 1.5 to 3.0, with higher weights assigned to points of higher curvature. W1 is the weighting coefficient for this loss term, with a value ranging from 1.5 to 5.0.
[0059] The nearest-point ground truth loss is used, where M is the total number of control points, k is the index of the predicted control point (k=0,1,...,M-1), j is the index of the true neckline point, and c hat_k Let c be the coordinates of the k-th predicted control point, c₁₀ be the coordinates of the j-th true neckline point, min₁₀ be the minimum distance from each predicted point to all true points, and ||·||² be the square of the Euclidean distance. w² is the weighting coefficient of this loss term, with a value ranging from 0.1 to 0.5.
[0060] L centroid =||mean(c hat )-mean(c gt )|| 2 For centroid alignment loss, where mean(c hat ) represents the mean coordinates of all predicted control points, mean(c gt ) represents the mean coordinates of all true points, and ||·||² represents the square of the Euclidean distance. w3 is the weighting coefficient of this loss term, with a value ranging from 1.0 to 5.0.
[0061] L scale =Σ dim (σ pred -σ gt ) 2 The loss is scale-invariant, where dim traverses three spatial dimensions, and σ pred To predict the standard deviation of control points in each dimension, σ gt is the standard deviation of the true values across all dimensions. w4 is the weighting coefficient of this loss term, with a value ranging from 0.3 to 1.5.
[0062] L edge =Var(||c hat_k+1 -c hat_k ||) represents the loss due to the uniformity of side lengths, where Var is the variance calculation, and c hat_k+1 and c hat_k For adjacent predicted control points, the subscripts are modulo M to achieve a closed loop. The weight w of this loss term... edge Using a cosine annealing strategy, starting from the initial value w edge_max (Values range from 0.001 to 0.01) Decay to the final value w edge_min (Values range from 0.0005 to 0.003).
[0063] L lap =(1 / M)Σ k ||c hat_k -(c hat_k-1 +c hat_k+1 ) / 2|| 2Let c be the Laplacian smoothing loss, where c hat_k-1 and c hat_k+1 For c hat_k In the circular sequence, the indices of adjacent points are modulo M. This loss term employs an alignment-smoothing scheduling strategy: before training r... align In proportional rounds, the weight is zero (r) align The value ranges from 0.4 to 0.6), then (1-r) align In the proportional rounds, the weight increases linearly to w. lapmax (w) lapmax The value ranges from 0.0002 to 0.002.
[0064] L surf =(1 / M)Σ k min{vinV}||c hatk -v|| 2 is the surface projection loss, where v is the vertex coordinate in the 3D dental triangular mesh model, and min{vinV} is the minimum distance from each predicted control point to all mesh vertices. w5 is the weighting coefficient of this loss term, with a value ranging from 0.01 to 0.1.
[0065] L close =||c hat0 -c hat {M-1}|| 2 For closure consistency loss, where c hat0 c is the first control point. hat {M-1} is the last control point. w6 is the weighting coefficient for this loss term, with a value ranging from 0.005 to 0.05.
[0066] L region For regional probability loss, a dual-mechanism design is adopted: L region =-mean(log(P interp +ε))+mean(dist totopkprob2 ), where P interp The probability values of the predicted control points are obtained from kNN through inverse distance weighted probability interpolation, where ε is a minimal constant (to prevent logarithmic overflow), mean is the mean value, and dist is the mean value. totopkprob2 This is the weighted distance from the predicted control point to the high-probability region. w7 is the weighting coefficient for this loss term, with a value ranging from 0.0005 to 0.005.
[0067] L topo =(|W|-1) 2 +α turn ×(|ΣΔθ|-2π) 2The loss is the topological invariant, where W is the number of turns (calculated by projecting the control points onto a plane perpendicular to the long axis of the teeth via the Gram-Schmidt orthogonal basis), |W|-1 penalizes a deviation of 1 from the number of turns, ΣΔθ is the cumulative rotation angle of the projected point sequence along the curve's travel direction, |ΣΔθ|-2π penalizes a deviation of ±2π from the total rotation angle, and α turn The weight coefficient for the total turning angle term is _w_, which ranges from 0.05 to 0.2. w8 is the weight coefficient for this loss term, with a value ranging from 0.001 to 0.005. This loss term is used in training step E. topostart Post-cycle activation (E) topostart (Values range from 40 to 80), via E ramp Wheel linear preheating (E ramp The value ranges from 10 to 30.
[0068] L offset =(1 / M)Σ k ||c hat_k –anchor k || 2 For offset regularization loss, where anchor k The coordinates of the k-th initial curve anchor point in step S4 are given. w9 is the weighting coefficient of this loss term, with a value ranging from 0.2 to 1.0.
[0069] Data fidelity item (L) CDweighted L pointGT L centroid and L scale The total weight of the four items (w1+w2+w3+w4) accounts for L total More than 60% of the total weight.
[0070] Training strategy: The following training strategy was adopted: anchor noise enhancement, adding Gaussian noise σ. anchor (Values range from 0.2 to 1.0 mm), linearly decaying to zero as training progresses; vertex jitter is enhanced by adding Gaussian noise σ to the normalized coordinate space. jitter (Values range from 0.002 to 0.008), linearly decaying to zero as training progresses to simulate intraoral scanning noise; GT curve compaction, using periodic cubic B-spline interpolation to compact sparse GT points into N... dense N points dense Values range from 150 to 300); Exponential Moving Average (EMA), decay coefficient β EMA The value ranges from 0.99 to 0.9999, and the EMA smoothing parameter is used during inference.
[0071] On the other hand, this embodiment also provides an electronic device, including a memory, a processor, and a computing program stored in the memory and executable on the processor, wherein the processor implements the method when executing the computing program.
[0072] On the other hand, this embodiment also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method.
[0073] The above are merely preferred embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for detecting the cervical margin line of a dental model based on probability field regression and ring graph convolution, characterized in that, include: A three-dimensional dental triangular mesh model to be detected is obtained, and a downsampled point cloud of the three-dimensional dental triangular mesh model is constructed based on the local geometric features of each vertex in the three-dimensional dental triangular mesh model. The downsampled point cloud is input into a pre-trained probability field regression encoder, which performs dynamic graph convolution feature extraction on the downsampled point cloud and outputs the continuous probability value of each sampling point in the downsampled point cloud corresponding to the neckline based on the extracted multi-scale geometric features, thus forming a spatial probability field. Based on the probability distribution of the spatial probability field, candidate ridge points whose probability values satisfy the preset ridge point conditions are extracted, and clustering, outlier removal, and curve fitting operations are performed on the candidate ridge points to obtain an initial curve. The control point information of the initial curve, the global context features of the spatial probability field, and the local geometric features of the three-dimensional dental triangular mesh model are input into a pre-trained neural curve generation network. The neural curve generation network performs multiple message passes on a fixed ring topology and predicts the bounded offset based on the control points of the initial curve, outputting the final control point coordinates of the cervical margin.
2. The method according to claim 1, characterized in that, The downsampling point cloud used to construct the three-dimensional dental triangular mesh model includes: After obtaining the three-dimensional dental triangular mesh model, a unit sphere normalization preprocessing is performed on the three-dimensional dental triangular mesh model; Calculate the four-dimensional geometric feature vector of each vertex in the three-dimensional dental triangular mesh model. The four-dimensional geometric feature vector includes the average curvature based on the cotangent weight discrete Laplace-Beltrami operator, the Gaussian curvature based on the angular defect, the surface roughness represented by the standard deviation of the neighborhood normal vector, and the local density represented by the inverse of the neighborhood average distance. Then, the four-dimensional geometric feature vector is standardized. Based on the curvature value of each vertex of the three-dimensional dental triangular mesh model, a hybrid sampling probability distribution is constructed that integrates the uniform distribution component and the normalized curvature component. Then, sampling without replacement is performed from the original vertex set of the three-dimensional dental triangular mesh model according to the hybrid sampling probability distribution to obtain the downsampled point cloud.
3. The method according to claim 1, characterized in that, The formation of the spatial probability field includes: The downsampled point cloud is input into the probability field regression encoder. The multi-layer dynamic graph convolutional layer of the probability field regression encoder constructs a k-nearest neighbor graph for each sampling point in the current feature space of each layer. Edge feature convolution and maximum value neighborhood aggregation are performed on the constructed k-nearest neighbor graph to extract the multi-scale geometric features of the downsampled point cloud. The multi-scale geometric features are input into the regression head, which outputs a scalar logit for each sampling point through multiple fully connected layers. The scalar logit is then scaled according to a learnable scaling parameter and mapped by a sigmoid activation function to obtain the continuous probability value of each sampling point corresponding to the neckline, thus forming the spatial probability field.
4. The method according to claim 1, characterized in that, The process of obtaining the initial curve includes: The spatial probability field is subjected to power-law sharpening, and points whose sharpened probability values exceed the first threshold and are located within the preset percentile of the probability values are selected as candidate ridge points. Density clustering is performed on the candidate ridge points, and a probability-weighted cluster selection strategy is used to select the cluster with the highest median probability value from the clustering results as the target ridge point cluster. Statistical outlier removal is then performed on the target ridge point cluster. A coarse fit is performed on the target ridge cluster with a high smoothing parameter as an anti-pollution reference curve. The residuals of each ridge point in the target ridge cluster to the anti-pollution reference curve are calculated. Ridge points whose residuals are less than the sum of the median and a preset multiple of the absolute median difference are retained to obtain the pruned ridge points. Principal component analysis is performed on the pruned ridge points and projected onto a two-dimensional plane. After sorting by polar angle, periodic cubic B-spline fitting is performed to obtain an initial curve with a preset number of control points.
5. The method according to claim 4, characterized in that, The step of performing principal component analysis on the pruned ridge points and projecting them onto a two-dimensional plane, sorting them by polar angle, and then performing periodic cubic B-spline fitting to obtain an initial curve with a preset number of control points, further includes: For the pruned ridge point, candidate fitting is performed at least once using the periodic cubic B-spline fitting and PCA ellipse fitting respectively to obtain multiple candidate initial curves. The optimal fitting result is selected from the multiple candidate initial curves as the initial curve using the bidirectional chamfer distance as the selection criterion. When the fitting result of the periodic cubic B-spline fitting fails the preset quality check, B-spline fitting with multiple smoothing factors and uniform subsampling are performed sequentially to supplement the multiple candidate initial curves. The PCA ellipse fitting includes: performing elliptic algebraic fitting using the direct least squares method under preset ellipse constraints on a two-dimensional plane obtained by the principal component analysis projection to obtain ellipse geometric parameters; back-projecting the ellipse geometric parameters to three-dimensional space to determine a spatial elliptic curve; and uniformly sampling a preset number of points along the spatial elliptic curve as control points for candidate initial curves.
6. The method according to claim 1, characterized in that, The output of the final control point coordinates of the neckline includes: Define a preset number of learnable query tokens, initialize each query token on a unit circle and attach a learnable position code to obtain an initialized query token; Based on the multidimensional feature vectors of each vertex in the three-dimensional dental triangular mesh model, the global context features of the spatial probability field are extracted by global pooling, and the global context features are fused with the initial query token to obtain the fused query features. The fused query features are input into the multi-layer residual gated graph convolutional module. The residual gated graph convolutional module of each layer performs gated message calculation and neighborhood mean aggregation on the edge set of the fixed ring topology. After residual update and layer normalization, the updated query features are output. After the output of the first-layer residual gated graph convolution module, the coordinates of the control points of the initial curve are linearly projected and added to the updated query features to obtain the query features after injecting anchor points. The query features after the injection of anchor points are input into the coordinate prediction head. The coordinate prediction head outputs a three-dimensional offset through multiple fully connected layers. The three-dimensional offset is truncated and multiplied by the maximum offset norm. The final control point coordinates of the neckline are obtained by adding the truncated three-dimensional offset to the control point coordinates of the initial curve.
7. The method according to claim 6, characterized in that, The edge set of the fixed ring topology includes adjacent connections and skip connections; the gating message calculation includes calculating a gating coefficient based on the current query characteristics, and weighting the query characteristics of neighboring nodes based on the gating coefficient.
8. The method according to claim 1, characterized in that, The probability field regression encoder is pre-trained using a joint loss function, which includes mean squared error loss, Laplacian smoothing regularization loss, and geometric-probability contrast loss. The geometric-probability contrastive loss constructs a first-direction InfoNCE loss using geometric features as anchors and probabilistic features as positive samples, and constructs a second-direction InfoNCE loss using probabilistic features as anchors and geometric features as positive samples. The geometric-probability contrastive loss is activated after a preset number of training rounds.
9. An electronic device comprising a memory, a processor, and a computing program stored in the memory and executable on the processor, characterized in that, When the processor executes the computing program, it implements the method of any one of claims 1-8.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1-8.
