Data processing method and device, electronic equipment, storage medium and program product

By generating feature relationship diagrams and updating node features, the problem of multi-modal feature fusion is solved and the accuracy of prediction results is improved.

CN118656775APending Publication Date: 2024-09-17MASHANG CONSUMER FINANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410113132.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-26
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

In model-based prediction tasks, it is difficult to fuse multi-modal features, resulting in poor prediction results.

Method used

By generating a feature relationship graph, the neighbor nodes of each node are determined, and the original features are updated based on the features of the neighbor nodes to improve the feature fusion effect.

Benefits of technology

It improves the effect of feature fusion and enhances the accuracy of prediction results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656775A
    Figure CN118656775A
Patent Text Reader

Abstract

The invention provides a data processing method and device, electronic equipment, a storage medium and a program product. The data processing method comprises the following steps: acquiring audio feature data and text feature data corresponding to the audio feature data; the text feature data comprises n first features, the audio feature data comprises n second features, and n is an integer greater than 1; generating a feature relation graph based on the n first features and the n second features; determining a neighbor node of each first node along the corresponding meta path based on the relation graph; updating the first feature corresponding to each first node to obtain n target features; and updating the first feature corresponding to the first node i: updating the first feature corresponding to the first node i based on the first feature corresponding to the neighbor node of the first node i to obtain a target feature corresponding to the first node i. According to the embodiment of the invention, the feature fusion effect can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular to a data processing method, device, electronic device, storage medium and program product. Background Art

[0002] In the related art, in the process of completing various prediction tasks based on models, in some scenarios, it is considered to collect multi-modal features and make predictions based on the collected multi-modal features to improve the accuracy of the prediction results. However, in the process of making predictions, it is difficult to integrate the features of each modality well, resulting in poor prediction results. Summary of the invention

[0003] The present application provides a data processing method, device, electronic device, storage medium and program product.

[0004] In a first aspect, an embodiment of the present application provides a data processing method, the method comprising:

[0005] Acquire audio feature data and text feature data corresponding to the audio feature data; the text feature data includes n first features, the audio feature data includes n second features, and n is an integer greater than 1;

[0006] Based on the n first features and the n second features, a feature relationship graph is generated; the feature relationship graph includes n first nodes, n second nodes, and connecting lines for connecting the first nodes and the second nodes, the n first nodes correspond one-to-one to the n first features, the n second nodes correspond one-to-one to the n second features, and the connecting lines are used to represent that the two connected nodes have an association relationship;

[0007] Based on the relationship graph, determining neighbor nodes of each first node along the corresponding meta-path, wherein the neighbor nodes of the first node i include the first node included in the meta-path of the first node i, the meta-path of the first node i includes: the first node i, two connected connection lines in the relationship graph and a first node j, the first node i is connected to the first node j through the two connected connection lines, and the n first nodes include the first node i and the first node j;

[0008] The first feature corresponding to each of the first nodes is updated to obtain n target features; wherein the first feature corresponding to the first node i is updated, including: based on the first feature corresponding to the neighbor node of the first node i, the first feature corresponding to the first node i is updated to obtain the target feature corresponding to the first node i.

[0009] In a second aspect, an embodiment of the present application provides a data processing device, the device comprising:

[0010] An acquisition module, used to acquire audio feature data and text feature data corresponding to the audio feature data; the text feature data includes n first features, the audio feature data includes n second features, and n is an integer greater than 1;

[0011] A generating module, configured to generate a feature relationship graph based on the n first features and the n second features; the feature relationship graph includes n first nodes, n second nodes, and connecting lines for connecting the first nodes and the second nodes, the n first nodes correspond one-to-one to the n first features, the n second nodes correspond one-to-one to the n second features, and the connecting lines are used to indicate that the two connected nodes have an association relationship;

[0012] a determination module, configured to determine, based on the relationship graph, neighbor nodes of each first node along a corresponding meta-path, wherein the neighbor nodes of the first node i include the first node included in the meta-path of the first node i, the meta-path of the first node i includes: the first node i, two connected connection lines in the relationship graph, and a first node j, the first node i is connected to the first node j through the two connected connection lines, and the n first nodes include the first node i and the first node j;

[0013] An updating module is used to update the first feature corresponding to each of the first nodes to obtain n target features; wherein, updating the first feature corresponding to the first node i includes: based on the first feature corresponding to the neighbor node of the first node i, updating the first feature corresponding to the first node i to obtain the target feature corresponding to the first node i.

[0014] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the method steps of the first aspect described above are implemented.

[0015] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method steps of the first aspect described above are implemented.

[0016] In a fifth aspect, an embodiment of the present application further provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method steps of the first aspect described above.

