Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
TEETH SEGMENTATION USING NEURAL NETWORKS
Document Type and Number:
WIPO Patent Application WO/2021/155230
Kind Code:
A1
Abstract:
A computer-implemented method and system of digitally segmenting teeth in a digital model comprises generating a panoramic image from a 3D digital model of a patient's dentition, labeling, using a first trained neural network, the panoramic image to provide a labeled panoramic image, mapping the labeled panoramic image to corresponding coarse digital surface triangle labels in the 3D digital model to provide a labeled 3D digital model, and segmenting the labeled 3D digital model to provide a segmented 3D digital model. A computer-implemented method and system of generating a panoramic image comprises determining, using a trained neural network, digital tooth bounding region(s) corresponding to digital teeth from a 2D depth map of a patient's dentition, connecting digital tooth bounding region(s) by a spline, determining sampled digital surface points from the sampled spline points; and determining associated digital surface points corresponding to each sampled digital surface point.

Inventors:
AZEMIKOV SERGEI (US)
CHELNOKOV FEDOR (RU)
TOLSTOV ANDREY (RU)
NIKOLSKIY SERGEY (US)
Application Number:
PCT/US2021/015820
Publication Date:
August 05, 2021
Filing Date:
January 29, 2021
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
GLIDEWELL JAMES R DENTAL CERAMICS INC (US)
International Classes:
A61C13/00
Foreign References:
US20180360567A12018-12-20
US20130022255A12013-01-24
US20190150724A12019-05-23
Attorney, Agent or Firm:
FAYERBERG, Roman (US)
Download PDF:
Claims:
CLAIMS

1. A computer-implemented method of digitally segmenting teeth in a digital model, comprising: receiving a 3D digital model of patient scan data of at least a portion of a patient’s dentition; generating a panoramic image from the 3D digital model; labeling, using a first trained neural network, one or more regions of the panoramic image to provide a labeled panoramic image; mapping one or more regions of the labeled panoramic image to one or more corresponding coarse digital surface triangle labels in the 3D digital model to provide a labeled 3D digital model; and segmenting the labeled 3D digital model to provide a segmented 3D digital model.

2. The method of claim 1, further comprising training the first trained neural network to label one or more regions of the panoramic image to provide a labeled panoramic image.

3. The method of claim 1, wherein the labeled 3D digital model comprises one or more uncertainty regions.

4. The method of claim 1, wherein the segmented 3D digital model comprises one or more individual tooth regions and a non-tooth region.

5. The method of claim 1, wherein the first trained neural network comprises a first convolution neural network.

6. The method of claim 1, wherein the first trained neural network comprises a semantic segmentation neural network.

7. The method of claim 1, wherein the first trained neural network comprises a YOLO neural network.

8. The method of claim 1, wherein segmenting the 3D digital model comprises geometrically segmenting the labeled 3D digital model.

9. The method of claim 8, wherein the geometrically segmenting comprises curvature based segmentation.

10. The method of claim 8, wherein the geometrically segmenting comprises two point segmentation.

11. The method of claim 1, wherein generating the panoramic image comprises: determining, using a second trained neural network, one or more digital tooth bounding regions corresponding to one or more digital teeth; connecting the one or more digital tooth bounding regions by a spline; sampling one or more spline points on the spline; determining one or more sampled digital surface points from the one or more sampled spline points; and determining one or more associated digital surface points corresponding to each sampled digital surface point.

12. The method of claim 11, further comprising determining a digital tooth bounding region center of each digital tooth bounding region, wherein connecting the one or more digital tooth bounding regions comprises connecting the digital tooth bounding region centers.

13. The method of claim 11 , wherein the second trained neural network comprises a Y OLO neural network.

14. The method of claim 11, wherein the second trained neural network comprises a semantic segmentation neural network.

15. The method of claim 11, wherein the each sampled digital surface point and its corresponding associated digital surface points comprise a column in the panoramic image.

16. The method of claim 11, wherein determining one or more associated digital surface points comprises: determining a sample depth point of each sampled digital surface point; and determining one or more digital surface points intersecting with one or more respective rays extending from the sample depth point at one or more inclination angles from an occlusion direction and within a sample plane, wherein the sample plane is orthogonal to the spline and the occlusion direction.

17. The method of claim 11, wherein the one or more inclination angles are within an inclination angle range, and wherein the inclination angle range is from -45 degrees to +45 degrees.

18. A system to digitally segment teeth in a digital model, comprising: a processor; and a computer-readable storage medium comprising instructions executable by the processor to perform steps comprising: receiving a 3D digital model of patient scan data of at least a portion of a patient’s dentition; generating a panoramic image from the 3D digital model; labeling, using a first trained neural network, one or more regions of the panoramic image to provide a labeled panoramic image; mapping one or more regions of the labeled panoramic image to one or more corresponding coarse digital surface triangle labels in the 3D digital model to provide a labeled 3D digital model; and segmenting the labeled 3D digital model to provide a segmented 3D digital model.

19. The system of claim 18, wherein generating the panoramic image comprises: determining, using a second trained neural network, one or more digital tooth bounding regions corresponding to one or more digital teeth; connecting the one or more digital tooth bounding regions by a spline; sampling one or more spline points on the spline; determining one or more sampled digital surface points from the one or more sampled spline points; and determining one or more associated digital surface points corresponding to each sampled digital surface point.

20. A computer-implemented method of generating a panoramic image, comprising: receiving a 2D depth map of patient scan data of at least a portion of a patient’s dentition; determining, using a trained neural network, one or more digital tooth bounding regions corresponding to one or more digital teeth; connecting the one or more digital tooth bounding regions by a spline; sampling one or more spline points on the spline; determining one or more sampled digital surface points from the one or more sampled spline points; and determining one or more associated digital surface points corresponding to each sampled digital surface point.

21. A non-transitory computer readable medium storing executable computer program instructions to segment a digital model, the computer program instructions comprising: receiving a 3D digital model of patient scan data of at least a portion of a patient’s dentition; generating a panoramic image from the 3D digital model; labeling, using a first trained neural network, one or more regions of the panoramic image to provide a labeled panoramic image; mapping one or more regions of the labeled panoramic image to one or more corresponding coarse digital surface triangle labels in the 3D digital model to provide a labeled 3D digital model; and segmenting the labeled 3D digital model to provide a segmented 3D digital model.

Description:
TEETH SEGMENTATION USING NEURAL NETWORKS

RELATED APPLICATIONS

[1] This application claims priority to and the benefit of U.S. Utility Application No. 16/778,406, filed January 31, 2020, and U.S. Utility Application No. 17/140,739, filed January 4, 2021, their disclosures of which are hereby incorporated by reference in their entirety for all purposes.

BACKGROUND

[2] Specialized dental laboratories typically use computer-aided design (CAD) to design dental prostheses based on patient-specific instructions provided by dentists.

[3] In a typical work flow, the dental laboratories receive information about a patient’s oral situation from a dentist. To use the CAD/CAM system, a digital model of the patient’s dentition is used as an input to the process. It can be desirable to segment and label individual teeth and the gum area in the digital model. However, labeling teeth and finding precise tooth boundaries and gum boundaries can be challenging. Traditional approaches of manual segmentation can be slow and tedious and prone to error. Recent approaches can be less tedious, but can produce imprecise and/or missing boundaries of teeth and other regions of interest in the digital model.

SUMMARY

[4] A computer-implemented method of digitally segmenting teeth in a digital model includes receiving a 3D digital model of patient scan data of at least a portion of a patient’s dentition, generating a panoramic image from the 3D digital model, labeling, using a first trained neural network, one or more regions of the panoramic image to provide a labeled panoramic image, mapping one or more regions of the labeled panoramic image to one or more corresponding coarse digital surface triangle labels in the 3D digital model to provide a labeled 3D digital model and segmenting the labeled 3D digital model to provide a segmented 3D digital model.

[5] A system to digitally segment teeth in a digital model includes a processor, a computer- readable storage medium including instructions executable by the processor to perform steps that can include: receiving a 3D digital model of patient scan data of at least a portion of a patient’s dentition, generating a panoramic image from the 3D digital model, labeling, using a first trained neural network, one or more regions of the panoramic image to provide a labeled panoramic image, mapping one or more regions of the labeled panoramic image to one or more corresponding coarse digital surface triangle labels in the 3D digital model to provide a labeled 3D digital model and segmenting the labeled 3D digital model to provide a segmented 3D digital model.

[6] A non-transitory computer readable medium storing executable computer program instructions to segment a digital model, the computer program instructions can include receiving a 3D digital model of patient scan data of at least a portion of a patient’s dentition, generating a panoramic image from the 3D digital model, labeling, using a first trained neural network, one or more regions of the panoramic image to provide a labeled panoramic image, mapping one or more regions of the labeled panoramic image to one or more corresponding coarse digital surface triangle labels in the 3D digital model to provide a labeled 3D digital mode and segmenting the labeled 3D digital model to provide a segmented 3D digital model.

[7] A computer-implemented method of generating a panoramic image can include receiving a 2D depth map of patient scan data of at least a portion of a patient’s dentition, determining, using a trained neural network, one or more digital tooth bounding regions corresponding to one or more digital teeth, connecting the one or more digital tooth bounding regions by a spline, sampling one or more spline points on the spline, determining one or more sampled digital surface points from the one or more sampled spline points and determining one or more associated digital surface points corresponding to each sampled digital surface point.

BRIEF DESCRIPTION OF THE DRAWINGS

[8] FIG. 1 shows a perspective view of a digital model of teeth and gum.

[9] FIG. 2 shows a diagram of an example of a Convolutional Neural Network in some embodiments.

[10] FIG. 3 shows a diagram of an example of at least a portion of a YOLO network in some embodiments.

[11] FIG. 4(A) and FIG. 4(B) show diagrams of examples of at least a portion of a U-Net network in some embodiments.

[12] FIG. 5(a) is a diagram of an example of a pyramid attention network.

[13] FIG. 5(b) is a diagram of an example of a pyramid attention feature.

[14] FIG. 5(c) is a diagram of an example of a global attention upsample feature.

[15] FIG. 6(a) is a diagram of an example of a ResNet neural network.

[16] FIG. 6(b) is a diagram of an example of a portion of a ResNet neural network. [17] FIG. 7 shows an example of a panoramic image with an overlaid illustration showing columns and rows in some embodiments.

[18] FIG. 8 shows an image of an example of a 2D depth map.

[19] FIG. 9 shows an image of an example of a marked 2D depth map.

[20] FIG. 10(a) shows an image of a digital dental arch with one or more digital teeth with illustrated bounding regions.

[21] FIG. 10(b) shows an image of a digital dental arch with one or more digital teeth with illustrated bounding regions and digital bounding box centers.

[22] FIG. 10(c) shows digital bounding box centers.

[23] FIG. 10(d) shows one or more digital tooth bounding region centers connected together by a spline.

[24] FIG. 11 shows an example of digital model with a sampled point on a spline.

[25] FIG. 12(a) shows an example of a digital model with a sample digital surface point that corresponds to a sampled point on a continuous smooth spline.

[26] FIG. 12(b) shows an example of a digital model with additional sample points.

[27] FIG. 12(c) shows an example of a digital model with multiple rays extending from a sample depth point.

[28] FIG. 13 shows an example of a panoramic image with illustrated rows and columns.

[29] FIG. 14 shows an example of a panoramic image with depth information.

[30] FIG. 15 shows an example of a panoramic image with a marked digital tooth bounding region.

[31] FIG. 16(a) and FIG. 16(b) show examples of panoramic images that can include one or more digital bounding regions.

[32] FIG. 17 shows an example in some embodiments of mapping to a 3D digital model.

[33] FIG. 18(a) and FIG. 18(b) show examples of identifying uncertainty regions.

[34] FIG. 19 shows one example of determining curvature at an edge connecting two triangles.

[35] FIG. 20(a) shows an example in some embodiments of determining an average of the edge curvatures.

[36] FIG. 20(b) shows an example in some embodiments of a segment after merging a triangle.

[37] FIG. 20(c) illustrates one example of a segmented digital surface.

[38] FIG. 21 shows an example in some embodiments of a digital surface mesh containing a large number of segments in some embodiments. [39] FIG. 22(a) through FIG. 22(g) show examples of two point segmentation in some embodiments.

[40] FIG. 23(a) shows an example of an illustration a portion of a boundary loop in some embodiments.

[41] FIG. 23(b) shows an example of an illustration of a dual-graph vertex.

[42] FIG. 24 illustrates an example of a fully segmented and labeled set of digital teeth and gum region.

[43] FIG. 25(a) shows a flowchart of an example of a computer-implemented method of digitally segmenting teeth in a digital model in some embodiments.

[44] FIG. 25(b) shows a flowchart of an example of a computer-implemented method of generating a panoramic image in some embodiments.

[45] FIG. 26 shows a diagram of an example processing system in some embodiments.

DETAILED DESCRIPTION

[46] For purposes of this description, certain aspects, advantages, and novel features of the embodiments of this disclosure are described herein. The disclosed methods, apparatus, and systems should not be construed as being limiting in any way. Instead, the present disclosure is directed toward all novel and nonobvious features and aspects of the various disclosed embodiments, alone and in various combinations and sub-combinations with one another. The methods, apparatus, and systems are not limited to any specific aspect or feature or combination thereof, nor do the disclosed embodiments require that any one or more specific advantages be present or problems be solved.

[47] Although the operations of some of the disclosed embodiments are described in a particular, sequential order for convenient presentation, it should be understood that this manner of description encompasses rearrangement, unless a particular ordering is required by specific language set forth below. For example, operations described sequentially may in some cases be rearranged or performed concurrently. Moreover, for the sake of simplicity, the attached figures may not show the various ways in which the disclosed methods can be used in conjunction with other methods. Additionally, the description sometimes uses terms like “provide” or “achieve” to describe the disclosed methods. The actual operations that correspond to these terms may vary depending on the particular implementation and are readily discernible by one of ordinary skill in the art.

[48] In some embodiments, the computer-implemented method can include receiving a 3D digital model of patient scan data of at least a portion of a patient’s dentition, generating a panoramic image from the 3D digital model, labeling, using a first trained neural network, one or more regions of the panoramic image to provide a labeled panoramic image mapping one or more regions of the labeled panoramic image to one or more corresponding coarse digital surface triangle labels in the 3D digital model to provide a labeled 3D digital model, and segmenting the labeled 3D digital model to provide a segmented 3D digital model. Alternatively, in some embodiments, the computer-implemented method can include receiving the panoramic image, labeling, using a first trained neural network, one or more regions of the panoramic image to provide a labeled panoramic image mapping one or more regions of the labeled panoramic image to one or more corresponding coarse digital surface triangle labels in the 3D digital model to provide a labeled 3D digital model, and segmenting the labeled 3D digital model to provide a segmented 3D digital model

[49] In some embodiments, the computer-implemented method can include receiving a 3D digital model of patient scan data of at least a portion of a patient’s dentition (“digital model”). FIG. 1 illustrates one example of a digital model 100 that can be generated by scanning a physical impression using any scanning technique known in the art including, but not limited to, for example, optical scanning, CT scanning, etc. The digital model 100 can also be generated by intraoral scanning of the patient’s dentition, for example. One example is described in U.S. Patent Application No. US20180132982A1 to Nikolskiy et al., which is hereby incorporated in its entirety by reference. A conventional scanner typically captures the shape of the physical impression/patient’s dentition in 3 dimensions during a scan and digitizes the shape into a 3 dimensional digital model. The digital model 100 can include multiple interconnected polygons in a topology that corresponds to the shape of the physical impression/patient’s dentition, for example. In some embodiments, the polygons can include two or more digital triangles. In some embodiments, the scanning process can produce STL, PLY, or CTM files, for example that can be suitable for use with a dental restoration design software, such as FastDesign™ dental design software provided by Glidewell Laboratories of Newport Beach, Calif.

[50] Neural Networks

[51] In some embodiments, the computer-implemented method can use one or more trained neural networks. Neural networks are computational models that are part of machine learning. A neural network typically includes nodes organized in layers. The layers of nodes can include, for example, an input layer, one or more hidden layers, and an output layer. A neural network with more than one hidden layer -typically many more hidden layers— is a deep neural network (“DNN”). Information from one layer can be processed and provided to a next layer. [52] In some embodiments, the DNN can be a convolutional neural network (“CNN”), which is a network that uses convolution in place of the general matrix multiplication in at least one of the hidden layers of the deep neural network. A convolution layer can calculate its output values by applying a kernel function to a subset of values of a previous layer. The computer- implemented method can train the CNN by adjusting weights of the kernel function based on the training data. The same kernel function can be used to calculate each value in a particular convolution layer. One advantage to using a CNN can include learning fewer weights during training. Another advantage of using a CNN can be detecting edge features, for example.

[53] FIG. 2 illustrates an example of a CNN in some embodiments. The CNN can include one or more convolution layers, such as first convolution layer 202. The first convolution layer 202 can apply a kernel (also referred to as a filter) such as kernel 204 across an input image such as input image 203 and optionally apply an activation function to generate one or more convolution outputs such as first kernel output 208. The first convolution layer 202 can include one or more feature channels. The application of the kernel such as kernel 204 and optionally an activation function can produce a first convoluted output such as convoluted output 206. The kernel can then advance to the next set of pixels in the input image 203 based on a stride length and apply the kernel 204 and optionally an activation function to produce a second kernel output. The kernel can be advanced in this manner until it has been applied to all pixels in the input image 203. In this manner, the CNN can generate a first convoluted image 206, which can include one or more feature channels. The first convoluted image 206 can include one or more feature channels such as 207 in some embodiments. In some cases, the activation function can be, for example, a RELU activation function. Other types of activation functions can also be used.

[54] The CNN can also include one or more pooling layers such as first pooling layer 212. First pooling layer can apply a filter such as pooling filter 214, to the first convoluted image 206. Any type of filter can be used. For example, the filter can be a max filter (outputting the maximum value of the pixels over which the filter is applied) or an average filter (outputting the average value of the pixels over which the filter is applied). The one or more pooling layer(s) can down sample and reduce the size of the input matrix. For example, first pooling layer 212 can reduce/down sample first convoluted image 206 by applying first pooling filter 214 to provide first pooled image 216. The first pooled image 216 can include one or more feature channels 217. The CNN can optionally apply one or more additional convolution layers (and activation functions) and pooling layers. For example, the CNN can apply a second convolution layer 218 and optionally an activation function to output a second convoluted image 220 that can include one or more feature channels 219. A second pooling layer 222 can apply a pooling filter to the second convoluted image 220 to generate a second pooled image 224 that can include one or more feature channels. The CNN can include one or more convolution layers (and activation functions) and one or more corresponding pooling layers. The output of the CNN can be optionally sent to a fully connected layer, which can be part of one or more fully connected layers 230. The one or more fully connected layers can provide an output prediction such as output prediction 224. In some embodiments, the output prediction 224 can include labels of teeth and surrounding tissue, for example.

[55] CNNs can be structured and used in different ways. For example, details of an example of a You Only Look Once (“YOLO”) network are described in You Only Look Once: Unified, Real-Time Object Detection, by Joseph Redmon, Santosh Divvala, Ross Girshick, Ali Farhadi, submitted 8 Jun 2015, last revised 9 May 2016, v5, the entirety of which is hereby incorporated by reference. Additional details of a YOLO network can be found in YOL09000: Better, Faster, Stronger, by Joseph Redmon, Ali Farhadi, University of Washington, Allen Institute for AI, published 25 Dec 2016, arXiv, the entirety of which is hereby incorporated by reference. Details of an example of a YOLO network are also described in YOLOv3: An Incremental Improvement, by Joseph Redmon and Ali Farhadi, University of Washington, published 2018, ArXiv, the entirety of which is hereby incorporated by reference. A trained Y OLO network can receive, for example, a 2D digital model of patient’s dentition and output the digital model with a digital bounding box as the digital tooth bounding region around each digital tooth.

[56] A YOLOv3 network (hereinafter, “YOLO network”) as described can include one or more convolutional networks that predict multiple bounding boxes and class probability for each bounding box. In some embodiments, the Y OLO network can divide an input image into a S x S grid. Each of grid cells can predict B bounding boxes and can determine confidence scores for the bounding boxes. The confidence scores can indicate the model’s confidence that the bounding box contains an object as well as the accuracy of the predicted box. Confidence can be expressed as Pr(Object) * IOU ^ j 1 , where IOU is intersection over union.

[57] In some embodiments, YOLO can use dimension clusters as anchor boxes to predict bounding boxes. For example, YOLO can predict four coordinates for a bounding box: t x , t y , tw, th . If a cell is offset from the left top comer of the image by (C x ,C y ) and a prior bounding box has width p w and a height pi,. the predictions can correspond to:

[58] b x = s(ίc) + Cx

[59] by = o(ty) + Cy [60] b w =p w e tw

[61] b h =p h e th

[62] where box center coordinates relative to the filter application location are predicted using a sigmoid function (providing s ). In some embodiments, YOLO can predict each bounding box’s objectness score by performing logistic regression. The result can be 1 if the prior bounding box overlaps a ground truth object by more than any other prior bounding box. A prior bounding box that is not best but that overlaps a ground truth object by more than a threshold such as 0.5 can be ignored. Other threshold values can be used and can be set in a user configurable file, for example. A prior bounding box not assigned to a ground truth object incurs a loss for objectness, but not coordinate or class prediction. In some embodiments, each box can predict classes within the bounding box by utilizing multilabel classification. For example, independent logistic classifiers can be used. Binary cross-entropy loss for class predictions can be used in training. YOLO can make predictions across scales. For example, YOLO can predict boxes at three different scales. Features can be extracted from the scales. Several convolutional layers can be added to the base feature extractor. The final convolutional layer can predict a 3D tensor encoding bounding box, objectness, and class predictions. The tensor can be N x N x [(number of boxes at each scale) *(4+ 1 + (number of class predictions))] . For example, the number of boxes at each scale can be 3, and the class prediction number can be 80 class predictions. YOLO can obtain a feature map from two layers previous and up sample the feature map. For example, YOLO can up-sample the feature map by 2 x. Another previous feature map can be concatenated with the up-sampled feature map to provide a combined feature map. One or more convolutional layers can be added to process the combined feature map and provide a second tensor of twice the size. The same design can be performed a final time to predict boxes for the final scale. K-means clustering can be used to determine prior bounding box values. For example, 9 clusters and 3 scales can be used and the clusters divided evenly across the scales.

[63] In some embodiments, YOLO can perform feature extraction using one or more convolution layers. One or more of the convolution layers can optionally include residual operations. FIG. 3 illustrates an example of YOLO feature extraction. The following indicates the operations performed at each layer as an example:

[64] LAYER REF # TYPE _ FILTERS SIZE OUTPUT

[65] Layer 302: convolutional 32 3 x 3 256 x 256

[66] Layer 304: convolutional 64 3 x 3/2 128 x 128 [67] Layer 306: convolutional 32 1 x 1

[68] convolutional 64 3x3

[69] residual 307 64x64

[70] Layer 308: convolutional 128 3x3/2 64x64

[71] Layer 310: convolutional 64 1 x 1

[72] convolutional 128 3x3

[73] residual 311 64x64

[74] Layer 312: convolutional 256 3x3/2 32x32

[75] Layer 314: convolutional 128 lxl

[76] convolutional 256 3x3

[77] residual 315 32x32

[78] Layer 316: convolutional 512 3x3/2 16x16

[79] Layer 318: convolutional 256 lxl

[80] convolutional 512 3x3

[81] residual 319 16x16

[82] Layer 320: convolutional 1024 3 x 3/2 8x8

[83] Layer 322: convolutional 512 lxl

[84] convolutional 1024 3x3

[85] residual 323 8x8

[86] Layer 310 can be performed 2x, Layer 314 can be performed 8x, layer 318 can be performed 8x, and layer 322 can be performed 4x, bringing the total number of convolutions for the entire network to 53 convolutions. The avgpool can be global. Other arrangements and variations are also contemplated in the YOLO network. In some embodiments, a trained YOLO network can receive an image and provide bounding regions around each feature in the image.

The features can be defined during training. YOLO training can include minimizing loss functions. The loss function only penalizes classification errors when an object is in the particular grid cell. The loss function penalizes bounding box coordinate errors if a particular predictor is responsible for the ground truth box. For example, if the particular predictor has the highest IOU of all predictors in the particular grid cell.

[87] In some embodiments, the computer-implemented method can use a semantic segmentation network. Semantic segmentation networks can be any neural network that provides per pixel segmentation. Some examples of semantic segmentation networks can include DeconvNet, FPN, DeepLabV3, U-Net, and Pyramid Attention Network. [88] In some embodiments, the computer-implemented method can use U-Net as the semantic segmentation network, for example. U-Net is a convolutional neural network that can be used for biomedical image segmentation and is described in U-Net: Convolutional Networks for Biomedical Image Segmentation, by Olaf Ronneberger, Philipp Fischer, and Thomas Brox, Computer Science Department and BIOSS Centre for Biological Signalling Studies, University of Freiburg, Germany, arXiv, 18 May 2015, the entirety of which is hereby incorporated by reference. Standard CNNs typically include one or more convolution/pooling layers, known as contracting layers. The U-Net architecture can combine the one or more convolution/pooling contracting layers with one or more convolution/up-sampling layers. The U-Net architecture can thus increase resolution output. Localization can be achieved by combining high resolution features from the contracting path with the up sampled output. The U-Net architecture can also include a large number of feature channels to provide context information to higher resolution layers. In some embodiments, the expansive path can be symmetric to the contracting path, thereby providing a U-shaped architecture.

[89] FIG. 4(a) illustrates one example of a U-Net CNN that includes a contracting path 402 and an expanding path 404 in some embodiments. The contracting path 402 can include one or more convolution layers, such as first convolution layer 406. Each convolution layer can perform one or more convolutions, such as first convolution 410. The convolution can utilize a kernel of any size. In some embodiments, for example a 3x3 kernel can be used to perform the one or more convolutions. In some embodiments, each convolution layer can perform two convolutions.

[90] In some embodiments, each convolution can generate a feature map, and each feature map can include one or more feature channels. In some embodiments, each convolution within a convolution layer in the contracting path can maintain the same number of feature channels. For example, the network can receive an input image 401 that can have an image resolution and n number of feature channels. In convolution layer 406, first convolution 410 can provide an-channel feature map such as first feature map 411, and second convolution 413 can provide an n-channel feature map such as last feature map 412. Both a first feature map 411 and a last feature map 412 can include n-channels. In some embodiments, each convolution can be unpadded. In some embodiments, one or more convolutions can be padded. Each of the one or more convolutions can also be followed by an activation function such as ReLu, or other activation functions known in the art.

[91] The U-Net CNN can also include performing a pooling operation such as first pooling operation 408. The pooling operation in some embodiments can down sample each feature map. The pooling operation can in some embodiments be performed on a last feature map generated after a last convolution in the particular convolution layer. For example, in FIG. 4(a), the first pooling operation 408 can be performed on the last feature map 412, and the result can be a convolution layer input 414 to a next convolution layer 416. The first pooling operation 408 can be any pooling operation known in the art. For example, in some embodiments, the first pooling operation 408 can be a max pooling operation. In some embodiments, the first pooling operation 408 can be an average pooling operation. The pooling operation can be any value. For example, in some embodiments, the pooling operation can be a 2x2 pooling operation with a stride of 2.

[92] In some embodiments, each pooling operation can optionally be followed by additional convolution layers and pooling operations. For example, first pooling operation 408 can be followed by a second convolution layer 416, which can be followed by a third convolution layer 418, and a fourth convolution layer 427, with pooling operations between each convolution layer. In some embodiments, the number of feature channels can be doubled with each convolution layer in the contracting path 402. For example, second convolution layer 416 can double the number of feature channels to twice that of the first convolution layer 406, third convolution layer 418 can double the number of feature channels to twice that of the second convolution layer 416, and fourth convolution layer 427 can double the number of feature channels to twice that of the third convolution layer 418. This can provide 2*n feature channels for each feature map produced by each convolution layer in the contracting path 402. For example, the first convolution layer 406 can receive an input image having 1 channel and after performing one or more convolutions, can produce a feature map having 64 channels, the second convolution layer 416 can provide a feature map having 128 channels after performing one or more convolutions, the third convolution layer 418 can provide a feature map having 256 channels after performing one or more convolutions, and the fourth convolution layer 418 can provide a feature map having 512 channels, for example. Dimensions of the image can be reduced at each convolution. For example, the input image can have a resolution of 572 x 572. The first convolution 410 can provide the feature map 411 with a resolution of 570 x 570. The second convolution can provide the last feature map 412 with a resolution of 568 x 568. In some embodiments, each pooling operation between convolution layers can decrease the resolution by ½. For example, the first pooling operation 408 can reduce the last feature map 412 with a resolution of 568x568 to the convolution layer input 414 having a resolution of 284x284. [93] The U-Net CNN can perform a final pooling operation 422 in the contracting path 402 on the final contracting path convolution layer 427. The U-Net CNN can perform one or more convolutions at a convolution layer 426. In some embodiments, the input to convolution layer 426 can have a resolution of 32x32 with 1024 feature channels. The output from convolution layer 426 can be a feature map having a resolution of 28x28 with 1024 feature channels.

[94] The U-Net CNN can perform up-sampling of the feature map in the expansive path 404. The expansive path 404 can include one or more up-sampling layers, such as up-sampling layer 425. Each up-sampling layer can halve the number of feature channels. For example, up sampling 424 can halve the number of feature channels for a last feature map from convolution layer 426 to provide feature map 428. The up-sampling can be 2x2 up-convolution, for example. Each up-sampling layer can concatenate a cropped feature map from the contracting path. For example, up-sampling layer 425 can perform a concatenating operation 429 to concatenate cropped feature map 430 from the contracting path 424 to the up-sampled feature map 428. Each up-sampling can double the resolution of the feature map from the previous up sampling layer. For example, up-sampling 424 can double the feature map resolution from convolution layer 426 to provide feature map 428. As an example, where the last feature map from convolution layer 426 is 28x28, the feature map 428 can be 56x56 after up-sampling 424. Each up-sampling layer can also perform one or more convolutions, each of which can be followed by an activation function such as ReLU, or any other activation function known in the art. The convolutions within each up-sampling layer can be 3x3 convolutions, for example. The U-Net CNN can perform a lxl convolution as the last convolution in the final up-sampling layer. For example, final up-sampling layer 432 can include last convolution 434 that can provide output segment map 435 for example in some embodiments. In some embodiments, the output segmentation map 435 can have a resolution of 388 x 388 and include 2 channels, for example.

[95] FIG. 4(b) illustrates another embodiment of a U-net neural network 4000. The U-Net neural network 4000 can receive an input image such as input image 4002 and perform one or more convolutions in one or more convolution layers. In some embodiments, the U-net neural network can include a contracting path such as contracting path 4006 and an expanding path such as expanding path 4021. An input image can be of any resolution and can include any number of channels. For example, in the figure, an input image 4002 can have an input image resolution of 512x512 with n-channels (“Nx512x512”). In some embodiments, each downward pointing arrow in the figure such as convolution layer 4004 in the contracting path 4006 can include a 4x4 convolution (stride 2x2) with a LeakyReLU activation function and normalization such as InstanceNorm known in the art. In some embodiments, the convolution layer can also include pooling. In some embodiments, each upward pointing arrow such as up- convolution layer 4032 in the expanding path 402 lean include a 4x4 up-convolution (stride 2x2, padding 3x3) with a ReLU activation function and normalization such as InstanceNorm known in the art. In some embodiments, the convolution layer can also include up-sampling.

[96] In some embodiments, each convolution layer in the contracting path 4006 can halve the resolution of its input image. For example, the first convolution layer 4004 can receive the input image 4002 and output a first feature map 4008 which can have a resolution of 128x256x256 (128 channels with 256x256 image resolution). In some embodiments, an output feature map after each convolution layer can be input to another convolution layer. For example, the first feature map 4008 output from the first convolution layer 4002 can be input to a second convolution layer 4005, which can provide a second feature map 4010 having a resolution of 245x128x128. The second feature map 4010 can be input to a third convolution layer 4007, which can output third feature map 4012 having a resolution of 512x64x64. The third feature map 4012 can be input to a fourth convolution layer 4009, which can output a fourth feature map 4014 having a resolution of 1024x32x32. The fourth feature map 4014 can be input to a fifth convolution layer 4011, which can output a fifth feature map 4016 having a resolution of 1024x16x16. The fifth feature map 4016 can be input to a sixth convolution layer 4013, which can output a sixth feature map 4018 having a resolution of 1024x8x8. The sixth feature map 4018 can be input to a seventh convolution layer 4015, which can output a seventh feature map 4020 having a resolution of 1024x4x4.

[97] In some embodiments, each up-convolution layer in an expanding path 4021 can double the resolution of its input image. In some embodiments, one or more up-convolution layers can concatenate a cropped feature map from the contracting path after the up-convolution. In some embodiments, an output feature map after each up-convolution layer can be input to another up-convolution layer.

[98] For example, the first up-convolution layer 4032 can receive the feature map 4020, perform the up-convolution, concatenate 4030 sixth feature map 4018, and output a first up- convolved up-convolved feature map 4038 which can have a resolution of 2048x8x8 (2048 channels with 8x8 image resolution). A second up-convolution layer 4033 can receive the first up-convolved feature map 4038, perform the up-convolution, concatenate the fifth feature map 4016, and output a second up-convolved feature map 4036 having a resolution of 2048x16x16. A third up-convolution layer 4031, can receive the second up-convolved feature map 4036, perform the up-convolution, concatenate the fourth feature map 4014, and output a third up- convolved feature map 4034 having a resolution of 2048x32x32. A fourth up-convolution layer 4039 can receive the third up-convolved feature map 4034, perform the up-convolution, concatenate the fifth feature map 4012, and can output a fourth up-convolved feature map 4042 having a resolution of 1024x64x64. A fifth up-convolution layer 4037 can receive the fourth up-convolved feature map 4042, perform the up-convolution, concatenate the fifth feature map 4010, and can output a fifth up-convolved feature map 4040 having a resolution of 512x128x128. A sixth up-convolution layer 4035 can receive the fifth up-convolved feature map 4040, perform the up-convolution, concatenate the fifth feature map 4008, and can output a sixth up-convolved feature map 4048 having a resolution of 256x256x256. A seventh up- convolution layer 4044 can receive the sixth up-convolved feature map 4048, can perform convolution, and can output a seventh up-convolved feature map 4050 having a resolution of 1x512x512.

[99] In some embodiments, each up-convolution layer can be preceded by up-sampling.

[100] In some embodiments, U-Net CNN training can determine the energy function by soft- max per pixel over the feature map combining it with the cross entropy loss function, where soft-max is:

[102] where ak(x) is the activation in feature channel k at pixel position x, K is the number of classes, and pk(x) is the approximated maximum-function. The cross-entropy can penalize deviation at each position of pi (x /x) from 1 by:

[103] E = å xen w(x) logpi (x) (x)

[104] where l : W is a weight map. A separation border between touching cells can be determined by operations that are morphological. The weight map can be determined as follows:

11051 w’(\)=wv(\) + wo * exp (-(di(x) + d2(x)) 2 /2o 2 )

[106] where w c : W is the weight map that balances class frequencies, di : R is the distance to the nearest cell border, and tfe : R is the distance to the 2 nd nearest cell. Initial weights are ideally chosen so the feature map has close to unit variance. Initial weights can be obtained from a Gaussian distribution having a standard deviation of j2/N , where N is the number of incoming nodes of one neuron.

[107] In some embodiments, the semantic segmentation network can be a Pyramid Attention Network (“PAN”). One example of a PAN is described in Pyramid Attention Network for Semantic Segmentation by Hanchao Li, Rengfei Xiong, Jie An and Lingxue Wang, arXiv: 1805.10180v3, submitted Nov 25, 2018, the entirety of which is hereby incorporated by reference. Other PANs architectures can be used. A PAN can include an encoder and a decoder along with a Feature Pyramid Attention (“FPA”) feature and a Global Attention Upsample (“GAU”) feature to increase receptive field and recover pixel localization details effectively. In some embodiments, the GAU can be part of a decoder branch of the PAN to select the discriminative multi-resolution feature representations, for example.

[108] FIG. 5(a) illustrates one example of a PAN in some embodiments. The PAN can include an encoder such as encoder 5002. In some embodiments, the encoder can receive an input image such as input image 5001. The encoder can include one or more stages, and each stage can be a layer combination that can perform a down-sampling operation on input data, for example. During encoding, each stage can produce an array (tensor) of features that make up the feature map of different levels. Each stage can provide one or more output feature maps corresponding to feature layers. In some embodiments, the FPA feature can be between the encoder and the decoder. In some embodiments, the decoder can include 32 channels, for example.

[109] In some embodiments, the encoder can be any type of ResNet architecture. One example of ResNet architecture is described in ResNets, by Pablo Ruiz — Harvard University, August 2018, the entirety of which is hereby incorporated by reference. In some embodiments, the encoder can be a ResNet-101 encoder. In some embodiments the ResNet-101 encoder’s different stages can output a specific number of channel feature maps. For example, in ResNet- 101, the Conv-1 5004 can output a 64 channel feature map, Res-2 5008 can output a 256 channel feature map, Res-3 5010 can output a 512 channel feature map, Res-45012 can output a 1024 channel feature map, and Res-5 5014 can output a 2048 channel feature map, for example.

[110] In a preferred embodiment, the encoder can be a ResNet-34 encoder. In some embodiments, the ResNet-34 encoder can include one or more stages, such as a convolution stage Conv-1 5004 followed by one or more stages such as Res-2 5008, Res-3 5010, Res-4 5012, and Res-5 5014. The ResNet-34 encoder, Conv-1 5004 can output a 64 channel feature map, Res-2 5008 can output a 64 channel feature map, Res-3 5010 can output a 128 channel feature map, Res-4 5012 can output a 256 channel feature map, and Res-5 5014 can output a 512 channel feature map, for example.

[111] FIG. 6(a) illustrates one example of a ResNet-34 neural network. An input image 6002 can be provided to a first ResNet convolution layer Conv-1 6004. In some embodiments, the first ResNet convolution layer can be a 7x7 convolution with 64 channels and a stride of 2. In some embodiments, this can be followed by a pooling step 6006 with a stride of 2. Some embodiments of the ResNet neural network can include, for example, four additional ResNet stages, or layers, that can each perform one or more 3x3 convolutions, bypassing the input every two convolutions. The height and width dimensions (i.e. image resolution) as well as the number of channels (feature map dimension) can remain the same within each stage.

[112] FIG. 6(a) illustrates an example of a ResNet-34 neural network that can include five stages: Conv-1 6004, Res-26010, Res-3 6012, Res-46014, and Res-5 6016. Each block in the Res-2 6010, Res-3 6012, Res-4 6014, and Res-5 6016 stages represents a pair of 3x3 convolutions performed in series (i.e. the output of the first convolution is the input of the second convolution within each box). For example, a first block 6018 can include a first Res- 2 convolution 6020 and a second Res-2 convolution 6022 performed in series. In some embodiments, the first convolution in a first block of one or more ResNet stages can increase the stride from 1 to 2. For example, a first Res-3 convolution 6024 in stage Res-3 6012, a first Res-4 convolution 6026 in stage Res-46014, and a first Res-5 convolution 6027 in stage Res- 5 6016 can each use a stride of 2, with the remaining convolutions using a stride of 1. In some embodiments, the ResNet stages can perform bypassing. In bypassing, the input of a first block is added to the output of the first block and the sum is provided as input to the next block. For example, as illustrated in FIG. 6(a), input to first block 6018 bypasses via bypass 6028 the first block and is added to an output of the first block 6018. This sum is then provided as input to a next block 6040.

[113] FIG. 6(b) illustrates an example of bypassing in more detail. A first block 6050 can receive a first block input feature map 6052. The input image 6052 can undergo a first convolution 6054 such as a 3x3 convolution, for example, and provide a first convolution output 6056 which can undergo a second convolution 6058 to provide a first block output 6060. The ResNet neural network can, via bypass 6062, sum the first block input feature map 6052 with the first block output 6060 and provide the sum as a second block input feature map 6064 to a second block 6066. This pattern can be repeated throughout the ResNet stages as illustrated in FIG. 6(a).

[114] Referring to FIG. 6(a), the Conv-1 6004 stage can output an image size of 112x112 after performing a 7x7, 64 channel, stride 2 convolution. The Res-2 6010 stage can include 3 blocks, with each block performing two 3x3, 64 channel convolutions, and output an image size of 56x56. The Res-3 6012 stage can include 4 blocks, with each block performing two 3x3, 128 channel convolutions, and output an image size of 28x28. The Res-4 6014 stage can include 6 blocks, with each block performing two 3x3, 256 channel convolutions, and output an image size of 14x14. The Res-56016 stage can include 3 blocks, with each block performing two 3x3, 512 channel convolutions, and output an image size of 7x7. Finally, the pooling stage 6029 can perform average pooling in some embodiments, 1000-d fc, softmax to output a lxl image size.

[115] As illustrated in FIG. 5(a), the output of a ResNet stage in some embodiments can be input to the next stage of the encoder. Additionally, the output of certain stages can also be inputs to a GAU. For example, the output of Res-25008 can be input to Res-3 5010 as well as input to GAU-3 5016, the output of Res-3 5010 can be input to Res-4 5012 as well as input to GAU-2 5018, the output of Res-45012 can be input to Res-5 5014 as well as to GAU-1 5020. In some embodiments, the output feature map(s) of the last stage of the encoder can be input to the FPA. For example, the output feature map(s) of Res-5 5014 can be input to the FPA 5022.

[116] In some embodiments, the FPA can combine features from three pyramid scales by using a U-shaped structure. In some embodiments, the FPA can embed different scale context features in a fully convolutional network (“FCN”) based pixel prediction framework. FIG. 5(b) illustrates an example of a FPA in some embodiments. The FPA 5030 can receive a feature map 5034 from an encoder network such as Resnet 5032, for example. The resolution of the feature map can be, in some embodiments, 32 x 32, for example. In some embodiments, the FPA can include down sampling followed by up sampling. For example, the FPA 5030 can include a down sampling branch 5038 and an up sampling branch 5040. In some embodiments, the down sampling branch 5038 can include one or more convolution layers such as first down- sample convolution 5048, which can perform a 7 x 7 convolution, second down-sample convolution 5050, which can perform a 5 x 5 convolution, and third down-sample convolution 5052, which can perform a 3 x 3 convolution. Because high-level feature maps have smaller resolution, a large kernel size does not add to the computation complexity. In some embodiments, the pyramid structure can integrate differently scaled information step-by-step, allowing it to incorporate neighbor scales of context features more precisely, for example. The output of each down-sample convolution can be fed to another convolutional layer with the same filter size. For example, the output of the third down-sample convolution 5052 can be input to a 3 x 3 convolution 5054, the output of the second down-sample convolution 5050 can be input to a 5 x 5 convolution 5056, and the output of the first down-sample convolution 5048 can be input to a 7 x 7 convolution 5058. In some embodiments, the up sampling branch can include increasing feature map resolutions. For example, in some embodiments, the resolution at first up-sample branch stage 5042 can be 4 x 4, at second up-sample branch stage 5044 can be 8 x 8, and at the third up-sample branch stage 5046 can be 32 x 32. Each up-sampling branch can include concatenation in some embodiments as illustrated in the figure, for example. The origin features from the convolution networks can be multiplied pixel-wise at, for example at pixel-wise multiplier 5070 after passing through a convolution layer such as convolution layer 5072, which can perform a 1 x 1 convolution, for example. One or more advantages of the pyramid structure can include, for example, at least fusing different scale context information and producing pixel-level attention for high-level feature maps.

[117] In some embodiments, the FPA can include a global pooling branch such as global pooling branch 5036, which can include global pooling 5060, a 1 x 1 convolution 5062, and upsampling 5064.

[118] The filter and resolution sizes provided are examples only. The filter and resolution sizes can be any suitable value. The down sampling and up sampling branches can include more or fewer stages in some embodiments. In some embodiments, all convolution layers are followed by batch normalization.

[119] In some embodiments, the FPA can provide input to a decoder, such as decoder 5074 illustrated in FIG. 5(a). As shown in the figure, in some embodiments, the decoder can also receive input from one or more GAUs, such as, for example, GAU-1 5020, GAU-2 5018, and GAU-3 5016. In some embodiments, FPA 5022 can provide its output as input to the decoder 5074 as well as to GAU-1 5020. GAU-1 5020 can also receive input from a ResNet layer such as Res-4 5012. In some embodiments, GAU-2 5018 can receive input from a corresponding ResNet layer such as Res-3 5010 and from a first decoder stage such as first decoder stage 5076, for example. In some embodiments, GAU-3 can receive input from Res-2 5008 as described previously, as well as from a second decoder stage 5078. In some embodiments, a third decoder stage 5080 can sum the output of GAU-3 5016 with the output from the second decoder stage 5078. In some embodiments, each decoder stage can perform a summation of its inputs.

[120] In some embodiments, each GAU can include performing global average pooling that can, for example, provide global context of low-level features that can help selecting category localization details. FIG. 5(c) illustrates one example of a GAU, such as GAU 50100. In some embodiments, the GAU can perform a convolution such as, for example convolution 50102 on one or more low-level features such as low level features 50101. In some embodiments, the convolution layer 50102 can be a 3 x 3 convolution that can, for example, reduce channels of feature maps from CNNs, for example. In some embodiments, the global context from high- level features such as high level features 50104 can be pooled at global pooling 50106, which can provide, for example, one or more feature maps such as feature map(s) 50108. In some embodiments, the feature map(s) 50108 can have a resolution of C x 1 x 1, for example, where C can denote the number of channels. In some embodiments, the GAU can generate a global context from high-level features through a convolution with batch normalization and ReLU non-linearity which can be multiplied by low-level features. For example, in some embodiments, convolution layer 50110 can provide a 1 x 1 convolution with batch normalization and ReLU non-linearity, which can be multiplied at multiplier 50112 with the low-level features from the convolution layer 50102 to provide one or more weighted low level features such as weighted low level features 50114, for example. In some embodiments, the high-level features can be added to the weighted low level features. For example, in some embodiments, the high-level features 50104 can be added to the weighted low-level features 50114 at summation 50116. One or more advantages of such a GAU can include, for example, deploying different scale feature maps and using high-level features to provide guidance information to low-level feature maps. In some embodiments, the PAN can provide a segmented image 5075.

[121] In some embodiments, ResNet can be pretrained, for example, on ImageNet using a dilated convolution strategy that extracts the feature map. For example, in some embodiments, the dilated convolution rate of 2 is applied to res5b blocks. This can produce feature maps whose output sizes from ResNet are 1/16 of the input image, for example. In the case of ResNet-101 and ResNet-34 implementations, the 7 x 7 convolution layers can be replaced, for example, by three 3 x 3 convolution layers. In some embodiments, training can include a poly learning rate known in the art. For example, the initial rate can be multiplied by (1- iter/max_iter) power , where power is 0.9 and the initial rate is 4e-3. In some embodiments, the network can be trained using mini-batch stochastic gradient descent (“SGD”) with batch size 16, momentum 0.9, and weight decay 0.0001. In some embodiments, a cross-entropy error at each pixel over categories can be applied as a loss function, for example. During training, random left-right flipping and random scaling between 0.5 and 2 for all datasets can be used, for example. In some embodiments, average pooling may be preferred over max pooling, particularly 3 x 3 kernel sized convolutions. In some embodiments, the stride can be 16, for example. One or more advantages of using a PAN can include, for example, improved performance.

[122] In some embodiments, the computer-implemented method can implement, include, and/or perform one or more features of one or more neural networks. In some embodiments, the computer-implemented method can train one or more neural networks. Although certain values are discussed for one or more features in the one or more neural networks, the values are provided as examples only. Other suitable values and variations can also be used.

[123] Panoramic Image

[124] In some embodiments, the computer-implemented method can use a trained neural network to generate a panoramic image from the 3D digital model. The panoramic image can be a 2D raster image that includes, for example, one or more columns and one or more rows. In some embodiments, the computer-implemented method can generate each column and row in the 2D panoramic image. A panoramic image can advantageously, for example, show more digital teeth in the digital model from more sides. The panoramic image can advantageously, for example, be a single image depicting both lingual and buccal gum-crown margins of all teeth. FIG. 7 illustrates an example of a panoramic image with an overlaid illustration of columns and rows, such as row 5102 and column 5104. The number of columns and rows shown in FIG. 7 is for illustrative purposes only. In some embodiments, the number of columns and rows desired can be set in a configuration file or through a graphical user interface element such as an input filed for both values. In some embodiments, the computer-implemented method can load the desired number of columns and rows from the configuration file, for example. A higher number of columns and rows can increase the resolution of the panoramic image. As an example, if the number of columns is set to, for example 2048, and the number of rows is set to 320, for example, then the panoramic image can be 2048x320 (width by height). This can mean that the computer-implemented method takes 2048 samples on the spline. Smaller dimensions can be faster to process, while larger dimensions can provide better spatial resolution. One advantage can include being able to select between speed and spatial resolution.

[125] In some embodiments, the neural network can be trained by providing a 2D depth map training dataset that can include one or more 2D depth maps of at least a portion of a digital dental arch having one or more digital teeth, with each digital tooth marked with a marked digital tooth bounding region, such as a rectangular shaped boundary, for example. Other shapes for the marked digital tooth bounding region can also be used. Some embodiments of the computer-implemented method can optionally include generating a 2D image from the 3D digital model. In some embodiments, the 2D image can be a 2D depth map. The 2D depth map can include a 2D image that contains in each pixel a distance from an orthographic camera to an object along a line passing through the pixel. The object can be, for example, a digital jaw model surface, in some embodiments, for example. In some embodiments, an input can include, for example, an object such as a 3D digital model of patient’s dentition (“digital model”), such as a jaw, and a camera orientation. In some embodiments, the camera orientation can be determined based on an occlusion direction. The occlusal direction is a normal to an occlusal plane and the occlusal plane can be determined for the digital model using any technique known in the art. For example, one technique is described in AN AUTOMATIC AND ROBUST ALGORITHM OF REESTABLISHMENT OF DIGITAL DENTAL OCCLUSION, by Yu- Bing Chang, James J. Xia, Jaime Gateno, Zixiang Xiong, Fellow, IEEE, Xiaobo Zhou, and Stephen T.C. Wong in IEEE TRANSACTIONS ON MEDICAL IMAGING, VOL. 29, NO. 9, SEPTEMBER 2010, the entirety of which is incorporated by reference herein. Alternatively, in some embodiments, the occlusal direction can be specified by a user using an input device such as a mouse or touch screen to manipulate the digital model on a display, for example, as described herein. In some embodiments, the occlusal direction can be determined, for example, using the Occlusion Axis techniques described in PROCESSING DIGITAL DENTAL IMPRESSION U.S. Patent Appl. No. 16/451,968, of Nikolskiy et ak, the entirety of which is incorporated by reference herein.

[126] The 2D depth map can be generated using any technique known in the art, including, for example z-buffer or ray tracing. For example, in some embodiments, the computer- implemented method can initialize the depth of each pixel (j, k) to a maximum length and a pixel color to a background color, for example. The computer-implemented method can for each pixel in a polygon’s projection onto a digital surface such as a 3D digital model determine a depth, z of the polygon at (x, y) corresponding to pixel (j, k). If z < depth of pixel (j, k), then set the depth of the pixel to the depth, z. "Z" can refer to a convention that the central axis of view of a camera is in the direction of the camera's z-axis, and not necessarily to the absolute z axis of a scene. In some embodiments, the computer-implemented method can also set a pixel color to something other than a background color for example. In some embodiments, the polygon can be a digital triangle, for example. In some embodiments, the depth in the map can be per pixel. FIG. 8 illustrates an example of a 2D depth map of a digital model in some embodiments.

[127] To generate the training dataset, each digital tooth in each 2D depth map in the training dataset can be marked by a digital tooth bounding region. FIG. 9 illustrates an example of a 2D depth map 700 with a marked digital tooth bounding region 702. The marked digital tooth bounding region for each digital tooth in the 2D depth map can be marked manually by a user or technician, for example, or by an automatic process in some embodiments. In some embodiments, the computer-implemented method can provide the 2D depth map training set to a neural network to provide a 2D depth map trained neural network. The 2D depth map trained neural network can, in some embodiments, receive one or more 2D depth maps and generate a digital tooth bounding region for each digital tooth in the 2D depth map automatically. In some embodiments, the computer-implemented method can train a YOLO network with one or more 2D depth maps, each with marked digital tooth bounding regions shaped as rectangles or boxes. In some embodiments, the computer-implemented method can train a semantic segmentation network with one or more 2D depth maps, each with marked digital tooth bounding regions shaped to follow the general shape each digital tooth as it appears in the 2D depth map. For example, in some embodiments, the computer-implemented method can train a CNN, U-Net CNN, or a PAN neural network. In some embodiments, the training dataset can include 10,0002D depth map images, for example. Other suitable numbers of 2D depth map images can be used as the training dataset in some embodiments, for example.

[128] After training, in some embodiments, the 2D depth map trained neural network can receive one or more unmarked 2D depth maps each having a digital dental arch and provide a digital tooth bounding region for each digital tooth in at least a portion of each digital dental arch. In some embodiments, the computer-implemented method can use the trained neural network to roughly define a digital tooth bounding region around each digital tooth, for example. Each digital tooth bounding region can provide a rough approximation of the position of each tooth when viewed from an occlusal direction. FIG. 10(a) illustrates an example of a digital model 800 having a digital dental arch with one or more digital tooth that includes digital tooth bounding regions around each digital tooth. In the example, the digital tooth bounding region is a digital bounding box 802 which bounds digital tooth 804 when viewed from the occlusal direction 806. Although a bounding box 802 is shown, each digital tooth bounding region can be of any suitable shape and/or size to bound the particular digital tooth in some embodiments.

[129] In some embodiments, the 2D depth map trained neural network is a 2D depth map trained convolutional neural network as described previously. In some embodiments, the 2D depth map trained CNN can be a 2D depth map trained Y OLO network as described previously. The trained 2D depth map Y OLO network can receive a 2D depth map and can provide a digital tooth bounding region for each digital tooth in at least a portion of the 2D depth map. The computer-implemented method can label all pixels bounded by a digital tooth bounding region with a unique label in some embodiments for example. The digital tooth bounding regions provided by a trained 2D depth map YOLO network can be digital tooth bounding boxes, for example. [130] In some embodiments, the 2D depth map trained neural network is a 2D depth map trained semantic segmentation network. In some embodiments, the 2D depth map trained semantic segmentation network can be a 2D depth map trained U-Net as described previously. In some embodiments, the 2D depth map trained semantic segmentation network is a PAN network as described previously. The trained 2D depth map semantic segmentation network can receive a 2D depth map and can provide a digital tooth bounding region for each digital tooth in at least a portion of the 2D depth map. The computer-implemented method can label all pixels bounded by a digital tooth bounding region with a single label in some embodiments for example. The digital tooth bounding regions provided by the trained 2D depth map semantic segmentation network can generally be shaped to follow the shape of the corresponding digital tooth in the 2D depth map, for example. The trained 2D depth map semantic segmentation network can thus provide per pixel segmenting/labeling.

[131] The labels can distinguish each tooth from another and/or each tooth from surrounding gingiva and gums, for example. A Y OLO network can be faster to train and apply, for example, but may not provide the per pixel labeling a semantic segmentation network can provide. A 2D depth map trained YOLO network can thus be suitable to generate the panoramic image in some embodiments. However, a 2D depth map trained semantic segmentation network can also be used to generate the panoramic image in some embodiments, for example. In some embodiments, each digital tooth can be identified based on its size and location in the digital dental arch.

[132] In some embodiments, the computer-implemented method can connect one or more of the digital tooth bounding regions together. In some embodiments, the computer-implemented method can connect one or more of the bounding region centers together. In some embodiments, the computer-implemented method can determine a center of each digital tooth bounding region. The digital tooth bounding region center can be a geometric center of the digital tooth bounding region in some embodiments, for example. FIG. 10(b) illustrates an example where the digital tooth bounding region is a digital bounding box 802 for digital tooth 804. The computer-implemented method can determine a digital bounding box center 808. The digital bounding box center 808 can be a geometric center of the digital bounding box 802 in some embodiments, for example. FIG. 10(c) illustrates an example of digital bounding box centers of digital model 800 from FIG. 10(a) such as digital bounding box center 808 of digital bounding box 802.

[133] In some embodiments, the computer-implemented method can connect neighboring digital tooth bounding region centers by passing a spline through one or more digital tooth bounding region centers. In some embodiments, the computer-implemented method can select the one or more digital tooth bounding region centers to pass the spline through such that the spline forms a smooth convex hull. In some embodiments, the computer-implemented method can pass the spline through all of the digital tooth bounding region centers. In some embodiments, the spline can be a smooth spline. In some embodiments, the neighboring digital tooth bounding regions are adjacent to one another. This can be because the digital tooth bounding regions are of neighboring or adjacent teeth. The spline between two digital tooth bounding region centers can be determined using any technique known in the art. For example, a suitable spline between two digital tooth bounding region centers can include a cubic hermite spline. The cubic hermite spline can include the positions of adjacent digital tooth bounding region centers and first derivatives at each of the two digital tooth bounding region centers in some embodiments, for example. The computer-implemented method can thus provide one or more splines connected together to form a continuous spline through two or more of the digital tooth bounding region centers. The computer-implemented method can determine the spline using any technique known in the art. For example, in some embodiments, splines can be determined by determining tangents in every center point and then constructing the spline in between every two digital tooth bounding region centers as a Bezier curve. In some embodiments, where a digital tooth bounding region center has only one adjacent neighboring digital tooth bounding region center, the computer-implemented method can extend a straight line smoothly continuing the spline on the side without the adjacent neighboring digital tooth bounding region center.

[134] FIG. 10(d) illustrates an example of one or more digital tooth bounding region centers such as a first bounding box center 808 and a second bounding box center 810 connected together by a first spline 812. The figure also illustrates a second spline 814 connecting the second digital bounding box center 810 with a third digital bounding box center 816. In the case of the first bounding box center 808, which lacks one adjacent neighbor, the computer- implemented method can extend the first spline 812 in a straight line 824. Similarly, in the case of last bounding box center 822, which lacks one adjacent neighbor, the computer- implemented method can extend last spline 826 in a straight line 828. The computer- implemented method can, in this manner, connect neighboring digital bounding box centers into a continuous spline 820. As discussed previously, the spline can be a continuous smooth spline.

[135] In some embodiments, the computer-implemented method can sample one or more points on the spline. In some embodiments, the computer-implemented method can determine the number of points to sample based on the number of desired columns in the panoramic image. For example, in some embodiments, the number of sample points can be the same as the number of columns in some embodiments. The computer-implemented method can sample a user configurable number of sample points in some embodiments. The number of samples can be set and loaded from a configuration file in some embodiments, or set by a user entering the value into an input field of a GUI with an input device. The number of samples can be any suitable value, with a higher sampling number corresponding to a higher resolution panoramic image and a lower sampling number corresponding to a lower resolution panoramic but that is generated more rapidly. As an example, the number of sampling points can be 2048. FIG. 11 illustrates an example of a sampled point 902 on a continuous smooth spline 904 projected onto digital model 906.

[136] In some embodiments, the computer-implemented method can determine a sampled digital surface point that corresponds to the sampled point on the spline. In some embodiments, the computer-implemented method can determine the sampled digital surface point by projecting the sampled point onto the 3D digital model. FIG. 12(a) illustrates an example of a sample digital surface point 1002 that corresponds to a sampled point on continuous smooth spline 1004 for 3D digital model 1006. In some embodiments, the computer-implemented method can determine the sampled digital surface point corresponding to the sampled point on the spline by determining a sample plane orthogonal to the spline at the sampled point on the spline and parallel to the occlusal direction in the digital model and determining an intersection of the plane with the digital surface at the sampled point on the spline. For example, as illustrated in FIG. 12(a), the computer-implemented method can determine the sample plane 1008 that is orthogonal to the continuous smooth spline 1004 at the sampled digital surface point 1002 and parallel to the occlusion direction 1010.

[137] In some embodiments, the computer-implemented method can determine one or more digital surface points associated with the sampled digital surface point. In some embodiments, the computer-implemented method can, for each sampled digital surface point, determine or use the determined sample plane orthogonal to the continuous smooth spline at the sampled digital surface point and parallel to the occlusal direction in the digital model.

[138] In some embodiments, the computer-implemented method can move the sampled digital surface point down along the occlusion direction by a sampled digital surface point depth to a sample depth point along a sampled digital surface point depth ray. For example, the computer-implemented method can move the sampled digital surface point 1002 along a sample point depth ray 1012 down along the occlusion direction 1010 in some embodiments to the sample depth point 1014 along the sample point depth ray 1012. The sample point depth ray can be parallel to the occlusal direction in some embodiments. In some embodiments, the computer-implemented method can move the sampled digital surface point within the sample plane. For example, the sampled digital surface point 1002 can be moved within the sample plane 1008. In some embodiments, the sample point depth can be, for example 15mm along the occlusal direction from the sampled digital surface point. Other suitable sample point depths can be used.

[139] In some embodiments, the computer-implemented method can determine one or more rays from the sample depth point to the digital surface to determine the one or more digital surface points associated with the sampled digital surface point. In some embodiments, the computer-implemented method can determine the one or more rays by extending rays at different angles with respect to the sample point depth ray from the sample depth point to the digital surface of the 3D digital model in the sample plane. In some embodiments, the computer-implemented method can form the inclination angles within an inclination angle range. In some embodiments, the inclination angle range can be -45 degrees to +45 degrees with respect to the sample point depth ray. The inclination angle range can be a user- configurable value that can be set in a configuration file which the computer-implemented method can read, for example, and/or input by a user using an input device through the use of a GUI, for example. In some embodiments, the computer-implemented method can determine the number of rays from the sample depth point to generate based on the number of desired rows in the panoramic image. In some embodiments, the computer-implemented method can set the number of rays from the sample depth point to the number of desired rows in the panoramic image. In some embodiments, the computer-implemented method can determine an inclination angle increment for the one or more rays from the sample depth point. In some embodiments, the inclination angle increment can be determined as (total inclination angle range)/(number of columns desired). For example, if the number of columns desired is set to 320 and the total inclination angle range is set to -45 degrees to + 45 degrees, then then inclination angle-increment would be (90 degrees)/(320) which would be 0.28 degrees.

[140] In some embodiments, the computer-implemented method can from the sample point depth ray and determine one or more inclination angles on both sides of the sample point depth ray as multiples of the inclination angle increment to determine one or more rays extending from the sample depth point to at least the digital surface of the 3D digital model. In the example, the computer-implemented method would determine one or more rays as multiples of 0.28 degrees on either side of the sample point depth ray. The one or more rays can be in the sample plane in some embodiments, for example. The computer-implemented method can determine digital surface points associated with the sampled digital surface point as digital surface points intersecting with the rays. The computer-implemented method can determine one or more rays and their corresponding intersecting digital surface points until the end of range is reached on either side of the sample point depth ray.

[141] For example, as illustrated in FIG. 12(a), the computer-implemented method can determine a first positive inclination angle ray 1016 at a first positive inclination angle 1018 from the sample point depth ray 1012 and a first negative inclination angle ray 1020 at a first negative inclination angle from the sample point depth ray 1012. The first positive inclination angle 1018 and the first negative inclination angle can be the inclination angle increment value since they are both the first inclination angle from which rays are extended. Second positive and negative inclination angle rays would be at an angle of plus/minus 2* (inclination angle increment) from the sample point depth ray 1012, third positive and negative inclination angle rays would be at an angle of plus/minus 3*(inclination angle increment) from the sample point depth ray 1012, etc. The computer-implemented method can determine a first digital surface point 1022 at the intersection of the first positive inclination angle ray 1016 and the digital surface of the digital model 1006 and can determine a second digital surface point 1024 at the intersection of the first negative inclination angle ray 1020 and the digital surface of the digital model 1006. The first digital surface point 1022 and the second digital surface point 1024 can be associated with the sampled digital surface point 1002. Only a single sample point and two rays are shown for illustration; many more rays at different angles are possible. In some embodiments, the number of sample points on the spline can be 2100, for example, and the number of rays can be 320, for example. For example, FIG. 12(b) illustrates a digital model 1050 with additional sample points such as sample point 1052 sampled on spline 1054. Sample point 1052 can have one or more rays such as ray 1056 extending from a depth point corresponding to the sample point 1052. FIG. 12(c) illustrates multiple rays such as ray 1056 extending from a sample depth point for the sample point 1052.

[142] In some embodiments, a central row of a panoramic image can include the sampled digital surface points. In some embodiments, each sampled digital surface point and its associated digital surface points can be a column in the panoramic image. In some embodiments, the rows on one side of the central row can include digital surface points corresponding to positive inclination angled rays and rows on the other side of the central row can include digital surface points corresponding to negative inclination angled rays. In some embodiments, the same inclination angle increment value can be used to construct rays for all sampled digital surface points. In some embodiments, the depth of each sampled digital surface point’s sample depth point is the same. In some embodiments, the central row corresponds to rays at a zero inclination angle with respect to the sample point depth ray.

[143] FIG. 13 illustrates an example of a panoramic image shown for illustration purposes only. Central row 1102 can include the sampled digital surface points, such as, for example, sampled digital surface point 1103. Digital surface points in column 1105 are digital surface points associated with the sampled digital surface point 1103. The computer-implemented method can determine the digital surface points in column 1105 from rays extending from a sample depth point of the sampled digital surface point 1103 at different multiples of the inclination angle increment. In some embodiments, for example, the digital surface points in rows 1104 can be those determined from positive inclination angle rays and the digital surface points in rows 1106 can be digital surface points determined from negative inclination angle rays. For example, first positive row 1110 can include digital surface points intersecting a first positive ray having an

[144] inclination angle = l*(inclination angle increment)

[145] with respect to the sample point depth ray. For example, first negative row 1112 can include digital surface points intersecting a first negative ray having an

[146] inclination angle = -l*(inclination angle increment)

[147] with respect to the sample point depth ray. In some embodiments, the inclination angle increment can be specified in a configuration file or through an input field editable by a user using a GUI, for example. The computer-implemented method can determine the number of rows from the set inclination angle-increment in some embodiments, for example.

[148] The panoramic image can contain depth information for each sampled digital surface point and its associated digital surface points. In some embodiments, the computer- implemented method can determine the depth of a digital surface point as the length of its corresponding ray from the digital surface point to the sample depth point. In some embodiments, the computer-implemented method can determine the depth of a sampled/associated digital surface point as the length of the sample point depth ray extending from the sampled/associated digital surface point to the sample depth point. In some embodiments, the computer-implemented method can store the depth of each pixel of the panoramic image. In some embodiments, the computer-implemented method can store depth information as luminance. For example, in some embodiments, lighter colored pixels representing digital surface regions closer to the camera view and darker colored pixels representing digital surface regions farther from the camera view. FIG. 14 illustrates an example of a panoramic image with depth information. For example, darker region 1202 are farther from the camera than lighter regions such as lighter region 1204. Alternatively, in some embodiments, lighter colored pixels can represent digital surface regions farther from the camera view, and darker colored pixels can represent digital surface regions closer to the camera.

[149] It is noted that designation of positive and negative inclination angles is used to distinguish rays on one side of the sample point depth ray from rays on the other side; the designation can be switched. For example, in some embodiments, the digital surface points in rows 1104 can be those determined from negative inclination angle rays and the digital surface points in rows 1106 can be digital surface points determined from positive inclination angle rays.

[150] At least one advantage of using a panoramic image can include, for example, improved tooth-gum boundary visibility since the rays converge toward the root of each tooth instead of being parallel like in orthographic views and divergent like in perspective views, for example. This can improve the precision of the boundaries of teeth as well as other regions, such as the gums.

[151] Labeling

[152] Some embodiments of the computer-implemented method can include labeling, using a trained neural network, one or more regions of an input image to provide a labeled image.

[153] In some embodiments, the trained neural network can be any type of neural network. In some embodiments, the neural network can be a CNN as described previously, for example. In some embodiments, the neural network can be a YOLO neural network as described previously, for example. In some embodiments, the neural network can be a semantic segmentation network, for example. In some embodiments, the semantic segmentation network can be a U-Net neural network as described previously, for example. In some embodiments, the semantic segmentation can be a PAN neural network as described previously, for example.

[154] In some embodiments, the neural network can be trained by providing a training dataset that can include one or more images of at least a portion of digital dentition that can include one or more digital teeth, with each digital tooth marked with a marked digital tooth bounding region, for example. In some embodiments, the training dataset can include one or more panoramic images with each digital tooth marked with a marked digital tooth bounding region. A neural network trained with panoramic training datasets can be a panoramic image trained neural network. [155] In some embodiments, the marked digital tooth bounding region can be, for example, a rectangular shaped boundary. However, other shapes can be used as the marked digital tooth bounding region. Each digital tooth in each image in the training dataset is marked with a digital tooth bounding region. FIG. 15 illustrates an example of a panoramic image 1300 with a marked digital tooth bounding region 1302. The marked digital tooth bounding region for each digital tooth in the panoramic image can be marked manually, or by an automatic process in some embodiments. In some embodiments, the training dataset can include 10,000 images, such as panoramic images, for example. Other suitable numbers of panoramic images can be used as the training dataset in some embodiments, for example. Training of any neural network can be supervised or unsupervised.

[156] In some embodiments, a YOLO network can be trained by providing it with marked digital tooth bounding regions that are shaped as rectangles or boxes. In some embodiments, the a semantic segmentation network such as U-Net or a PAN neural network can be trained by providing them with marked digital tooth bounding regions that are marked to follow the shape of each digital tooth in the panoramic image.

[157] In some embodiments, the trained neural network can be panoramic image trained CNN as described previously, for example. In some embodiments, the trained neural network can be panoramic image trained YOLO neural network as described previously, for example. In some embodiments, the trained neural network can be a panoramic image trained semantic segmentation network, for example. In some embodiments, the trained semantic segmentation network can be a panoramic image trained U-Net neural network as described previously, for example. In some embodiments, the trained semantic segmentation can be a panoramic image trained PAN neural network as described previously, for example. Alternatively, in some embodiments, the trained neural network can be a 2D depth map trained neural network.

[158] Although panoramic images are described as examples, in some embodiments, the training dataset can alternatively include one or more 2D depth maps with each digital tooth marked with a marked digital tooth bounding region. A neural network trained with 2D depth map training datasets can be a 2D depth map trained neural network, and can be trained in same way as discussed with respect to panoramic images, for example, except the training dataset includes one or more 2D depth maps, for example.

[159] In some embodiments, the computer-implemented method can use the trained neural network to label one or more regions of the input image to provide a labeled image. For example, in some embodiments, the computer-implemented method can receive an input image and, using one or more trained neural networks, label one or more regions of the input image to provide a labeled image. In some embodiments, the trained neural network can be a panoramic image trained neural network. In some embodiments, the computer-implemented method can receive a panoramic image and using one or more panoramic trained neural networks, label one or more regions of the panoramic image to provide the labeled panoramic image.

[160] Alternatively, in some embodiments, the computer-implemented method can receive a 2D depth map and, using one or more 2D depth map trained neural networks, label one or more regions of the 2D depth map to provide the labeled 2D depth map.

[161] In some embodiment, the trained neural network can receive one or more images and generate a digital tooth bounding region for each digital tooth in the image. The computer- implemented method can label all pixels bounded by a digital tooth bounding region with a unique label in some embodiments for example. For example, in some embodiments, a panoramic image trained neural network can receive one or more panoramic images and generate a digital tooth bounding region for each digital tooth automatically in the panoramic image.

[162] For example, in some embodiments, a panoramic image trained YOLO network can receive a panoramic image and can provide a digital tooth bounding region for each digital tooth in at least a portion of the panoramic image. The computer-implemented method can label all pixels bounded by a digital tooth bounding region with a unique label in some embodiments for example. The digital tooth bounding regions provided by a panoramic image trained YOLO network can be digital tooth bounding boxes, for example. For example, the panoramic image trained YOLO network can receive the panoramic image illustrated in FIG. 14 and output a labeled panoramic image as illustrated in FIG. 16(a) that can include one or more digital bounding regions, such as a digital bounding region 1402. The computer- implemented method can label all pixels bounded by a digital tooth bounding region with a unique label in some embodiments for example to provide per pixel labeling. This can also be referred to as neural network segmenting, or rough segmenting.

[163] In some embodiments, a panoramic image trained semantic segmentation network such as a U-Net neural network or a PAN neural network can receive a panoramic image and can provide a digital tooth bounding region for each digital tooth in at least a portion of the panoramic image. For example, the panoramic image trained semantic segmentation network such as U-Net or PAN can receive the panoramic image illustrated in FIG. 14 and output a labeled panoramic image as illustrated in FIG. 16(b) such as a digital tooth bounding region 1404. The computer-implemented method can label all pixels bounded by a digital tooth bounding region with a unique label in some embodiments for example to provide per pixel labeling. This can also be referred to as neural network segmenting, or rough segmenting.

[164] In some embodiments, a 2D depth map trained neural network (e.g. CNN, YOLO, semantic segmentation, or any other type of neural network) can receive a 2D depth map image and can provide a digital tooth bounding region for each digital tooth in at least a portion of the panoramic image as discussed with respect to panoramic image trained neural networks. The computer-implemented method can label all pixels bounded by a digital tooth bounding region with a unique label in some embodiments for example.

[165] In some embodiments, the 2D label map with labels can be of the same dimension as the 2D depth map.

[166] In some embodiments, the computer-implemented method can include mapping one or more regions of the labeled panoramic image to one or more corresponding coarse digital surface polygon labels in the 3D digital model to provide a labeled 3D digital model. In some embodiments, the computer-implemented method can pass an imaginary ray through each pixel of the 2D label map and label the digital surface polygon through which the ray travels the same label as the pixel label. In some embodiments, the computer-implemented method can pass an imaginary ray through every digital surface polygon, and label each digital surface polygon based on the label of the pixel it passes through. In some embodiments, the computer- implemented method can project all labeled regions from the 2D image to the 3D digital model mesh, including any uncertainty region. In some embodiments, the computer-implemented method can label the one or more unlabeled digital surface polygons with the same label as a closest digital surface polygon. In some embodiments, the digital surface polygon can be a digital surface triangle, for example.

[167] In some embodiments, this mapping can include, for example, projecting the labeled panoramic image digital tooth boundary regions onto a 3D digital model. In some embodiments, the computer-implemented method can project digital tooth bounding box as a prism. Because the panoramic image was generated from the 3D digital model using rays, the computer-implemented method can use the same rays to map the digital tooth bounding box back to the 3D digital model. In some embodiments, the computer-implemented method can determine the four comers of each digital tooth bounding box. For each comer, the computer- implemented method can, in some embodiments, determine the ray passing through the comer.

In some embodiments, the computer-implemented method can connect each set of rays in a plane to their corresponding depth point in some embodiments. In some embodiments, the computer-implemented method can label every digital surface falling within the constructed prism to be coarsely labeled as belonging to a single tooth, for example. In some embodiments, the computer-implemented method can label every digital surface polygon (that can be, in some embodiments, a digital surface triangle) falling within the constructed prism with the same label. In some embodiments, the computer-implemented method can label each constructed prism with a different label. In some embodiments, the computer-implemented method can label digital surface intersecting every ray within the box individually.

[168] FIG. 17 illustrates an example in some embodiments of mapping. As illustrated in the figure, the mapping can include, for example, projecting the labeled panoramic image digital tooth boundary regions such as digital tooth bounding box 1502 for example onto a 3D digital model, such as, for example, the 3D digital model 1500. The computer-implemented method can determine a first digital tooth bounding box comer 1504 of the digital tooth bounding box 1502. The computer-implemented method can determine a first ray 1506 as the ray extending to and/or through the first digital tooth bounding box comer 1504. Similarly, the computer- implemented method can determine a second digital tooth bounding box comer 1508. The computer-implemented method can determine a second ray 1510 as the ray extending to and/or through the second digital tooth bounding box comer 1508. By construction, the first ray 1506 and the second ray 1510 are in the same plane as described in the section of the disclosure related to generating the panoramic image. In the panoramic image, for example, the first ray 1506 and the second ray 1510 are in the same column. Accordingly, the first ray 1506 and the second ray 1510 meet at depth point 1512. The computer-implemented method can similarly determine a third digital tooth bounding box comer 1513 with corresponding third ray 1516 and fourth digital tooth bounding box comer 1518 with corresponding fourth ray 1520. The third ray 1516 and the fourth ray 1520 are by constmction in the same plane, and therefore meet at their own corresponding depth point. In some embodiments, the computer- implemented method can label every digital surface point falling within the prism with the same label, for example. In some embodiments, the computer-implemented method can label every ray within the digital tooth bounding box individually. In some embodiments, the computer-implemented method can label rays via an inner part of the box.

[169] In some embodiments, the computer-implemented method can determine one or more uncertainty regions. Uncertainty regions can arise where the neural network does not provide enough information to label one or more regions, or where the neural network generates unreliable information. This can occur, for example, at the edges of the digital tooth bounding regions. In some embodiments, the computer-implemented method can, for a panoramic image or a 2D depth map, for example, determine all digital surface points within a user-configurable uncertainty region buffer distance from any boundary of surface points within a digital tooth bounding region as part of one or more uncertainty regions. In the case of a YOLO network, for example, the digital tooth bounding region can be a digital tooth bounding box. The distance is along the digital surface in some embodiments. In some embodiments, the uncertainty region buffer distance can be 6mm, for example. Other suitable distances can be used, and the uncertainty region buffer distance can be a user configurable value that can be, for example, stored and loaded from a configuration file or input by a user using an input device into a Graphical User Interface (“GUI”) in some embodiments, for example.

[170] Uncertainty regions can also arise, for example, for all digital surface polygons (digital surface triangles, for example) that are not visible on an image that is given to the neural network. As discussed previously, the computer-implemented method can, in some embodiments, account for uncertainty regions. For example, in some embodiments, the computer-implemented method can leave uncertainty regions unlabeled, or label them to be uncertain regions. FIG. 18(a) illustrates an example of the computer-implemented method identifying uncertainty regions. In the figure, the trained neural network can determine digital tooth boundary regions such as digital tooth boundary region 1602. The computer-implemented method can label a certainty region within the digital tooth boundary region 1602, such as certainty region 1604, where the polygons are all visible, for example. The computer- implemented method can determine an uncertainty region, such as uncertainty region 1606 based on a distance 1605 and an uncertainty region 1607 based on a distance 1603 and indicate the regions as uncertain, by, for exampling, leaving the uncertainty region as unlabeled, or labeling it as uncertain. 16(b) illustrates mapping the 2D image to a labeled 3D digital model. In the labeled 3D digital model, the computer-implemented method can determine a first labeled digital surface region 1614, an unlabeled (or labeled as uncertain) region 1616, and a second labeled digital surface region 1618. Additional labeled regions can also be present, such as a third labeled digital surface region 1620, etc. for example. The uncertainty regions can be converted into labeled regions during segmentation, in some embodiments. For example, the computer-implemented method can label the uncertainty regions during geometric segmentation in some embodiments.

[171] In some embodiments, the computer-implemented method can segment the labeled 3D digital model to provide a segmented 3D digital model. In some embodiments, the computer- implemented method can segment 3D digital model after the neural network generates a labeled panoramic image/2D label map from the panoramic image/2D depth map. In some embodiments, the computer-implemented method can use any type of segmentation technique known in the art to generate the segmented 3D digital model from the labeled 3D digital model. In some embodiments, the computer-implemented method can perform, for example, curvature-based segmentation.

[172] In some embodiments, the computer-implemented method can apply a morphological erode operation to one or more labeled regions. The one or more labeled regions can include a labeled gum region in some embodiments. In some embodiments, the computer-implemented method can perform morphological erode operation on either the 2D label map or the labeled 3D digital model. In some embodiments, the computer-implemented method can perform the morphological erode operation on the 2D label map as follows: for a pixel of the 2D label map, evaluate one or more nearby pixels within a user-configurable radius (for example 5 pixels); if the one or more nearby pixels do not have the same label, then the computer-implemented can assign a particular pixel and its surrounding pixels as unlabeled. In some embodiments, the computer-implemented method can repeat this process for one or more pixels of the 2D label map. In some embodiments, the computer-implemented method can perform the morphological erode operation on the labeled 3D digital model as follows: for a particular polygon (such as a digital triangle, for example) of the labeled 3D digital model, evaluate one or more nearby polygons (such as digital triangles, for example) within a user-configurable radius (for example 5 mm) of the particular polygon (digital triangle, for example); if the one or more nearby polygons do not have the same label, then the computer-implemented can assign a particular polygon and its surrounding polygons as unlabeled. In some embodiments, the computer-implemented method can repeat this process for one or more polygons of the labeled 3D digital model. In some embodiments, the computer-implemented method can apply the morphological erode operation to every labeled region, including a gum region.

[173] In some embodiments, one or more unlabeled digital surface polygons can remain. The one or more unlabeled digital surface polygons can be caused where a total number of digital surface polygons is more than the number of pixels. The one or more unlabeled digital surface polygons can be caused by one or more occluded digital surface polygons whose label could not be determined. The one or more unlabeled digital surface polygons can be caused by morphological erosion. [174] Curvature-based Segmentation

[175] In some embodiments, curvature-based segmentation can include curvature determination of digital surface regions in the digital model. In some embodiments, the computer-implemented method can receive a digital model and determine curvatures of digital surface regions. The computer-implemented method can determine curvature of digital surface regions using any technique. In some embodiments, curvature determination can be performed by the computer-implemented method automatically.

[176] In some embodiments, the digital surface regions include triangles. The curvature of a triangle can be determined by taking an average of the curvature of the triangle’s edges, or an average of the curvature of the triangle’s vertices.

[177] In some embodiments, the computer-implemented method can determine the curvature of the triangle by taking an average of the curvature of its edges. FIG. 19 illustrates one example of determining curvature at an edge 1786 connecting two triangles 1788 and 1790. In some embodiments, the computer-implemented method can determine the curvature at edge 1786 based on a dihedral angle 1792 formed at the edge 1786 between a particular triangle 1790 and its adjacent neighborhood triangle 1788 in the digital surface mesh as illustrated. The dihedral angle 1792 can be determined by the computer-implemented method as an angle formed between the two adjacent triangles 1788 and 1790 in a third plane 1794 that is perpendicular to the edge 1786 formed by the two adjacent triangles 1790 and 1788. For example, in some embodiments, the computer-implemented method can take the sin (f), where f is a dihedral angle 1792 between two adjacent triangles 1790 and 1788. The computer-implemented method can repeat this curvature function at all triangle edges.

[178] Alternatively, in some embodiments, the computer-implemented method can determine the curvature of the triangle by taking an average of the curvature of the triangle’s vertices. For example, in some embodiments, the computer-implemented method can determine curvature at each vertex P by selecting a neighborhood of vertices (size N) around P, optionally using connection information to decrease the search space. The computer implemented method can fit a quadric patch F(x,y,z) = 0 onto the neighborhood of points. The computer implemented method can determine a projection Po of P onto the patch, such that F(Po) = 0. The computer- implemented method can determine the curvature properties of F at Po and assign the curvature properties to P.

[179] In some embodiments, the computer-implemented method can, for example, use quadric form ax 2 + by 2 + cz 2 + 2exy + 2yz + 2gzx + 2lx + 2my + 2nz + d = 0 since each datum

(x,y,z) will not lie perfectly on the surface of F. The computer-implemented method can determine the coefficients of the patch surface (a, b, c, e, f g, l, m, n, d). from a 10x10 real symmetric eigenproblem of the form A I)'!) where D is the NxlO design matrix, each row of which is built up by [x 2 y t 2 Z 2 xyt yzt XZ xt yt zt 1], where i=l, ... ,N. The matrix can have 10 real eigenvalues and 10 corresponding eigenvectors. The coefficients of the eigenvector corresponding to the smallest eigenvalue /./ are the coefficients a, b, c, e, f. g, l, m, n, d of the quadric surface that best approximates the point cloud locally around P. The computer-implemented method uses a, b, c, e, f g, l, m, n to determine values E, F, G, L, M, N by letting F(x,y,z) = ax 2 + by 2 + cz 2 + exy + fyz + gxz + lx + my + nz + d = 0, an implicit quadric surface in R 3 , so that first order partial derivatives are F x = 2ax + ey + gz + l, F y = 2by + ex + fz + m, and Fz = 2cz + fy + gx + n. The coefficients E, F, G are determined as E / Fx 2 /Fz 2 , F =FxF y /Fz 2 , and G = 1 + F y 2 /F z 2 . Since second order partial derivatives are F xx = 2a, Fyy=2b, Fzz=2c, F xy =F y x =e, Fyz=Fzy=f and F Xz =F zx =g and the magnitude of the gradient is

|VF| = , then coefficients L, M, N of the Second Fundamental Form are:

[181] The computer-implemented method then determines matrices A and B from E, F, G, L, M, N as:

[183] and determines principle curvatures ki and ki as the eigenvalues of the matrix B 1 *A.

[184] The computer-implemented method can apply a selected scalar function to the principal curvatures ki and ki to determine the selected curvature function (“SCF”). For example, for principle curvatures ki and ki. the computer-implemented method can determine Gaussian curvature (K) as K ki k2 or mean curvature (H) as H=l/2(ki + k2).

[185] The radius of either method of determining curvature can be up to and including 60 digital vertices on average in the neighborhood of the vertex being evaluated and can be a user selectable value. A selection of a smaller number of points and smaller radius can lead to faster computations, while selecting a larger number of points and larger radius can provide a more precise curvature estimation. The computer-implemented method can be repeated for all vertices of the digital surface mesh, for example.

[186] In some embodiments, the computer-implemented method can segment the entire digital dental impression surface into one or more digital segments. In some embodiments, the computer-implemented method can segment the digital dental impression surface in three dimensions (3D) using curvaturebased segmentation. This can include, for example, watershed segmentation. Segmentation can be performed by the computer-implemented method automatically in some embodiments.

[187] In some embodiments, the digital dental impression surface can include one or more triangles that connect at edges and vertices to form the digital surface mesh. In some embodiments, the computer-implemented method determines the curvature of every triangle in the digital surface mesh. The computer-implemented method can determine the curvature of each particular triangle by either determining the average curvature of the particular triangle’s vertices or the average curvature of the particular triangle’s edges as described previously.

[188] In one embodiment, the computer-implemented method can determine the curvature of a particular triangle by determining a curvature at each of the edge of the particular triangle and calculating an average of the edge curvatures as discussed earlier of the present disclosure. FIG. 20(a) illustrates an example in some embodiments of determining an average of the edge curvatures in which a particular triangle 2402 includes a first edge 2405, a second edge 2407, and a third edge at 2409. The computer-implemented method can determine the curvature at the first edge 2405 based on the dihedral angle between the particular triangle 2402 and adjacent triangle 2408. The computer-implemented method can determine the curvature at the second edge 2407 based on the dihedral angle as described in this disclosure between the particular triangle 2402 and adjacent triangle 2406. The computer-implemented method can determine the curvature at the third edge 2409 based on the dihedral angle between the particular triangle 2402 and adjacent triangle 2404. The computer-implemented method can then determine the average of the curvatures of the first edge 2405, the second edge 2407, and the third edge at 2409 to determine the curvature of the particular triangle 2402. The computer- implemented method can in some embodiments store the curvature of the particular triangle 2402 in a look-up table, for example. The computer-implemented method can repeat this process with every triangle in the digital surface mesh and determine the curvature at each triangle in the digital surface mesh.

[189] In some embodiments, the computer-implemented method can assign a user-selectable positive or negative sign to each triangle’s curvature. For example, if the curvature is set to the most convex edges, then any concave regions are assigned a negative sign, and any convex regions are assigned a positive sign. If the curvature is set to the most concave edges, then any convex regions are assigned a negative sign, and any concave regions are assigned positive signs. The concavity /convexity can be defined with respect to a digital surface normal. For surface normal directed outside of the digital surface, the computer-implemented method can assign a positive value to convex edges and a negative value to concave edges, for example. For normals directed inside of the digital surface, the computer-implemented method can assign positive values to convex edges and negative values to concave edges, for example. In some embodiments, segment boundaries correspond to maximum curvatures along the digital surface.

[190] After determining each particular triangle’s curvature, the computer-implemented method can segment triangles based on 3D curvature-based segmentation. In some embodiments, watershed segmentation is used. For example, in some embodiments, the computer-implemented method determines the curvature for each triangle. The curvature of each triangle can, in some embodiments, be stored in a lookup table. The computer implemented-method can start with a triangle with a minimum curvature as a particular triangle being evaluated. The computer-implemented method can look up the curvatures of triangles in the neighborhood of the particular triangle being evaluated from the look up table, for example. In some embodiments, the computer-implemented method can determine neighboring triangle curvatures from the look-up table. Any neighboring triangles with curvatures greater than the particular triangle being evaluated can be added to a segment to which the particular triangle being evaluated belongs. Any neighboring triangles with curvatures less than the curvature of the particular triangle are not added to the particular triangle’s segment. The computer- implemented method then selects a neighborhood triangle as the next particular triangle to be evaluated and repeats the process for every triangle. In some embodiments, if a segment contains a large enough number (for example a majority or any other user configurable value) of triangles attributed to a label, then the computer-implemented method can assign the segment to that label.

[191] FIG. 20(a) illustrates an example in some embodiments of watershed segmentation of triangles. As discussed herein, the computer-implemented method determines the curvature of all of the triangles in the digital surface mesh. In one embodiment, the computer-implemented method stores the curvatures of the triangles in a lookup table. The computer-implemented method identifies the triangle with the minimum curvature, for example, particular triangle 2402. In some embodiments, the computer-implemented method can determine the triangle with the minimum curvature using the look up table. The computer-implemented method determines the curvatures of neighboring triangles 2404, 2408 and 2406. In some embodiments, the computer-implemented method can determine the curvatures of neighboring triangles from the lookup table. In the example, if the neighboring triangle 2406 has a greater curvature compared to the curvature of triangle 2402, then the neighboring triangle 2406 can be considered as part of the same watershed as the particular triangle 2402. The computer- implemented method combines the digital surface triangle 2402 with triangle 2406 into a single segment such as segment 2411 as illustrated in FIG. 20(a).

[192] The computer-implemented method next can compare the curvature of neighboring triangle 2404 with the curvature of the particular triangle 2402, for example. If, for example, the curvature of neighboring triangle 2408 is greater than the minimum curvature (i.e. the curvature of 2402), then the triangle 2408 is merged with the segment 2411 containing triangle 2402. As illustrated in FIG. 20(b), segment 2412 is formed after merging triangle 2408.

[193] If a neighborhood triangle has a lower curvature than the particular triangle 2402 in question, then the neighborhood triangle is not merged with the segment containing the particular triangle 2402 by the computer-implemented method. For example, if neighboring triangle 2404 has a lower curvature than the triangle 2402, then 2404 is not merged with the segment 2412 to which particular triangle 2402 belongs.

[194] After processing a first particular triangle, the computer-implemented method changes to a new particular triangle which can be a neighboring triangle of the first particular triangle. The computer-implemented method can repeat determining segmentation with the new particular triangle being evaluated and segment the entire digital surface. FIG. 20(c) illustrates one example of a segmented digital surface mesh 2414 that includes segment 2416 for example.

[195] After performing segmentation of triangles, the digital surface mesh can contain a large number of segments as illustrated in FIG. 21. In some embodiments, the number of segments can optionally be reduced by the computer-implemented method by merging two or more segments together. In some embodiments, the computer-implemented method can merge small segments into larger ones based on geometric attributes such as their average curvature, average size, area, perimeter, perimeter to area ratio, and/or other geometric factors. In some embodiments, the computer-implemented method does not merge two segments attributed to distinct labels except for an uncertainty region. In some embodiments, the computer- implemented method can, after each merge, attribute the merged segment to the same label as one of its parts. In some embodiments, the computer-implemented method can label the merged segment as an uncertainty region only if both segments before the merge were uncertainty regions. Merging can be performed automatically by the computer-implemented method in some embodiments.

[196] In some embodiments, the computer-implemented method determines a merge-priority for every two neighboring segments. The computer-implemented method can determine merge-priority of two neighboring segments based on their attributes. If two segments can merge based on their attributes, then in some embodiments the computer-implemented method determines priority based on geometric factors. For example, the computer-implemented method can determine priority based on 1) average curvature inside each segment and on their common boundary (the segments with small difference between the curvature on the boundary and inside the segments merge earlier) and 2) the ratio of the length of the common boundary to the minimal perimeter of the two segments (the segments with larger ratio merge earlier).

[197] In some embodiments, the computer-implemented method can store priorities in a priority-queue. The computer-implemented method can extract the highest priority from the queue, merge the corresponding two segments, and update the priorities between newly formed segments and their neighbors in the queue. The computer-implemented method can repeat this process until no two segments can be merged any more.

[198] In some embodiments, the smaller segments can be merged until there are no segments attributed to the uncertainty region, for example.

[199] In some embodiments, the computer-implemented method can provide a segmented 3D digital model from the labeled 3D digital model, after performing curvature-based segmentation on the labeled 3D digital model.

[200] Two Point Segmentation

[201] In some embodiments, the computer-implemented method can perform two point segmentation. For example, in some embodiments, the computer-implemented method can receive a labeled 3D digital model and perform two point segmentation to provide a segmented 3D digital model. In some embodiments, the labeled 3D digital model is the result of labeling performed by one or more neural networks as described previously. The labels on the labeled 3D digital model can define localized tooth regions. These can help provide rough boundaries of each digital tooth in the labeled 3D digital model. One or more examples of two-point segmentation in some embodiments can be found in SEMI-AUTOMATIC TOOTH SEGMENTATION, U.S. Patent Application No. 16/778,406 of Nikolskiy et ak, the entirety of which is hereby incorporated by reference.

[202] In some embodiments, the computer-implemented method can receive a labeled 3D digital model of a patient’s dentition, determine a center point of one or more labeled regions, construct a best-fit parabola to connect the center points of the one or more labeled regions, construct a plane at each center point such that the plane contains the center point and is orthogonal to the best-fit parabola at the center point, determine, for each plane determine a lingual point and a buccal point where the plane intersects a segment boundary, and construct a first and second path on either side of the plane to connect the lingual point and the buccal point. In some embodiments, the computer-implemented method can, instead of constructing a plane at each center point, use or reuse the sample plane corresponding to each center point (such as sample plane 1008 from FIG. 12(a), for example).

[203] FIGs. 20(a) through 20(g) illustrate an example of two point segmentation. As illustrated in FIG. 22(a), the computer-implemented method can receive a labeled 3D digital model 2000 containing one or more labeled regions 2002, for example. The computer- implemented method can determine a center point such as center point 2004 for each labeled region, such as labeled region 2002 when viewed from the occlusion direction 2012. This can provide center points as illustrated in FIG. 22(b). The computer implemented method can join the one or more center points by the best fit smooth curve such as a best fit analytical curve such as, for example, a parabola. As illustrated in FIG. 22(c), the computer-implemented method can construct a best-fit parabola such as parabola 2010 connecting the center points of the one or more labeled regions when viewed from the occlusion direction 2012. To determine the best fit parabola, the computer-implemented method determines the least-squares plane. For example, in the case of center points, the computer-implemented method projects the center points onto a plane. For example, as illustrated in FIG. 22(d), center points 8502 (illustrated as black dots in the figure) are arranged in the least-squares plane. The computer-implemented method generates a first x-axis 8504 in a first direction in the plane and determines a first y- axis 8506 ninety degrees to the x-axis in the plane. The computer implemented method determines coefficients a, b, and c in the formula y=ax 2 +bx + c using the Quadratic Least Square Regression known in the art. For example, parabola 8508 can be determined by the computer-implemented method after determining coefficients a, b, and c. The computer- implemented method then determines the discrepancy between the parabola 8508 and the center points 8502, for example. The computer-implemented method repeats the steps for a user-selectable number of x-axis directions. For example, the computer-implemented method can rotate the x-axis 8504 by an x-axis rotation to a new x-axis 8510 with corresponding y-axis 8512 to determine parabola 8514. In some embodiments, the number of x-axis directions can be a user-selectable and/or pre-defined value. In some embodiments, the number of x-axis directions can be 100, for example. The computer-implemented method can select the parabola with the smallest discrepancy where a is not more than 150 meter _1 , for example, to avoid very sharp parabolas. In some embodiments, the computer-implemented method optionally eliminates center points located farther than a user-selectable and/or pre-defined maximum center point distance, which can be any value. In some embodiments, the maximum center point distance can be, for example, 5 mm. As illustrated in FIG. 22(c), the computer- implemented method can join center points by the best fit parabola 2010.

[204] As illustrated in FIG. 22(e), the computer-implemented method can construct a plane such as separation region 2020 at each center point such as center point 2004 such that the separation region 2020 contains the center point 2004 and is orthogonal to the best fit parabola 2010 at the center point 2004. In some embodiments, the computer-implemented method can, instead of constructing a plane, use or reuse the sample plane corresponding to each center point such as sample plane 1008 from FIG. 12(a), for example.

[205] As illustrated in FIG. 22(f), for example, the computer-implemented method can, for each plane such as plane 2030 determine a lingual point 2032 and a buccal point 2034 where the plane 2030 intersects a first segment path 2036 and the second segment path 2072. FIG. 22(g) illustrates a digital tooth 2050 having a center point 2051 through which a parabola 2059 traverses the computer-implemented method constructing a first path 2053 on a first side of a separation region 2057 and a second path 2056 on a second side of the separation region 2057 to connect the lingual point 2052 and the buccal point 2062.

[206] In some embodiments, the first segment path 2053 and second segment path 2056 can be determined using Dijkstra’s shortest path algorithm known in the art, using either the facial point 2062 or the lingual point 2052 as the initial digital surface point, for example. In some embodiments, the computer-implemented method can determine the first segment path 2053 using the shortest path algorithm by evaluating only edges between digital surface points on the first side 2054 of the separation region 2057 for example. In some embodiments, the computer-implemented method can determine the second segment path 2056 using the shortest path algorithm by evaluating only edges between digital surface points on the second side 2058 as digital surface points, for example. In some embodiments, the computer-implemented method can perform the following, for example:

[207] 1. Set an initial digital surface point. In some embodiments, the initial digital surface point can be the facial point 2062. Alternatively, in some embodiments, the initial digital surface point can be the lingual point 2052.

[208] 2. Mark all digital surface points on one side of the separation region 2057 as unvisited. Generate an unvisited set of all unvisited digital surface points. In some embodiments, the one side can be the first side 2054. Alternatively, in some embodiments, the one side can be the second side 2058.

[209] 3. Assign every digital surface point on the one side a tentative distance value. The tentative distance value for the initial digital surface point is assigned to zero and the tentative distance value for all other digital surface points on the one side is assigned to infinity or the highest possible value or larger than the sum of all edge lengths, for example. Set the initial digital surface point as the current digital surface point.

[210] 4. For the current digital surface point, consider all un visited neighboring digital surface points on the one side and determine their calculated tentative distances (e.g. edge length between the current digital surface point and the particular unvisited neighboring digital surface point) through the current digital surface point. In some embodiments, the calculated tentative distance can determine an edge length between current digital surface point and the particular unvisited neighboring digital surface point based on digital surface curvature. In some embodiments, the computer-implemented method can include an angle-dependent factor in determining an edge length, for example. For example, in some embodiments, the computer- implemented method can determine the tentative distance as follows:

[211] /(e j ) = |e j |exp(/c sin cT j ), or/(e j ) = |e j |exp(/c a t )

[212] where /(e ;) is the length of edge e L for the algorithm between the current digital surface point and the particular unvisited neighboring digital surface point, \e t \ is Euclidean distance in 3D between two ends of the edge, k is a constant, such as 1.8 in some embodiments, for example. A greater magnitude of the constant k can lead to preferring paths going through regions of higher curvature. The sign of the constant can define which edges will be preferred by the algorithm: concave or convex, and a L is dihedral angle of the triangular surface at edge e sin a L is the sine of that angle that can be, for example, computationally faster to find than a; itself in some embodiments, for example. In some embodiments, a L and/or sin a L can be the angle-dependent factor, for example. The boundary between the tooth and the gum can have significantly higher curvature than the rest of the surface. With edge length f(e ) = |e j |exp(/c sincT j ), the length of edges in the digital tooth-gum line boundary region is significantly smaller than in other regions. The computer-implemented method can accordingly determine the shortest path along the digital tooth-gum line junction.

[213] 5. Compare the newly calculated tentative distance to the current assigned value and assign the smaller one. For example, if the current digital surface point A is marked with a distance of 6, and the edge connecting it with a neighboring digital surface point B has length 2, then the distance to B through A will be 6 + 2 = 8. If B was previously marked with a distance greater than 8 then change it to 8. Otherwise, keep the current value.

[214] 6. After considering all of the unvisited neighbors of the current digital surface point, mark the current digital surface point as visited and remove it from the unvisited set. A visited digital surface point will never be checked again.

[215] 7. If the destination digital surface point has been marked visited (when planning a route between two specific digital surface points) or if the smallest tentative distance among the digital surface points in the unvisited set is infinity, or the highest possible value, or larger than the sum of all edge lengths for example (when planning a complete traversal; occurs when there is no connection between the initial digital surface point and remaining unvisited digital surface points), then stop. The algorithm has finished.

[216] Otherwise, select the unvisited digital surface point that is marked with the smallest tentative distance, set it as the new "current digital surface point", and go back to step 4.

[217] The algorithm can stop once the destination digital surface point has the smallest tentative distance among all "unvisited" digital surface points (and thus could be selected as the next "current").

[218] The computer-implemented method can repeat the steps on the other side of the separation region 2057 (this can be performed simultaneously or sequentially). In this manner, the computer-implemented method can determine the first segment path 2053 along the first side 2054 and the second segment path 2056 along the second side 2058. The first segment path 2053 and the second segment path 2056 can be digital surface triangle edges in some embodiments for example.

[219] In some embodiments, the first segment path 2053 connects to one side of the facial triangle edge 2066 and one side of the lingual triangle edge 2064. In some embodiments, the second segment path 406 connects to the other side of the facial triangle edge 2066 and the other side of the lingual triangle edge 2064. The connected first segment path 2053, second segment path 2056, facial triangle edge 2066, and the lingual triangle edge 2064 together can form a boundary loop in some embodiments. The boundary loop can be closed in some embodiments, having an enclosed inner loop region 2068, for example.

[220] In some embodiments, the computer implemented method can further include providing a segmented digital tooth from the first segment path and the second segment path. As illustrated in FIG. 22(f), the computer implemented method can include providing a segmented digital tooth 2070 from the first segment path 2036 and the second segment path 2072. This can include, for example, providing a digital surface of the digital tooth 2070 by determining digital surface triangles within the boundary loop 2074 formed by the first segment path 2036 and the second segment path 2072, for example.

[221] FIG. 23(A) illustrates an example showing a portion of a boundary loop 502 with a digital tooth region 504 within the portion of the boundary loop 502 and a digital non-tooth region 506 outside of the portion of the boundary loop 502. The digital tooth region 504 and the digital non-tooth region 506 can include digital surface triangles such as digital surface triangle 508 and digital surface triangle 514, respectively, for example.

[222] In some embodiments, the computer-implemented method determining the digital surface of the digital tooth can include generating a dual-graph of the original digital surface triangles. The computer-implemented method can generate the dual-graph such that dual-graph vertices correspond to digital surface triangles of the original digital surface and dual-graph edges correspond to shared digital surface triangle edges except where a shared digital surface triangle edge is part of the boundary loop. For example, as illustrated in FIG. 23(B), the computer-implemented method can generate a dual-graph vertex 512 for a digital surface triangle 514 in a portion of a digital model 500. The computer-implemented method can generate a dual-graph edge 516 for shared digital surface triangle edge 518, for example. The computer-implemented method does not generate a dual-graph edge for shared digital surface triangle edge 520 because it is part of the boundary loop 502. The computer-implemented method can repeat this process for every digital surface triangle in the digital model. In this manner, the computer-implemented method can in some embodiments generate a dual-graph for the digital surface of the digital model. In some embodiments, each dual-graph edge can cross every original surface edge, but no dual-graph edge crosses the boundary loop. In some embodiments, the dual-graph can include an inner dual-graph region and an outer dual-graph region that are separated by the boundary loop, for example. The inner dual-graph region can be an interconnected dual-graph region enclosed by the boundary loop, and the outer dual graph region can be an interconnected dual-graph region outside of the boundary loop. The boundary loop can separate the inner dual-graph region from the outer dual-graph region in some embodiments. For example, as illustrated in FIG. 23(B), the dual-graph can include an inner dual-graph region 522 and an outer dual-graph region 524 separated by the boundary loop 502.

[223] In some embodiments, determining a digital tooth surface can include performing a search on the dual-graph. The computer-implemented method can, for example, determine a digital tooth surface based on interconnections between vertices of the dual-graph. In some embodiments, the search can be, for example, a conventionally known breadth-first search. In the breadth-first search, the computer-implemented method can load the dual-graph and a starting vertex root, for example. In some embodiments, the starting dual-graph root vertex can be any dual-graph vertex. The computer-implemented method can explore all neighboring dual-graph vertices at the current depth before moving to the next depth level and label them as discovered. The computer-implemented method can then advance to the next depth level and repeat the process until there are no more undiscovered dual-graph vertices, for example. The computer-implemented method can in this manner determine the interconnected vertices of the dual-graph to determine a discovered dual-graph. The breadth-first search technique can be applied to a digital tooth without one or more tunnels, for example. In some embodiments, the computer-implemented method can determine conventionally known breadth-first searching as follows:

[224] procedure B readth F i rst_S earch(7ti/«/ Graph start _vert) is

[183] let Q be a queue

[184] label start ert as discovered

[185] Q. enqueued tor/ vert)

[186] while Q is not empty do

[187] v := Q.dequeueQ

[188]

[189] for all edges from v to y in Dual Graph.adjacentEdges(v) do

[190] if y is not labeled as discovered then

[191] label y as discovered

[192] y. parent := v

[193] Q.enqueue(y)

