An AI facial key point automatic recognition system and method
Through the AI facial key point automatic recognition system, the CT image and the multi-dimensional kernel point convolution model of the cascade network reasoner are used to extract the three-dimensional facial features, which solves the problem of facial recognition being sensitive to changes in illumination and posture in the existing technology, and improves the efficiency Recognition accuracy and robustness.
Patent Information
- Application Number
- CN202411149530.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-08-21
AI Technical Summary
Existing facial key point recognition technology is sensitive to lighting changes, posture and expression changes, relies on image quality, has low recognition accuracy, is difficult to deal with extreme angles and occlusion problems, and is difficult to recognize two-dimensional images.
An AI facial key point automatic recognition system is designed, including a CT image import module, image preprocessing module, point cloud generation module and cascade network reasoner. Through denoising, contrast enhancement, morphological processing, point cloud processing and Technologies such as multi-dimensional kernel convolution models extract three-dimensional features of facial target areas, use cascade networks to extract and splice multi-scale features, and generate probabilistic feature maps.
It improves the accuracy and robustness of facial key point recognition, can effectively handle lighting changes, posture changes and extreme angles, reduces dependence on image quality, and enhances the ability to handle occlusions.
Smart Images

Figure CN118675213B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of facial recognition systems, and in particular to an AI facial key point automatic recognition system and method thereof. Background Art
[0002] With the continuous development of the modern medical beauty industry, facial key point recognition has become an indispensable step in the industry;
[0003] Current traditional recognition methods such as two-dimensional image recognition and deep learning convolutional networks have the following problems in convolution of CT:
[0004] 1. Sensitivity to changes in light;
[0005] 2. The influence of changes in posture and expression;
[0006] 3. Dependence on image quality;
[0007] 4. The accuracy of the identified points is not high;
[0008] 5. Difficult to handle extreme angles;
[0009] 6. There is also an occlusion problem in two-dimensional images, which makes two-dimensional image recognition difficult.
[0010] Based on this, the present invention designs an AI facial key point automatic recognition system and method to solve the above problems. Summary of the invention
[0011] In view of the above-mentioned shortcomings of the prior art, the present invention provides an AI facial key point automatic recognition system and method.
[0012] To achieve the above objectives, the present invention is implemented through the following technical solutions:
[0013] An AI facial key point automatic recognition system, comprising:
[0014] A CT image import module, which is used to import CT images and send the CT images to the image preprocessing module;
[0015] An image preprocessing module, which is used to perform denoising, contrast enhancement, morphological processing and resampling preprocessing on the CT image;
[0016] The image preprocessing module is also used to set a threshold value for the preprocessed CT image according to the CT value range of the bone and perform a normalization operation on the data, and separate the bone from other tissues to generate a segmented CT image;
[0017] A key point division module, wherein the key point division module is used to divide the target area of the key point in the CT image;
[0018] A point cloud generation module, which is used to convert the continuous image data of the segmented CT image into a discrete voxel grid, extract a point cloud from the voxel grid and generate point cloud data;
[0019] A cascade network reasoner is used to convolve the point cloud data to extract preliminary features V1 of the feature points in the target area, and convolve V1 through convolutional neural networks at two scales to obtain further features V2 and V3 of two groups of feature points, and then perform layer-by-layer feature extraction of V2 and V3 using a multi-scale convolutional neural network and splice them into a probabilistic feature map V4 of the feature points in the target area.
[0020] Furthermore, the cascade network reasoner includes a multi-dimensional kernel point convolution model, a three-dimensional point feature convolution model, a dynamic point cloud transformation network and a multi-scale extraction model.
[0021] Furthermore, the multidimensional kernel point convolution model is used to convolve the point cloud data and output two features V1. The multidimensional kernel point convolution model sends the two V1s to the three-dimensional point feature convolution model and the dynamic point cloud transformation network respectively. The three-dimensional point feature convolution model and the dynamic point cloud transformation network convolve to obtain features V2 and V3 respectively. The three-dimensional point feature convolution model and the dynamic point cloud transformation network send V2 and V3 to the multi-scale extraction model for multi-scale convolutional neural network layer-by-layer feature extraction and splicing them into a probability feature map V4 of the target area feature points.
[0022] Furthermore, the multi-scale extraction model consists of three scales;
[0023] The first scale consists of a point-by-point convolution 1*1;
[0024] The second scale is composed of two point-by-point convolutions 1*1 in series;
[0025] The third scale consists of a point-by-point convolution of 1*1 and a 7*7 convolution kernel in series and a 3*3 plus a 5*5 convolution kernel in parallel.
[0026] In order to better achieve the purpose of the present invention, the present invention also provides an AI facial key point automatic recognition method, comprising the following steps:
[0027] The image processing step A of the image preprocessing module is:
[0028] Step A1: denoise the image. The denoising formula is:
[0029] ;
[0030] : is the new value of the pixel, : is the pixel value at the neighbor node m, : is pixel The sum of the weights of : Pixels Neighborhood, It's pixels and pixels The weight between is given by: composition, represents spatial proximity, where It's pixels and pixels The Euclidean distance between is the scale parameter of spatial proximity;
[0031] Step A2, increasing the contrast of the CT image by using an opencv-Sobel filter;
[0032] Step A3, morphological processing of the CT image is performed through the opencv-morphologyEx() function;
[0033] Step A4, resample the CT image, obtain the coordinates and layer thickness of the left and right pixel spatial data of the CT data, count all pixel block sizes, and calculate the average value as the current spatial data; the mathematical formula for the average spatial data is:
[0034] ;
[0035] Represents the total number of pixels. It starts from the first pixel and sums up. Represents (X, Y, Z), where X and Y are the physical distances between two pixels on a two-dimensional image, and Z is the distance between CT image layers, both in millimeters;
[0036] Step A5, using the window width and window position of the bone to divide the CT image value range, and then using the normal distribution normalization function to process the CT image, the formula is: ;
[0037] Indicated at the mean and variance Under the condition that The probability density of is the mean of the normal distribution, is the variance of the normal distribution, is the standard deviation, is pi, The value is 3.14, is the base of natural logarithms, The value is 2.71828.
[0038] Furthermore, the point cloud extraction step B of the point cloud generation module:
[0039] Step B1, input the segmented CT image, first extract the data space data including pixel coordinates and slice thickness, and stack the segmented CT image data to form a three-dimensional volume composed of many voxels;
[0040] For each voxel in the three-dimensional volume, its properties are calculated according to its position and CT value;
[0041] Step B2, obtaining the values and coordinate positions of the eight vertices of all voxel hexahedrons, and obtaining the voxel values around each voxel;
[0042] Step B3, determining whether the vertex of each voxel is within the three-dimensional volume, and calculating the points on the isosurface by interpolation, these points will form the contour of the isosurface, and a triangle will be formed near the isosurface;
[0043] Step B4, combining the triangles generated by each voxel together to obtain the final three-dimensional surface model to form point cloud data.
[0044] Furthermore, the multi-dimensional kernel point convolution step C of the multi-dimensional kernel point convolution model is:
[0045] Step C1: for each point in the point cloud data, take its coordinates as the center of the sphere ;
[0046] The neighbor points of are defined as: , the definition of a sphere is , ;
[0047] represents the range of the sphere, Represents a three-dimensional Euclidean space, that is, all three-dimensional vectors The collection composed of represents the radius;
[0048] Step C2, inside the sphere, find points as core points, and the core points are not points in the point cloud data. , for each core point There is a weight matrix Correspondingly, is defined as: ;
[0049] in, A matrix in the real number domain, the size of the matrix is Line and List;
[0050] is the dimension of the input vector, indicating that the matrix receives Dimensional input, is the dimension of the output vector, indicating that the vector output by the matrix is Dimensional;
[0051] is an index variable, which indicates the number of the core point. is the total number of core points, express From 0 to scope;
[0052] Step C3, within the defined sphere For points that fall within this range , we can get its relative to the center of the sphere Distance , for any , define the kernel function for: , ;
[0053] in Is a kernel function that outputs a scalar, representing the point And core points similarity or weight; This is the offset With core points The Euclidean distance between them represents the distance between them in three-dimensional space;
[0054] Step C4, based on the above definition points The core point KPConv (Kernel Point Convolution) convolution is defined as: for each neighbor point Features , respectively, using matrices Then, add up: ;
[0055] in Represents the set of input features or input signals for each neighbor point , which has a corresponding eigenvector ;
[0056] Represents the weight function of the core point convolution;
[0057] Depends on neighbors And core points The relative position between ;
[0058] Step C5, after the weighted summation of step C4, it is necessary to aggregate the features of all output points to form the final output feature V1.
[0059] Furthermore, the step D of the three-dimensional point feature convolution of the three-dimensional point feature convolution model is:
[0060] Step D1, the input is a V1 composed of points, and a weight vector is calculated for each input point convolution;
[0061] Step D2, performing a dot product operation on the weight vector and the feature vector of the neighboring point to obtain a weighted feature vector;
[0062] The weighted sum of the weighted feature vectors of all neighboring points is used to obtain the output feature vector of the input point;
[0063] The output feature vector is processed by the activation function ReLU to obtain the final convolution feature V2;
[0064] The convolution formula is , the weighted summation formula is , is the weight vector, Represents a sequence or signal, usually an input signal or data sequence, here is a feature map, Represents a convolution kernel or filter, which is used to process the input signal Function that performs weighted sum operation.
[0065] Furthermore, the convolution step E of the dynamic point cloud transformation network is:
[0066] Step E1, for each input point in V1 , calculate the features and location information of its neighboring points, and the neighboring points Among them, the distance Yes and Point The Euclidean distance between the two points, where the radius is the maximum distance between the neighboring points;
[0067] Step E2, for each input in V1 , define its local features , can be calculated by the following formula ,in Yes Features, is the feature of the neighboring points, It is a multi-layer perceptron which is used to extract local features. For each input point , Calculate the adjacency matrix of its dynamic adjacency graph ;
[0068] ;
[0069] The softmax is a normalization function used to calculate the similarity of neighboring points;
[0070] Step E3, for each input point , calculate its aggregate features:
[0071] ;
[0072] in, is the adjacency matrix middle and The elements between represent points Point Contribution
[0073] Step E4, repeat the above calculation and finally output feature V3.
[0074] Furthermore, the convolution step F of the multi-scale extraction model is:
[0075] Step F1, input features V1 and V2 into three scales simultaneously for feature extraction and gradient calculation;
[0076] Step F2, the features calculated at different scales are merged and the features V4 are output.
[0077] The present invention has the following technical effects:
[0078] 1. The network incorporates multi-dimensional kernel point convolution, which can use fixed kernel points (kernel points) to define convolution operations in local areas, and enables the network to perform convolution on point clouds with variable density, thereby effectively learning local and global features.
[0079] 2. Convolution uses 3D point feature convolution to extract features. It convolves the point cloud by estimating a weight field, and these weights are based on the density and position of the points. This method can improve the accuracy of point cloud features while maintaining computational efficiency.
[0080] 3. A dynamic adjacency graph based on a dynamic graph convolutional neural network is added to the cascade network to capture the local structure of the point cloud. The network learns the features of the point cloud by applying graph convolution on the adjacency graph. This structure-aware convolution operation helps to extract strong features and integrates the features into a multi-scale gradient network at the end of the network; the network calculates gradients at different scales and inputs these gradients into the feature map as additional features. BRIEF DESCRIPTION OF THE DRAWINGS
[0081] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0082] Figure 1 A block diagram of an AI facial key point automatic recognition system of the present invention;
[0083] Figure 2 It is a flow chart of the cascade network reasoner of the present invention.
[0084] The numbers in the figure represent:
[0085] 1. CT image import module, 2. Image preprocessing module, 3. Point cloud generation module, 4. Cascade network reasoner, 41. Multi-dimensional kernel point convolution model, 42. Three-dimensional point feature convolution model, 43. Dynamic point cloud transformation network, 44. Multi-scale extraction model, 5. Key point division module. DETAILED DESCRIPTION
[0086] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0087] The present invention will be further described below in conjunction with the embodiments.
[0088] The terms “left”, “right”, “front”, “back”, “up” and “down” mentioned in the following description are oriented in the viewing direction of the front view.
[0089] Example 1
[0090] See also Figure 1 , Figure 2, an AI facial key point automatic recognition system, comprising, a CT image importing module 1, the CT image importing module 1 is used to import the CT image and send the CT image to the image preprocessing module 2;
[0091] Image preprocessing module 2, image preprocessing module 2 is used for preprocessing CT images by denoising, contrast enhancement, morphological processing and resampling;
[0092] The image preprocessing module 2 is also used to set a threshold value for the preprocessed CT image according to the CT value range of the bone and perform a normalization operation on the data, and separate the bone from other tissues to generate a segmented CT image;
[0093] A key point division module 5 is used to divide the target area of the key points in the CT image;
[0094] Point cloud generation module 3, the point cloud generation module 3 is used to convert the continuous image data of the segmented CT image into a discrete voxel grid, and extract point clouds from the voxel grid and generate point cloud data;
[0095] Cascade network reasoner 4, cascade network reasoner 4 is used to convolve the point cloud data to extract the preliminary features V1 of the feature points in the target area, and convolve V1 through convolutional neural networks at two scales to obtain further features V2 and V3 of two groups of feature points, and then perform multi-scale convolutional neural network layer-by-layer feature extraction on V2 and V3 and splice them into a probability feature map V4 of the feature points in the target area.
[0096] When the present invention is used, the CT image is preprocessed by denoising, contrast enhancement, morphological processing and resampling through the image preprocessing module 2, thereby improving the recognition of bones in the image;
[0097] By means of a key point division module 5, key points of the face are marked in the CT image;
[0098] The CT image is processed into point cloud through the point cloud generation module 3, and the three-dimensional spatial information of the point cloud data is extracted and convolutionally trained through the cascade network reasoner 4 to achieve accurate recognition of facial target point features.
[0099] Example 2
[0100] like Figure 1 , Figure 2 As shown, as a preferred embodiment of the present invention, the multi-scale extraction model 44 is composed of three scales;
[0101] The first scale consists of a point-by-point convolution 1*1;
[0102] The second scale is composed of two point-by-point convolutions 1*1 in series;
[0103] The third scale consists of a point-by-point convolution of 1*1 and a 7*7 convolution kernel in series and a 3*3 plus a 5*5 convolution kernel in parallel.
[0104] Example 3
[0105] like Figure 1 , Figure 2 As shown, as a preferred embodiment of the present invention, the present invention also provides an AI facial key point automatic recognition method, comprising the following steps: the image processing step A of the image preprocessing module 2 is:
[0106] Step A1: denoise the image. The denoising formula is:
[0107] ;
[0108] : is the new value of the pixel, : is the pixel value at the neighbor node m, : is pixel The sum of the weights of : Pixels Neighborhood, It's pixels and pixels The weight between is given by: composition, represents spatial proximity, where It's pixels and pixels The Euclidean distance between is the scale parameter of spatial proximity;
[0109] Step A2, increasing the contrast of the CT image by using an opencv-Sobel filter;
[0110] Step A3, morphological processing of the CT image is performed through the opencv-morphologyEx() function;
[0111] Step A4, resample the CT image, obtain the coordinates and layer thickness of the left and right pixel spatial data of the CT data, count all pixel block sizes, and calculate the average value as the current spatial data; the mathematical formula for the average spatial data is:
[0112] ;
[0113] Represents the total number of pixels. It starts from the first pixel and sums up. Represents (X, Y, Z), where X and Y are the physical distances between two pixels on a two-dimensional image, and Z is the distance between CT image layers, both in millimeters;
[0114] Step A5, using the window width and window position of the bone to divide the CT image value range, and then using the normal distribution normalization function to process the CT image, the formula is: ;
[0115] Indicated at the mean and variance Under the condition that The probability density of is the mean of the normal distribution, is the variance of the normal distribution, is the standard deviation, is pi, The value is 3.14, is the base of natural logarithms, The value is 2.71828.
[0116] Point cloud extraction step B of the point cloud generation module 3:
[0117] Step B1, input the segmented CT image, first extract the data space data including pixel coordinates and slice thickness, and stack the segmented CT image data to form a three-dimensional volume composed of many voxels;
[0118] For each voxel in the three-dimensional volume, its properties are calculated according to its position and CT value;
[0119] Step B2, obtaining the values and coordinate positions of the eight vertices of all voxel hexahedrons, and obtaining the voxel values around each voxel;
[0120] Step B3, determining whether the vertex of each voxel is within the three-dimensional volume, and calculating the points on the isosurface by interpolation, these points will form the contour of the isosurface, and a triangle will be formed near the isosurface;
[0121] Step B4, combining the triangles generated by each voxel together to obtain the final three-dimensional surface model to form point cloud data.
[0122] The multi-dimensional kernel point convolution model (41) includes the following steps:
[0123] Step C1: for each point in the point cloud data, take its coordinates as the center of the sphere ;
[0124] The neighbor points of are defined as: , the definition of a sphere is , ;
[0125] represents the range of the sphere, Represents a three-dimensional Euclidean space, that is, all three-dimensional vectors The collection composed of represents a positive real number, here it represents the radius;
[0126] Step C2, inside the sphere, find points as core points, and the core points are not points in the point cloud data. , for each core point There is a weight matrix Correspondingly, is defined as: ;
[0127] in, A matrix in the real number domain, the size of the matrix is Line and List;
[0128] is the dimension of the input vector, indicating that the matrix receives Dimensional input, is the dimension of the output vector, indicating that the vector output by the matrix is Dimensional;
[0129] is an index variable, which indicates the number of the core point. is the total number of core points, express From 0 to range, which means that there are a total of Different weight matrices ;
[0130] Step C3, within the defined sphere , for points that fall within this range (point in the point cloud), we can get its relative to the center of the sphere Distance , for any , define the kernel function for: , ;
[0131] in Is a kernel function that outputs a scalar, representing the point And core points similarity or weight; This is the offset With core points The Euclidean distance between them represents the distance between them in three-dimensional space;
[0132] Step C4, based on the above definition points The core point KPConv (Kernel Point Convolution) convolution is defined as: for each neighbor point Features , respectively, using matrices After transformation, add up: ;
[0133] in Represents the set of input features or input signals for each neighbor point , which has a corresponding eigenvector ;
[0134] Represents the weight function of the core point convolution;
[0135] Depends on neighbors And core points The relative position between ;
[0136] Step C5, after the weighted summation of step C4, it is necessary to aggregate the features of all output points to form the final output feature V1.
[0137] Step D of the three-dimensional point feature convolution of the three-dimensional point feature convolution model 42:
[0138] Step D1, the input is a V1 composed of points, and a weight vector is calculated for each input point convolution;
[0139] Step D2, performing a dot product operation on the weight vector and the feature vector of the neighboring point to obtain a weighted feature vector;
[0140] The weighted sum of the weighted feature vectors of all neighboring points is used to obtain the output feature vector of the input point;
[0141] The output feature vector is processed by the activation function ReLU to obtain the final convolution feature V2;
[0142] The convolution formula is , the weighted summation formula is , is the weight vector, Represents a sequence or signal, usually an input signal or data sequence, here is a feature map, Represents a convolution kernel or filter, which is used to process the input signal Function that performs weighted sum operation.
[0143] The convolution step E of the dynamic point cloud transformation network 43 is:
[0144] Step E1, for each input point in V1 , calculate the features and location information of its neighboring points, and the neighboring points Among them, the distance Yes and Point The Euclidean distance between the two points, where the radius is the maximum distance between the neighboring points;
[0145] Step E2, for each input in V1 , define its local features , can be calculated by the following formula ,in is the characteristic of point p, is the feature of the neighboring points, It is a multi-layer perceptron which is used to extract local features. For each input point , Calculate the adjacency matrix of its dynamic adjacency graph ;
[0146] ;
[0147] The softmax is a normalization function used to calculate the similarity of neighboring points;
[0148] Step E3, for each input point , calculate its aggregate features: ;
[0149] in, is the adjacency matrix middle and The elements between represent points Point Contribution
[0150] Step E4, repeat the above calculation and finally output feature V3.
[0151] The convolution step F of the multi-scale extraction model 44 is:
[0152] Step F1, input features V1 and V2 into three scales simultaneously for feature extraction and gradient calculation;
[0153] Step F2, the features calculated at different scales are merged and the features V4 are output.
[0154] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements will not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. An AI facial key point automatic recognition system, characterized by: include: A CT image importing module (1), wherein the CT image importing module (1) is used to import a CT image and send the CT image to an image preprocessing module (2); An image preprocessing module (2), the image preprocessing module (2) being used for preprocessing the CT image by denoising, contrast enhancement, morphological processing and resampling; The image preprocessing module (2) is also used to set a threshold value for the preprocessed CT image according to the CT value range of the bone and perform a normalization operation on the data, and separate the bone from other tissues to generate a segmented CT image; A key point division module (5), the key point division module (5) is used to divide the target area of the key point in the CT image; A point cloud generation module (3), the point cloud generation module (3) is used to convert the continuous image data of the segmented CT image into a discrete voxel grid, extract a point cloud from the voxel grid and generate point cloud data; A cascade network reasoner (4), the cascade network reasoner (4) is used to extract preliminary features V1 of feature points in the target area by convolution of the point cloud data, and to convolve V1 through convolutional neural networks at two scales to obtain further features V2 and V3 of two groups of feature points, and then to extract features layer by layer from V2 and V3 by multi-scale convolutional neural networks and to splice them into a probability feature map V4 of feature points in the target area; The cascade network reasoner (4) includes a multi-dimensional kernel point convolution model (41), a three-dimensional point feature convolution model (42), a dynamic point cloud transformation network (43) and a multi-scale extraction model (44); The multi-dimensional kernel point convolution model (41) is used to convolve the point cloud data and output two features V1. The multi-dimensional kernel point convolution model (41) sends the two V1s to the three-dimensional point feature convolution model (42) and the dynamic point cloud transformation network (43) respectively. The three-dimensional point feature convolution model (42) and the dynamic point cloud transformation network (43) respectively convolve to obtain features V2 and V3. The three-dimensional point feature convolution model (42) and the dynamic point cloud transformation network (43) send V2 and V3 to the multi-scale extraction model (44) to perform layer-by-layer feature extraction using a multi-scale convolutional neural network and splice them into a probability feature map V4 of the feature points in the target area.
2. The AI facial key point automatic recognition system according to claim 1 is characterized in that: The multi-scale extraction model (44) consists of three scales; The first scale consists of a point-by-point convolution 1*1; The second scale is composed of two point-by-point convolutions 1*1 in series; The third scale consists of a point-by-point convolution of 1*1 and a 7*7 convolution kernel in series and a 3*3 plus a 5*5 convolution kernel in parallel.
3. An AI facial key point automatic recognition method, using the AI facial key point automatic recognition system according to claim 2, characterized in that: The image processing step A of the image preprocessing module (2) is: Step A1: denoise the image. The denoising formula is: ; : is the new value of the pixel, : is the pixel value at the neighbor node m, : is pixel The sum of the weights of : Pixels Neighborhood, It's pixels and pixels The weight between is given by: composition, represents the spatial proximity, where It's pixels and pixels The Euclidean distance between is the scale parameter of spatial proximity; Step A2, increasing the contrast of the CT image by using an opencv-Sobel filter; Step A3, morphological processing of the CT image is performed through the opencv-morphologyEx() function; Step A4, resample the CT image, obtain the coordinates and layer thickness of the left and right pixel spatial data of the CT data, count all pixel block sizes, and calculate the average value as the current spatial data; the mathematical formula for the average spatial data is: ; Represents the total number of pixels. It starts from the first pixel and sums up. Represents (X, Y, Z), where X, Y is the physical distance between two pixels on a two-dimensional image, and Z is the distance between CT image layers, both in millimeters; Step A5, using the window width and window position of the bone to divide the CT image value range, and then using the normal distribution normalization function to process the CT image: the formula is: ; Indicated at the mean and variance Under the condition that The probability density of is the mean of the normal distribution, is the variance of the normal distribution, is the standard deviation, is pi, is the base of natural logarithms.
4. The AI facial key point automatic recognition method according to claim 3 is characterized in that: Point cloud extraction step B of the point cloud generation module (3): Step B1, input the segmented CT image, first extract the data space data including pixel coordinates and slice thickness, and stack the segmented CT image data to form a three-dimensional volume composed of many voxels; For each voxel in the three-dimensional volume, its properties are calculated according to its position and CT value; Step B2, obtaining the values and coordinate positions of the eight vertices of all voxel hexahedrons, and obtaining the voxel values around each voxel; Step B3, determining whether the vertex of each voxel is within the three-dimensional volume, and calculating the points on the isosurface by interpolation, these points will form the contour of the isosurface, and a triangle will be formed near the isosurface; Step B4, combining the triangles generated by each voxel together to obtain the final three-dimensional surface model to form point cloud data.
5. The AI facial key point automatic recognition method according to claim 4, characterized in that: The multi-dimensional kernel point convolution model (41) includes the following steps: Step C1: for each point in the point cloud data, take its coordinates as the center of the sphere ; The neighbor points of are defined as: , the definition of a sphere is , ; represents the range of the sphere, Represents a three-dimensional Euclidean space, that is, all three-dimensional vectors The collection composed of represents the radius; Step C2, inside the sphere, find points as core points, and the core points are not points in the point cloud data. , for each core point There is a weight matrix Correspondingly, is defined as: ; in, A matrix in the real number domain, the size of the matrix is Line and List; is the dimension of the input vector, indicating that the matrix receives Dimensional input, is the dimension of the output vector, indicating that the vector output by the matrix is Dimensional; is an index variable, which indicates the number of the core point. is the total number of core points, express From 0 to scope; Step C3, within the defined sphere For points that fall within this range , we can get its relative to the center of the sphere Distance , for any , define the kernel function for: , ; in Is a kernel function that outputs a scalar, representing the point And core points similarity or weight; This is the offset With core points The Euclidean distance between them represents the distance between them in three-dimensional space; Step C4, based on the above definition points The core point KPConv (Kernel Point Convolution) convolution is defined as: for each neighbor point Features , respectively, using matrices Then, add up: ; in Represents the set of input features or input signals for each neighbor point , which has a corresponding eigenvector ; Represents the weight function of the core point convolution; Depends on neighbors And core points The relative position between ; Step C5, after the weighted summation of step C4, it is necessary to aggregate the features of all output points to form the final output feature V1.
6. The AI facial key point automatic recognition method according to claim 5, characterized in that: The three-dimensional point feature convolution step D of the three-dimensional point feature convolution model (42) is: Step D1, the input is a V1 composed of points, and a weight vector is calculated for each input point convolution; Step D2, performing a dot product operation on the weight vector and the feature vector of the neighboring point to obtain a weighted feature vector; The weighted sum of the weighted feature vectors of all neighboring points is used to obtain the output feature vector of the input point; The output feature vector is processed by the activation function ReLU to obtain the final convolution feature V2; The convolution formula is: , the weighted summation formula is , is the weight vector, represents the input signal, Represents a convolution kernel or filter, which is used to process the input signal Function that performs weighted sum operation.
7. The AI facial key point automatic recognition method according to claim 6, characterized in that: The convolution step E of the dynamic point cloud transformation network (43) is: Step E1, for each input point in V1 , calculate the features and location information of its neighboring points, and the neighboring points Among them, the distance Yes and Point The Euclidean distance between the two points, where the radius is the maximum distance between the neighboring points; Step E2, for each input in V1 , defining its local features , can be calculated by the following formula ,in Yes Features, is the feature of the neighboring points, It is a multi-layer perceptron which is used to extract local features. For each input point , Calculate the adjacency matrix of its dynamic adjacency graph ; ; The softmax is a normalization function used to calculate the similarity of neighboring points; Step E3, for each input point , calculate its aggregate features: ; in, is the adjacency matrix middle and The elements between represent points Point Contribution Step E4, repeat the above calculation and finally output feature V3.
8. The AI facial key point automatic recognition method according to claim 7, characterized in that: The convolution step F of the multi-scale extraction model (44) is: Step F1, input features V1 and V2 into three scales simultaneously for feature extraction and gradient calculation; Step F2, the features calculated at different scales are merged and the features V4 are output.