[0017] In an embodiment of the present application, a relationship graph is generated based on the similarity value between the first feature and the second feature, and the neighbor nodes of each first node along the meta-path are determined in the relationship graph. Then, the feature of the first node is updated based on the feature of the neighbor node of the first node. Since the connecting line in the relationship graph is used to characterize that the two connected nodes have an association relationship, and the meta-path includes two connected connecting lines in the relationship graph, the two first nodes connected by the meta-path also have an association relationship, that is, the first node and its neighbor node have an association relationship. Therefore, the first feature of the first node is updated based on the first feature of the neighbor node of the first node, that is, each first feature is updated based on a feature that has a certain association relationship with it. This is conducive to improving the effect of feature fusion. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0019] Figure 1 is a flow chart of a data processing method provided in an embodiment of the present application;

[0020] Figure 2 is a schematic diagram of an initial relationship diagram in an embodiment of the present application;

[0021] Figure 3 is a schematic diagram of a relationship diagram in an embodiment of the present application;

[0022] Figure 4 is a schematic diagram of sorting similarity values ​​in an embodiment of the present application;

[0023] Figure 5 This is one of the flow charts of the emotion recognition method provided in the embodiment of the present application;

[0024] Figure 6 This is the second flowchart of the emotion recognition method provided in the embodiment of the present application;

[0025] Figure 7 It is one of the structural schematic diagrams of the data processing device provided in the embodiment of the present application;

[0026] Figure 8 This is the second structural diagram of the data processing device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0028] In the related art, when the speech features and text features are fused, the following steps are mainly included:

[0029] Step 1: Obtain speech feature representation A, specifically including: first obtaining the MFCC features of the speech, then outputting the hidden layer features through a recurrent neural network, and then fusing (usually adding) the extracted prosody features with the hidden layer features to obtain the speech feature representation A.

[0030] Step 2: Obtain the text feature representation Z, specifically including: firstly, processing the text corresponding to the speech into tokens and then inputting them into the recurrent neural network, outputting each hidden layer and the speech representation to calculate the correlation and perform weighted summation to obtain the text feature representation Z.

[0031] Step 3: feature fusion, specifically including: fusing the speech feature representation A and the text feature representation Z (element addition / multiplication), thereby achieving multimodal fusion.

[0032] The above method has the following defects: by calculating the correlation between the speech feature representation and the text feature representation to obtain the weight of each token hidden layer output, and then taking the weighted sum to obtain the text representation, this method calculates the speech-level features (coarse-grained) and text-level features (fine-grained), which makes it difficult to capture the true correlation between text and speech, and the calculation of this correlation lacks the semantic information of the text.

[0033] Based on this, in the present application, a relationship graph is established based on audio feature data and text feature data, and the neighbor nodes of each first node along the meta-path are determined in the relationship graph, and then the features of the first node are updated based on the features of the neighbor nodes of the first node. In this way, the first feature of the first node is updated based on the first feature of the neighbor nodes of the first node, that is, each first feature is updated based on a feature that has a certain correlation relationship with it, which is conducive to improving the effect of feature fusion.

[0034] See also Figure 1 , Figure 1 A flowchart of a data processing method provided in an embodiment of the present application, wherein the data processing method comprises the following steps:

[0035] Step 101: Acquire audio feature data and text feature data corresponding to the audio feature data; the text feature data includes n first features, the audio feature data includes n second features, and n is an integer greater than 1;

[0036] Step 102: Generate a feature relationship graph based on the n first features and the n second features; the feature relationship graph includes n first nodes, n second nodes, and connecting lines for connecting the first nodes and the second nodes, the n first nodes correspond one-to-one to the n first features, the n second nodes correspond one-to-one to the n second features, and the connecting lines are used to indicate that the two connected nodes have an association relationship and that the similarity between the two connected nodes is greater than or equal to a preset threshold;

[0037] Step 103: Based on the relationship graph, determine neighbor nodes of each first node along the corresponding meta-path, wherein the neighbor nodes of the first node i include the first node included in the meta-path of the first node i, the meta-path of the first node i includes: the first node i, two connected connection lines in the relationship graph, and a first node j, the first node i is connected to the first node j through the two connected connection lines, and the n first nodes include the first node i and the first node j;

[0038] Step 104: update the first feature corresponding to each of the first nodes to obtain n target features; wherein, updating the first feature corresponding to the first node i includes: based on the first feature corresponding to the neighbor node of the first node i, updating the first feature corresponding to the first node i to obtain the target feature corresponding to the first node i.

[0039] The audio feature data may be feature data obtained by processing the acquired audio data through voice signal processing. The text feature data may be feature data obtained by converting the voice data into text and extracting features from the obtained text.