[194] In some embodiments, the search can be, for example, a conventionally known depth- first search. In a depth-first search, the computer-implemented method can load the dual-graph and a starting vertex root, for example. In some embodiments, the starting vertex root can be any dual-graph vertex. In some embodiments, the computer-implemented method can perform conventionally known depth-first searching on the dual-graph as follows: The input can be, for example, a graph Dual Graph, G, and a vertex vert of G and an output can be, for example, every vertex reachable from vert labeled as discovered. The depth-first search technique can be applied to a digital tooth without one or more tunnels, for example. In some embodiments, the computer-implemented method can determine conventionally known depth-first searching as follows:

[195] procedure Depth_First_Search {Dual Graph, vert) is

[196] label vert as discovered

[197] for all directed edges from vertex to y that are in Dual_Graph.adjacentEdges(vert) do

[198] if vert y is not labeled as discovered then [199] recursively call D ep th_F i rs t_S earch ( Diia l Graph . y)

[200] In some embodiments, the computer-implemented method can perform depth-first searching on the dual-graph as follows, for example:

[201] procedure Depth F i rst Search l terati \e(I)ual Graph vert ) is

[202] let S be a stack

[203] S.push(vert)

[204] while S is not empty do

[205] vert = S.pop()

[206] if vert is not labeled as discovered then

[207] label vert as discovered

[208] for all edges from vert to y in Dual gra/;/7.adjacentEdges(v’CT/) do

[209] S.pushiv)

[210] In some embodiments, if the discovered dual -graph is within the boundary loop and/or if the starting dual-graph root vertex was within the boundary loop, for example, then the computer-implemented method would determine that the discovered dual-graph is an inner dual-graph region and hence belongs to the digital tooth. The computer-implemented method can determine all other dual-graph vertices as belonging to the outer dual-graph, and therefore be of the digital gum and other surrounding digital teeth. In some embodiments, if the discovered dual-graph is outside the boundary loop and/or if the starting dual-graph root vertex was outside the boundary loop, for example, then the computer-implemented method can determine that the discovered dual-graph is an outer dual-graph region and hence belongs to the digital gum and other surrounding digital teeth. The computer-implemented method can determine that all other dual-graph vertices belong to the inner dual-graph region, and therefore be of the digital tooth. The computer-implemented method can, based on the discovered dual graph vertices, determine the digital surface of the digital tooth in some embodiments, for example, and the digital surface belonging to surrounding teeth and the gum region. The final labels can include, for example, tooth numbers such as tooth 1, tooth 2, tooth 3, etc. and gum in some embodiments. In some embodiments, each tooth can be distinguished from the other teeth and the gum region. FIG. 24 illustrates an example of a fully segmented and labeled set of digital teeth and gum region such as digital tooth 2202 and gum region 2204 in digital model 2200

[211] In some embodiments, the received labeled 3D digital model can optionally also be a segmented 3D digital model. In some embodiments, the segmented 3D digital model can have been segmented using curvature-based segmentation. In some embodiments, the segmented digital model can be segmented using any technique known in the art.

[212] In some embodiments, curvature-based segmented model can be made more precise by performing two point segmentation in some embodiments, for example. One advantage of two point segmentation can include, for example, improved accuracy.

[213] One or more advantages of one or more features can include, for example, providing a digital model with digital teeth that are both segmented and labeled, along with labeled and segmented non-teeth regions such as the gum. One or more advantages of using a panoramic image can include, for example, more accurate boundaries. One or more advantages of using a panoramic image can include, for example, retaining the features of teeth both from buccal and lingual sides as well as the boundary with the gum, while on standard views such as 2D depth maps for example, buccal side or lingual side or both of them are completely or partially occluded, so neural network is unable to see and segment them. In standard views such as 2D depth maps, for example, the boundary between teeth and gum is not visible for all teeth and not from all sides. This can arise because the teeth occlude (hide) the boundary. And the problem is more general: whatever simple view is taken (either with perspective or with orthographic camera), some boundaries will not be visible One or more advantages of using a panoramic image can include, for example, retaining the features of teeth both from buccal and lingual sides as well as the boundary with the gum.

[214] FIG. 25(a) illustrates an example of a computer-implemented method of digitally segmenting teeth in a digital model. The method can include receiving a 3D digital model of patient scan data of at least a portion of a patient’s dentition at 2302 , generating (or alternatively, receiving) a panoramic image from the 3D digital model at 2304, labeling, using a first trained neural network, one or more regions of the panoramic image to provide a labeled panoramic image at 2306, mapping one or more regions of the labeled panoramic image to one or more corresponding coarse digital surface triangle labels in the 3D digital model to provide a labeled 3D digital model at 2308, and segmenting the labeled 3D digital model to provide a segmented 3D digital model at 2310. In some embodiments, the computer- implemented method can alternatively generate or receive an ordinary 2D depth map image from the 3D digital model at 2304. One example of an ordinary 2D depth map image is shown in FIG. 8.

[215] The computer-implemented method of FIG. 25(a) can include one or more of the following features, alone or in combination in various embodiments. The method of claim 1, further comprising training the first neural network to label one or more regions of the panoramic image to provide a labeled panoramic image. The labeled 3D digital model can include one or more uncertainty regions. The segmented 3D digital model can include one or more individual tooth regions and a non-tooth region. The first trained neural network can include a first convolution neural network. The first convolution neural network can include a U-Net neural network. The first convolution neural network can include a YOLO neural network. Segmenting the 3D digital model can include geometrically segmenting the labeled 3D digital model. Geometric segmenting can include curvaturebased segmentation. The geometric segmenting can include two point segmentation. Generating the panoramic image can include: determining, using a second trained neural network, one or more digital tooth bounding regions corresponding to one or more digital teeth; connecting the one or more digital tooth bounding regions by a spline; sampling one or more spline points on the spline; determining one or more sampled digital surface points from the one or more sampled spline points; and determining one or more associated digital surface points corresponding to each sampled digital surface point. The method can further include determining a digital tooth bounding region center of each digital tooth bounding region, wherein connecting the one or more digital tooth bounding regions can include connecting the digital tooth bounding region centers. The second trained neural network can include a YOLO neural network. The second trained neural network can include a U-net convolutional neural network. Each sampled digital surface point and its corresponding associated digital surface points can be a column in the panoramic image. Determining one or more associated digital surface points can include: determining a sample depth point of each sampled digital surface point; and determining one or more digital surface points intersecting with one or more respective rays extending from the sample depth point at an inclination angle from an occlusion direction and within a sample plane, wherein the sample plane is orthogonal to the spline and the occlusion direction. The one or more inclination angles can be within an inclination angle range, and the inclination angle range can be from -45 degrees to +45 degrees.

[216] FIG. 25(b) illustrates an example of a computer-implemented method of generating a panoramic image. The method can include receiving a 2D depth map of patient scan data of at least a portion of a patient’s dentition at 2350; determining, using atrained neural network, one or more digital tooth bounding regions corresponding to one or more digital teeth at 2352; connecting the one or more digital tooth bounding regions by a spline at 2354; sampling one or more spline points on the spline at 2356; determining one or more sampled digital surface points from the one or more sampled spline points at 2358; and determining one or more associated digital surface points corresponding to each sampled digital surface point at 2360. [217] The method in FIG. 25(b) can include one or more of the following optional features, either alone or in combination. The method can further include determining a digital tooth bounding region center of each digital tooth bounding region, wherein connecting the one or more digital tooth bounding regions can include connecting the digital tooth bounding region centers. The second trained neural network can include a YOLO neural network. The second trained neural network can include a U-net convolutional neural network. Each sampled digital surface point and its corresponding associated digital surface points can be a column in the panoramic image. Determining one or more associated digital surface points can include: determining a sample depth point of each sampled digital surface point; and determining one or more digital surface points intersecting with one or more respective rays extending from the sample depth point at an inclination angle from an occlusion direction and within a sample plane, wherein the sample plane is orthogonal to the spline and the occlusion direction. The one or more inclination angles can be within an inclination angle range, and the inclination angle range can be from -45 degrees to +45 degrees.

[225] Some embodiments can include a processing system. The processing system can include a processor, a computer-readable storage medium including instructions executable by the processor that can perform steps including: receiving a 3D digital model of patient scan data of at least a portion of a patient’s dentition; generating a panoramic image from the 3D digital model; labeling, using a first trained neural network, one or more regions of the panoramic image to provide a labeled panoramic image; mapping one or more regions of the labeled panoramic image to one or more corresponding coarse digital surface triangle labels in the 3D digital model to provide a labeled 3D digital model; and segmenting the labeled 3D digital model to provide a segmented 3D digital model. Alternatively, in some embodiments, the instructions executable by the processor steps can include receiving the panoramic image, labeling, using a first trained neural network, one or more regions of the panoramic image to provide a labeled panoramic image mapping one or more regions of the labeled panoramic image to one or more corresponding coarse digital surface triangle labels in the 3D digital model to provide a labeled 3D digital model, and segmenting the labeled 3D digital model to provide a segmented 3D digital model

[218] One or more features described in the present disclosure can be part of and/or performed on the processing system. [219] FIG. 26 illustrates a processing system 14000 in some embodiments. The system 14000 can include a processor 14030, computer-readable storage medium 14034 having instructions executable by the processor to perform one or more steps described in the present disclosure.

[220] In some embodiments, one or more steps can be performed by a user, for example. In some embodiments, one or more features can be performed by a user using an input device while viewing the digital model on a display, for example. In some embodiments, the computer-implemented method can allow the input device to manipulate the digital model displayed on the display. For example, in some embodiments, the computer-implemented method can rotate, zoom, move, and/or otherwise manipulate the digital model in any way as is known in the art. In some embodiments, one or more features can be performed by a user using the input device. In some embodiments, one or more steps can be initiated, for example, using techniques known in the art, such as a user selecting another button. In some embodiments, one or more features can be performed automatically, without user intervention.

[221] In some embodiments the computer-implemented method can display a digital model on a display and receive input from an input device such as a mouse or touch screen on the display for example. For example, the computer-implemented method can receive an initiation command. The computer-implemented method can, upon receiving an initiation command, perform one or more steps using one or more features described in the present disclosure. The computer-implemented method can, upon receiving manipulation commands, rotate, zoom, move, and/or otherwise manipulate the digital model in any way as is known in the art.

[222] One or more of the features disclosed herein can be performed and/or attained automatically, without manual or user intervention. One or more of the features disclosed herein can be performed by a computer-implemented method. The features — including but not limited to any methods and systems — disclosed may be implemented in computing systems. For example, the computing environment 14042 used to perform these functions can be any of a variety of computing devices (e.g., desktop computer, laptop computer, server computer, tablet computer, gaming system, mobile device, programmable automation controller, video card, etc.) that can be incorporated into a computing system comprising one or more computing devices. In some embodiments, the computing system may be a cloud-based computing system.

[223] For example, a computing environment 14042 may include one or more processing units 14030 and memory 14032. The processing units execute computer-executable instructions. A processing unit 14030 can be a central processing unit (CPU), a processor in an application-specific integrated circuit (ASIC), or any other type of processor. In some embodiments, the one or more processing units 14030 can execute multiple computer- executable instructions in parallel, for example. In a multi-processing system, multiple processing units execute computer-executable instructions to increase processing power. For example, a representative computing environment may include a central processing unit as well as a graphics processing unit or co-processing unit. The tangible memory 14032 may be volatile memory (e.g., registers, cache, RAM), non-volatile memory (e.g., ROM, EEPROM, flash memory, etc.), or some combination of the two, accessible by the processing unit(s). The memory stores software implementing one or more innovations described herein, in the form of computer-executable instructions suitable for execution by the processing unit(s).

[224] A computing system may have additional features. For example, in some embodiments, the computing environment includes storage 14034, one or more input devices 14036, one or more output devices 14038, and one or more communication connections 14037. An interconnection mechanism such as a bus, controller, or network, interconnects the components of the computing environment. Typically, operating system software provides an operating environment for other software executing in the computing environment, and coordinates activities of the components of the computing environment.

[225] The tangible storage 14034 may be removable or non-removable, and includes magnetic or optical media such as magnetic disks, magnetic tapes or cassettes, CD-ROMs, DVDs, or any other medium that can be used to store information in a non-transitory way and can be accessed within the computing environment. The storage 14034 stores instructions for the software implementing one or more innovations described herein.

[226] The input device(s) may be, for example: a touch input device, such as a keyboard, mouse, pen, or trackball; a voice input device; a scanning device; any of various sensors; another device that provides input to the computing environment; or combinations thereof. For video encoding, the input device(s) may be a camera, video card, TV tuner card, or similar device that accepts video input in analog or digital form, or a CD-ROM or CD-RW that reads video samples into the computing environment. The output device(s) may be a display, printer, speaker, CD-writer, or another device that provides output from the computing environment.

[227] The communication connection(s) enable communication over a communication medium to another computing entity. The communication medium conveys information, such as computer-executable instructions, audio or video input or output, or other data in a modulated data signal. A modulated data signal is a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media can use an electrical, optical, RF, or other carrier. [228] Any of the disclosed methods can be implemented as computer-executable instructions stored on one or more computer-readable storage media 14034 (e.g., one or more optical media discs, volatile memory components (such as DRAM or SRAM), or nonvolatile memory components (such as flash memory or hard drives)) and executed on a computer (e.g., any commercially available computer, including smart phones, other mobile devices that include computing hardware, or programmable automation controllers) (e.g., the computer-executable instructions cause one or more processors of a computer system to perform the method). The term computer-readable storage media does not include communication connections, such as signals and carrier waves. Any of the computer-executable instructions for implementing the disclosed techniques as well as any data created and used during implementation of the disclosed embodiments can be stored on one or more computer-readable storage media 14034. The computer-executable instructions can be part of, for example, a dedicated software application or a software application that is accessed or downloaded via a web browser or other software application (such as a remote computing application). Such software can be executed, for example, on a single local computer (e.g., any suitable commercially available computer) or in a network environment (e.g., via the Internet, a wide-area network, a local-area network, a client-server network (such as a cloud computing network), or other such network) using one or more network computers.

[229] For clarity, only certain selected aspects of the software-based implementations are described. Other details that are well known in the art are omitted. For example, it should be understood that the disclosed technology is not limited to any specific computer language or program. For instance, the disclosed technology can be implemented by software written in C++, Java, Perl, Python, JavaScript, Adobe Flash, or any other suitable programming language. Likewise, the disclosed technology is not limited to any particular computer or type of hardware. Certain details of suitable computers and hardware are well known and need not be set forth in detail in this disclosure.

[230] It should also be well understood that any functionality described herein can be performed, at least in part, by one or more hardware logic components, instead of software. For example, and without limitation, illustrative types of hardware logic components that can be used include Field-programmable Gate Arrays (FPGAs), Program-specific Integrated Circuits (ASICs), Program-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), etc.

[231] Furthermore, any of the software-based embodiments (comprising, for example, computer-executable instructions for causing a computer to perform any of the disclosed methods) can be uploaded, downloaded, or remotely accessed through a suitable communication means. Such suitable communication means include, for example, the Internet, the World Wide Web, an intranet, software applications, cable (including fiber optic cable), magnetic communications, electromagnetic communications (including RF, microwave, and infrared communications), electronic communications, or other such communication means. [232] In view of the many possible embodiments to which the principles of the disclosure may be applied, it should be recognized that the illustrated embodiments are only examples and should not be taken as limiting the scope of the disclosure.