A visual interaction system based on multimodality
Through the multi-modal data fusion and strategy generation module, the problem of single interaction mode and rigid response strategy in the smart home interaction system is solved, and a natural, intelligent, humanized interaction experience and long-term and efficient interaction strategy adaptability are achieved.
Patent Information
- Application Number
- CN202411011287.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-26
AI Technical Summary
The existing smart home interaction system has a single interaction mode and cannot naturally integrate multiple natural interaction methods. It has insufficient intent recognition capabilities and rigid response strategies. It cannot dynamically generate personalized interaction strategies and cannot simulate human cognition and decision-making processes, resulting in an unnatural interaction experience. And it is difficult to maintain high standards for a long time.
Design a multi-modal visual interaction system that integrates the user's visual and voice data through the multi-modal data collection module, data processing module, modal fusion module, intent planning module, weight adjustment module and strategy generation module to generate Personalized interaction strategies simulate human cognition and decision-making processes, and have self-learning and optimization capabilities.
It achieves a natural, intelligent, and humanized human-computer interaction experience, can accurately capture user intentions, dynamically generate personalized interaction strategies, adapt to new interaction scenarios and user habits, and ensure a high-level interaction experience during long-term use.
Smart Images

Figure CN118535023B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of visual interaction technology, and more specifically, to a multimodal visual interaction system. Background Art
[0002] The patent with authorization announcement number CN113687715A discloses a human-computer interaction system and interaction method based on computer vision, including obtaining body shape video data of the target interaction object; performing feature matching between data parameters and a preset interaction database; locating the camera and the target interaction object in the human-computer interaction interface; tracking the head and face of the target interaction object, analyzing facial expressions, tracking eye gaze, tracking the body, and tracking hands by calculating and analyzing the feature quantities of the target interaction object and performing similarity matching on the image feature quantities, so as to ensure the human-computer interaction effect on the target interaction object.
[0003] However, the existing smart home interaction system still has a single interaction mode and cannot naturally integrate multiple natural interaction methods, making the interaction process monotonous and boring; secondly, the intention recognition ability is insufficient, and it is unable to accurately capture the real intentions expressed by users in various ways, resulting in a deviation between the response of the home terminal and the actual needs of the user, which greatly reduces the interaction experience; in addition, the response strategy of the existing system is often rigid and single, and it is unable to dynamically generate personalized interaction strategies according to the specific context, and the system feedback often cannot meet the actual needs and habitual preferences of the user; at the same time, it is unable to simulate human cognition and decision-making processes, and there is a clear gap between the interaction strategy and people's ideas, making the interaction process appear stiff and unnatural, and it is impossible to continuously learn and optimize the interaction strategy. Once the application scenario or user habits change, the user's interaction experience will decline rapidly, and it is difficult to continue to provide a high level of interaction experience during long-term use, which brings many inconveniences to users.
[0004] In view of this, the present invention proposes a multi-modal visual interaction system to solve the above problems. Summary of the invention
[0005] In order to overcome the above defects of the prior art and to achieve the above objectives, the present invention provides the following technical solutions: A visual interaction system based on multimodality, comprising: a multimodal data acquisition module, for collecting user's visual modality data and user voice command data;
[0006] The data processing module is used to pre-process the visual modality data to obtain visual features, and perform voice recognition on the user voice command data to obtain voice command text features;
[0007] The modal fusion module is used to fuse the visual features and the voice command text features to construct a multimodal fusion feature vector;
[0008] The intention planning module obtains N types of user interaction intention categories based on the multimodal fusion feature vector and the constructed intention classification model;
[0009] A weight adjustment module adjusts the weight of the multimodal fusion feature vector based on the user interaction intention category to obtain an adjusted multimodal fusion feature vector;
[0010] The strategy generation module is used to input the adjusted multimodal fusion feature vector into the constructed interaction strategy generation model to obtain the interaction strategy, and send the interaction strategy to the human-computer interaction terminal; each module is connected by wired and / or wireless means.
[0011] Further, the visual modality data includes a user's facial image sequence and hand shape point cloud data;
[0012] The method of acquiring the user face image sequence includes:
[0013] A user image is obtained through the terminal camera and recorded as an initial image; the initial image is input into an adaptive target detection algorithm based on deep learning to obtain an initial facial bounding box;
[0014] The method of obtaining the initial facial bounding box includes:
[0015] The Faster R-CNN network is used as the basic network of the adaptive target detection algorithm, and the initial image is scaled to the input size of the basic network; the initial image is normalized to obtain a preliminary detection image;
[0016] The basic network includes a region proposal network and a region convolution network. The preliminary detection image is input into the region proposal network for binary classification to obtain a foreground anchor frame. The foreground anchor frame is input into the region convolution network, which cuts out a regional feature map from the preliminary detection image according to the foreground anchor frame, performs maximum pooling on the regional feature map, and obtains a regional feature vector of a fixed length. The regional feature vector is input into the fully connected layer for classification and bounding box regression to obtain an initial facial bounding box.
[0017] The initial facial bounding box is processed to obtain a facial area image; the facial area image is saved as the first frame facial image to a preset initialized facial image sequence, the initial image is continuously acquired from the camera, and the facial area image is repeatedly acquired for the new initial image; the newly acquired facial area image is appended to the end of the facial image sequence and continuously updated to obtain a user facial image sequence.
[0018] Furthermore, the method of inputting the preliminary detection image into the region proposal network for binary classification to obtain the foreground anchor frame includes:
[0019] Slide a small network at different positions and scales of the preliminary detection image to obtain the feature map F, and generate the initial anchor frame based on the feature map F and the preset anchor frame size and anchor frame aspect ratio;
[0020] For each initial anchor box , define its sampling weight , based on the pre-collected target frame training data, if the initial anchor frame If the overlap value with any real target box is greater than the preset positive sample overlap threshold, it is taken as a positive sample; for positive samples, its sampling weight is set ;
[0021] The overlap value is the initial anchor box The intersection area with the true target box divided by the initial anchor box The area of the union of the real target box and the real target box;
[0022] If the initial anchor frame If the overlap value with all real target boxes is less than the preset negative sample overlap threshold, it will be regarded as a negative sample; for negative samples, its sampling weight is set ,in, is the initial anchor box With the real target box Overlap value of Indicates that in the real target box Take the maximum value; is a hyperparameter;
[0023] The initial anchor frames assigned with sampling weights constitute the adjusted anchor frame set A, and the adjusted anchor frame set A is used for binary classification to obtain the foreground anchor frame.
[0024] Furthermore, the anchor frame size and the anchor frame aspect ratio are preset in the following manners:
[0025] The feature graph F is constructed as an undirected graph G=(V, E), where the node set V corresponds to the spatial position on the feature graph, and the edge E represents the connection relationship between the nodes;
[0026] For each node, the feature vector of its corresponding position is used as the initial node feature; the graph convolution layer is used to capture the correlation between nodes based on the edge E, and the node features are updated; the update formula is:
[0027] ;in, Representation Node The set of nodes in the neighborhood of Indicates The learnable weight matrix of the layer graph convolution, Indicates The bias of the layer graph convolution, is a nonlinear activation function, Is a node and nodes The edge between is the edge feature encoding function, represents element-wise product; Indicated in Layer, node The updated node features, Indicated in Layer, node Node characteristics;
[0028] After L layers of graph convolution, the final node features of all nodes are aggregated to obtain the context feature C; the context feature C and the feature graph F are element-wise multiplied to obtain the adjusted feature representation F';
[0029] Based on the adjusted feature representation F', the anchor box parameters are predicted, including the anchor box size and aspect ratio.
[0030] Furthermore, the method for acquiring the hand shape point cloud data includes:
[0031] The depth image data of the user's hand is obtained by using the depth camera or RGB-D camera of the terminal; the obtained depth image data is processed to obtain the hand depth data;
[0032] Each pixel in the hand depth data corresponds to a depth value. By calculating the internal and external parameters of the depth camera, the two-dimensional coordinates and depth values of the pixel points are converted into three-dimensional space coordinates to generate a point cloud.
[0033] The generated point cloud is downsampled using adaptive voxel grid filtering to obtain a preliminary comprehensive point cloud;
[0034] Use hand detection and segmentation algorithms to segment the hand area point cloud from the preliminary comprehensive point cloud;
[0035] The down sampling method includes:
[0036] Initialize a voxel grid's resolution , calculate the bounding box of the point cloud, obtain the size of the bounding box, preset the upper and lower thresholds for resizing, and if the size of the bounding box is greater than or equal to the upper threshold for resizing, adjust the resolution of the voxel grid to ;
[0037] ;in, is a control coefficient; is the mean size of the bounding box, is the standard deviation of the size of the bounding box; Speed control coefficient; is the speed of point cloud movement, is the maximum size of the bounding box;
[0038] If the bounding box size is less than the resize lower threshold, the resolution of the voxel grid is resized to ;
[0039] ;in, is the miniaturization control coefficient, is the size control coefficient;
[0040] According to the adjusted resolution, the entire three-dimensional space is re-divided into a regular voxel grid;
[0041] Count the number of point clouds in each voxel grid, traverse each point in the point cloud, use the spatial hash table to accelerate the point query to the voxel grid, and accumulate the point counter of the corresponding voxel grid; the preset voxel count threshold is ;in, Adjust parameters for threshold;
[0042] Filter out the voxel grids with less than the voxel count threshold. For the voxel grids with points greater than or equal to the voxel count threshold, calculate the geometric centroid of all points in the voxel grid as the representative point, and gather all the representative points together to obtain a preliminary comprehensive point cloud.
[0043] The geometric centroid is calculated as: ;in, Yes The Euclidean distance to the center of the voxel grid, is the index of the point, is the attenuation control parameter, is the number of all points in the point cloud; For point The geometric centroid of .
[0044] Further, the visual features include facial features and gesture features;
[0045] The method of preprocessing the visual modality data includes:
[0046] The user's facial image sequence is used with the constructed key point detection model to output the coordinates of a series of key points on the user's face, and the coordinates of the series of key points are used as facial geometric features;
[0047] The user's face image sequence is modeled using the AAM statistical method to obtain facial texture parameters as facial texture features;
[0048] The user's facial image sequence is used to obtain facial motion information using an optical flow estimation method, and facial dynamic features are extracted from the facial motion information;
[0049] Facial geometric features, facial texture features and facial dynamic features are fused at vector level to obtain facial features.
[0050] The key point detection model is constructed in the following manner:
[0051] Define the encoder of the key point detection model, use the VGG-19 network as the backbone network of the encoder, perform feature encoding on the facial region image in the input user facial image sequence, and obtain the feature tensor E;
[0052] Define a key point detection model that cascades m1 regression structures of the same structure. Each regression structure consists of an upsampling layer, a convolution layer, and a regression layer. The upsampling layer is used to process the feature tensor E to obtain a high-resolution feature map. The high-resolution feature map is processed using m2 3x3 convolution layers, and the output of the current regression structure is added to the output of the previous regression structure to obtain a fused feature map. The regression layer uses a 1x1 convolution kernel to regress the fused feature map and outputs a predicted heat map with the same number of face key points.
[0053] The loss function of the key point detection model is defined as a smooth L1 loss function with a Gaussian kernel. The loss value is calculated between the predicted heat map and the actual heat map of each key point. The loss value is the average of the sum of the loss function values of all key points.
[0054] n5 groups of actual heat maps with labeled facial key points are used as the data set for training the key point detection model. A multi-step descent learning rate scheduling is adopted, and the parameters are optimized during the training process of the key point detection model to obtain the constructed key point detection model.
[0055] Furthermore, the voice command text feature is obtained in the following manner:
[0056] The text is recognized from the user's voice command data, and the text is encoded to obtain the corresponding semantic feature vector as the voice command text feature;
[0057] The method of encoding the text includes:
[0058] The text is segmented according to a predefined vocabulary to obtain a word-unit sequence; a [CLS] word is added at the beginning of the word-unit sequence, and a [SEP] word is added at the end of the word-unit sequence; a unique digital ID is assigned to each word-unit in the word-unit sequence, and the digital ID corresponding to each word-unit is obtained by querying the vocabulary; and a word-unit ID sequence is obtained;
[0059] Input the word unit ID sequence into the XLNet model, query the word embedding matrix for the input word unit ID sequence, obtain the corresponding word unit embedding vector, and obtain the word unit embedding sequence;
[0060] The XLNet model consists of a series of translation encoder layers connected together, each of which contains a self-attention mechanism and a feed-forward neural network.
[0061] The XLNet model uses a bidirectional encoding method. After being processed by a series of translation encoder layers, it outputs the hidden state vector of each position in the word ID sequence and concatenates the hidden state vectors to obtain the semantic feature vector.
[0062] Furthermore, the method of acquiring the user's interaction intention category includes:
[0063] The multimodal fusion feature vector Mapped to the reproducing kernel Hilbert space, we get the high-dimensional space eigenvector, where and Represent visual features and voice command text features respectively;
[0064] Define N4 interactive tasks, and obtain n_t samples for each interactive task. The samples contain input data and corresponding labels.
[0065] The gated recurrent unit is used as the basic network of the intent classification model. One or m4 fully connected hidden layers are added after the fully connected layer of the gated recurrent unit. For each fully connected hidden layer, the output of the previous fully connected hidden layer is used as input for full connection calculation. The formula for full connection calculation is: ;in, is the output of the current fully connected hidden layer, is the weight matrix, is the output of the previous fully connected hidden layer, is the bias vector;
[0066] After the full connection calculation, the last fully connected hidden layer output Apply a nonlinear activation function to obtain a fully connected output;
[0067] The fully connected output is used as the input of the output layer, and linear transformation and Softmax normalization are performed to obtain the probability distribution of the intent category;
[0068] Define the classification loss function for the intent classification model ;
[0069] ,in, The sample belongs to The predicted probability of the class intent category, The sample belongs to Difficulty of class intent, is the focus parameter, The sample belongs to The weight value of the class intent category;
[0070] ;in, is a constant greater than 0, is a difficulty threshold;
[0071] Use samples of N4 interactive tasks to train N4 gated recurrent units, initialize the parameters of the basic network, calculate the output of each layer in turn according to the network structure of the basic network, calculate the gradient according to the classification loss function, and use the optimization algorithm to update the parameters of the basic network. Save the parameters of the last updated basic network and integrate all gated recurrent units to obtain the final constructed intent classification model.
[0072] The intent threshold is preset, and the high-dimensional space feature vector is input into the intent classification model to obtain n6 intent probabilities. The intent categories corresponding to the intent probabilities greater than the intent threshold are retained, which are the N interaction intention categories of the user.
[0073] Furthermore, the method of weighting the multimodal fusion feature vector includes:
[0074] Assign a weight value to each interaction intent category and construct an N-dimensional intent weight vector , the intention weight vector In Elements Indicates The weight of the interaction intention category;
[0075] Will Intent Weight Vector Perform element-by-element multiplication to obtain the adjusted multimodal fusion feature vector.
[0076] Furthermore, the acquisition method of the interaction strategy includes:
[0077] Collect m5 groups of visual modality data and voice command data of users within a fixed period of time in history, record them as historical training data, and label the historical training data, where the labels are the corresponding interaction strategies;
[0078] Construct a multimodal fusion feature vector based on historical training data, record it as a historical multimodal fusion feature vector, and use the historical multimodal fusion feature vector and the corresponding interaction strategy as model training data;
[0079] Define the interactive strategy generation model including the generation network and the discrimination network;
[0080] The network structure of the generation network adopts a sequence generation network based on RNN, which includes an encoder, an attention mechanism, and a decoder;
[0081] The input of the generative network is a multimodal fusion feature vector, and the output is a candidate interaction strategy sequence;
[0082] The network structure of the discriminant network adopts a sequence classification model based on a convolutional neural network, which includes an embedding layer, an LSTM or GRU layer, and a fully connected layer;
[0083] The input of the discriminant network is the candidate interaction strategy sequence output by the generating network, and the output is the probability of the candidate interaction strategy sequence;
[0084] By alternately fixing the parameters of the discriminant network or the generative network, the parameters of the interactive strategy generation model are optimized using the model training data; until the discriminant network and the generative network converge; and the constructed interactive strategy generation model is obtained;
[0085] The adjusted multimodal fusion feature vector is input into the constructed interaction strategy generation model to obtain the probability distribution of the interaction strategy, and the interaction strategy with the highest probability in the probability distribution is extracted and output as the final interaction strategy.
[0086] The technical effects and advantages of the multi-modal visual interaction system of the present invention are as follows:
[0087] The present invention realizes a more natural, intelligent and humanized human-computer interaction experience, can integrate the interaction modes of users' facial expressions, gestures and voice commands, breaks the limitations of traditional single-modal interaction, can accurately capture users' interaction intentions, and dynamically generate personalized interaction strategies according to specific contexts, effectively avoiding rigid and single response methods. No matter whether users express their needs through facial micro-expressions, gestures or voice commands, they can understand and make reasonable feedback freely. While improving the intelligence of interaction, the model has been trained with a large amount of real data, and can better simulate human cognition and decision-making processes, so that the interaction strategy is more in line with people's habits and expectations; in addition, it also has the ability of self-learning and continuous optimization, can continuously adapt to new interaction scenarios and user habits, and ensure a high level of interaction experience during long-term use. BRIEF DESCRIPTION OF THE DRAWINGS
[0088] Figure 1 A schematic diagram of a multi-modal visual interaction system according to the present invention;
[0089] Figure 2 It is a schematic diagram of a multimodal visual interaction method of the present invention. DETAILED DESCRIPTION
[0090] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.
[0091] Example 1
[0092] See also Figure 1 As shown, the visual interaction system based on multimodality described in this embodiment includes: a multimodal data acquisition module, which is used to collect the user's visual modality data and the user's voice command data;
[0093] The data processing module is used to pre-process the visual modality data to obtain visual features, and perform voice recognition on the user voice command data to obtain voice command text features;
[0094] The modal fusion module is used to fuse the visual features and the voice command text features to construct a multimodal fusion feature vector;
[0095] The intention planning module obtains N types of user interaction intention categories based on the multimodal fusion feature vector and the constructed intention classification model;
[0096] A weight adjustment module adjusts the weight of the multimodal fusion feature vector based on the user interaction intention category to obtain an adjusted multimodal fusion feature vector;
[0097] The strategy generation module is used to input the adjusted multimodal fusion feature vector into the constructed interaction strategy generation model to obtain the interaction strategy, and send the interaction strategy to the human-computer interaction terminal; each module is connected by wired and / or wireless means to realize data transmission between modules.
[0098] Furthermore, the visual modality data includes a user facial image sequence and hand shape point cloud data; the user voice command data is acquired using a built-in microphone or an external microphone.
[0099] The method of acquiring the user face image sequence includes:
[0100] The user image is obtained through the terminal camera and recorded as the initial image; the initial image is input into the adaptive target detection algorithm based on deep learning to obtain the initial facial bounding box, and the user's face is detected accordingly.
[0101] The method of obtaining the initial facial bounding box includes:
[0102] The Faster R-CNN network is used as the base network of the adaptive target detection algorithm. The initial image is scaled to the input size of the base network, usually a smaller size, to speed up the detection. The initial image is normalized and the pixel values are scaled to the range of 0-1 to obtain a preliminary detection image.
[0103] The basic network includes a region proposal network and a region convolution network; the preliminary detection image is input into the region proposal network for binary classification to obtain a foreground anchor frame; the foreground anchor frame is input into the region convolution network, the region convolution network crops a regional feature map from the preliminary detection image according to the foreground anchor frame, performs maximum pooling on the regional feature map, and obtains a regional feature vector of a fixed length; the regional feature vector is input into the fully connected layer for classification (determining whether it is a face) and bounding box regression to obtain an initial facial bounding box.
[0104] The initial facial bounding box is processed to obtain a facial area image; such as resizing, image enhancement, etc., to meet the requirements of subsequent processing; the facial area image is used as the first frame of facial image, saved to a preset initialized facial image sequence, the initial image is continuously acquired from the camera, and the facial area image is repeatedly acquired for the new initial image; the newly acquired facial area image is appended to the end of the facial image sequence, and continuously updated to obtain a user facial image sequence.
[0105] Specifically, a small network (such as a ZF network or a VGG network) is slid on different positions and scales of the preliminary detection image to obtain a feature map F, and an initial anchor frame is generated based on the feature map and a preset anchor frame size and anchor frame aspect ratio.
[0106] The preset methods for anchor box size and anchor box aspect ratio include:
[0107] Use a graph convolutional network to capture the contextual features C of the feature map F; perform element-wise multiplication of the contextual features C and the feature map F to obtain the adjusted feature representation F';
[0108] Specifically, the feature graph F is constructed as an undirected graph G=(V, E), where the node set V corresponds to the spatial position on the feature graph, and the edge E represents the connection relationship between the nodes; usually 4-neighborhood or 8-neighborhood is used to construct the edge E, which represents the spatial proximity relationship between the nodes.
[0109] For each node, the feature vector of its corresponding position is used as the initial node feature; the graph convolution layer is used to capture the correlation between nodes based on the edge E, and the node features are updated; the update formula is:
[0110] ;in, Representation Node The set of nodes in the neighborhood of Indicates The learnable weight matrix of the layer graph convolution, Indicates The bias of the layer graph convolution, is a nonlinear activation function, Is a node and nodes The edge between is the edge feature encoding function, represents element-wise product; Indicated in Layer, node The updated node features, Indicated in Layer, node Node features.
[0111] After L layers of graph convolution, the final node features of all nodes are aggregated to obtain the context feature C;
[0112] Based on the adjusted feature representation F', the anchor box parameters are predicted, including the anchor box size and aspect ratio.
[0113] Ways to predict anchor box parameters include:
[0114] The prediction network is defined to include an anchor box size prediction head and an anchor box aspect ratio prediction head. The anchor box size prediction head predicts the anchor box size s, and the anchor box aspect ratio prediction head predicts the anchor box aspect ratio r. Each anchor box size prediction head and anchor box aspect ratio prediction head is composed of one or N1 fully connected layers.
[0115] The last fully connected layer of the anchor box size prediction head uses a linear activation function to obtain continuous size values, and the last fully connected layer of the anchor box aspect ratio prediction head uses a Sigmoid activation function to limit the aspect ratio to the value range (0, 1).
[0116] The loss functions of the anchor box size prediction head and the anchor box aspect ratio prediction head are both defined as smooth L1 loss functions. The weight parameters of the prediction network are trained using the labeled training data through the back propagation algorithm and optimizer (such as SGD, Adam, etc.); the labeled training data is divided into batches, and training is performed by batches. The total smooth L1 loss function value of the entire batch is calculated, and the training is completed when the total smooth L1 loss function value is minimized, thereby obtaining a trained prediction network.
[0117] The labeled training data includes an input image and corresponding anchor box parameter true values (including size and aspect ratio);
[0118] Input the adjusted feature representation F' into the prediction network to obtain the anchor box parameters;
[0119] Using the predicted anchor box size s and aspect ratio r, the adjusted anchor box is generated according to the preset reference anchor box, which is recorded as the initial anchor box. .
[0120] For each initial anchor box , define its sampling weight , based on the pre-collected target frame training data, if the initial anchor frame If the overlap value with any real target box is greater than the preset positive sample overlap threshold (usually 0.5 or 0.7), it is taken as a positive sample; for positive samples, its sampling weight is set ; The target box training data contains a large number of images with target bounding boxes labeled. Each image is labeled with the bounding box coordinates of one or more targets; these bounding boxes are the real target boxes;
[0121] The overlap value is the initial anchor box The intersection area with the true target box divided by the initial anchor box The union area of the true target box.
[0122] If the initial anchor frame If the overlap value with all true target boxes is less than the preset negative sample overlap threshold (usually 0.3), it is considered a negative sample; for negative samples, its sampling weight is set ,in, is the initial anchor box With the real target box Overlap value of Indicates that in the real target box Take the maximum value; It is a hyperparameter used to control the decay rate of negative sample weights, and its value range is usually [1, 4].
[0123] The initial anchor frames assigned with sampling weights constitute the adjusted anchor frame set A, and the adjusted anchor frame set A is used for binary classification to obtain the foreground anchor frame.
[0124] Furthermore, the method for acquiring the hand shape point cloud data includes:
[0125] The depth image data of the user's hand is obtained by using the terminal's depth camera or RGB-D camera; the obtained depth image data is subjected to de-mixing processing, which includes removing background noise and filling holes to obtain cleaner and more complete hand depth data.
[0126] Convert the hand depth data into 3D point cloud data; each pixel in the hand depth data corresponds to a depth value. By calculating the internal and external parameters of the depth camera, the two-dimensional coordinates and depth values of the pixel points are converted into three-dimensional space coordinates to generate a point cloud;
[0127] The generated point cloud is downsampled using adaptive voxel grid filtering to reduce the point cloud density and the amount of calculation for subsequent processing, thus obtaining a preliminary comprehensive point cloud.
[0128] The hand region point cloud is segmented from the preliminary comprehensive point cloud using a hand detection and segmentation algorithm. For example, the geometric shape constraints of the palm and fingers, such as the palm is elliptical and the fingers are cylindrical, are used to extract clusters that meet these constraints from the point cloud data as the hand region point cloud;
[0129] The down sampling method includes:
[0130] Initialize a voxel grid's resolution (voxel edge length), preset to a small percentage of the point cloud geometry size;
[0131] Calculate the bounding box of the point cloud, obtain the size of the bounding box, preset the upper and lower thresholds for resizing, and if the size of the bounding box is greater than or equal to the upper threshold for resizing, adjust the resolution of the voxel grid to ;
[0132] ;in, It is a control coefficient used to adjust the degree of increase, usually with a value of 0.5 to 2; is the mean size of the bounding box, is the standard deviation of the size of the bounding box, which is obtained by pre-calculating the multi-frame point cloud statistics; Speed control coefficient; is the speed of the point cloud movement (calculated as the displacement between consecutive frames), The maximum size of the bounding box.
[0133] If the bounding box size is less than the resize lower threshold, the resolution of the voxel grid is resized to ;
[0134] ;in, is the miniaturization control coefficient, is the size control coefficient, used to adjust the degree of reduction;
[0135] According to the adjusted resolution, the entire 3D space is re-divided into a regular voxel grid.
[0136] Count the number of point clouds in each voxel grid, traverse each point in the point cloud, use the spatial hash table to accelerate the point query to the voxel grid, and accumulate the point counter of the corresponding voxel grid; the preset voxel count threshold is ;in, Adjust parameters for threshold;
[0137] Filter out the voxel grids with less than the voxel count threshold. For the voxel grids with points greater than or equal to the voxel count threshold, calculate the geometric centroid of all points in the voxel grid as the representative point, and gather all the representative points together to obtain a preliminary comprehensive point cloud.
[0138] The geometric centroid is calculated as: ;in, Yes The Euclidean distance to the center of the voxel grid, is the index of the point, is the attenuation control parameter, which is used to adjust the attenuation rate of the weight. is the number of all points in the point cloud; For point The geometric centroid of .
[0139] Further, the visual features include facial features and gesture features;
[0140] The method of preprocessing the visual modality data includes:
[0141] The user's facial image sequence is used with the constructed key point detection model to output the coordinates of a series of key points on the user's face, and the coordinates of the series of key points are used as facial geometric features;
[0142] The user's face image sequence is modeled using the AAM statistical method to obtain facial texture parameters as facial texture features.
[0143] Specifically, a series of key points are marked on the facial area image at each time step in the user's facial image sequence, such as the coordinates of feature points at eyebrows, eyes, nose, mouth, etc.; based on the marked key points, affine transformation or other types of image registration are performed on the facial area image at each time step to align all facial area images to a unified standard coordinate system.
[0144] A certain number of face images with key points annotated are collected as training sets. Principal component analysis (PCA) is performed on the face images in the training set to obtain the shape principal component. The face images in the training set are photometrically normalized and then PCA is performed again to obtain the texture principal component. The shape principal component and the texture principal component are combined to construct the AAM model.
[0145] Input the aligned user facial image sequence into the AAM model to obtain the shape parameters and texture parameters of the facial region image at each time step; the shape parameters describe the changes in the facial contour and key point positions, and the texture parameters describe the changes in the facial texture, such as wrinkles, skin color, etc.
[0146] From the obtained shape parameters and texture parameters, the main components representing the changes in facial texture are selected, and the main components are used as facial texture features to represent the current state of the user's facial texture.
[0147] The user's facial image sequence is used to obtain facial motion information using the optical flow estimation method, and facial dynamic features are extracted from the facial motion information.
[0148] Specifically, the optical flow field is calculated for the facial area images between adjacent time steps (using optical flow estimation algorithms such as Lucas-Kanade, Horn-Schunck, etc.) to obtain the motion vector of each pixel. The optical flow field describes the motion state of each key point in the image between adjacent time steps.
[0149] The optical flow field is used to track the annotated key points. The motion trajectory of the key points in the user's facial image sequence is calculated based on the displacement of the key points between adjacent time steps. Based on the motion trajectory, the shape change of the face between adjacent time steps is calculated.
[0150] The shape change calculation method is a facial deformation estimation method based on triangular meshes, which extracts the main modes of facial deformation, such as raised eyebrows and raised corners of the mouth.
[0151] Based on the motion trajectory of the key points, motion feature parameters are extracted, and the motion feature parameters include motion speed, acceleration and trajectory curvature;
[0152] The main modes of facial deformation and motion feature parameters are integrated to construct complete facial dynamic features.
[0153] The facial geometric features, facial texture features and facial dynamic features are fused at the vector level to obtain the final facial features.
[0154] The key point detection model is constructed in the following manner:
[0155] Define the encoder of the key point detection model, use the VGG-19 network as the backbone network of the encoder, perform feature encoding on the facial region image in the input user facial image sequence, and obtain the feature tensor E;
[0156] Define the key point detection model to cascade m1 regression structures of the same structure. Each regression structure consists of an upsampling layer, a convolution layer, and a regression layer. The upsampling layer is used to process the feature tensor E to obtain a high-resolution feature map. The high-resolution feature map is processed using m2 3x3 convolution layers, and the output of the current regression structure is added to the output of the previous regression structure to fuse features of different scales to obtain a fused feature map. The regression layer uses a 1x1 convolution kernel to regress the fused feature map and outputs a predicted heat map with the same number of facial key points.
[0157] The loss function of the key point detection model is defined as a smooth L1 loss function with a Gaussian kernel. The loss value is calculated between the predicted heat map and the actual heat map of each key point, and the loss value is the average of the sum of the loss function values of all key points.
[0158] n5 groups of actual heat maps with labeled facial key points are used as the data set for training the key point detection model. A multi-step descent learning rate scheduling is adopted, and the parameters are optimized during the training process of the key point detection model to obtain the constructed key point detection model.
[0159] Furthermore, the voice command text feature is obtained in the following manner:
[0160] The text is recognized from the user's voice command data, and the text is encoded to obtain the corresponding semantic feature vector as the voice command text feature.
[0161] The method of encoding the text includes:
[0162] Segment the text according to a predefined vocabulary to obtain word-unit sequences; for example, the text "Hello, the weather is nice today" may be segmented into ["you", "good", "," "today", "weather", "nice"];
[0163] Adding [CLS] token at the beginning of a token sequence indicates the beginning of a sentence, and adding [SEP] token at the end of a token sequence indicates the end of a sentence; for example, the above token sequence becomes: ["[CLS]", "you", "good", ","", "today", "weather", "good", "[SEP]"];
[0164] Assign a unique digital ID to each word in the word-word sequence, and obtain the digital ID corresponding to each word-word by querying the vocabulary (vocab); obtain the word-word ID sequence;
[0165] Input the word unit ID sequence into the XLNet model, query the word embedding matrix for the input word unit ID sequence, obtain the corresponding word unit embedding vector, and obtain the word unit embedding sequence;
[0166] The XLNet model is composed of a series of translation encoder layers, each of which contains a self-attention mechanism and a feed-forward neural network. The self-attention mechanism can capture the dependencies between words in the word embedding sequence, and the feed-forward neural network performs nonlinear mapping on the representation of each position in the word embedding sequence to extract higher-order features.
[0167] The XLNet model uses a bidirectional encoding method. After being processed by a series of translation encoder layers, it outputs the hidden state vector of each position in the word ID sequence and concatenates the hidden state vectors to obtain the semantic feature vector.
[0168] The method of fusing visual features and voice command text features is vector-level concatenation to obtain a multimodal fusion feature vector.
[0169] Furthermore, the method of obtaining the user's interaction intention category includes:
[0170] The multimodal fusion feature vector Mapped to the reproducing kernel Hilbert space, we get the high-dimensional space eigenvector, where and Represent visual features and voice command text features respectively;
[0171] Define N4 interactive tasks, and obtain n_t samples for each interactive task. The samples contain input data (high-dimensional space feature vectors) and corresponding labels (intent categories). For example, common human-computer interaction intentions include controlling multimedia playback, taking photos, and querying information.
[0172] The gated recurrent unit is used as the basic network of the intent classification model. One or m4 fully connected hidden layers are added after the fully connected layer of the gated recurrent unit. For each fully connected hidden layer, the output of the previous fully connected hidden layer is used as input for full connection calculation. The formula for full connection calculation is: ;in, is the output of the current fully connected hidden layer, is the weight matrix, is the output of the previous fully connected hidden layer, is the bias vector;
[0173] After the full connection calculation, the last fully connected hidden layer output Apply a nonlinear activation function to obtain a fully connected output;
[0174] The fully connected output is used as the input of the output layer, and linear transformation and Softmax normalization are performed to obtain the probability distribution of the intent category;
[0175] Define the classification loss function for the intent classification model ;
[0176] ,in, The sample belongs to The predicted probability of the class intent category, The sample belongs to Difficulty of class intent, is the adjustable focus parameter, The sample belongs to The weight value of the class intent category is set according to factors such as the importance and difficulty of the sample;
[0177] ;in, is a constant greater than 0, is a difficulty threshold; It can be defined in various ways, for example, by weighting the confidence prediction value of the sample, the loss value of the sample, and the annotation quality of the sample based on the model;
[0178] Use samples of N4 interactive tasks to train N4 gated recurrent units, initialize the parameters of the basic network, calculate the output of each layer in turn according to the network structure of the basic network, calculate the gradient according to the classification loss function, and use an optimization algorithm (such as Adam) to update the parameters of the basic network. Save the parameters of the last updated basic network, and integrate all gated recurrent units to obtain the final constructed intent classification model;
[0179] The intent threshold is preset, and the high-dimensional space feature vector is input into the intent classification model to obtain n6 intent probabilities. The intent categories corresponding to the intent probabilities greater than the intent threshold are retained, which are the N interaction intention categories of the user.
[0180] Furthermore, the method of weighting the multimodal fusion feature vector includes:
[0181] Assign a weight value to each interaction intent category and construct an N-dimensional intent weight vector , the intention weight vector In Elements Indicates The weights of the interaction intent categories are pre-set or learned by the model on the training data. For some intent categories, if you want the model to pay more attention to the visual modality features, you will give a higher weight to the visual features; for other intent categories, you will pay more attention to the voice command features and give a higher weight to the voice features.
[0182] Will Intent Weight Vector Perform element-by-element multiplication to obtain the adjusted multimodal fusion feature vector.
[0183] Furthermore, the acquisition method of the interaction strategy includes:
[0184] Collect m5 groups of visual modality data and voice command data of users within a fixed period of time in history, record them as historical training data, and label the historical training data with labels, where the labels are the corresponding interaction strategies (corresponding to different interaction intentions, the specific operation strategy sequences to be executed);
[0185] Construct a multimodal fusion feature vector based on historical training data, record it as a historical multimodal fusion feature vector, and use the historical multimodal fusion feature vector and the corresponding interaction strategy as model training data;
[0186] Define the interactive strategy generation model including the generation network and the discrimination network;
[0187] The network structure of the generation network adopts an RNN-based sequence generation network. The sequence generation network includes an encoder, an attention mechanism, and a decoder. The encoder uses a bidirectional LSTM or GRU to encode the multimodal fusion feature vector to obtain a semantic vector representation; the attention mechanism is used to calculate the attention weights of the semantic vector representation and the generated partial interaction strategies; the decoder uses LSTM or GRU to generate the interaction strategy sequence according to the attention weights;
[0188] The input of the generative network is a multimodal fusion feature vector, and the output is a candidate interaction strategy sequence;
[0189] The network structure of the discriminant network adopts a sequence classification model based on a convolutional neural network. The sequence classification model includes an embedding layer, an LSTM or GRU layer, and a fully connected layer. The embedding layer converts the candidate interaction strategy sequence into a word vector sequence. The LSTM or GRU layer encodes the word vector sequence to obtain a strategy semantic vector. The fully connected layer maps the strategy semantic vector to a classification probability.
[0190] The input of the discriminant network is the candidate interaction strategy sequence output by the generating network, and the output is the probability of the candidate interaction strategy sequence;
[0191] By alternately fixing the parameters of the discriminant network or the generative network, the parameters of the interactive strategy generation model are optimized using the model training data; until the discriminant network and the generative network converge, and the strategy generated by the generative network can pass the discriminant network test with a high probability; thus, the constructed interactive strategy generation model is obtained;
[0192] The adjusted multimodal fusion feature vector is input into the constructed interaction strategy generation model to obtain the probability distribution of the interaction strategy, and the interaction strategy with the highest probability in the probability distribution is extracted and output as the final interaction strategy.
[0193] This embodiment realizes a more natural, intelligent and user-friendly human-computer interaction experience, and can integrate the interaction modes of users' facial expressions, gestures and voice commands, breaking the limitations of traditional single-modal interaction, and can accurately capture users' interaction intentions. It can dynamically generate personalized interaction strategies according to the specific context, effectively avoiding a rigid and single response method. Regardless of whether users express their needs through facial micro-expressions, gestures or voice commands, they can understand and make reasonable feedback freely. While improving the intelligence of the interaction, the model has been trained with a large amount of real data, and can better simulate human cognition and decision-making processes, making the interaction strategy more in line with people's habits and expectations; in addition, it also has the ability of self-learning and continuous optimization, and can continuously adapt to new interaction scenarios and user habits, ensuring a high level of interaction experience during long-term use.
[0194] Example 2
[0195] See also Figure 2 As shown, the part not described in detail in this embodiment is described in Example 1, which provides a visual interaction method based on multimodality, including:
[0196] S1. Collecting visual modality data and voice modality data of the user;
[0197] S2, preprocessing the visual modality data to obtain visual features, performing speech recognition on the speech modality data to obtain speech command text features;
[0198] S3, fusing the visual features and the voice command text features to construct a multimodal fusion feature vector;
[0199] S4, inputting the multimodal fusion feature vector into the pre-trained improved multi-task learning model based on the tensor core machine to obtain the user's interaction intention category;
[0200] S5. Based on the user interaction intention category, weight adjustment is performed on the multimodal fusion feature vector to obtain an adjusted multimodal fusion feature vector;
[0201] S6. Input the adjusted multimodal fusion feature vector into the constructed interaction strategy generation model to generate an interaction strategy, and send the interaction strategy to the human-computer interaction terminal.
[0202] Example 3
[0203] This embodiment discloses an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the operation mode of the multi-modal visual interaction method provided above is implemented.
[0204] Since the electronic device introduced in this embodiment is an electronic device used to implement a visual interaction method based on multimodality in the embodiment of the present application, based on the visual interaction method based on multimodality introduced in the embodiment of the present application, a person skilled in the art can understand the specific implementation of the electronic device of the present embodiment and its various variations, so how the electronic device implements the method in the embodiment of the present application is not described in detail here. As long as a person skilled in the art implements an electronic device used in a visual interaction method based on multimodality in the embodiment of the present application, it belongs to the scope of protection of the present application.
[0205] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters and thresholds in the formula are set by technicians in this field according to actual conditions.
[0206] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technical users in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.
Claims
1. A multimodal visual interaction system, characterized in that: include: A multimodal data collection module, used to collect the user's visual modality data and the user's voice command data; The data processing module is used to pre-process the visual modality data to obtain visual features, and perform voice recognition on the user voice command data to obtain voice command text features; The modal fusion module is used to fuse the visual features and the voice command text features to construct a multimodal fusion feature vector; The intention planning module obtains N types of user interaction intention categories based on the multimodal fusion feature vector and the constructed intention classification model; A weight adjustment module adjusts the weight of the multimodal fusion feature vector based on the user interaction intention category to obtain an adjusted multimodal fusion feature vector; A strategy generation module is used to input the adjusted multimodal fusion feature vector into the constructed interaction strategy generation model to obtain the interaction strategy, and send the interaction strategy to the human-computer interaction terminal; each module is connected by wired and / or wireless means; The visual modality data includes a user's facial image sequence and hand shape point cloud data; The method of acquiring the user face image sequence includes: A user image is obtained through the terminal camera and recorded as an initial image; the initial image is input into an adaptive target detection algorithm based on deep learning to obtain an initial facial bounding box; The method of obtaining the initial facial bounding box includes: The Faster R-CNN network is used as the basic network of the adaptive target detection algorithm, and the initial image is scaled to the input size of the basic network; the initial image is normalized to obtain a preliminary detection image; The basic network includes a region proposal network and a region convolution network. The preliminary detection image is input into the region proposal network for binary classification to obtain a foreground anchor frame. The foreground anchor frame is input into the region convolution network, which cuts out a regional feature map from the preliminary detection image according to the foreground anchor frame, performs maximum pooling on the regional feature map, and obtains a regional feature vector of a fixed length. The regional feature vector is input into the fully connected layer for classification and bounding box regression to obtain an initial facial bounding box. The initial facial bounding box is processed to obtain a facial region image; the facial region image is used as the first frame facial image and saved to a preset initialized facial image sequence, the initial image is continuously obtained from the camera, and the facial region image is repeatedly obtained for the new initial image; the newly obtained facial region image is appended to the end of the facial image sequence and continuously updated to obtain a user facial image sequence; The method of inputting the preliminary detection image into the region proposal network for binary classification to obtain the foreground anchor frame includes: Slide a small network at different positions and scales of the preliminary detection image to obtain the feature map F, and generate the initial anchor frame based on the feature map F and the preset anchor frame size and anchor frame aspect ratio; For each initial anchor box , define its sampling weight , based on the pre-collected target frame training data, if the initial anchor frame If the overlap value with any real target box is greater than the preset positive sample overlap threshold, it is taken as a positive sample; for positive samples, its sampling weight is set ; The overlap value is the initial anchor box The intersection area with the true target box divided by the initial anchor box The area of the union of the real target box and the real target box; If the initial anchor frame If the overlap value with all real target boxes is less than the preset negative sample overlap threshold, it will be regarded as a negative sample; for negative samples, its sampling weight is set ,in, is the initial anchor box With the real target box The overlap value of Indicates that in the real target box Take the maximum value; is a hyperparameter; The initial anchor frames assigned with sampling weights constitute the adjusted anchor frame set A, and the adjusted anchor frame set A is used for binary classification to obtain the foreground anchor frame; The anchor frame size and the anchor frame aspect ratio are preset in the following ways: The feature graph F is constructed as an undirected graph G=(V, E), where the node set V corresponds to the spatial position on the feature graph, and the edge E represents the connection relationship between the nodes; For each node, the feature vector of its corresponding position is used as the initial node feature; the graph convolution layer is used to capture the correlation between nodes based on the edge E, and the node features are updated; the update formula is: ;in, Representation Node The set of nodes in the neighborhood of Indicates The learnable weight matrix of the layer graph convolution, Indicates The bias of the layer graph convolution, is a nonlinear activation function, Is a node and nodes The edge between is the edge feature encoding function, represents element-wise product; Indicated in Layer, node The updated node features, Indicated in Layer, node Node characteristics; After L layers of graph convolution, the final node features of all nodes are aggregated to obtain the context feature C; the context feature C and the feature graph F are element-wise multiplied to obtain the adjusted feature representation F'; Based on the adjusted feature representation F', the anchor box parameters are predicted, including the anchor box size and aspect ratio.
2. A multimodal visual interaction system according to claim 1, characterized in that: The method for obtaining the hand shape point cloud data includes: The depth image data of the user's hand is obtained by using the depth camera or RGB-D camera of the terminal; the obtained depth image data is processed to obtain the hand depth data; Each pixel in the hand depth data corresponds to a depth value. By calculating the internal and external parameters of the depth camera, the two-dimensional coordinates and depth values of the pixel points are converted into three-dimensional space coordinates to generate a point cloud. The generated point cloud is downsampled using adaptive voxel grid filtering to obtain a preliminary comprehensive point cloud; Use hand detection and segmentation algorithms to segment the hand area point cloud from the preliminary comprehensive point cloud; The down sampling method includes: Initialize a voxel grid's resolution , calculate the bounding box of the point cloud, obtain the size of the bounding box, preset the upper and lower thresholds for resizing, and if the size of the bounding box is greater than or equal to the upper threshold for resizing, adjust the resolution of the voxel grid to ; ;in, is a control coefficient; is the mean size of the bounding box, is the standard deviation of the size of the bounding box; Speed control coefficient; is the speed of point cloud movement, is the maximum size of the bounding box; If the bounding box size is less than the resize lower threshold, the resolution of the voxel grid is resized to ; ;in, is the miniaturization control coefficient, is the size control coefficient; According to the adjusted resolution, the entire three-dimensional space is re-divided into a regular voxel grid; Count the number of point clouds in each voxel grid, traverse each point in the point cloud, use the spatial hash table to accelerate the point query to the voxel grid, and accumulate the point counter of the corresponding voxel grid; the preset voxel count threshold is ;in, Adjust parameters for threshold; Filter out the voxel grids with less than the voxel count threshold. For the voxel grids with points greater than or equal to the voxel count threshold, calculate the geometric centroid of all points in the voxel grid as the representative point, and gather all the representative points together to obtain a preliminary comprehensive point cloud. The geometric centroid is calculated as: ;in, Yes The Euclidean distance to the center of the voxel grid, is the index of the point, is the attenuation control parameter, is the number of all points in the point cloud; For point The geometric centroid of .
3. A multimodal visual interaction system according to claim 2, characterized in that: The visual features include facial features and gesture features; The method of preprocessing the visual modality data includes: The user's facial image sequence is used with the constructed key point detection model to output the coordinates of a series of key points on the user's face, and the coordinates of the series of key points are used as facial geometric features; The user's face image sequence is modeled using the AAM statistical method to obtain facial texture parameters as facial texture features; The user's facial image sequence is used to obtain facial motion information using an optical flow estimation method, and facial dynamic features are extracted from the facial motion information; The facial geometric features, facial texture features and facial dynamic features are fused at the vector level to obtain facial features; The key point detection model is constructed in the following manner: Define the encoder of the key point detection model, use the VGG-19 network as the backbone network of the encoder, perform feature encoding on the facial region image in the input user facial image sequence, and obtain the feature tensor E; Define a key point detection model that cascades m1 regression structures of the same structure. Each regression structure consists of an upsampling layer, a convolution layer, and a regression layer. The upsampling layer is used to process the feature tensor E to obtain a high-resolution feature map. The high-resolution feature map is processed using m2 3x3 convolution layers, and the output of the current regression structure is added to the output of the previous regression structure to obtain a fused feature map. The regression layer uses a 1x1 convolution kernel to regress the fused feature map and outputs a predicted heat map with the same number of face key points. The loss function of the key point detection model is defined as a smooth L1 loss function with a Gaussian kernel. The loss value is calculated between the predicted heat map and the actual heat map of each key point. The loss value is the average of the sum of the loss function values of all key points. n5 groups of actual heat maps with labeled facial key points are used as the data set for training the key point detection model. A multi-step descent learning rate scheduling is adopted, and the parameters are optimized during the training process of the key point detection model to obtain the constructed key point detection model.
4. A multimodal visual interaction system according to claim 3, characterized in that: The method for obtaining the voice command text feature is as follows: The text is recognized from the user's voice command data, and the text is encoded to obtain the corresponding semantic feature vector as the voice command text feature; The method of encoding the text includes: The text is segmented according to a predefined vocabulary to obtain a word-unit sequence; a [CLS] word is added at the beginning of the word-unit sequence, and a [SEP] word is added at the end of the word-unit sequence; a unique digital ID is assigned to each word-unit in the word-unit sequence, and the digital ID corresponding to each word-unit is obtained by querying the vocabulary; and a word-unit ID sequence is obtained; Input the word unit ID sequence into the XLNet model, query the word embedding matrix for the input word unit ID sequence, obtain the corresponding word unit embedding vector, and obtain the word unit embedding sequence; The XLNet model consists of a series of translation encoder layers connected together, each of which contains a self-attention mechanism and a feed-forward neural network. The XLNet model uses a bidirectional encoding method. After being processed by a series of translation encoder layers, it outputs the hidden state vector of each position in the word ID sequence and concatenates the hidden state vectors to obtain the semantic feature vector.
5. A multimodal visual interaction system according to claim 4, characterized in that: The method of obtaining the user's interaction intention category includes: The multimodal fusion feature vector Mapped to the reproducing kernel Hilbert space, we get the high-dimensional space eigenvector, where and Represent visual features and voice command text features respectively; Define N4 interactive tasks, and obtain n_t samples for each interactive task. The samples contain input data and corresponding labels. The gated recurrent unit is used as the basic network of the intent classification model. One or m4 fully connected hidden layers are added after the fully connected layer of the gated recurrent unit. For each fully connected hidden layer, the output of the previous fully connected hidden layer is used as input for full connection calculation. The formula for full connection calculation is: ;in, is the output of the current fully connected hidden layer, is the weight matrix, is the output of the previous fully connected hidden layer, is the bias vector; After the full connection calculation, the last fully connected hidden layer output Apply a nonlinear activation function to obtain a fully connected output; The fully connected output is used as the input of the output layer, and linear transformation and Softmax normalization are performed to obtain the probability distribution of the intent category; Define the classification loss function for the intent classification model ; ,in, The sample belongs to The predicted probability of the class intent category, The sample belongs to Difficulty of class intent, is the focus parameter, The sample belongs to The weight value of the class intent category; ;in, is a constant greater than 0, is a difficulty threshold; Use samples of N4 interactive tasks to train N4 gated recurrent units, initialize the parameters of the basic network, calculate the output of each layer in turn according to the network structure of the basic network, calculate the gradient according to the classification loss function, and use the optimization algorithm to update the parameters of the basic network. Save the parameters of the last updated basic network and integrate all gated recurrent units to obtain the final constructed intent classification model. The intention threshold is preset, and the high-dimensional space feature vector is input into the intention classification model to obtain n6 intention probabilities. The intention categories corresponding to the intention probabilities greater than the intention threshold are retained, which are the N interaction intention categories of the user.
6. A multimodal visual interaction system according to claim 5, characterized in that: The method of weighting the multimodal fusion feature vector includes: Assign a weight value to each interaction intent category and construct an N-dimensional intent weight vector , the intention weight vector In Elements Indicates The weight of the interaction intention category; Will Intent Weight Vector Perform element-by-element multiplication to obtain the adjusted multimodal fusion feature vector.
7. A multimodal visual interaction system according to claim 6, characterized in that: The acquisition method of the interaction strategy includes: Collect m5 groups of visual modality data and voice command data of users within a fixed period of time in history, record them as historical training data, and label the historical training data with labels, where the labels are the corresponding interaction strategies; Construct a multimodal fusion feature vector based on historical training data, record it as a historical multimodal fusion feature vector, and use the historical multimodal fusion feature vector and the corresponding interaction strategy as model training data; Define the interactive strategy generation model including the generation network and the discrimination network; The network structure of the generation network adopts a sequence generation network based on RNN, which includes an encoder, an attention mechanism, and a decoder; The input of the generative network is a multimodal fusion feature vector, and the output is a candidate interaction strategy sequence; The network structure of the discriminant network adopts a sequence classification model based on a convolutional neural network, which includes an embedding layer, an LSTM or GRU layer, and a fully connected layer; The input of the discriminant network is the candidate interaction strategy sequence output by the generating network, and the output is the probability of the candidate interaction strategy sequence; By alternately fixing the parameters of the discriminant network or the generative network, the parameters of the interactive strategy generation model are optimized using the model training data; until the discriminant network and the generative network converge; and the constructed interactive strategy generation model is obtained; The adjusted multimodal fusion feature vector is input into the constructed interaction strategy generation model to obtain the probability distribution of the interaction strategy, and the interaction strategy with the highest probability in the probability distribution is extracted and output as the final interaction strategy.