[0040] It can be understood that since the text feature data includes n first features and the audio feature data includes n second features, the feature dimensions of the text feature data and the audio feature data are both n. Among them, a first feature in the text feature data can represent a vector representation of a word, and a second feature in the audio feature data can represent a vector representation of a frame of audio.

[0041] The above-mentioned generating a feature relationship graph based on the n first features and the n second features may specifically refer to: generating a relationship graph based on the similarity value between the first feature and the second feature, and its specific implementation process may be: calculating the similarity value between each first feature and the second feature, and then determining the first node and the second node with an associated relationship according to the similarity value and the preset threshold, creating n first nodes and n second nodes in the relationship graph, and connecting the first node and the second node with an associated relationship through a connecting line. The first node and the second node with an associated relationship may specifically refer to: the first node and the second node whose similarity value meets a specific condition, for example, the first node and the second node whose similarity value exceeds a certain threshold, etc. When the similarity value ranges from 0 to 1, the preset threshold may be 0.5, 0.6 or 0.7, etc.

[0042] The above meta-path is a path along the connection line in the relationship graph, starting from the first node, passing through the second node and then reaching another first node. If such a meta-path exists between two first nodes, it can be determined that the two nodes are neighbor nodes.

[0043] Optionally, determining the neighbor nodes of each first node along the corresponding meta-path in the relationship graph includes: determining, in the relationship graph, the neighbor nodes of the first node among the n first nodes along the meta-path corresponding to the first node.

[0044] The first node i and the first node j can be any two different nodes among the n first nodes, or the first node i and the first node j can also be the same first node among the n first nodes. That is, the first node i itself can also be its own neighbor node. Figure 3 , the specific process of determining the neighbor nodes of each first node along the corresponding meta-path is further explained:

[0045] See also Figure 3 Taking the neighbor nodes of the first node t1 as an example, the process of determining the neighbor nodes along the meta-path is further explained: Figure 3It can be seen that starting from node t1, the second nodes that can be reached along the connection line include a1 and a3, and the first nodes that can be reached from a1 include t1 and t2. At this time, the meta-paths that can be formed are: t1-a1-t1, t1-a1-t2. Based on these two paths, it can be determined that the neighbor nodes of t1 include t1 and t2. In addition, the first nodes that can be reached from a3 include t1, t2 and t3. At this time, the meta-paths that can be formed are: t1-a3-t1, t1-a3-t2, t1-a3-t3. Based on these two paths, it can be determined that the neighbor nodes of t1 include t1, t2 and t3. In summary, the neighbor nodes of t1 include t1, t2 and t3.

[0046] Similarly, according to the above method, it can be determined that the neighbor nodes of t2 include: t1 and t3. The neighbor nodes of t3 include t1, t2 and t3.

[0047] The above-mentioned updating of the features of the first node based on the features of the neighboring nodes of the first node may specifically refer to: fusing the features of the neighboring nodes of the first node with the features of the first node to obtain an updated target feature, wherein the fusion method may be weighted summation or splicing.

[0048] In this implementation, a relationship graph is generated based on the similarity value between the first feature and the second feature, and the neighbor nodes of each first node along the meta-path are determined in the relationship graph. Then, the feature of the first node is updated based on the feature of the neighbor nodes of the first node. Since the connecting line in the relationship graph is used to represent that the two connected nodes have an association relationship, and the meta-path includes two connected connecting lines in the relationship graph, the two first nodes connected by the meta-path also have an association relationship, that is, the first node and its neighbor nodes have an association relationship. Therefore, the first feature of the first node is updated based on the first feature of the neighbor nodes of the first node, that is, each first feature is updated based on a feature that has a certain association relationship with it. This is conducive to improving the effect of feature fusion.

[0049] Optionally, the connecting line is further used to represent that the similarity between the two connected nodes is greater than or equal to a preset threshold, and the generating of the feature relationship graph based on the n first features and the n second features includes:

[0050] Determine the similarity between each first feature and each second feature to obtain n×n similarities;

[0051] Determine m target similarities from n×n similarities; the target similarity is greater than or equal to the preset threshold, and m is an integer greater than 1;

[0052] The relationship graph is generated based on the m target similarities.

[0053] The above-mentioned n×n similarity values ​​include: the similarity value between any first feature and any second feature among the n first features and the n second features; after obtaining the n×n similarity values, the n×n similarity values ​​can be screened based on a preset threshold to obtain m target similarity values, wherein the m target similarity values ​​are the first m similarity values ​​with larger similarity values ​​among the n×n similarity values, and m is an integer greater than 1; then, the relationship graph is generated based on the m target similarity values, specifically, in the relationship graph, a connecting line is formed between two nodes whose similarity values ​​are the target similarity values.

