CN115170452A - Condyle CBCT image data enhancement method based on spatial central axis - Google Patents
Condyle CBCT image data enhancement method based on spatial central axis Download PDFInfo
- Publication number
- CN115170452A CN115170452A CN202210846117.6A CN202210846117A CN115170452A CN 115170452 A CN115170452 A CN 115170452A CN 202210846117 A CN202210846117 A CN 202210846117A CN 115170452 A CN115170452 A CN 115170452A
- Authority
- CN
- China
- Prior art keywords
- axis
- slice
- condyle
- follows
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000007408 cone-beam computed tomography Methods 0.000 title claims abstract description 59
- 238000000034 method Methods 0.000 title claims abstract description 58
- 238000012549 training Methods 0.000 claims abstract description 46
- 238000002372 labelling Methods 0.000 claims abstract description 38
- 238000004364 calculation method Methods 0.000 claims abstract description 22
- 230000011218 segmentation Effects 0.000 claims abstract description 17
- 238000012545 processing Methods 0.000 claims abstract description 10
- 230000008569 process Effects 0.000 claims description 22
- 230000002708 enhancing effect Effects 0.000 claims description 7
- 238000012952 Resampling Methods 0.000 claims description 6
- 238000004422 calculation algorithm Methods 0.000 claims description 6
- 238000009795 derivation Methods 0.000 claims description 6
- 238000001514 detection method Methods 0.000 claims description 6
- 238000007781 pre-processing Methods 0.000 abstract description 2
- 210000004872 soft tissue Anatomy 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 5
- 230000009466 transformation Effects 0.000 description 4
- 208000028911 Temporomandibular Joint disease Diseases 0.000 description 3
- 206010043220 Temporomandibular joint syndrome Diseases 0.000 description 3
- 210000000988 bone and bone Anatomy 0.000 description 2
- 238000013135 deep learning Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 201000010099 disease Diseases 0.000 description 2
- 208000037265 diseases, disorders, signs and symptoms Diseases 0.000 description 2
- 238000003384 imaging method Methods 0.000 description 2
- 210000001738 temporomandibular joint Anatomy 0.000 description 2
- 210000001519 tissue Anatomy 0.000 description 2
- 208000006386 Bone Resorption Diseases 0.000 description 1
- 235000002566 Capsicum Nutrition 0.000 description 1
- 206010061274 Malocclusion Diseases 0.000 description 1
- 208000025157 Oral disease Diseases 0.000 description 1
- 239000006002 Pepper Substances 0.000 description 1
- 235000016761 Piper aduncum Nutrition 0.000 description 1
- 235000017804 Piper guineense Nutrition 0.000 description 1
- 244000203593 Piper nigrum Species 0.000 description 1
- 235000008184 Piper nigrum Nutrition 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 206010003246 arthritis Diseases 0.000 description 1
- 230000003416 augmentation Effects 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000024279 bone resorption Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000000052 comparative effect Effects 0.000 description 1
- 230000001054 cortical effect Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 238000013136 deep learning model Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000004064 dysfunction Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 208000035474 group of disease Diseases 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 230000003902 lesion Effects 0.000 description 1
- 210000004373 mandible Anatomy 0.000 description 1
- 208000030194 mouth disease Diseases 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008506 pathogenesis Effects 0.000 description 1
- 150000003839 salts Chemical class 0.000 description 1
- 208000018320 severe joint pain Diseases 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000008719 thickening Effects 0.000 description 1
- 238000000844 transformation Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/50—Image enhancement or restoration using two or more images, e.g. averaging or subtraction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/13—Edge detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
- G06T7/68—Analysis of geometric attributes of symmetry
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10072—Tomographic images
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30004—Biomedical image processing
- G06T2207/30008—Bone
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Geometry (AREA)
- Image Analysis (AREA)
Abstract
A condyle CBCT image data enhancement method based on a space central axis comprises the steps of firstly dividing an original condyle CBCT image to obtain a sample set for model training; then, carrying out image preprocessing on the training sample set, and eliminating the interference of other soft tissues in the image to obtain a condyle interested region; and then, inputting the condylar interesting region and the manual labeling result into a data enhancement module, and finally obtaining the condylar CBCT image which can be used as an available sample through the processing of a central shaft calculation module and an image rotation processing module, so that the condylar CBCT image training sample set is subjected to data enhancement. The condyle segmentation method based on the CBCT image improves the accuracy of condyle segmentation by using the CBCT image training sample set of the data-enhanced condyle and the generalization capability of a model.
Description
Technical Field
The invention belongs to the field of medical image processing, and particularly relates to a condyle CBCT image data enhancement method based on a space central shaft.
Background
Temporomandibular joint disorder (TMD) is the most common disease of the oral and maxillofacial region and is a generic term for a group of diseases in which the pathogenesis is not fully understood and the temporomandibular joint (TMJ) is unable to function normally. And the incidence rate is high, and the disease is ranked in the fourth place in common oral diseases. Temporomandibular arthritis (TMJ-OA) is a subtype of TMD and can cause severe joint pain, dysfunction, malocclusions and health related decline in quality of life.
The condyloid process, also known as the condyloid process or articular process, is one of the major growth centers of the mandible. The structure of the condyle can be divided into two parts, namely a condylar head and a condylar neck, the upper end of the condyle expands to the condylar head, and the reduced part of the condyle lower part is called the condylar neck. An imaginary line passing through the center of the condyle in the mandibular direction is called the central axis of the condyle; the longest diameter on the condylar head is referred to as the major axis of the condylar head, and the shortest diameter is referred to as the minor axis of the condylar head. Changes in the morphology of the condyles were found in TMJ-OA patients, including thinning of cortical bone resorption, thickening of trabecular bone, cystoid formation between trabecular bones, and the like. Therefore, TMJ-OA can be diagnosed by analyzing the change in the structure of the condyles. In addition, cone Beam Computed Tomography (CBCT) is a well-established imaging method for head and neck regions, and is recommended as one of the most reliable methods for diagnosing TMJ-OA, since it can display normal tissue structures and lesion tissues in three dimensions (axial, coronal, and sagittal), avoiding the disadvantages of overlapping images on two-dimensional images, and the integrity of the condylar structures can be observed by imaging.
In recent years, deep learning techniques have made many breakthroughs in computer vision applications, including segmentation of medical images. This success prompted researchers to plan the use of deep learning models to identify the condyles in CBCT images and to diagnose TMJ-OA. However, compared with other computer vision tasks, the medical image acquisition and labeling cost is high, and since the CBCT image is three-dimensional, a doctor needs to trace the condylar contour piece by piece for labeling during labeling, which is more tedious and time-consuming than the labeling work of a two-dimensional image. Therefore, the original CBCT image of the condyle needs to be processed to expand the number of available samples, so as to reduce the labeling time of the doctor and improve the working efficiency.
However, at present, there are few studies for studying condylar segmentation by deep learning, so that the condylar CBCT image is usually processed by a general data enhancement method. In the existing general data enhancement methods, for example: geometric transformations such as rotation, inversion and cropping are not completely applicable to CBCT image data of the condyles, because unlike two-dimensional images, the spatial position relationship of the condyles in the CBCT image is considered in three-dimensional images such as CBCT. Therefore, the augmented data training model obtained by the data enhancement method of geometric transformation may result in the model being less effective than the model trained before augmentation. In addition, the relative spatial positions of the condyles of different people are different, and if fixed processing parameters are adopted, data such as an interested area without the condyles in the image may be generated, and the data cannot improve the segmentation effect of the condylar segmentation model. Because the area of interest of the condyle in the CBCT image of the condyle is small, the condyle segmentation task is interfered by adopting a data enhancement mode of pixel transformation such as salt and pepper noise, gaussian noise and the like. Therefore, the current data enhancement method applicable to the Condyle CBCT image has defects.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides a method for enhancing the condyle CBCT image data based on a spatial central axis, which can perform geometric transformation on the condyle CBCT image by finding the central axis of the condyle under the condition of less original data quantity, thereby generating data which can be used as an available sample, so that the CBCT image training sample set of the condyle is enhanced by the data, and further the accuracy of performing condyle segmentation by using the CBCT image training sample set of the condyle after data enhancement and the generalization capability of a model are improved.
The technical scheme adopted by the invention for solving the technical problem is as follows:
a condyle CBCT image data enhancement method based on a spatial central axis comprises the following steps:
s1, taking the Condyle CBCT image as a training set and an artificial labeling result D train1 Inputting the data into a central shaft calculation module to obtain D train1 Central axes of all condyles in the cluster form a central axis set L center ;
S2, training set D train1 And a central axis set L center Inputting the data into a rotating module to obtain a processed data set D train2 ;
S3, mixing D train2 Inputting the data into a long shaft calculation module to obtain D train2 All the long axes form a long axis set L long ;
S4, training set D train2 And major axis set L long Inputting the data into a rotating module to obtain a data set D finally used for training the condylar segmentation model train3 。
Further, in the step S1, D is added train1 Inputting the data into a central shaft calculation module to obtain D train1 The central axes of all condyles in the condyle form a central axis set L center The process is as follows:
step 1.1, the size is D 1 ×H 1 ×W 1 Manual annotation of results M 1 (M 1 ∈D train1 ) Along the Z-axis direction to obtain D 1 Sheet size of D 1 ×H 1 ×W 1 The slice of the result is marked manually to obtain a slice set S 1 ;
Step 1.2, slice set S 1 Subjecting each slice to image graying and binarization to obtain D1 binarized images, and forming a new slice set S 2 ;
Step 1.3, according to the slice set S 2 Obtaining a point coordinate set P of the contour of the manually marked area in all the slices by means of a contour detection algorithm in the cv2 library 1 ;
Step 1.4, slicing s according to each artificial labeling result 1,i (s 1,i ∈S 2 ,i∈[0,D 1 -1]) Set of contour point coordinates p in (1) 1,i (p 1,i ∈P 1 ,i∈[0,D 1 -1]) The corresponding geometric center is calculated, and the geometric center coordinates of the contour can be based on the slice s 1,i Calculating the zero order moment and the first order moment;
section s 1,i The formula for calculating the (p + q) order moment of (a) is as follows:
wherein p is 1i_j (x, y) denotes slice s 1i Set of contour point coordinates p 1,i One point coordinate (p) of 1,i_j ∈p 1,i ,i∈[0,D 1 -1]J =0,1,2,. Cndot.), X, Y denote the contour point coordinate set p, respectively 1,i Coordinate values of all x-axis and y-axis;
section s 1i Geometric center p of the profile c,i (c x ,c y ) The coordinate calculation formula of (c) is as follows:
c x =m 10 /m 00
c y =m 01 /m 00
wherein m is 00 Is a binarized slice s 1,i Represents the sum of all white areas, i.e. pixel values, in the slice, 1, m 10 Is a binarized slice s 1,i Represents the sum of the x-coordinates of all white area pixels in the slice, m 01 Is a binarized slice s 1,i Represents the sum of the y-coordinates of all white area pixels in the slice;
step 1.5, slice set S 2 All the slices are subjected to the operation of the step 1.4 to obtain the geometric center of the outline of the artificial labeling result in each slice, and finally a geometric center set P is obtained 2 (p c,i ∈P 2 ,i∈[0,D 1 -1]);
Step 1.6, according to the obtained geometric center set P 2 Fitting a space straight line, wherein the expression of a standard equation of the space straight line is as follows:
converting the formula (1) to obtain a new expression as follows:
wherein m, n, k, x 0 ,y 0 ,z 0 Are all constants, so equation (2) can be simplified to obtain a new expression as follows:
wherein k is 1 ,k 2 ,b 1 ,b 2 Represents a constant;
the constant k can be obtained by using the least square method fitting principle 1 ,k 2 ,b 1 ,b 2 Wherein the least squares fitting principle is as follows: fitting the spatial straight line expression of equation (3) and minimizing the sum of the squares of the residuals, wherein the equation for the sum of the squares of the residuals is as follows:
Q 1 =Σ(x i -(k 1 ·z i +b 1 )) 2
Q 2 =Σ(y i -(k 2 ·z i +b 2 )) 2
wherein z is i Representation of slices s 1,i Marking the result M manually 1 The coordinate value, x, on the z-axis corresponding to (1) i 、y i Respectively represent slices s 1,i Geometric center p c,i The coordinate values corresponding to the x-axis and the y-axis of the optical disk;
when Q is 1 、Q 2 When the minimum, i.e. the sum of squared residuals is minimum, the constant k can be obtained 1 ,k 2 ,b 1 ,b 2 Because of Q 1 、Q 2 Is about k 1 ,k 2 ,b 1 ,b 2 Function of (2) when Q 1 、Q 2 Is 0, the corresponding minimum value is reached, so that k is respectively assigned 1 ,k 2 ,b 1 ,b 2 The derivation can be derived as follows:
thereby obtaining k 1 ,k 2 ,b 1 ,b 2 The expression of (c) is as follows:
traverse the set of geometric centers P 2 All geometric centers in k 1 ,k 2 ,b 1 ,b 2 In the expression (2), a constant k is obtained 1 ,k 2 ,b 1 ,b 2 Finally, the space straight line expression of the fitting formula (3) can be obtained, and the space straight line obtained by fitting is M 1 Central axis of (l) center,i ;
Step 1.7, training set D train1 All the manual labeling results in the step (1.1) to the step (1.6) are carried out, and finally a central shaft data set L is obtained center (l center,i ∈L center ,i∈[0,D 1 -1])。
Still further, in step S2, training set D is used train1 And a central axis set L center Inputting the data into a rotating module to obtain processed data D train2 The process is as follows:
step 2.1, central shaft l obtained according to central shaft calculation module center,i (l center,i ∈L center I =0,1, 2. -) in size D 1 ×H 1 ×W 1 (ii) manually annotating the results M 1 The central axis l is calculated center,i The included angle between the condylar CBCT image I and the z axis is determined according to the included angle 1 And manually labeling the result M 1 (I 1 ∈D train1 ,M 1 ∈D train1 ) Rotate so that the central axis l of the condyles center,i Rotating to z axis, and performing resampling to obtain D 1 ×H 1 ×W 1 New CBCT image of the condyles I 2 And manually labeling the result M 2 ;
Step 2.2, training set D train1 Performing the operation of the step 2.1 on all the Condyle CBCT images and the manual labeling result to finally obtain processed data D train2 (I 2 ∈D train2 ,M 2 ∈D train2 )。
Further, in step S3, D is set train2 Inputting the data into a long shaft calculation module to obtain D train2 All the long axes form a long axis set L long The process is as follows:
step 3.1, give a threshold T 1 Marking the result M manually 2 (M 2 ∈D train2 ) Z-axis coordinate value of less than T 1 Is discarded, thereby obtaining a region of interest I containing only the condylar-process h ROI ;
Step 3.2, the interested area I of the condylar prominence h ROI Along the Z-axis to obtain D 1 Sheet size of D 1 ×H 1 ×W 1 To obtain a slice set S 3 ;
Step 3.3, set S of slices 3 Subjecting each slice to image graying and binarization processing to obtain D1 binarized images, and forming a new slice set S 4 ;
Step 3.4, according to the slice set S 4 Obtaining a point coordinate set P of the contour of the region of interest of the condylar head in all the slices by means of a contour detection algorithm in the cv2 library 3 ;
Step 3.5, slicing s according to the region of interest of each condylar eminence 2,i (s 2,i ∈S 4 ,i∈[0,D 1 -1]) Set of contour point coordinates p in 2,i (p 2,i ∈P 3 ,i∈[0,D 1 -1]) Recording the coordinates of the two points of the contour having the longest line segment, i.e.Recording the coordinates of the long axis of the condylar process to obtain D 1 A line segment set L consisting of line segments;
and 3.6, fitting a plane straight line according to the obtained line segment set L, wherein the general expression of the plane straight line equation is as follows:
y=k 3 ·x+b 3 (4)
obtaining a constant k according to the principle of least square method 3 ,b 3 Wherein the least squares fitting principle is as follows: fitting the planar straight-line expression of equation (4) and minimizing the sum of squared residuals, wherein the equation for the sum of squared residuals is as follows:
Q 3 =Σ(k 3 ·x i +b 3 -y i ) 2
wherein x is i 、y i Respectively represent slices s 2,i Coordinate values of the x-axis and the y-axis of the long axis of the epicondyle,
when Q is 3 When the minimum is the sum of the squares of the residual errors, the constant k is obtained 3 ,b 3 Because of Q 3 Is about k 3 ,b 3 Function of (2) when Q 3 Is 0, the corresponding minimum value is taken, so, for k respectively 3 ,b 3 The derivation of the partial derivatives can be found as follows:
thereby obtaining k 3 ,b 3 The expression of (a) is as follows:
the arithmetic mean value expressed therein is calculated as follows:
traverse all the lengths in the line segment set LShaft, lead-in k 3 ,b 3 In the expression (c), a constant k is obtained 3 ,b 3 Finally, the plane straight line expression of the fitting formula (4) can be obtained, and the plane straight line obtained by fitting is M 2 The long axis of the condylar-process head of (a);
step 3.7, training set D train2 In (3.1E) all the manual labeling results are processed in step
Operation of step 3.6 to obtain D train2 Medial condylar-procephalic long-axis dataset L long 。
In the step S4, a training set D is set train2 And major axis set L long Inputting the data into a rotating module to obtain a data set D finally used for training the condylar segmentation model train3 The process is as follows:
step 4.1, calculating the module according to the long axis of the condylar head to obtain the long axis l of the condylar head i (l i ∈L long I =0,1,2. -) in size D 1 ×H 1 ×W 1 (ii) manually annotating the results M 2 Calculating the included angle between the long axis and the x axis, and taking the Condyle CBCT image I as the reference 2 And manually labeling the result M 2 (I 2 ∈D train1 ,M 2 ∈D train1 ) Rotate so that the long axis l of the condyles i Rotating to x axis, and performing resampling to obtain D 1 ×H 1 ×W 1 New CBCT image of condyles I 3 And manually labeling the result M 3 ;
Step 4.2, training set D train2 All the CBCT images of the condyles and the manual labeling result in the step 4.1 are operated, and processed data D are obtained finally train3 (I 3 ∈D train3 ,M 3 ∈D train3 )。
According to the method for enhancing the Condyle CBCT image data based on the spatial central axis, firstly, data used for Condyle segmentation model training are obtained through data division. Then, the interference of other soft tissues is eliminated through data preprocessing. And finally, performing data enhancement through a central shaft calculation module and an image rotation processing module to finally obtain a CBCT image training sample set of the condyles after data enhancement.
The invention has the following beneficial effects: the accuracy of condylar process segmentation performed by using the CBCT image training sample set of the data-enhanced posterior condylar process and the generalization capability of the model are improved.
Drawings
FIG. 1 is a flowchart of a method for enhancing Condyle CBCT image data based on a spatial central axis according to the present application;
FIG. 2 is a schematic diagram of a module related to the method for enhancing CBCT image data of condyles based on a spatial central axis according to the present application;
fig. 3 is a comparison graph of the original condylar data of the present application and the data after data enhancement on the same spatial position, wherein (a) is the original condylar data, and (b) is the image obtained by the method of the present application.
Detailed Description
The invention is further described below with reference to the accompanying drawings.
Referring to fig. 1 to 3, a method for enhancing CBCT image data of condyles based on a spatial central axis includes the following steps:
s1, taking the Condyle CBCT image as a training set and manually marking a result D train1 Inputting the data into a central shaft calculation module to obtain D train1 Central axes of all condyles in the cluster form a central axis set L center 。
This application training set D train1 The method is obtained by dividing an original Condyle CBCT image and an artificial labeling result according to a certain proportion, including setting the proportion of the data quantity in a training set, a verification set and a test set, and simultaneously carrying out D-pair analysis train1 Has been pre-processed, including the operations of image cropping and image normalization, as shown in fig. 2, by D train1 Inputting the data into a central shaft calculation module to obtain D train1 The central axes of all condyles in the condyle form a central axis set L center The process is as follows:
step 1.1, the size is D 1 ×H 1 ×W 1 Manual annotation of results M 1 (M 1 ∈D train1 ) Along the Z-axis direction to obtain D 1 Sheet size of D 1 ×H 1 ×W 1 The slice of the result is marked manually to obtain a slice set S 1 ;
Step 1.2, slice set S 1 Subjecting each slice to image graying and binarization processing to obtain D1 binarized images, and forming a new slice set S 2 ;
Step 1.3, according to the slice set S 2 Obtaining a point coordinate set P of the contour of the manually marked area in all the slices by means of a contour detection algorithm in the cv2 library 1 ;
Step 1.4, slicing s according to each artificial labeling result 1,i (s 1,i ∈S 2 ,i∈[0,D 1 -1]) Set of contour point coordinates p in 1,i (p 1,i ∈P 1 ,i∈[0,D 1 -1]) The corresponding geometric center is calculated, and the geometric center coordinates of the contour can be based on the slice s 1,i The zero order moment and the first order moment are obtained by calculation;
section s 1,i The formula for calculating the (p + q) order moment of (a) is as follows:
wherein p is 1i_j (x, y) denotes the slice s 1i Set of contour point coordinates p 1,i One point coordinate (p) of 1,i_j ∈p 1,i ,i∈[0,D 1 -1]J =0,1,2,. Cndot.), X, Y denote the contour point coordinate set p, respectively 1,i Coordinate values of all x-axis and y-axis;
section s 1i Geometric center p of the profile c,i (c x ,c y ) The coordinate calculation formula of (c) is as follows:
c x =m 10 /m 00
c y =m 01 /m 00
wherein m is 00 Is a binarized slice s 1,i OfOrder moment, representing the sum of all white areas in the slice, i.e. pixel values of 1, m 10 Is a binarized slice s 1,i Represents the sum of the x-coordinates of all white area pixels in the slice. m is a unit of 01 Is a binarized slice s 1,i Represents the sum of the y-coordinates of all white area pixels in the slice;
step 1.5, slice set S 2 All the slices are subjected to the operation of the step 1.4 to obtain the geometric center of the outline of the artificial labeling result in each slice, and finally a geometric center set P is obtained 2 (p c,i ∈P 2 ,i∈[0,D 1 -1]);
Step 1.6, according to the obtained geometric center set P 2 Fitting a space straight line, wherein the expression of a standard equation of the space straight line is as follows:
converting the formula (1) to obtain a new expression as follows:
wherein m, n, k, x 0 ,y 0 ,z 0 All are constants, so equation (2) can be simplified to obtain a new expression as follows:
wherein k is 1 ,k 2 ,b 1 ,b 2 Represents a constant;
the constant k can be obtained by using the least square method fitting principle 1 ,k 2 ,b 1 ,b 2 The optimum value of (2). The least square method fitting principle is as follows: fitting the spatial straight line expression of equation (3) and minimizing the sum of the squares of the residuals, where the residuals are flatThe formula for the sum of squares is as follows:
Q 1 =Σ(x i -(k 1 ·z i +b 1 )) 2
Q 2 =Σ(y i -(k 2 ·z i +b 2 )) 2
wherein z is i Representation of the slice s 1,i Marking the result M manually 1 The coordinate value on the corresponding z-axis. x is the number of i 、y i Respectively represent slices s 1,i Geometric center p c,i The coordinate values corresponding to the x axis and the y axis of (2);
when Q is 1 、Q 2 When the minimum, i.e. the sum of squared residuals is minimum, the constant k can be obtained 1 ,k 2 ,b 1 ,b 2 Because of Q 1 、Q 2 Is about k 1 ,k 2 ,b 1 ,b 2 Function of (2) when Q 1 、Q 2 Is 0, the corresponding minimum value is reached, so that k is respectively assigned 1 ,k 2 ,b 1 ,b 2 The derivation can be derived as follows:
thereby obtaining k 1 ,k 2 ,b 1 ,b 2 The expression of (c) is as follows:
traverse the geometric center set P 2 All geometric centers in k 1 ,k 2 ,b 1 ,b 2 In the expression (2), a constant k is obtained 1 ,k 2 ,b 1 ,b 2 The optimum value of (a) is set,finally, a space straight line expression of the fitting formula (3) can be obtained, and the space straight line obtained by fitting is M 1 Central axis of (l) center,i ;
Step 1.7, training set D train1 In (1.1E) all the manual labeling results
Step 1.6, finally obtaining a central axis data set L center (l center,i ∈L center ,i∈[0,D 1 -1]);
Step S2, training set D train1 And a central axis set L center Inputting the data into a rotating module to obtain a processed data set D train2 。
As shown in FIG. 2, the present application describes a training set D train1 And a central axis set L center Input to the rotation module, the process is as follows:
step 2.1, calculating the central axis l obtained by the module according to the central axis center,i (l center,i ∈L center I =0,1,2. -) in size D 1 ×H 1 ×W 1 Manual annotation of results M 1 The central axis l is calculated center,i Angle to the z-axis. According to the included angle, the Condyle CBCT image I is obtained 1 And manually labeling the result M 1 (I 1 ∈D train1 ,M 1 ∈D train1 ) Rotate so that the central axis l of the condyles center,i Rotating to z axis, and performing resampling operation to obtain D 1 ×H 1 ×W 1 New CBCT image of the condyles I 2 And manually labeling the result M 2 ;
Step 2.2, training set D train1 Performing the operation of the step 2.1 on all the Condyle CBCT images and the manual labeling result to finally obtain processed data D train2 (I 2 ∈D train2 ,M 2 ∈D train2 );
Step S3, adding D train2 Inputting the data into a long axis calculation module to obtain D train2 All the long axes in the set form a long axis set L long 。
As shown in fig. 2, the long axis calculation module described in the present application performs the following process:
step 3.1, a threshold T is given 1 Marking the result M by manpower 2 (M 2 ∈D train2 ) Z-axis coordinate value of less than T 1 So as to obtain a region of interest I containing only the condylar-head h ROI ;
Step 3.2, the interested area I of the condylar prominence h ROI Along the Z-axis direction to obtain D 1 Sheet size of D 1 ×H 1 ×W 1 To obtain a slice set S 3 ;
Step 3.3, slice set S 3 Subjecting each slice to image graying and binarization to obtain D1 binarized images, and forming a new slice set S 4 ;
Step 3.4, according to slice set S 4 Obtaining a point coordinate set P of the contour of the region of interest of the condylar head in all the slices by means of a contour detection algorithm in the cv2 library 3 ;
Step 3.5, slicing s according to the region of interest of each condylar eminence 2,i (s 2,i ∈S 4 ,i∈[0,D 1 -1]) Set of contour point coordinates p in (1) 2,i (p 2,i ∈P 3 ,i∈[0,D 1 -1]) Recording coordinates of two points with the longest line segment in the contour, namely recording coordinates of the long axis of the condylar process, and finally obtaining D 1 A line segment set L consisting of line segments;
and 3.6, fitting a plane straight line according to the obtained line segment set L, wherein the general expression of the plane straight line equation is as follows:
y=k 3 ·x+b 3 (4)
obtaining a constant k according to the principle of least square method 3 ,b 3 Wherein the least squares fitting principle is as follows: fitting the planar straight-line expression of equation (4) and minimizing the sum of squared residuals, wherein the equation for the sum of squared residuals is as follows:
Q 3 =Σ(k 3 ·x i +b 3 -y i ) 2
wherein x i 、y i Respectively represent slices s 2,i Coordinate values of the x-axis and the y-axis of the epicondylium major axis;
when Q is 3 When the minimum, i.e. the sum of squared residuals is minimum, the constant k can be obtained 3 ,b 3 Because of Q 3 Is about k 3 ,b 3 Function of (2) when Q 3 Is 0, the corresponding minimum value is reached, so that k is respectively assigned 3 ,b 3 The derivation can be derived as follows:
thereby obtaining k 3 ,b 3 The expression of (a) is as follows:
the arithmetic mean value expressed therein is calculated as follows:
traversing all long axes in the line segment set L, and substituting k 3 ,b 3 In the expression (2), a constant k is obtained 3 ,b 3 Finally, the plane straight line expression of the fitting formula (4) can be obtained, and the plane straight line obtained by fitting is M 2 The long axis of the condylar-process head of (a);
step 3.7, training set D train2 In (3.1E) all the manual labeling results are processed in step
Step 3.6 operation, D is finally obtained train2 Long axis dataset L of the medial condylar process long ;
Step S4, training set D train2 And major axis set L long Inputting into a rotating module to obtain final productData set D for training condylar segmentation model train3 。
As shown in FIG. 2, the training set D is described in the present application train2 And major axis set L long Input to the rotation module, the process is as follows:
step 4.1, according to the long shaft l of the condylar head obtained by the long shaft calculation module i (l i ∈L long I =0,1, 2. -) in size D 1 ×H 1 ×W 1 Manual annotation of results M 2 Calculating the included angle between the long axis and the x axis, and obtaining the Condyle CBCT image I according to the included angle 2 And manually labeling the result M 2 (I 2 ∈D train1 ,M 2 ∈D train1 ) Rotate so that the long axis l of the condyles i Rotating to x axis, and performing resampling to obtain D 1 ×H 1 ×W 1 New CBCT image of the condyles I 3 And manually labeling the result M 3 ;
Step 4.2, training set D train2 Performing the operation of the step 4.1 on all the Condyle CBCT images and the manual labeling result to finally obtain processed data D train3 (I 3 ∈D train3 ,M 3 ∈D train3 )。
It should be noted that a comparative image of a sample of the data after data enhancement and the original data of the condyle at the same spatial position, i.e., the same x, y, and z-axis coordinates, is shown in fig. 3, where (a) is the original data of the condyle, and (b) is the image obtained by the method provided by the present application. As shown in (b), under the condition that the spatial position is the same, the condyle information of each axial surface in (b) is more abundant, so that the accuracy of the condyle segmentation model is improved.
In the present application, D is the depth of the picture, H is the height of the picture, W is the width of the picture, and the subscripts of the letters indicate numbers for distinguishing the dimensions of different feature maps.
The central shaft of the condylar process is calculated through the central shaft calculating module. And finding the optimal axial surface of the condyle by combining the central axis of the condyle through the image rotation processing module. The processed data is expanded to a training sample set, so that the accuracy of condyle segmentation performed by using the CBCT image training sample set of the data-enhanced posterior condyles and the generalization capability of the model are improved.
The embodiments described in this specification are merely exemplary of implementations of the inventive concepts and are provided for illustrative purposes only. The scope of the present invention should not be construed as being limited to the particular forms set forth in the examples, but rather as being defined by the claims and the equivalents thereof which can occur to those skilled in the art upon consideration of the present inventive concept.
Claims (5)
1. A method for enhancing Condyle CBCT image data based on a spatial central axis is characterized by comprising the following steps:
s1, taking the Condyle CBCT image as a training set and manually marking a result D train1 Inputting the data into a central shaft calculation module to obtain D train1 Central axes of all condyles in the cluster form a central axis set L center ;
S2, training set D train1 And a central axis set L center Inputting the data into a rotating module to obtain a processed data set D train2 ;
S3, mixing D train2 Inputting the data into a long shaft calculation module to obtain D train2 All the long axes in the set form a long axis set L long ;
S4, training set D train2 And major axis set L long Inputting the data into a rotating module to obtain a data set D finally used for training the condylar segmentation model train3 。
2. The method for enhancing spatial centric axis-based CBCT image data of condyles as claimed in claim 1, wherein in said step S1, D is determined train1 Inputting the data into a central shaft calculation module to obtain D train1 Central axes of all condyles in the cluster form a central axis set L center The process is as follows:
step 1.1, the size is D 1 ×H 1 ×W 1 Manual annotation of results M 1 (M 1 ∈D train1 ) Along the Z-axis direction to obtain D 1 The size of the sheet is D 1 ×H 1 ×W 1 The slice of the result is marked manually to obtain a slice set S 1 ;
Step 1.2, slice set S 1 Subjecting each slice to image graying and binarization processing to obtain D1 binarized images, and forming a new slice set S 2 ;
Step 1.3, according to slice set S 2 Obtaining a point coordinate set P of the contour of the manually marked area in all the slices by means of a contour detection algorithm in the cv2 library 1 ;
Step 1.4, slicing s according to each artificial labeling result 1,i (s 1,i ∈S 2 ,i∈[0,D 1 -1]) Set of contour point coordinates p in 1,i (p 1,i ∈P 1 ,i∈[0,D 1 -1]) The corresponding geometric center is calculated, and the geometric center coordinates of the contour can be based on the slice s 1,i The zero order moment and the first order moment are obtained by calculation;
section s 1,i The (p + q) order moment of (c) is calculated as follows:
wherein p is 1i_j (x, y) denotes slice s 1i Set of contour point coordinates p 1,i One point coordinate (p) of 1,i_j ∈p 1,i ,i∈[0,D 1 -1]J =0,1, 2.)), X, Y represent the contour point coordinate set p, respectively 1,i Coordinate values of all x-axis and y-axis;
section s 1i Geometric center p of the profile c,i (c x ,c y ) The coordinate calculation formula of (c) is as follows:
c x =m 10 /m 00
c y =m 01 /m 00
wherein m is 00 Is after binarizationSection(s) of 1,i Zero order moment of (b), representing the sum of all white areas in the slice, i.e. pixel values of 1, m 10 Is the binarized slice s 1,i Represents the sum of the x-coordinates of all white area pixels in the slice, m 01 Is a binarized slice s 1,i Represents the sum of the y-coordinates of all white area pixels in the slice;
step 1.5, slice set S 2 All the slices are subjected to the operation of the step 1.4 to obtain the geometric center of the outline of the artificial labeling result in each slice, and finally a geometric center set P is obtained 2 (p c,i ∈P 2 ,i∈[0,D 1 -1]);
Step 1.6, according to the obtained geometric center set P 2 Fitting a space straight line, wherein the expression of a standard equation of the space straight line is as follows:
converting the formula (1) to obtain a new expression as follows:
wherein m, n, k, x 0 ,y 0 ,z 0 Are all constants, so equation (2) can be simplified to obtain a new expression as follows:
wherein k is 1 ,k 2 ,b 1 ,b 2 Represents a constant;
the constant k can be obtained by using the least square fitting principle 1 ,k 2 ,b 1 ,b 2 Wherein the least squares fitting principle is as follows: fitting equation (3)A spatial straight line expression, and minimizes the sum of the squares of the residuals, wherein the formula of the sum of the squares of the residuals is as follows:
Q 1 =Σ(x i -(k 1 ·z i +b 1 )) 2
Q 2 =Σ(y i -(k 2 ·z i +b 2 )) 2
wherein z is i Representation of the slice s 1,i Marking the result M manually 1 The coordinate value, x, on the z-axis corresponding to (1) i 、y i Respectively represent slices s 1,i Geometric center p c,i The coordinate values corresponding to the x axis and the y axis of (2);
when Q is 1 、Q 2 When the minimum, i.e. the sum of squared residuals is minimum, the constant k can be obtained 1 ,k 2 ,b 1 ,b 2 Because of Q 1 、Q 2 Is about k 1 ,k 2 ,b 1 ,b 2 Function of (2) when Q 1 、Q 2 Is 0, the corresponding minimum value is reached, so that k is respectively assigned 1 ,k 2 ,b 1 ,b 2 The derivation can be derived as follows:
thereby obtaining k 1 ,k 2 ,b 1 ,b 2 The expression of (c) is as follows:
traverse the geometric center set P 2 All geometric centers in, into k 1 ,k 2 ,b 1 ,b 2 In the expression (2), a constant k is obtained 1 ,k 2 ,b 1 ,b 2 Finally, the space straight line expression of the fitting formula (3) can be obtained, and the space straight line obtained by fitting is M 1 Central axis of (l) center,i ;
Step 1.7, training set D train1 All the manual labeling results in the step (1.1) to the step (1.6) are operated, and finally a central shaft data set L is obtained center (l center,i ∈L center ,i∈[0,D 1 -1])。
3. The method for spatial central axis-based CBCT image data enhancement of condyles as claimed in claim 1 or 2, wherein in said step S2, a training set D is set train1 And a central axis set L center Inputting the data into a rotating module to obtain processed data D train2 The process is as follows:
step 2.1, central shaft l obtained according to central shaft calculation module center,i (l center,i ∈L center I =0,1, 2. -) in size D 1 ×H 1 ×W 1 Manual annotation of results M 1 The central axis l is calculated center,i The included angle between the Condyle CBCT image I and the z axis is determined according to the included angle 1 And manually labeling the result M 1 (I 1 ∈D train1 ,M 1 ∈D train1 ) Rotating so that the central axis l of the condyle center,i Rotating to z axis, and performing resampling to obtain D 1 ×H 1 ×W 1 New CBCT image of the condyles I 2 And manually labeling the result M 2 ;
Step 2.2, training set D train1 Performing the operation of the step 2.1 on all the Condyle CBCT images and the manual labeling result to finally obtain processed data D train2 (I 2 ∈D train2 ,M 2 ∈D train2 )。
4. The method according to claim 1 or 2The CBCT image data enhancement method for condyle based on spatial central axis is characterized in that in step S3, D is calculated train2 Inputting the data into a long shaft calculation module to obtain D train2 All the long axes in the set form a long axis set L long The process is as follows:
step 3.1, a threshold T is given 1 Marking the result M manually 2 (M 2 ∈D train2 ) Z-axis coordinate value of less than T 1 So as to obtain a region of interest I containing only the condylar-head h ROI ;
Step 3.2, the interested area I of the condylar prominence h ROI Along the Z-axis to obtain D 1 The size of the sheet is D 1 ×H 1 ×W 1 To obtain a slice set S 3 ;
Step 3.3, slice set S 3 Carrying out image graying and binarization processing on each slice to obtain D 1 The image after binarization is opened to form a new slice set S 4 ;
Step 3.4, according to slice set S 4 Obtaining a point coordinate set P of the contour of the region of interest of the condylar head in all the slices by means of a contour detection algorithm in the cv2 library 3 ;
Step 3.5 slicing s according to the region of interest of each condylar eminence 2,i (s 2,i ∈S 4 ,i∈[0,D 1 -1]) Set of contour point coordinates p in 2,i (p 2,i ∈P 3 ,i∈[0,D 1 -1]) Recording coordinates of two points with the longest line segment in the contour, namely recording coordinates of the long axis of the condylar process, and finally obtaining D 1 A line segment set L consisting of line segments;
and 3.6, fitting a plane straight line according to the obtained line segment set L, wherein the general expression of the plane straight line equation is as follows:
y=k 3 ·x+b 3 (4)
obtaining a constant k according to the principle of least square method 3 ,b 3 Wherein the least squares fitting principle is as follows: plane straight line table of fitting formula (4)And minimizing the sum of squared residuals, wherein the sum of squared residuals is given by:
Q 3 =Σ(k 3 ·x i +b 3 -y i ) 2
wherein x is i 、y i Respectively represent slices s 2,i Coordinate values of the x-axis and the y-axis of the long axis of the epicondyle,
when Q is 3 When the minimum is the sum of the squares of the residual errors, the constant k is obtained 3 ,b 3 Because of Q 3 Is about k 3 ,b 3 Function of (2) when Q 3 Is 0, the corresponding minimum value is taken, so, for k respectively 3 ,b 3 The derivation can be derived as follows:
thereby obtaining k 3 ,b 3 The expression of (a) is as follows:
the arithmetic mean value expressed therein is calculated as follows:
traversing all long axes in the line segment set L and substituting k into 3 ,b 3 In the expression (2), a constant k is obtained 3 ,b 3 Finally, the plane straight line expression of the fitting formula (4) can be obtained, and the plane straight line obtained by fitting is M 2 The long axis of the condylar-process head of (a);
step 3.7, training set D train2 All the manual labeling results in (1) are subjected to the operations of the step (3.1) to the step (3.6), and finally D is obtained train2 Medial condylar-procephalic long-axis dataset L long 。
5. The spatial central axis-based Condyle CBCT image data enhancement method as claimed in claim 1 or 2, wherein in the step S4, a training set D is set train2 And major axis set L long Inputting the data into a rotating module to obtain a data set D finally used for training the condylar segmentation model train3 The process is as follows:
step 4.1, calculating the module according to the long axis of the condylar head to obtain the long axis l of the condylar head i (l i ∈L long I =0,1, 2. -) in size D 1 ×H 1 ×W 1 Manual annotation of results M 2 Calculating the included angle between the long axis and the x axis, and taking the Condyle CBCT image I as the reference 2 And manually labeling the result M 2 (I 2 ∈D train1 ,M 2 ∈D train1 ) Rotate so that the long axis l of the condyles i Rotating to x axis, and performing resampling to obtain D 1 ×H 1 ×W 1 New CBCT image of condyles I 3 And manually labeling the result M 3 ;
Step 4.2, training set D train2 All the CBCT images of the condyles and the manual labeling result in the step 4.1 are operated, and processed data D are obtained finally train3 (I 3 ∈D train3 ,M 3 ∈D train3 )。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210846117.6A CN115170452A (en) | 2022-07-04 | 2022-07-04 | Condyle CBCT image data enhancement method based on spatial central axis |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210846117.6A CN115170452A (en) | 2022-07-04 | 2022-07-04 | Condyle CBCT image data enhancement method based on spatial central axis |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115170452A true CN115170452A (en) | 2022-10-11 |
Family
ID=83495560
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210846117.6A Pending CN115170452A (en) | 2022-07-04 | 2022-07-04 | Condyle CBCT image data enhancement method based on spatial central axis |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115170452A (en) |
-
2022
- 2022-07-04 CN CN202210846117.6A patent/CN115170452A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20160203604A1 (en) | Method for automatic detection of anatomical landmarks in volumetric data | |
CN106846346B (en) | Method for rapidly extracting pelvis outline of sequence CT image based on key frame mark | |
Rahmatullah et al. | Quality control of fetal ultrasound images: Detection of abdomen anatomical landmarks using adaboost | |
US20030039405A1 (en) | Image position matching apparatus and image processing apparatus | |
Zhang et al. | 3-D reconstruction of the spine from biplanar radiographs based on contour matching using the hough transform | |
AU2018301580B2 (en) | Three-dimensional ultrasound image display method | |
Chang et al. | 3D segmentation of maxilla in cone-beam computed tomography imaging using base invariant wavelet active shape model on customized two-manifold topology | |
US7801345B2 (en) | Method of quantifying asymmetry of an object | |
Chougule et al. | Development of patient specific implants for Minimum Invasive Spine Surgeries (MISS) from non-invasive imaging techniques by reverse engineering and additive manufacturing techniques | |
CN106780491B (en) | Initial contour generation method adopted in segmentation of CT pelvic image by GVF method | |
Dai et al. | Locating anatomical landmarks on 2D lateral cephalograms through adversarial encoder-decoder networks | |
CN106327479A (en) | Apparatus and method for identifying blood vessels in angiography-assisted congenital heart disease operation | |
Hacihaliloglu et al. | Statistical shape model to 3D ultrasound registration for spine interventions using enhanced local phase features | |
CN113870098A (en) | Automatic Cobb angle measurement method based on spinal layered reconstruction | |
Bodzioch et al. | New approach to gallbladder ultrasonic images analysis and lesions recognition | |
CN116277978B (en) | Multimode bone joint digital 3D printing method | |
CN115170452A (en) | Condyle CBCT image data enhancement method based on spatial central axis | |
Tuan et al. | The improved faster r-cnn for detecting small facial landmarks on vietnamese human face based on clinical diagnosis | |
Zamora et al. | Estimation of orientation and position of cervical vertebrae for segmentation with active shape models | |
WO2023133929A1 (en) | Ultrasound-based human tissue symmetry detection and analysis method | |
US20220076421A1 (en) | Method for identifying bone images | |
Ryu et al. | Analysis of skin movements with respect to bone motions using MR images | |
Gregory et al. | The three dimensional reconstruction and monitoring of facial surfaces | |
Elmaraghy et al. | Face analyzer 3D: Automatic facial profile detection and occlusion classification for dental purposes | |
CN117078840A (en) | Automatic quantitative calculation method for three-dimensional modeling of hip joint based on CT image |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |