A high-precision facial acupoint identification method and identification model
Patent Information
- Application Number
- CN202311691291.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-11
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2043-12-11
AI Technical Summary
Existing acupoint positioning methods cannot meet the high-precision requirements of facial acupoints. Especially for non-TCM professionals and new scholars, it is difficult to locate accurately and affect the curative effect.
A high-precision facial acupuncture identification method is used to collect facial image information, perform preprocessing, acupuncture area segmentation, face rotation Euler angle occlusion calculation and facial feature extraction, combined with the acupoint probability heat map estimation network, the fusion results are maximized Probability calculation to obtain accurate facial acupoint recognition results.
It has significantly improved the accuracy of acupuncture point positioning, can analyze and judge face images in real time, shield invisible areas, and enhance the accuracy and practicality of acupoint positioning.
Smart Images

Figure CN117475497B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of facial acupoint recognition, and in particular to a high-precision facial acupoint identification method and a identification model. Background Art
[0002] In traditional Chinese medicine, acupuncture therapy occupies a very important position, and acupuncture has been continuously inherited and developed over a long period of history. Acupoint positioning is the basis for implementing acupuncture, massage and acupoint medication in traditional Chinese medicine. Learning how to accurately locate acupoints is an indispensable part of the process of cultivating Chinese medicine physicians. The emergence of acupuncture meridian maps and acupuncture bronze man models has greatly alleviated the difficulties of learners in memorizing and understanding acupoint positioning and meridian directions, greatly improving the efficiency of teaching and learning. With the popularization of Chinese medicine plasters and needles in the market, acupoint positioning is the basis for implementing Chinese medicine acupuncture, massage and acupoint medication. The main methods of acupoint positioning include surface anatomical landmark positioning method, bone measurement positioning method and finger inch positioning method. However, for non-TCM professionals or new learners, it is difficult to accurately locate acupoints and it is difficult to achieve ideal therapeutic effects.
[0003] Functional design based on artificial intelligence to help people determine the location of acupoints is particularly important. With the popularization of artificial intelligence technology and the development of computer technologies such as artificial intelligence image recognition processing and virtual simulation, it has been increasingly used in traditional Chinese medicine acupuncture course teaching, simulation training and standardized evaluation of techniques.
[0004] However, existing acupoint positioning methods are basically aimed at acupoints throughout the body. Since facial acupoint positioning requires high accuracy, existing methods are difficult to meet the positioning accuracy requirements. Summary of the invention
[0005] In view of this, it is necessary to provide a high-precision facial acupoint identification method and identification model to address the problem.
[0006] The present invention provides a high-precision facial acupoint identification method, comprising:
[0007] S10, collecting facial image information;
[0008] S20, preprocessing the collected face image to obtain a recognizable face image;
[0009] S30, dividing the recognizable face image into facial acupoint clustering regions through an acupoint region segmentation network to obtain a first recognition result;
[0010] S40, calculating the face Euler angles of the recognizable face image through the face rotation Euler angle occlusion calculation network to obtain the occlusion degree of the face, and detecting the invisible acupuncture points of the face according to the occlusion degree of the face to obtain a second recognition result;
[0011] S50, extracting facial features from the recognizable facial image through a facial feature extraction network to obtain a third recognition result;
[0012] S60, fusing the first recognition result, the second recognition result, and the third recognition result through an acupoint probability heat map estimation network, and performing acupoint maximum probability calculation on the fused result to obtain a facial acupoint recognition result;
[0013] Among them, the first recognition result is the facial acupoint area information corresponding to the facial image information, the second recognition result is the Euler angle data and acupoint occlusion information corresponding to the facial image information, and the third recognition result is the facial feature information corresponding to the facial image information.
[0014] The present invention also provides a high-precision facial acupoint discrimination model, comprising:
[0015] The acquisition module is used to acquire facial image information; and pre-process the acquired facial images to obtain recognizable facial images;
[0016] An acupoint region segmentation network is used to divide the recognizable face image into facial acupoint cluster regions to obtain a first recognition result;
[0017] A face rotation Euler angle occlusion calculation network is used to calculate the face Euler angle of the recognizable face image, obtain the occlusion degree of the face, and detect the invisible acupuncture points of the face according to the occlusion degree of the face to obtain a second recognition result;
[0018] A face feature extraction network is used to extract face features from a recognizable face image to obtain a third recognition result;
[0019] an acupoint probability heat map estimation network, which is used to fuse the first recognition result, the second recognition result and the third recognition result, and to calculate the maximum probability of the acupoints on the fused result to obtain the facial acupoint recognition result;
[0020] Among them, the first recognition result is the facial acupoint area information corresponding to the facial image information, the second recognition result is the Euler angle data and acupoint occlusion information corresponding to the facial image information, and the third recognition result is the facial feature information corresponding to the facial image information.
[0021] The advantages of the technical solution provided by this application are:
[0022] 1. In this application, the division of facial acupoint clustering areas, the Euler angles and occlusion degree of the face, the facial features and the acupoint probability heat map estimation are integrated to establish an accurate and effective facial acupoint identification method and identification model; when used:
[0023] By collecting facial image information, it is possible to perform real-time analysis and judgment on the collected facial images, divide the facial acupoint clustering areas through the acupoint area segmentation network, measure the facial orientation and positioning through the face rotation Euler angle occlusion calculation network, and shield the invisible area acupoints; extract facial features through the face feature extraction network, and perform feature fusion and acupoint maximum probability calculation through the acupoint probability heat map estimation network, so as to greatly improve the acupoint positioning accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present invention or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0025] Figure 1 It is a flow chart of a high-precision facial acupoint identification method provided by an embodiment of the present invention;
[0026] Figure 2 is a schematic diagram of facial acupoint clustering regions identified by an acupoint region segmentation network provided by an embodiment of the present invention;
[0027] Figure 3 Schematic diagram of the structure of the Euler angle calculation model in an embodiment of the present invention;
[0028] Figure 4 is a schematic diagram of the process of S40 in an embodiment of the present invention;
[0029] Figure 5 is a schematic diagram of the calculation process of the Euler angle calculation model in a specific embodiment of the present invention;
[0030] Figure 6 is a schematic diagram of the structure of the acupoint probability heat map estimation network in an embodiment of the present invention;
[0031] Figure 7 is a schematic diagram of acupoint estimation in an embodiment of the present invention;
[0032] Figure 8 It is a structural schematic diagram of a high-precision facial acupoint discrimination model in an embodiment of the present invention;
[0033] In the figure:
[0034] 10 is an acquisition module, 20 is an acupoint region segmentation network, 30 is a face rotation Euler angle occlusion calculation network, 40 is a face feature extraction network, and 50 is an acupoint probability heat map estimation network. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions 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, rather than all the embodiments; based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0036] See also Figure 1 The present application embodiment provides a high-precision facial acupoint identification method, comprising:
[0037] S10, collecting facial image information;
[0038] S20, preprocessing the collected face image to obtain a recognizable face image;
[0039] S30, dividing the recognizable face image into facial acupoint clustering regions through an acupoint region segmentation network to obtain a first recognition result;
[0040] S40, calculating the face Euler angles of the recognizable face image through the face rotation Euler angle occlusion calculation network to obtain the occlusion degree of the face, and detecting the invisible acupuncture points of the face according to the occlusion degree of the face to obtain a second recognition result;
[0041] S50, extracting facial features from the recognizable facial image through a facial feature extraction network to obtain a third recognition result;
[0042] S60, fusing the first recognition result, the second recognition result, and the third recognition result through an acupoint probability heat map estimation network, and performing acupoint maximum probability calculation on the fused result to obtain a facial acupoint recognition result;
[0043] Among them, the first recognition result is the facial acupoint area information corresponding to the facial image information, the second recognition result is the Euler angle data and acupoint occlusion information corresponding to the facial image information, and the third recognition result is the facial feature information corresponding to the facial image information.
[0044] It should be noted that the collected facial image information can detect and recognize the face through an RGB camera, and the collected facial images can be subjected to image preprocessing, including: smoothing, grayscale correction, noise filtering, light compensation, filtering, histogram equalization, and normalization.
[0045] It should be noted that the acupoint region segmentation network is obtained through segmentation training; the segmentation training includes:
[0046] Train the hair category to obtain a trained hair detection model;
[0047] The hair detection model is used as a pre-training model, the network loss function is used as the training target, and the facial target area is trained through the self-labeled dataset to obtain a trained acupoint area segmentation network;
[0048] Wherein, the facial target area includes: nose, eyes, eyebrows, ears, mouth and cheeks; the facial target area and the hair area constitute the facial acupuncture point gathering area.
[0049] It should be noted that after preprocessing the face image, the acupoint region segmentation network is used to roughly locate the recognizable face image; due to the inherent constraints of the face image features, the rough positioning has extremely high reliability; after the recognizable face image is divided into facial acupoint clustering areas by the acupoint region segmentation network, seven facial acupoint clustering areas are obtained, namely: facial target area (nose, eyes, eyebrows, ears, mouth, cheeks) and hair area; in this embodiment, the facial acupoint clustering areas identified by the acupoint region segmentation network can be referred to Figure 2 .
[0050] In this embodiment, the expression of the network loss function is:
[0051] (5)
[0052] (6)
[0053] (7)
[0054] (8)
[0055] In formula (5), represents the network loss function, express Coefficient loss function, represents the binary cross entropy loss function;
[0056] represents the set similarity measurement function; A represents the segmentation prediction matrix, and B represents the sample training matrix;
[0057] N represents the total number of samples, i represents the i-th sample, represents the distribution probability of known samples, Represents the distribution probability of the predicted sample.
[0058] It should be noted that the acupoint region segmentation network provides an effective global context prior for facial pixel-level analysis, so that during the facial acupoint recognition process, prediction can be made based on the structure (region). The acupoint region segmentation network structure includes: pooling layers of different sizes, which increase the receptive field and reduce the loss of context information between different sub-regions.
[0059] In this embodiment, based on the obvious constraints and specific positional characteristics between facial acupoints and facial features, the facial acupoints are divided into clustered areas, and a probability heat map is generated by combining facial feature information, Euler angle data, and acupoint occlusion information, which can achieve the optimal accuracy of acupoint recognition.
[0060] In this embodiment, the division of facial acupoint clustering areas, face Euler angles and occlusion levels, facial features and acupoint probability heat map estimation are integrated to establish an accurate and effective facial acupoint discrimination method and discrimination model; by collecting facial image information, the collected facial images can be analyzed and judged in real time. When in use, the facial acupoint clustering areas are divided through the acupoint area segmentation network, the face rotation Euler angle occlusion calculation network is used to measure the face orientation and positioning, and the invisible area acupoints are shielded; the facial features are extracted through the facial feature extraction network, and the feature fusion and acupoint maximum probability calculation are performed through the acupoint probability heat map estimation network to obtain the facial acupoint recognition results, which greatly improves the acupoint positioning accuracy.
[0061] See also Figures 3 to 5 In S40, the face Euler angle calculation network is used to calculate the face Euler angle of the recognizable face image to obtain the degree of occlusion of the face, and the invisible acupuncture points of the face are detected according to the degree of occlusion of the face to obtain the second recognition result, including:
[0062] S401, extracting features of the recognizable face image through the backbone layer of the ResNet network;
[0063] S402, performing feature dimensionality reduction on the extracted features through the avgPool layer of the ResNet network;
[0064] S403, inputting the reduced-dimensional features into three FC layers respectively; extracting one Euler angle feature corresponding to each FC layer to obtain a 66-dimensional feature value corresponding to the constraint space;
[0065] S404, the output value of each FC layer is subjected to Softmax operation and loss calculation to obtain the prediction value of the corresponding angle;
[0066] S405, obtaining the occlusion degree of the face according to the predicted value of the angle corresponding to the Euler angle;
[0067] S406, identifying invisible acupuncture point information of the face according to the degree of occlusion of the face, and obtaining a second recognition result;
[0068] The angles include: yaw angle Yaw, pitch angle Pitch and roll angle Roll;
[0069] The constraint space is: -99 degrees to 99 degrees; the constraint space is divided into 66 intervals at intervals of 3 degrees; the 66 intervals correspond to 66-dimensional eigenvalues.
[0070] In this embodiment, the features output by the avgPool layer are converted into 66-dimensional feature values through three Euler angle feature extraction linear layers (FC layers); the yaw angle Paw, the pitch angle Pitch, and the roll angle Roll are divided into 66 intervals at intervals of 3 degrees (representing 66 values, and the constraint space represents -99 to 99 degrees).
[0071] In this embodiment, the Softmax operation includes: Softmax function ;
[0072] Softmax function It is a probability distribution that can calculate the probability of each category, and the sum of the probabilities is 1;
[0073]
[0074]
[0075] represents the parameter of category i in the probability distribution, represents the input sample, and K represents the number of categories. The formula is:
[0076] The Softmax function formula input is a vector (z) containing K elements.
[0077] In this embodiment, the face rotation Euler angle occlusion calculation network in S40 includes: an Euler angle calculation model and an occlusion calculation model;
[0078] The Euler angle calculation model is trained by loss calculation to obtain a trained Euler angle calculation model;
[0079] Among them, the loss calculation includes: cross entropy loss calculation and mean square loss calculation; the cross entropy loss calculation is used to control the angle base point of the classification regression angle, and the mean square loss calculation is used to control the expected adjustment based on the angle base point.
[0080] In this embodiment, the Euler angle calculation model is obtained by training through a total loss function; including:
[0081] Based on the cross entropy loss calculation and mean square loss calculation, the total loss function is established;
[0082] Based on the total loss function, the error value between the true angle and the predicted angle of the Euler angle is obtained;
[0083] The Euler angle calculation model is trained by using the error value to obtain a trained Euler angle calculation model;
[0084] Among them, the calculation expression of the cross entropy loss calculation is:
[0085] (1)
[0086] In formula (1), represents the cross entropy loss function, M represents the classification category; N represents the number of samples; i represents the i-th sample; Represents the label (0 or 1) of the i-th sample category c; is the probability of the i-th sample category c;
[0087] The calculation expression of the mean square loss calculation is:
[0088] (2)
[0089] In formula (2), represents the mean square loss function, x represents the model prediction value, y represents the true value, n is the total number of samples, represents the predicted value of the i-th sample, Represents the true value of the i-th sample;
[0090] The calculation expression of the total loss function is:
[0091] (3)
[0092] In formula (3), represents the total loss function, y represents the predicted Euler angle, Indicates the true angle, Indicates setting weights;
[0093] Said =0.001 ~0.0001, adjusted according to training.
[0094] It should be noted that the mean square loss function The smaller it is, the smaller the difference between the model's predicted results and the true values, and the better the model fit. The CrossEntropyLoss function is defined as the degree of conflict between the model output and the true value. It can be used to evaluate the difference between the model's predicted results and the true results, thereby measuring the performance of the learning algorithm.
[0095] In this embodiment, the calculation process of the occlusion calculation model includes:
[0096] Calculate the visibility of all acupuncture points on the front of the face;
[0097] Convert the predicted value of the Euler angle corresponding to the angle into a vector matrix ;
[0098] Through the acupoint occlusion factor and vector matrix Perform occlusion calculation to identify invisible acupuncture point information on the face and obtain a second recognition result;
[0099] The expression of the occlusion calculation is:
[0100] (4)
[0101] in, for , Indicates the influence of the nth acupoint on the rotation direction.
[0102] It should be noted that by judging whether the face is obscured to a certain extent and calculating the weight matrix according to the degree of occlusion, the greater the visibility, the greater the visibility threshold, and the smaller the visibility, the smaller the visibility threshold, thereby discarding the invisible acupoint detection and improving the detection accuracy of the acupoints in the detectable area.
[0103] In this embodiment, facial direction recognition data is introduced on the basis of the acupoint area segmentation network, so that the segmentation accuracy is greatly improved, and the face position offset is preliminarily calculated according to the face orientation Euler angle, so as to further optimize the details of the detected acupoints, thereby greatly improving the accuracy of the final detection result.
[0104] See also Figure 6 , Figure 7 The step S60, fusing the first recognition result, the second recognition result and the third recognition result through an acupoint probability heat map estimation network, and performing acupoint maximum probability calculation on the fused result through an acupoint probability heat map estimation network to obtain a facial acupoint recognition result; includes:
[0105] Inputting the first recognition result, the second recognition result and the third recognition result corresponding to each facial image information into the acupoint probability heat map estimation network;
[0106] The acupoint probability heat map estimation network connects the first recognition result, the second recognition result, and the third recognition result to obtain a cascade vector;
[0107] The cascade vector is input into the fully connected layer for probability heat map estimation, and the maximum probability area of the acupoints is calculated respectively, so as to obtain the facial acupoint recognition result.
[0108] In this embodiment, the acupoint probability heat map estimation network is trained by a heat map training loss function;
[0109] The expression of the heat map training loss function is:
[0110] (8)
[0111] , (9)
[0112] in, represents the heat map training loss function, represents the actual Gaussian distribution, represents the predicted Gaussian distribution;
[0113] N represents the number of samples; N represents the number of samples; , represents a hyperparameter used to balance the difficulty and ease of samples and the positive and negative samples, and normalize all position losses to 1;
[0114] xyc represents all coordinate points on the heat map, where: c represents the target category;
[0115] when =1, it means that a key point of the c-type target category is detected at the coordinate (x, y) position.
[0116] See also Figure 8 , the present application also provides a high-precision facial acupoint discrimination model, including:
[0117] The acquisition module 10 is used to acquire facial image information; and pre-process the acquired facial image to obtain a recognizable facial image;
[0118] The acupoint region segmentation network 20 is used to divide the recognizable face image into facial acupoint cluster regions to obtain a first recognition result;
[0119] The face rotation Euler angle occlusion calculation network 30 is used to calculate the face Euler angle of the recognizable face image to obtain the occlusion degree of the face, and detect the invisible acupuncture points of the face according to the occlusion degree of the face to obtain a second recognition result;
[0120] A face feature extraction network 40 is used to extract face features from the recognizable face image to obtain a third recognition result;
[0121] an acupoint probability heat map estimation network 50, which is used to fuse the first recognition result, the second recognition result and the third recognition result, and perform acupoint maximum probability calculation on the fused result to obtain a facial acupoint recognition result;
[0122] Among them, the first recognition result is the facial acupoint area information corresponding to the facial image information, the second recognition result is the Euler angle data and acupoint occlusion information corresponding to the facial image information, and the third recognition result is the facial feature information corresponding to the facial image information.
[0123] In the present application, the discrimination method and the discrimination model are based on the same inventive concept. Since the discrimination method and the discrimination model solve the problem in a similar manner, the implementation of the discrimination method and the discrimination model can refer to each other, and the repeated parts will not be repeated.
[0124] In summary, the present application provides a high-precision facial acupoint identification method and identification model, which can perform image preprocessing after recognizing the face, increase the image's anti-interference ability, and improve the accuracy of image detection; after image preprocessing, a recognizable face image is obtained; then the recognizable face image is sent to the acupoint area segmentation network and the face rotation Euler angle occlusion calculation network respectively to obtain the key segmentation area of the face acupoint concentration, the face direction data and the acupoint visibility data; then the face features are integrated with the above data, and multiple Gaussian graph probability matrix images of the face acupoint distribution are output through the acupoint probability heat map estimation network; the position of each acupoint is determined by the Gaussian probability map, and the facial acupoint information that the current user needs to identify is determined; the facial acupoint recognition result obtained by the present application greatly improves the acupoint positioning accuracy and is extremely practical.
[0125] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A high-precision facial acupoint identification method, characterized in that: include: S10, collecting facial image information; S20, preprocessing the collected face image to obtain a recognizable face image; S30, dividing the recognizable face image into facial acupoint clustering regions through an acupoint region segmentation network to obtain a first recognition result; S40, calculating the face Euler angles of the recognizable face image through the face rotation Euler angle occlusion calculation network to obtain the occlusion degree of the face, and detecting the invisible acupuncture points of the face according to the occlusion degree of the face to obtain a second recognition result; S50, extracting facial features from the recognizable facial image through a facial feature extraction network to obtain a third recognition result; S60, fusing the first recognition result, the second recognition result, and the third recognition result through an acupoint probability heat map estimation network, and performing acupoint maximum probability calculation on the fused result to obtain a facial acupoint recognition result; The first recognition result is the facial acupoint area information corresponding to the facial image information, the second recognition result is the Euler angle data and acupoint occlusion information corresponding to the facial image information, and the third recognition result is the facial feature information corresponding to the facial image information; The acupoint area segmentation network is obtained through segmentation training; the segmentation training includes: Train the hair category to obtain a trained hair detection model; The hair detection model is used as a pre-training model, and the network loss function is used as the training target. The facial target area is trained through the self-labeled data set to obtain a trained acupoint area segmentation network; the expression of the network loss function is: (5) (6) (7) (8) In formula (5), represents the network loss function, express Coefficient loss function, represents the binary cross entropy loss function; represents the set similarity measurement function; A represents the segmentation prediction matrix, and B represents the sample training matrix; N represents the total number of samples, i represents the i-th sample, represents the distribution probability of known samples, Represents the distribution probability of the predicted sample; Wherein, the facial target area includes: nose, eyes, eyebrows, ears, mouth and cheeks; the facial target area and the hair area constitute the facial acupuncture point gathering area.
2. A high-precision facial acupoint identification method according to claim 1, characterized in that: In S40, the face Euler angle calculation network is used to calculate the face Euler angle of the recognizable face image to obtain the degree of occlusion of the face, and the invisible acupuncture points of the face are detected according to the degree of occlusion of the face to obtain the second recognition result, including: S401, extracting features of the recognizable face image through the backbone layer of the ResNet network; S402, performing feature dimensionality reduction on the extracted features through the avgPool layer of the ResNet network; S403, inputting the reduced-dimensional features into three FC layers respectively; extracting one Euler angle feature corresponding to each FC layer to obtain a 66-dimensional feature value corresponding to the constraint space; S404, the output value of each FC layer is subjected to Softmax operation and loss calculation to obtain the prediction value of the corresponding angle; S405, obtaining the occlusion degree of the face according to the predicted value of the angle corresponding to the Euler angle; S406, identifying invisible acupuncture point information of the face according to the degree of occlusion of the face, and obtaining a second recognition result; The angles include: yaw angle Yaw, pitch angle Pitch and roll angle Roll; The constraint space is: -99 degrees to 99 degrees; the constraint space is divided into 66 intervals at intervals of 3 degrees; the 66 intervals correspond to 66-dimensional eigenvalues.
3. A high-precision facial acupoint identification method according to claim 2, characterized in that: The face rotation Euler angle occlusion calculation network in S40 includes: an Euler angle calculation model and an occlusion calculation model; The Euler angle calculation model is trained by loss calculation to obtain a trained Euler angle calculation model; Among them, the loss calculation includes: cross entropy loss calculation and mean square loss calculation; the cross entropy loss calculation is used to control the angle base point of the classification regression angle, and the mean square loss calculation is used to control the expected adjustment based on the angle base point.
4. A high-precision facial acupoint identification method according to claim 3, characterized in that: The Euler angle calculation model is obtained by training through the total loss function; including: Based on the cross entropy loss calculation and mean square loss calculation, the total loss function is established; Based on the total loss function, the error value between the true angle and the predicted angle of the Euler angle is obtained; The Euler angle calculation model is trained by using the error value to obtain a trained Euler angle calculation model; Among them, the calculation expression of the cross entropy loss calculation is: (1) In formula (1), represents the cross entropy loss function, M represents the classification category; N represents the number of samples; i represents the i-th sample; Represents the label (0 or 1) of the i-th sample category c; is the probability of the i-th sample category c; The calculation expression of the mean square loss calculation is: (2) In formula (2), represents the mean square loss function, x represents the model prediction value, y represents the true value, n is the total number of samples, represents the predicted value of the i-th sample, Represents the true value of the i-th sample; The calculation expression of the total loss function is: (3) In formula (3), represents the total loss function, y represents the predicted Euler angle, Indicates the true angle, Indicates setting weights; Said =0.001 ~0.0001, adjusted according to training.
5. A high-precision facial acupoint identification method according to claim 4, characterized in that: The calculation process of the occlusion calculation model includes: Calculate the visibility of all acupuncture points on the front of the face; Convert the predicted value of the Euler angle corresponding to the angle into a vector matrix ; Through the acupoint occlusion factor and vector matrix Perform occlusion calculation to identify invisible acupuncture point information on the face and obtain a second recognition result; The expression of the occlusion calculation is: | ∩ | (4) in, for , Indicates the influence of the nth acupoint on the rotation direction.
6. A high-precision facial acupoint identification method according to claim 1, characterized in that: The step S60, fusing the first recognition result, the second recognition result and the third recognition result through an acupoint probability heat map estimation network, and performing acupoint maximum probability calculation on the fused result through an acupoint probability heat map estimation network to obtain a facial acupoint recognition result; includes: Inputting the first recognition result, the second recognition result and the third recognition result corresponding to each facial image information into the acupoint probability heat map estimation network; The acupoint probability heat map estimation network connects the first recognition result, the second recognition result, and the third recognition result to obtain a cascade vector; The cascade vector is input into the fully connected layer for probability heat map estimation, and the maximum probability area of the acupoints is calculated respectively, so as to obtain the facial acupoint recognition result.
7. A high-precision facial acupoint identification method according to claim 6, characterized in that: The acupoint probability heat map estimation network is trained by using a heat map training loss function; The expression of the heat map training loss function is: (8) , (9) in, represents the heat map training loss function, represents the actual Gaussian distribution, represents the predicted Gaussian distribution; N represents the number of samples; , represents a hyperparameter used to balance the difficulty and ease of samples and the positive and negative samples, and normalize all position losses to 1; xyc represents all coordinate points on the heat map, where: c represents the target category; when =1, it means that a key point of the c-type target category is detected at the coordinate (x, y) position.
8. A high-precision facial acupoint discrimination model, characterized in that: include: A collection module (10) is used to collect facial image information; and pre-process the collected facial image to obtain a recognizable facial image; An acupoint region segmentation network (20) is used to divide the facial acupoint clustering region of the recognizable face image to obtain a first recognition result; The acupoint region segmentation network (20) is obtained through segmentation training; The segmentation training includes: Train the hair category to obtain a trained hair detection model; The hair detection model is used as a pre-training model, and the network loss function is used as the training target. The facial target area is trained through the self-labeled data set to obtain a trained acupoint area segmentation network; the expression of the network loss function is: (5) (6) (7) (8) In formula (5), represents the network loss function, express Coefficient loss function, represents the binary cross entropy loss function; represents the set similarity measurement function; A represents the segmentation prediction matrix, and B represents the sample training matrix; N represents the total number of samples, i represents the i-th sample, represents the distribution probability of known samples, represents the distribution probability of the predicted sample; a face rotation Euler angle occlusion calculation network (30), used to calculate the face Euler angle of the recognizable face image, obtain the occlusion degree of the face, and detect the invisible acupuncture points of the face according to the occlusion degree of the face to obtain a second recognition result; A face feature extraction network (40), used to extract face features from a recognizable face image to obtain a third recognition result; an acupoint probability heat map estimation network (50), used to fuse the first recognition result, the second recognition result and the third recognition result, and to calculate the maximum probability of the acupoints on the fused result, so as to obtain a facial acupoint recognition result; The first recognition result is the facial acupoint area information corresponding to the facial image information, the second recognition result is the Euler angle data and acupoint occlusion information corresponding to the facial image information, and the third recognition result is the facial feature information corresponding to the facial image information; Wherein, the facial target area includes: nose, eyes, eyebrows, ears, mouth and cheeks; the facial target area and the hair area constitute the facial acupuncture point gathering area.
Citation Information
Patent Citations
A face key point positioning method with shielding robustness
CN109886121A
Local occlusion face recognition method, system and device fused with eye recognition model
CN112613414A
Face image detection model training method, face image detection method and device
CN114648800A
Model training method, face key point detection method, medium and device
CN116012913A
Driver sight recognition method and device, vehicle and storage medium
CN116189153A
Cited By
Intelligent face acupoint recognition method based on multi-source information fusion
CN121354186A