[0054] In some embodiments, the n×n similarity values ​​may be obtained by calculating the cosine similarity between each first feature and the second feature.

[0055] After obtaining the similarity values ​​between each first feature and the second feature, since the size of the similarity value can characterize the strength of the correlation between the two features, specifically, the larger the similarity value between the two features, the stronger the correlation between the two features. In the process of feature fusion, a stronger correlation will bring gain to the model, while a weaker correlation will not only have no gain, but will increase the computational complexity. Based on this, in an embodiment of the present application, some of the n×n similarity values ​​can be discarded. For example, the discard rate can be set to 0.3, that is, 30% of the n×n similarity values ​​with smaller similarity values ​​are discarded. In this case, the above m target similarity values ​​are the first 70% of the n×n similarity values ​​with larger similarity values. For example, please refer to Figure 4 , the n×n similarity values ​​may be sorted according to the size of the similarity values, and then the last 30% of the sorted results may be discarded, thereby obtaining the m target similarity values.

[0056] In addition, in some other embodiments of the present application, the m target similarity values ​​may also be similarity values ​​among the n×n similarity values ​​that are greater than a preset threshold, wherein when the similarity value ranges from 0 to 1, the preset threshold may be 0.5, 0.6 or 0.7, etc.

[0057] See also Figure 2-4 In one embodiment of the present application, assuming that n=3, the text feature data can be represented as (t1, t2, t3), and the audio feature data can be represented as (a1, a2, a3), wherein t1, t2, t3 represent three different first features respectively, and a1, a2, a3 represent three different second features respectively. The process of creating the relationship graph may include:

[0058] First, create three first nodes corresponding to t1, t2, and t3 in the relationship graph, and create three second nodes corresponding to a1, a2, and a3. Then, a connection line can be established between each first node and all second nodes, and the following is obtained: Figure 2 The initial relationship diagram.

[0059] Then, if Figure 4 As shown, the cosine similarity between each first feature and the second feature is calculated to obtain 9 similarity values, and the obtained 9 similarity values ​​are sorted in descending order.

[0060] Among them, the above 9 similarity values ​​correspond to Figure 2 Finally, discard the 9 connecting wires in Figure 4 Sort the last 30% of the data in descending order and delete the corresponding Figure 2 The connecting lines corresponding to the discarded similarity values ​​in , thus obtaining Figure 3 The final relationship diagram is shown, thereby realizing the relationship diagram generation process.

[0061] In this implementation, by retaining only the connection lines between two nodes whose similarity values ​​are the target similarity values ​​in the relationship graph, the relationship graph can retain only the connection lines between nodes with strong correlation relationships, thereby avoiding the problem of increased computational complexity caused by retaining connection lines with certain correlation relationships.

[0062] Optionally, the updating the first feature corresponding to the first node i based on the first feature corresponding to the neighbor node of the first node i to obtain the target feature corresponding to the first node i includes:

[0063] Calculate the attention similarity value between the first feature corresponding to the first node i and the first feature corresponding to each neighbor node of the first node i;

[0064] Calculate a weight parameter between a first feature corresponding to the first node i and a first feature corresponding to each neighboring node of the first node i;

[0065] Determine the correction feature based on the calculated attention similarity value and weight parameter;

[0066] The first feature corresponding to the first node i is updated based on the modified feature to obtain the target feature corresponding to the first node i.

[0067] Specifically, the following is still Figure 3 Taking the embodiment shown as an example, the process of generating the target feature is further explained. Assume that the first node i is Figure 3The first node t1 in , the generation process of the target feature corresponding to the first node i is:

[0068] The attention similarity value between the first node t1 and each neighbor node of the first node t1 is calculated based on the attention mechanism, specifically including: calculating the attention similarity value between t1 and its neighbor nodes t1, t2 and t3: e(t1,t1)=attention(t1,t1); e(t1,t2)=attention(t1,t2); e(t1,t3)=attention(t1,t3).

[0069] Then, the weight parameters between the first node t1 and each neighbor node of the first node t1 are calculated based on the normalized exponential softmax function, specifically including: a(t1, t1) = softmax(e(t1, t1)); a(t1, t2) = softmax(e(t1, t2)); a(t1, t3) = softmax(e(t1, t3)).

[0070] The attention similarity values ​​and weight parameters of each neighboring node of the first node t1 are weighted and summed to obtain the modified feature, which may mean: the weights are weighted and summed with the neighbors of t1, and activated by the activation function ReLu to obtain the modified feature zt1, which can be specifically calculated by the following formula:

[0071] zt1=e(t1,t1)*a(t1,t1)+e(t1,t2)*a(t1,t2)+e(t1,t3)*a(t1,t3)

[0072] It is understandable that the first nodes t2 and t3 can also be calculated in the above manner to obtain the corresponding modified features zt2 and zt3, wherein the modified features can be used to characterize the interactive features between the audio feature data and the text feature data.

[0073] In this implementation, the attention similarity value between the first node i and each neighbor node of the first node i is calculated based on the attention mechanism, and the weight parameter between the first node i and each neighbor node of the first node i is calculated based on the normalized exponential function, and then the attention similarity value and weight parameter of each neighbor node of the first node i are weightedly summed to obtain the corrected feature, which is conducive to further improving the feature fusion effect.

[0074] Optionally, the updating the first feature corresponding to the first node i based on the modified feature to obtain the target feature corresponding to the first node i includes:

[0075] The revised feature is residually connected with the first feature corresponding to the first node i to obtain an updated first feature corresponding to the first node i, and to obtain a target feature corresponding to the first node i.

[0076] Specifically, when the first node i is the first node t1, the correction feature is residually connected with the first feature of the first node t1 to obtain the target feature Zt1 corresponding to the first node t1, which can be specifically implemented by the following formula:

[0077] Zt1=t1+zt1

[0078] Similarly, the target features Zt2 and Zt3 corresponding to the first nodes t2 and t3 can be generated based on the above method.

[0079] After the above steps, the text feature data (t1, t2, t3) can be updated to (Zt1, Zt2, Zt3).

[0080] In this implementation, the target feature corresponding to the first node i is obtained by performing a residual connection between the corrected feature and the first feature of the first node i. In this way, it can be determined that the target feature includes both the feature of the modified text feature data and the original feature of the text feature data. This is beneficial to improving the accuracy of subsequent predictions based on the target feature.

[0081] Optionally, the acquiring audio feature data and text feature data corresponding to the audio feature data includes:

[0082] Acquire initial audio features and initial text features corresponding to the initial audio features;

[0083] The initial audio features and the initial text features are processed to obtain the audio feature data and the text feature data, wherein the audio feature data and the text feature data have the same dimension.

[0084] The initial audio feature may be a feature obtained by processing the acquired audio data through speech signal processing. The initial text feature may specifically be a feature obtained by converting the speech data into text and extracting features from the obtained text.

[0085] In one embodiment of the present application, the speech data can be expressed as (1, samples); the initial audio features can be expressed as Fspeeech(Fs, in(T, Ds)); where samples represents the number of sampling points of the speech signal, T represents the time dimension of the feature, and Ds represents the dimension of the feature (e.g., MFCC). The text converted from the speech data can be expressed as (1, N), and the initial text features can be expressed as: T1(Ft, in(N, Dt)), where the initial text features can be features obtained by performing backbone feature extraction on the text, N represents the number of texts, and Dt represents the dimension of the text features.

[0086] After the above processing, Ds and Dt are often unequal, and the semantic information of Ds still belongs to a low-level feature. Therefore, the present application designs an Attention Net, which can enhance its semantic information through a multi-head attention mechanism (Multi-Head-Self-Attention, MHSA), that is, the initial audio features and the initial text features are converted into the same dimension through Attention Net to obtain the audio feature data and the text feature data. After the conversion, Ds and Dt are equal, and the values ​​of Ds and Dt are both the above-mentioned n.

[0087] In this implementation, the initial audio features and the initial text features are converted into the same dimension based on an attention mechanism to obtain the audio feature data and the text feature data, which is beneficial for subsequent fusion through the above method to obtain n target features.

[0088] See also Figure 5 , Figure 5 An emotion recognition method provided in an embodiment of the present application comprises the following steps:

[0089] Step 501: Acquire audio data to be recognized;

[0090] Step 502: convert the audio data into text data;

[0091] Step 503: extracting features from the audio data to obtain audio feature data, and extracting features from the text data to obtain text feature data;

[0092] Step 504: Process the audio feature data and the text feature data based on the data processing method described in the above embodiment to obtain n target features, where n is an integer greater than 1;

[0093] Step 505: Perform emotion recognition based on the n target features to obtain a recognition result.

[0094] Among them, the audio data to be identified can be audio data obtained in various scenarios. For example, it can be audio data input by users obtained by various types of dialogue robots during the conversation process. In this way, by performing emotion recognition on the audio data input by the user, the dialogue robot can adjust the words or tone according to the user's current emotional state to improve the effect of the conversation.

[0095] In addition, the data processing method based on the above embodiment processes the audio feature data and the text feature data to obtain n target features. The specific implementation process is similar to the above embodiment and has the same beneficial effects. To avoid repetition, it will not be described here.

[0096] The above-mentioned emotion recognition based on the n target features to obtain the recognition result can specifically be inputting the n target features into a pre-trained discriminator, and the discriminator performs recognition according to the n target features and outputs the corresponding recognition result.

[0097] See also Figure 6 , Figure 6 A flowchart of an emotion recognition method provided in an embodiment of the present application, the method comprising the following steps:

[0098] First, obtain audio feature data (Audio) and text feature data (Text);

[0099] Assume that the feature of speech (1, samples) extracted after speech signal processing is Fspeeech(Fs, in(T, Ds)), where samples represents the number of sampling points of the speech signal, T represents the time dimension of the feature, and Ds represents the feature dimension (such as MFCC) (corresponding to Audio-Process in the figure); the feature of text (1, N) extracted through the text backbone (corresponding to GPT-2 tokenizer->Pre-trained RoBert in the figure) is T1(Ft, in(N, Dt)), where N represents the number of texts and Dt represents the text feature dimension.

[0100] After the above processing, Ds and Dt are often not equal, and the semantic information of Ds still belongs to the low-level feature. Therefore, this application designs an Attention Net, which can enhance its semantic information through the Multi-Head-Self-Attention, MHSA mechanism, and adjust Ds and Dt to be equal through FC.

[0101] In order to solve the problem of poor fusion quality of speech and text, this application designs a fusion module, which consists of a fusion network Combine Net and two Attention Nets. Among them, the role of Attention Net is to improve the semantic information expression of text and speech respectively, and at the same time it can serve as a bridge between the upper and lower fusion modules. The fusion network Combine Net mainly uses the connection information of speech and text to fuse and aggregate the information between different texts, so as to achieve the representation ability of rich text emotional features.

[0102] After passing through s fusion modules, the input of the sth fusion module is mean pooled and then sent to the fully connected layer for classification and recognition.

[0103] See also Figure 7 , Figure 7 The present invention provides a schematic diagram of a data processing device 700 according to an embodiment of the present invention. The data processing device 700 includes:

[0104] An acquisition module 701 is used to acquire audio feature data and text feature data corresponding to the audio feature data; the text feature data includes n first features, and the audio feature data includes n second features, where n is an integer greater than 1;

[0105] A generating module 702 is used to generate a feature relationship graph based on the n first features and the n second features; the feature relationship graph includes n first nodes, n second nodes, and connecting lines used to connect the first nodes and the second nodes, the n first nodes correspond one-to-one to the n first features, the n second nodes correspond one-to-one to the n second features, and the connecting line is used to indicate that the two connected nodes have an association relationship and that the similarity between the two connected nodes is greater than or equal to a preset threshold;

[0106] A determination module 703 is used to determine neighbor nodes of each first node along a corresponding meta-path based on the relationship graph, wherein the neighbor nodes of the first node i include the first node included in the meta-path of the first node i, the meta-path of the first node i includes: the first node i, two connected connection lines in the relationship graph, and a first node j, the first node i is connected to the first node j through the two connected connection lines, and the n first nodes include the first node i and the first node j;

[0107] The updating module 704 is used to update the first feature corresponding to each of the first nodes to obtain n target features; wherein, the updating of the first feature corresponding to the first node i includes: based on the first feature corresponding to the neighboring node of the first node i, updating the first feature corresponding to the first node i to obtain the target feature corresponding to the first node i.

[0108] Optionally, the connection line is also used to indicate that the similarity between the two connected nodes is greater than or equal to a preset threshold. The generating module 702 includes:

[0109] A first determination submodule is used to determine the similarity between each first feature and each second feature to obtain n×n similarities;

[0110] The first determination submodule is further used to determine m target similarities from the n×n similarities; the target similarity is greater than or equal to the preset threshold, and m is an integer greater than 1;

[0111] A generating submodule is used to generate the relationship graph based on the m target similarities.

[0112] Optionally, the updating module 704 includes:

[0113] a calculation submodule, configured to calculate an attention similarity value between a first feature corresponding to the first node i and a first feature corresponding to each neighboring node of the first node i;

[0114] The calculation submodule is further used to calculate a weight parameter between a first feature corresponding to the first node i and a first feature corresponding to each neighboring node of the first node i;

[0115] A second determination submodule is used to determine the correction feature based on the calculated attention similarity value and weight parameter;

[0116] An updating submodule is used to update the first feature corresponding to the first node i based on the modified feature to obtain a target feature corresponding to the first node i.

[0117] Optionally, the updating submodule is specifically used to perform a residual connection between the corrected feature and the first feature corresponding to the first node i, to obtain an updated first feature corresponding to the first node i, and to obtain a target feature corresponding to the first node i.

[0118] Optionally, the acquisition module 701 includes:

[0119] An acquisition submodule, used to acquire initial audio features and initial text features corresponding to the initial audio features;

[0120] The processing submodule is used to process the initial audio features and the initial text features to obtain the audio feature data and the text feature data, wherein the audio feature data and the text feature data have the same dimension.

[0121] Optionally, the device further comprises:

[0122] The recognition module is used to perform emotion recognition based on the n target features to obtain a recognition result.

[0123] The data processing device 700 provided in the embodiment of the present application can implement each process in the above-mentioned data processing method embodiment, and will not be described again here to avoid repetition.

[0124] See also Figure 8 , Figure 8 is a structural diagram of a data processing device 800 provided in another embodiment of the present application, such as Figure 8 As shown, the data processing device 800 includes: a processor 801, a memory 802, and a computer program stored in the memory 802 and executable on the processor. The various components in the database generating device are coupled together via a bus interface 803. When the computer program is executed by the processor 801, the following steps are implemented:

[0125] Acquire audio feature data and text feature data corresponding to the audio feature data; the text feature data includes n first features, the audio feature data includes n second features, and n is an integer greater than 1;

[0126] Based on the n first features and the n second features, a feature relationship graph is generated; the feature relationship graph includes n first nodes, n second nodes, and connecting lines for connecting the first nodes and the second nodes, the n first nodes correspond one-to-one to the n first features, the n second nodes correspond one-to-one to the n second features, and the connecting lines are used to represent that the two connected nodes have an association relationship and that the similarity between the two connected nodes is greater than or equal to a preset threshold;

[0127] Based on the relationship graph, determining neighbor nodes of each first node along the corresponding meta-path, wherein the neighbor nodes of the first node i include the first node included in the meta-path of the first node i, the meta-path of the first node i includes: the first node i, two connected connection lines in the relationship graph and a first node j, the first node i is connected to the first node j through the two connected connection lines, and the n first nodes include the first node i and the first node j;

[0128] The first feature corresponding to each of the first nodes is updated to obtain n target features; wherein the first feature corresponding to the first node i is updated, including: based on the first feature corresponding to the neighbor node of the first node i, the first feature corresponding to the first node i is updated to obtain the target feature corresponding to the first node i.

[0129] Optionally, the connecting line is further used to represent that the similarity between the two connected nodes is greater than or equal to a preset threshold, and the generating of the feature relationship graph based on the n first features and the n second features includes:

[0130] Determine the similarity between each first feature and each second feature to obtain n×n similarities;

[0131] Determine m target similarities from n×n similarities; the target similarity is greater than or equal to the preset threshold, and m is an integer greater than 1;

[0132] The relationship graph is generated based on the m target similarities.

[0133] Optionally, the updating the first feature corresponding to the first node i based on the first feature corresponding to the neighbor node of the first node i to obtain the target feature corresponding to the first node i includes:

[0134] Calculate the attention similarity value between the first feature corresponding to the first node i and the first feature corresponding to each neighbor node of the first node i;

[0135] Calculate a weight parameter between a first feature corresponding to the first node i and a first feature corresponding to each neighboring node of the first node i;

[0136] Determine the correction feature based on the calculated attention similarity value and weight parameter;

[0137] The first feature corresponding to the first node i is updated based on the modified feature to obtain the target feature corresponding to the first node i.

[0138] Optionally, the updating the first feature corresponding to the first node i based on the modified feature to obtain the target feature corresponding to the first node i includes:

[0139] The revised feature is residually connected with the first feature corresponding to the first node i to obtain an updated first feature corresponding to the first node i, and to obtain a target feature corresponding to the first node i.

[0140] Optionally, the acquiring audio feature data and text feature data corresponding to the audio feature data includes:

[0141] Acquire initial audio features and initial text features corresponding to the initial audio features;

[0142] The initial audio features and the initial text features are processed to obtain the audio feature data and the text feature data, wherein the audio feature data and the text feature data have the same dimension.

[0143] Optionally, after the first feature corresponding to each of the first nodes is updated to obtain n target features, the method further includes:

[0144] Emotion recognition is performed based on the n target features to obtain a recognition result.

[0145] An embodiment of the present application also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0146] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. Among them, the computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0147] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned display method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0148] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0149] An embodiment of the present application further provides a computer program product, which is stored in a storage medium. The computer program product is executed by at least one processor to implement the various processes of the above-mentioned display method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0150] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0151] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods of each embodiment of the present application.

