Social skill intervention system and method for children with autism based on twinborn digital humans
Through a system based on twin digital people, facial image processing and parametric face model generation are used to provide highly similar "first-person" twin digital people, which solves the limited learning effect and equipment of social skills intervention for autistic children in the existing technology. High cost problem, achieving low-cost and efficient social skills intervention.
Patent Information
- Application Number
- CN202410673332.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-08-27
AI Technical Summary
The existing multimedia technology used for social skills intervention for autistic children has limited learning effect of "third-person" virtual digital people, and the equipment is expensive and bulky, making it difficult for autistic children to accept the intervention.
A system based on twin digital humans is used to generate highly similar "first-person" twin digital humans through facial image acquisition, parametric face model generation, expression driving and three-dimensional face replacement modules for social skills intervention, reducing costs and Improve intervention effectiveness.
Users can use computers to intervene in social skills of autistic children. The generated twin digital person is highly similar to the face of the intervention target, which greatly reduces the cost of intervention, improves the effect of autistic children learning social skills, and avoids the imitation of the mirror neuron system. difficulty.
Smart Images

Figure CN118552686A
Abstract
Description
Technical Field
[0001] The present invention belongs to the fields of computer vision, computer graphics and special education, and more specifically, to a social skills intervention system and method for children with autism based on twin digital humans. Background Art
[0002] Traditional offline intervention methods for children with autism are expensive and inconvenient, so many children with autism cannot receive intervention. With the advancement of technology, more and more multimedia technologies are being used to intervene in the social skills of children with autism. Currently, there are two main types of multimedia technologies used in the intervention of children with autism: (1) augmented reality technology (AR), which uses virtual digital people, virtual game scenes and real scenes to conduct social intervention on children with autism; (2) virtual reality technology (VR), which uses wearable devices to allow children with autism to immerse themselves in virtual scenes from a "first-person" perspective for social intervention.
[0003] However, both multimedia technology methods have some defects. (1) AR combines "third-person" virtual digital people with real-world scenes, making the intervention process more interesting and interactive. However, according to the Broken Mirror Theory, autistic children have dysfunctional mirror neuron systems (MNS), and their imitation and empathy abilities are relatively poor. It is difficult for them to achieve the purpose of learning by imitating the behavior of others like children with normal MNS development. Therefore, it is difficult for autistic children to learn social skills through "third-person" virtual digital people. (2) VR uses wearable devices to allow autistic children to conduct social intervention in virtual scenes from a "first-person" perspective, avoiding the purpose of learning social etiquette by imitating the behavior of "third-person" virtual digital people. However, wearable VR devices are currently expensive and difficult for ordinary families to afford. In addition, most wearable VR devices on the market are bulky, so autistic children are not willing to wear them.
[0004] In summary, although the social skills intervention for autistic children based on multimedia technology has made some progress in recent years, there are still some problems: 1) Using "third-person" virtual digital people to intervene in autistic children, autistic children learn fewer social skills and the intervention effect is limited. 2) The price is too high, and many families cannot afford the high cost. 3) Wearable devices are too bulky and autistic children resist wearing them. Summary of the invention
[0005] In response to the above defects or improvement needs of the prior art, the present invention provides a social skills intervention system and method for children with autism based on twin digital humans, which reduces the intervention cost and improves the intervention effect.
[0006] To achieve the above-mentioned purpose, according to one aspect of the present invention, a social skills intervention system for children with autism based on twin digital humans is provided, comprising:
[0007] A facial image acquisition module is used to pre-process the uploaded image and acquire the facial image;
[0008] A parameterized face model generation module, used for inputting the facial image into a trained facial parameter estimation network model, obtaining facial parameters, and multiplying the facial parameters with a vector basis corresponding to the 3DMM to generate a parameterized face model;
[0009] A three-dimensional face replacement module, used to perform face replacement and stitching between the parameterized face model and the game character model to generate a twin digital human model;
[0010] An expression driving module, used to drive the expression of the twin digital human model through an expression driving algorithm;
[0011] An intervention module is used to use the twin digital human model to perform social skill intervention on the intervention subject.
[0012] Furthermore, the training of the facial parameter estimation network model includes the steps of: repeatedly training the facial parameter estimation network model until the loss function is less than a preset threshold, wherein each training process includes: inputting the training sample image into the facial parameter estimation network model, obtaining the facial parameters corresponding to the training sample image, multiplying the facial parameters of the image corresponding to the training sample with the vector basis corresponding to the 3DMM to generate a parameterized face model corresponding to the training sample image; inputting the training sample image into the trained depth estimation network to obtain a first depth map corresponding to the training sample; using a differentiable renderer to render the parameterized face model corresponding to the training sample image to render a second facial image and a second depth map; calculating the loss function, which is a function that measures the difference between the second facial image and the training sample image, and the difference between the second depth map and the first depth map.
[0013] Furthermore, the calculation formula of the loss function is:
[0014] L=W d L d +W x L x +W p L p +W lm L lm +W reg L reg
[0015] Wherein, L is the loss function, L dTo measure the depth consistency loss of the difference between the first depth map and the second depth map, L x is the image rendering loss that measures the pixel difference between the second facial image and the training sample image, Lp is the identity perception loss that measures the identity difference between the second facial image and the training sample image, and L lm To measure the key point loss between the second facial image and the training sample image, L reg is the regularization loss, W d , W x , W p , W lm , W reg are the weight factors of these five losses respectively.
[0016] Furthermore, W x =2.0,W d =2.0,W p =0.8,W lm =0.5,W reg =10.0.
[0017] Furthermore, the facial parameters include expression parameters, identity parameters, texture parameters, posture parameters and lighting parameters.
[0018] Furthermore, the face replacement and stitching of the parameterized face model with the game character model includes the steps of:
[0019] Inputting the parameterized face model and the game character model into a three-dimensional face key point detection algorithm to perform key point detection respectively;
[0020] Eliminating the facial area of the game character model;
[0021] Scaling and aligning the key points detected by the parameterized face model to make them consistent in size with the key points of the game character model;
[0022] The game character model after the facial area is removed is spliced with the parameterized face model after scaling and alignment, and then a Poisson reconstruction algorithm is used to sew the gap between the game character model and the parameterized face model.
[0023] Furthermore, the removing of the facial area of the game character model is removing 35% to 45% of the facial area of the game character model.
[0024] Furthermore, before splicing the game character model after removing the facial area and the parameterized face model after scaling and alignment, the color texture of the parameterized face model is randomly sampled and the average value is taken, and the color texture of the game character model is adjusted so that the average value of the color texture of the game character model is equal to the average value of the color texture of the parameterized face model.
[0025] Furthermore, the uploaded image is an image of the intervention object.
[0026] According to another aspect of the present invention, a method for intervening in social skills of children with autism based on twin digital humans is provided, comprising the steps of:
[0027] Preprocess the uploaded image to obtain the facial image;
[0028] Input the facial image into the trained facial parameter estimation network model to obtain facial parameters, and multiply the facial parameters with the vector basis corresponding to the 3DMM to generate a parameterized face model;
[0029] Performing face replacement and stitching of the parameterized face model and the game character model to generate a twin digital human model;
[0030] Performing expression driving on the twin digital human model through an expression driving algorithm;
[0031] The twin digital human model is used to conduct social skill intervention on the intervention subject.
[0032] In general, the above technical solutions conceived by the present invention have beneficial effects compared with the prior art:
[0033] (1) The present invention enables users to intervene in the social skills of autistic children using computers, greatly reducing the cost of intervention and making it easier for users to conduct social intervention on autistic children. In addition, the generated twin digital human has a highly similar face to the intervention object, allowing autistic children to learn social skills in the "first person".
[0034] (2) The facial parameter estimation network model of the present invention is supervised and trained based on depth information. Depth information contains potential three-dimensional information and can reflect the distance from the object to the perspective camera to a certain extent. Therefore, obtaining the correct depth value in the three-dimensional face reconstruction process helps to reconstruct an accurate three-dimensional face shape. However, the parameterized three-dimensional face estimated by the traditional parameter estimation network does not make reasonable use of depth information, so there is a certain deviation between the estimated three-dimensional face and the real face shape.
[0035] (3) The present invention only requires uploading a photo to generate a twin digital human to intervene in the social skills of autistic children, which reduces the application conditions to the greatest extent. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 A schematic diagram of an intervention system provided in an embodiment of the present application;
[0037] Figure 2 A schematic diagram of a facial parameter estimation network of an intervention system provided in an embodiment of the present application;
[0038] Figure 3 A schematic diagram of generating a twin digital human from a parameterized human face through a stitching algorithm in the intervention system provided in an embodiment of the present application;
[0039] Figure 4 An example effect diagram of parameterized 3D face reconstruction of European and American children's images provided in an embodiment of the present application;
[0040] Figure 5 An example effect diagram of parameterized 3D face reconstruction of an Asian child image provided in an embodiment of the present application;
[0041] Figure 6 The stitching effect diagram of the stitching algorithm provided in the embodiment of the present application on different face models and different target models;
[0042] Figure 7 An intervention scenario diagram of the intervention system provided in the embodiment of the present application for social skills intervention on European and American children;
[0043] Figure 8 An intervention scenario diagram of the intervention system provided in the embodiment of the present application for social skills intervention on Asian children;
[0044] Fig. 9 A flowchart of a method for intervening in social skills for children with autism based on twin digital humans provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0046] In the description of the embodiments of the present application, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features.
[0047] The terms "including" and "having" and any variations thereof in the embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, product or equipment comprising a series of steps or modules is not necessarily limited to those steps or modules clearly listed, but may include other steps or modules not clearly listed or inherent to these processes, methods, products or equipment.
[0048] The naming or numbering of the steps in the embodiments of the present invention does not mean that the steps in the method flow must be executed in the time / logical sequence indicated by the naming or numbering. The execution order of the named or numbered process steps can be changed according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved.
[0049] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0050] The present invention provides a social skills intervention system and method for children with autism based on twin digital humans, which are described below.
[0051] A social skills intervention system for children with autism based on twin digital humans according to an embodiment of the present invention comprises:
[0052] A facial image acquisition module is used to pre-process the uploaded image and acquire the facial image;
[0053] A parameterized face model generation module, used for inputting the facial image into a trained facial parameter estimation network model, obtaining facial parameters, and multiplying the facial parameters with a vector basis corresponding to the 3DMM to generate a parameterized face model;
[0054] A three-dimensional face replacement module, used to perform face replacement and stitching between the parameterized face model and the game character model to generate a twin digital human model;
[0055] An expression driving module, used to drive the expression of the twin digital human model through an expression driving algorithm;
[0056] An intervention module is used to use the twin digital human model to perform social skill intervention on the intervention subject.
[0057] The following is a detailed description of each module.
[0058] 1. A facial image acquisition module is used to pre-process the uploaded images of the intervention subjects (autistic children) and acquire facial images.
[0059] Specifically, the uploaded images of autistic children are first input into the MTCNN network for facial key point detection. MTCNN consists of P-Net, R-Net, and O-Net.
[0060] First, when inputting the image into the MTCNN network, the image must be scaled to different sizes to form an image pyramid.
[0061] The image pyramid is input into the P-Net network to generate a large number of candidate face regions. R-Net further processes the results in P-Net to remove a large number of non-face regions. O-Net further processes the results of R-Net and focuses on identifying the face region and outputs the positions of the five facial key points of the face.
[0062] Based on the coordinates of these identified key points and the standard facial key point coordinates, the corresponding translation parameters and scaling parameters are calculated. These parameters are used to center the face in the image and resize the image to 224×224 pixels. After the adjustment is completed, the facial feature point coordinates are recalculated based on the image after the size and position are changed, and finally based on the adjusted image.
[0063] 2. A parameterized face model generation module is used to input the facial image into the trained facial parameter estimation network model, obtain facial parameters, and multiply the facial parameters with the vector basis corresponding to the 3DMM to generate a parameterized face model.
[0064] 3DMM is a statistical model of face shape and appearance, and its full name is 3D Morphable FaceModel.
[0065] Furthermore, due to the lack of three-dimensional child facial scans, the present invention adopts a self-supervised learning method to train a facial parameter estimation network model, which uses depth and texture information as supervisory signals to reconstruct a parameterized face model from a single image. Specifically, the training of the facial parameter estimation network model includes the steps of: repeatedly training the facial parameter estimation network model until the loss function is less than a preset threshold. Each training process includes: inputting a training sample image into the facial parameter estimation network model, obtaining facial parameters corresponding to the training sample image, multiplying the facial parameters of the image corresponding to the training sample with the vector basis corresponding to the 3DMM to generate a parameterized face model corresponding to the training sample image; inputting the training sample image into the trained depth estimation network to obtain a first depth map corresponding to the training sample; using a differentiable renderer to render the parameterized face model corresponding to the training sample image, rendering a second facial image and a second depth map; calculating a loss function, which is a function that measures the difference between the second facial image and the training sample image, and the difference between the second depth map and the first depth map.
[0066] The facial parameter estimation network framework is as follows Figure 2 As shown, the depth estimation network needs to be pre-trained in advance when training the facial parameter estimation network. In addition, the depth estimation network only needs to be used during training.
[0067] Furthermore, in order to make the generated parameterized 3D face model more realistic after training, the dataset consists of two parts. One part is 100K in-the-wild children's face images collected from the Internet, especially social media. The other part is 40K virtual children's face images generated by StyleGAN2. All images have been processed with face alignment and cropping, and the size of the processed images is 224×224.
[0068] Furthermore, since directly displaying wild children's face images in this article may involve privacy issues, wild children's images are only used for training, and virtual children's face images are used for testing. The initial learning rate of the training process is set to 0.0001, and decays to 0.00002 after the 10th Epoch. Batch_Size is set to 16, and Batch_Size is the number of samples selected for one training. The Adam optimizer is used to train the network for 20 Epochs. One Epoch means that the training dataset is used once by the model.
[0069] During the training process, the ResNet50 network can be used to estimate expression parameters, identity parameters, texture parameters, etc. from a single sample image I to generate a parameterized 3D face model. Use the trained Attention-Unet depth estimation network to estimate the depth map D e ;
[0070] Use a differentiable renderer to render the parameterized 3D face model and render the face image I r and the depth map D r ;
[0071] According to the estimated depth map D e , input image I, render face image I r And the depth map Dr designs the loss function.
[0072] In one embodiment, the loss function is:
[0073] L=W d L d +W x L x +W p L p +W lm L lm +W reg L reg
[0074] Among them, L is the loss function, L d To measure the depth consistency loss of the difference between the first depth map and the second depth map, L x To measure the image rendering loss of the pixel difference between the second facial image and the training sample image, L p To measure the identity difference between the second facial image and the training sample image, L lm To measure the key point loss between the second facial image and the training sample image, L reg is the regularization loss, W d , W x , W p , W lm , W reg are the weight factors of these five losses respectively.
[0075] In one embodiment, W x =2.0,W d =2.0,W p =0.8,W lm =0.5,W reg =10.0.
[0076] The specific calculation methods of the five types of losses are as follows:
[0077] (1)L x Image rendering loss: Image rendering loss is used to measure the pixel-level error between the input face image and the rendered face image. Let the input face image be I and the rendered face image be I r, then the loss function is defined as:
[0078]
[0079] Where i is the pixel index, M represents the face region mask generated by differentiable rendering, ||·||2 refers to the L2 norm, I(i) represents the pixel at position i in the input face image, and I r (i) represents the pixel at position i in the rendered face, M i Represents the pixel at position i in the face area mask generated by differentiable rendering.
[0080] (2)L lm Keypoint loss: The keypoint loss measures the L2 distance between the 68 keypoints detected in the input image and the positions of the 68 keypoints in the 3D face model projected onto the 2D plane. The face alignment FAN network is used to detect the 68 keypoints of the training image and use them as labels. The loss function is defined as:
[0081]
[0082] Where p(n) is the nth key point of the input face image, p r (n) is the corresponding nth key point in the face image rendered by the parameterized three-dimensional face model, and N1=68 is the number of face key points.
[0083] (3)L p Identity-aware loss: Identity-aware loss is used to measure the identity difference between two face images. The effectiveness of identity loss has been verified in previous methods. The input face image and the rendered face image are respectively sent to the ArcFace face recognition network for feature extraction. We assume that the feature extracted from the input face image is f(I), and the feature extracted from the rendered face image is f(I r ), then the identity-aware loss is defined as:
[0084]
[0085] Where N2 represents the number of input face images, f(·) is the output parameter of the ArcFace network, and f(·) remains unchanged during the training process.
[0086] (4)L d Depth consistency loss: Depth consistency loss can penalize incorrect depth values generated when the 3D model is projected from 3D to 2D, which helps to reconstruct accurate 3D face shapes. This loss can penalize incorrect depth values generated by existing self-supervised 3D face reconstruction methods when the model is projected from 3D to 2D. Let the depth map output by the depth estimation network be De , the depth map rendered by the 3D model is D r , then the loss function is defined as follows
[0087]
[0088] Where i is the pixel index, M represents the face region mask generated by differentiable rendering, and D e (i) represents the pixel at the depth i output by the depth estimation network, D r (i) represents the pixel at the position i of the depth map rendered by the 3D model, M i Represents the pixel at position i in the face area mask generated by differentiable rendering.
[0089] (5)L reg Regularization loss: A regularization loss is added to the regressed 3DMM parameters to prevent the reconstructed 3D face shape from being distorted. The regularization loss is defined as:
[0090] L reg =W exp ||x exp || 2 +W id ||x id || 2 +W tex ||x tex || 2
[0091] Where W exp , W id , W tex is the weight parameter, whose values are {5.0, 1.0, 1.0}, x exp 、x id 、x tex Represents the expression parameters, identity parameters, and texture parameters estimated by the ResNet50 network.
[0092] In one embodiment, after the facial parameter estimation network is trained, a facial image is input and 256-dimensional facial parameters are output, including expression parameters, identity parameters, texture parameters, posture parameters, illumination parameters and other parameters.
[0093] The expression parameters, identity parameters, texture parameters, posture parameters, and illumination parameters respectively represent the expression features, identity features, texture features, posture features, and illumination features of the image.
[0094] Preferably, BFM2009 is used as the 3DMM model, which includes expression parameters, identity parameters, and texture parameters, which are expressed as follows:
[0095]
[0096] in and represents the average face shape and texture of BFM, B id , B tex , B exp They are the identity basic parameters, texture basic parameters, and expression basic parameters obtained by PCA analysis of a large amount of data. s and t represent the shape and texture of the generated parametric face model, respectively.
[0097] Figure 4 , Figure 5 These are example renderings of parameterized 3D face reconstruction of European and American children and Asian children provided in the embodiments of the present application. Figure 4 , Figure 5 It can be seen that the parametric three-dimensional face model generated by the facial parameter estimation network used in the present invention has a very high similarity with the corresponding input image.
[0098] The following describes the Attention-Unet depth estimation network training process in detail.
[0099] Specifically, EG3D was used to generate face photos and their paired face depth maps, and the smooth L1 loss was used to supervise the Attention-Unet training; the training cycle went through 20 epochs, and the Adam optimizer was used to adjust the learning rate. The initial learning rate was set to 0.001, and after 10 epochs, it was reduced to one-fifth of the original learning rate. The smooth L1 loss is:
[0100]
[0101] 3. A three-dimensional face replacement module, used to replace and stitch the parameterized face model with the game character model to generate a twin digital human model.
[0102] Figure 3 The flowchart of the stitching algorithm generates a twin digital human from a parameterized face. As can be seen from the stitching algorithm flowchart, the entire algorithm process can be divided into four steps: facial key point detection, face resection, 3D face alignment, and surface stitching.
[0103] (1) The parameterized face model and the game character model are respectively input into the three-dimensional face key point detection algorithm for key point detection. This step is to generate the key points of the parameterized face model and the face key points of the target model (i.e., the game character model).
[0104] Preferably, the generated parameterized three-dimensional face is rasterized through a differentiable renderer. Since each pixel in the rasterized face image has a mapping relationship with the face in the three-dimensional child face, the purpose of detecting facial key points of the three-dimensional child face is achieved by performing face 68 key point detection on the rasterized image.
[0105] Furthermore, the FAN network is used to detect 68 key points of the face. The network is composed of stacked hourglass network modules. The results predicted by each hourglass network module will be used by the next hourglass network module. The loss function used to train the FAN network is as follows:
[0106]
[0107] Where i is the face key point index, p i is the true value of the face key point, q i is the key point predicted by the network, N1=68 is the number of key points of the face, W bbox and H bbox are the width and height of the true bounding box, respectively. Compared with the normalized Euclidean distance used in traditional facial key point detection, the use of the normalized true bounding box size for normalization can reduce the problem of misjudgment of profile faces with very small inter-eye distances.
[0108] Since there is a mapping relationship between each pixel point in the rasterized face image and the three-dimensional coordinate point in the generated parameterized three-dimensional face, the detected three-dimensional face key points are converted into detected image face key points. The key points corresponding to the parameterized three-dimensional face can be indirectly found by detecting the key points in the rasterized face image.
[0109] (2) Eliminate the facial area of the game character model. This step divides the target model (i.e., the game character model) into a facial part and the rest of the body. In order to subsequently splice and sew the rest of the body with the generated parameterized face model, the sutures are relatively smooth and no "scars" are produced. Inspired by medical surgery, a "wider resection" strategy is adopted to seamlessly sew the two 3D models. When excluding the facial area from the target model, approximately 35% to 45% of the facial area of the head is eliminated based on the three-dimensional facial key points detected by the target model. Furthermore, 40% of the facial area is eliminated.
[0110] (3) Scaling and aligning the key points of the parameterized face model to make them consistent in size with the key points of the game character model. The three-dimensional face alignment is mainly divided into two parts: scaling and alignment of face key points and alignment of the parameterized face model with the target model face.
[0111] Preferably, the parameterized face model is scaled and aligned with the key points of the target model to obtain the rotation matrix R, the offset matrix T, and the scaling ratio S, and the obtained rotation matrix, offset matrix, and scaling ratio are respectively multiplied with each point in the parameterized face model to make the facial area of the parameterized face model and the target model consistent in size and the facial area of the parameterized face model and the target model close to each other.
[0112] Preferably, aligning the parameterized face model with the target model comprises the following steps: (1) for each point in the parameterized face model P, matching the point in the target face model Q that is closest to it; (2) calculating the rotation matrix and translation matrix that minimize the root mean square loss of all the matching points, and using the obtained rotation matrix and translation matrix to change the position of each point in the parameterized face model P; (3) repeating steps (1) and (2) until the average distance between the points in the parameterized face model and the points in the facial area of the target model is less than a given threshold. The formula is as follows:
[0113]
[0114] Among them, Qs represents the target face model, Q={q i} and P = {p i} represent each 3D point in the reconstructed parameterized face model and the game character model, respectively, and the rotation matrix R and translation matrix T are solved iteratively.
[0115] (4) Surface stitching: splicing the game character model after removing the facial area with the parameterized face model after scaling and alignment, and then using a stitching algorithm to fill the gap between the parameterized face model and the game character model after removing the facial part.
[0116] Preferably, the color texture of the parameterized face model is randomly sampled and averaged, and the color texture of the game character model is adjusted so that the average value of the color texture of the game character model is equal to the average value of the color texture of the parameterized face model, so that the game character model looks more coordinated. The three-dimensional coordinate points of the game character model after the facial area is removed and the coordinate points of the parameterized face model after scaling and alignment are spliced into the same point cloud. Then the remaining part of the game head is stitched with the parameterized face using Poisson reconstruction. The spliced data are used together as point cloud data input by the Poisson reconstruction algorithm, including the three-dimensional coordinate points of the game character model after the facial area is removed and the coordinate points of the parameterized face model after scaling and alignment. The Poisson reconstruction algorithm uses point cloud data to construct an indicator function to fit the surface morphology. The algorithm believes that the point cloud data represents the position of the object surface, and the normal vector of the point cloud represents the direction of the inner and outer boundaries of the object surface. The object surface can be obtained by solving the Poisson equation.
[0117] Specifically, for a three-dimensional object K, its surface boundary is By the indicator function χ K It can be seen that the function value of the internal point is set to 1, and at any point outside the object, the function value is set to 0. If the indicator function χ can be calculated K , we can know the approximate shape of the object K, and then find the surface of the object K. K As shown below:
[0118]
[0119] Since the indicator function χ K On the surface of the object The normal vector direction of the vertex is discontinuous, jumping from 0 to 1, and the gradient here is infinite. Therefore, it is necessary to convolve the indicator function through a smoothing filter to achieve the purpose of smoothing. It can be proved by divergence that the gradient of the indicator function after smoothing is equivalent to the surface normal field. The formula is as follows:
[0120]
[0121] In the formula, * represents the convolution operation. represents a smoothing filter, It represents a smooth translation from point s to point t. Represents the normal vector of object K, whose surface points to the inside of the object.
[0122] Since the points in the input point cloud are discontinuous, the normal vectors of some points S on the surface of the object may be unknown, so the object needs to be approximated in blocks. The formula is as follows:
[0123]
[0124] Where q is a point in the point set Q, carrying its position coordinate information qp and its normal vector information Smooth the translation from point s to point t. is through the spatial distribution using the point set Q It is divided into different local patches. In addition, the local patches do not overlap with each other. |Pq| is the area corresponding to each local patch.
[0125] However, the vector field Usually the integrability condition is not met, so it is necessary to reduce the restrictions and transform it into a least squares solution. The transformed formula is as follows:
[0126]
[0127] in is the Nabla operator, χK is the indicator function, Expressed as a vector field, since the above formula is a convex function, it can be seen from the variational Euler formula that when the function takes the minimum value, This equation is Poisson's equation. By solving this Poisson's equation, the surface of the object can be reconstructed. Figure 6 The following are the stitching effects using different parameterized models and different target models.
[0128] 4. An expression driving module, used to drive the twin digital human model through an expression driving algorithm.
[0129] Preferably, while keeping identity parameters, expression parameters, texture parameters, posture parameters, lighting parameters, etc. unchanged, the expression parameters are recorded and changed, thereby achieving expression-driven operation of the generated twin digital human.
[0130] Specifically, for autistic children who need social intervention, upload a facial image and use the facial parameter estimation network to estimate identity parameters, expression parameters, texture parameters, posture parameters, lighting parameters, expression parameters and other parameters to obtain a parametric face model. Use different expression parameters to generate multiple parametric faces. These parametric face models are fused and deformed to generate twin digital humans in FBX format. Clicking different shape keys can realize expression driving of the twin digital humans.
[0131] 5. Intervention module, used to use the generated twin digital human to conduct social skills intervention on the intervention subject (autistic children).
[0132] The system is mainly composed of two modules: one is the social politeness intervention module, and the other is the social expression intervention module. After the user logs in to the system to generate a twin digital human, he can enter the game interface. The intervention object (autistic child) can improve the social ability of the intervention object (autistic child) in different social scenarios by imitating the actions (social behavior) of the "first-person" twin digital human in different social scenarios, and has a certain maintenance effect.
[0133] The autism social skills intervention system based on twin digital humans can allow the intervention subjects (autistic children) to see "their own" social behaviors in different intervention social scenarios, avoid the problem of abnormal mirror neurons, and generate psychological hints that "I" can perform these "actions" in this social scenario. However, the traditional autism intervention system cannot avoid the problem of abnormal mirror neurons of the intervention subjects (autistic children) because the intervention subjects (autistic children) are in a "third-person" perspective, so the intervention effect is very limited.
[0134] Figure 7 , Figure 8Schematic diagram of using the system provided by the present invention to perform social intervention for children of different skin colors.
[0135] like Fig. 9 As shown, a social skills intervention method for children with autism based on twin digital humans in an embodiment of the present invention comprises the following steps:
[0136] S101, preprocessing the uploaded image to obtain a facial image;
[0137] S102, inputting the facial image into a trained facial parameter estimation network model to obtain facial parameters, and multiplying the facial parameters with a vector basis corresponding to the 3DMM to generate a parameterized face model;
[0138] S103, performing face replacement and stitching of the parameterized face model and the game character model to generate a twin digital human model;
[0139] S104, performing expression driving on the twin digital human model through an expression driving algorithm;
[0140] S105, using the twin digital human model to perform social skill intervention on the intervention subject.
[0141] The implementation principle and technical effects of the social skills intervention method for children with autism based on twin digital humans are the same as those of the social skills intervention system for children with autism based on twin digital humans, and will not be repeated here.
[0142] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A social skills intervention system for children with autism based on twin digital humans, characterized by: include: A facial image acquisition module is used to pre-process the uploaded image and acquire the facial image; A parameterized face model generation module, used for inputting the facial image into a trained facial parameter estimation network model, obtaining facial parameters, and multiplying the facial parameters with a vector basis corresponding to the 3DMM to generate a parameterized face model; A three-dimensional face replacement module, used to perform face replacement and stitching between the parameterized face model and the game character model to generate a twin digital human model; An expression driving module, used to drive the expression of the twin digital human model through an expression driving algorithm; An intervention module is used to use the twin digital human model to perform social skill intervention on the intervention subject.
2. The social skills intervention system for children with autism based on twin digital humans as claimed in claim 1, characterized in that: The training of the facial parameter estimation network model includes the steps of: repeatedly training the facial parameter estimation network model until the loss function is less than a preset threshold, wherein each training process includes: inputting a training sample image into the facial parameter estimation network model, obtaining facial parameters corresponding to the training sample image, multiplying the facial parameters of the image corresponding to the training sample with the vector basis corresponding to the 3DMM to generate a parameterized face model corresponding to the training sample image; inputting the training sample image into the trained depth estimation network to obtain a first depth map corresponding to the training sample; using a differentiable renderer to render the parameterized face model corresponding to the training sample image to render a second facial image and a second depth map; and calculating the loss function, which is a function that measures the difference between the second facial image and the training sample image, and the difference between the second depth map and the first depth map.
3. The social skills intervention system for children with autism based on twin digital humans as claimed in claim 2, characterized in that: The calculation formula of the loss function is: L=W d L d +W x L x +W p L p +W lm L lm +W reg L reg Wherein, L is the loss function, L d To measure the depth consistency loss of the difference between the first depth map and the second depth map, L x is the image rendering loss that measures the pixel difference between the second facial image and the training sample image, L p To measure the identity difference between the second facial image and the training sample image, L lm To measure the key point loss between the second facial image and the training sample image, L reg is the regularization loss, W d , W x , W p , W lm , W reg are the weight factors of these five losses respectively.
4. The social skills intervention system for children with autism based on twin digital humans as claimed in claim 3, characterized in that: IN x =2.0,W d =2.0,W p =0.8,W lm =0.5,W reg =10.0。 5. The social skills intervention system for children with autism based on twin digital humans as claimed in claim 1, characterized in that: The facial parameters include expression parameters, identity parameters, texture parameters, posture parameters and lighting parameters.
6. The social skills intervention system for children with autism based on twin digital humans as claimed in claim 1, characterized in that: The face replacement and stitching of the parameterized face model and the game character model comprises the following steps: Inputting the parameterized face model and the game character model into a three-dimensional face key point detection algorithm to perform key point detection respectively; Eliminating the facial area of the game character model; Scaling and aligning the key points detected by the parameterized face model to make them consistent in size with the key points of the game character model; The game character model after the facial area is removed is spliced with the parameterized face model after scaling and alignment, and then a Poisson reconstruction algorithm is used to sew the gap between the game character model and the parameterized face model.
7. The social skills intervention system for children with autism based on twin digital humans as claimed in claim 6, characterized in that: The step of removing the facial area of the game character model is removing 35% to 45% of the facial area of the game character model.
8. The social skills intervention system for children with autism based on twin digital humans as claimed in claim 6, characterized in that: Before splicing the game character model after removing the facial area and the parameterized face model after scaling and alignment, the color texture of the parameterized face model is randomly sampled and averaged, and the color texture of the game character model is adjusted so that the average value of the color texture of the game character model is equal to the average value of the color texture of the parameterized face model.
9. The social skills intervention system for children with autism based on twin digital humans as claimed in claim 1, characterized in that: The uploaded image is an image of the intervention object.
10. A social skills intervention method for children with autism based on twin digital humans, characterized in that: Includes steps: Preprocess the uploaded image to obtain the facial image; Input the facial image into the trained facial parameter estimation network model to obtain facial parameters, and multiply the facial parameters with the vector basis corresponding to the 3DMM to generate a parameterized face model; Performing face replacement and stitching of the parameterized face model and the game character model to generate a twin digital human model; Performing expression driving on the twin digital human model through an expression driving algorithm; The twin digital human model is used to conduct social skill intervention on the intervention subject.
Citation Information
Cited By
Multi-mode children autism intelligent screening method, system, equipment and medium
CN120878147A
Digital human image generation method and system based on 3D digital twinning dynamic interaction
CN121458845A
Social interaction behavior video image analysis method and system for autistic children
CN122348054A
Method and system for analyzing social gazing behavior image of autistic children
CN122436237A