[0152] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A data processing method, It is characterized in that The method comprises: Acquire audio feature data and text feature data corresponding to the audio feature data; the text feature data includes n first features, the audio feature data includes n second features, and n is an integer greater than 1; Based on the n first features and the n second features, a feature relationship graph is generated; the feature relationship graph includes n first nodes, n second nodes, and connecting lines for connecting the first nodes and the second nodes, the n first nodes correspond one-to-one to the n first features, the n second nodes correspond one-to-one to the n second features, and the connecting lines are used to represent that the two connected nodes have an association relationship; Based on the relationship graph, determining neighbor nodes of each first node along the corresponding meta-path, wherein the neighbor nodes of the first node i include the first node included in the meta-path of the first node i, the meta-path of the first node i includes: the first node i, two connected connection lines in the relationship graph and a first node j, the first node i is connected to the first node j through the two connected connection lines, and the n first nodes include the first node i and the first node j; The first feature corresponding to each of the first nodes is updated to obtain n target features; wherein the first feature corresponding to the first node i is updated, including: based on the first feature corresponding to the neighbor node of the first node i, the first feature corresponding to the first node i is updated to obtain the target feature corresponding to the first node i.

2. The method according to claim 1, It is characterized in that The connecting line is also used to indicate that the similarity between the two connected nodes is greater than or equal to a preset threshold value, and the generating of a feature relationship graph based on the n first features and the n second features includes: Determine the similarity between each first feature and each second feature to obtain n×n similarities; Determine m target similarities from n×n similarities; the target similarity is greater than or equal to the preset threshold, and m is an integer greater than 1; The relationship graph is generated based on the m target similarities.

3. The method according to claim 1, It is characterized in that The updating of the first feature corresponding to the first node i based on the first feature corresponding to the neighboring node of the first node i to obtain the target feature corresponding to the first node i includes: Calculate the attention similarity value between the first feature corresponding to the first node i and the first feature corresponding to each neighbor node of the first node i; Calculate a weight parameter between a first feature corresponding to the first node i and a first feature corresponding to each neighboring node of the first node i; Determine the correction feature based on the calculated attention similarity value and weight parameter; The first feature corresponding to the first node i is updated based on the modified feature to obtain the target feature corresponding to the first node i.

4. The method according to claim 3, It is characterized in that The updating the first feature corresponding to the first node i based on the modified feature to obtain the target feature corresponding to the first node i includes: The revised feature is residually connected with the first feature corresponding to the first node i to obtain an updated first feature corresponding to the first node i, and to obtain a target feature corresponding to the first node i.

5. The method according to claim 1, It is characterized in that The step of acquiring audio feature data and text feature data corresponding to the audio feature data includes: Acquire initial audio features and initial text features corresponding to the initial audio features; The initial audio features and the initial text features are processed to obtain the audio feature data and the text feature data, wherein the audio feature data and the text feature data have the same dimension.

6. The method according to claim 1, It is characterized in that After the first feature corresponding to each of the first nodes is updated to obtain n target features, the method further includes: Emotion recognition is performed based on the n target features to obtain a recognition result.

7. A data processing device, It is characterized in that The device comprises: An acquisition module, used to acquire audio feature data and text feature data corresponding to the audio feature data; the text feature data includes n first features, the audio feature data includes n second features, and n is an integer greater than 1; A generating module, configured to generate a feature relationship graph based on the n first features and the n second features; the feature relationship graph includes n first nodes, n second nodes, and connecting lines for connecting the first nodes and the second nodes, the n first nodes correspond one-to-one to the n first features, the n second nodes correspond one-to-one to the n second features, and the connecting lines are used to indicate that the two connected nodes have an association relationship; a determination module, configured to determine, based on the relationship graph, neighbor nodes of each first node along a corresponding meta-path, wherein the neighbor nodes of the first node i include the first node included in the meta-path of the first node i, the meta-path of the first node i includes: the first node i, two connected connection lines in the relationship graph, and a first node j, the first node i is connected to the first node j through the two connected connection lines, and the n first nodes include the first node i and the first node j; An updating module is used to update the first feature corresponding to each of the first nodes to obtain n target features; wherein, updating the first feature corresponding to the first node i includes: based on the first feature corresponding to the neighbor node of the first node i, updating the first feature corresponding to the first node i to obtain the target feature corresponding to the first node i.

8. An electronic device, It is characterized in that The method comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the method steps according to any one of claims 1 to 6 when executed by the processor.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps according to any one of claims 1 to 6 are implemented.

10. A computer program product, It is characterized in that The computer program product is stored in a storage medium, and the computer program product is executed by at least one processor to implement the method steps according to any one of claims 1 to 6.