Data processing method and apparatus, and electronic device

Through feature extraction and fusion of multi-modal data, and using large natural language models to determine data categories and their confidence levels, the problem of low reliability of data classification of large language models in resource-limited environments is solved, and higher data processing is achieved. Accuracy and cost-effectiveness.

WO2024199332A1PCT designated stage expired Publication Date: 2024-10-03TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Patent Information

Application Number
PCT/CN2024/084331
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-30
Filing Date
2024-03-28
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Existing large language models can only provide certain data categories after data classification, resulting in reduced reliability of user decision-making and high running costs, making it difficult to apply in environments with limited resources.

Method used

By obtaining the multi-modal data of the target object, using the trained natural language large model for feature extraction and fusion, the category of the multi-modal data and its confidence level are determined, and the accuracy and reliability of downstream tasks are improved based on the confidence level.

Benefits of technology

It improves the accuracy and reliability of data classification, reduces operating costs, is suitable for environments with limited resources, and enhances the accuracy of data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024084331_03102024_PF_FP_ABST
    Figure CN2024084331_03102024_PF_FP_ABST
Patent Text Reader

Abstract

A data processing method and apparatus, and an electronic device. The method comprises: acquiring multi-modal data inputted by a target object, and inputting the multi-modal data into a large natural language model; performing the following operations on the basis of the large natural language model: performing feature extraction on the multi-modal data to obtain element features and position features of the multi-modal data; merging the element features and the position features corresponding to the multi-modal data so as to obtain merged features; based on the merged features, obtaining a multi-modal data category of the multi-modal data and a confidence score corresponding to the multi-modal data category; wherein the confidence score is used for representing the degree of accuracy of the corresponding categorization result; and according to the multi-modal data category and the confidence score, presenting corresponding feedback information to the target object.
Need to check novelty before this filing date? Find Prior Art

Description

Data processing method, device and electronic equipment

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 30, 2023, with application number 202310378785.5 and entitled “A Data Processing Method, Device and Electronic Device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of computer technology, and in particular to a data processing method, device, and electronic device. Background Art

[0003] In recent years, with the growth of high-quality data accumulated in the industry, the increase in computing power resources, and the development of large-scale model architectures and training technologies, large language models (such as GPT3) have been widely used in scenarios such as translation systems, dialogue systems, and advertising recommendations. Compared with traditional "small models", large language models have significantly higher model parameter counts, computing power, and storage capacity, and therefore have stronger expressive power and data fitting capabilities, thereby greatly improving the performance of neural network models in various businesses, and even significantly exceeding the level of human experts in many tasks. However, since the training process of large language models requires a large amount of computing and storage resources, running such models is very expensive for most individuals or enterprises. Therefore, existing large language models usually provide corresponding services to users through cloud computing APIs (Application Programming Interfaces).

[0004] In the existing technology, large language models can usually classify the data input by users and provide data classification results to users through cloud computing API interfaces, thereby providing users with corresponding services.

[0005] However, through the above method, the large language model can only send the determined data categories to the user, which makes the data available to the user's downstream tasks relatively single, thereby reducing the reliability of downstream tasks in making decisions based on data categories.

[0006] Summary of the Invention

[0007] The purpose of this application is to provide a data processing method, device and electronic device to provide a more reliable data processing method, thereby enhancing the accuracy of feedback information to the target object.

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

[0009] Obtaining multimodal data input by a target object, and inputting the multimodal data into a large natural language model;

[0010] Based on the natural language large model, the following operations are performed: feature extraction is performed on the multimodal data to obtain element features and position features of the multimodal data; the element features represent the element information of each element in the multimodal data, and the position features represent the character positions of each element in the multimodal data; the element features and the position features corresponding to the multimodal data are fused to obtain fused features; based on the fused features, the multimodal data category of the multimodal data and the confidence corresponding to the multimodal data category are obtained; wherein the confidence is used to represent the accuracy of the corresponding classification result. During the training process of the natural language large model, the natural language large model is trained by inputting auxiliary training information, so that the natural language large model can obtain the confidence corresponding to the multimodal data after the training is completed, and the auxiliary training information is used to represent the accuracy of the sample category corresponding to the training sample used to train the natural language large model;

[0011] Presenting corresponding feedback information to the target object according to the multimodal data category and the confidence level.

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

[0013] An acquisition module, configured to acquire multimodal data input by a target object and input the multimodal data into a natural language macro model;

[0014] An extraction module is configured to perform the following operations based on the natural language large model: perform feature extraction on the multimodal data to obtain element features and position features of the multimodal data; the element features represent element information of each element in the multimodal data, and the position features represent the character positions of each element in the multimodal data; fuse the element features and the position features corresponding to the multimodal data to obtain fused features; based on the fused features, obtain the multimodal data category of the multimodal data and the confidence corresponding to the multimodal data category; wherein the confidence is used to represent the accuracy of the corresponding classification result. During the training process of the natural language large model, the natural language large model is trained by inputting auxiliary training information so that the natural language large model can obtain the confidence corresponding to the multimodal data after the training is completed, and the auxiliary training information is used to represent the accuracy of the sample category corresponding to the training sample used to train the natural language large model;

[0015] A presentation module is used to present corresponding feedback information to the target object based on the multimodal data category and the confidence level.

[0016] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores program code, and when the program code is executed by the processor, the processor executes the method described in any embodiment of the present application.

[0017] In a fourth aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores computer instructions. When the computer instructions are executed on a computer, the computer executes the method described in any embodiment of the present application.

[0018] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program, and the computer program is stored in a computer-readable storage medium; when the processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the electronic device executes the method described in any embodiment of the present application.

[0019] The embodiments of the present application adopt the above technical solution, which has at least the following technical effects:

[0020] The embodiments of the present application can determine the confidence corresponding to the multimodal data category through the trained natural language large model, express the accuracy of the corresponding multimodal data category through the confidence, and use the determined confidence as reference information for downstream tasks to improve the accuracy and reliability of downstream tasks.

[0021] Other features and advantages of the present application will be described in the following description, and in part will become apparent from the description, or will be understood by practicing the present application. The purposes and other advantages of the present application can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings.

[0022] BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. Obviously, the drawings introduced 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 creative work.

[0024] FIG1 is an application scenario of a data processing method according to an embodiment of the present application;

[0025] FIG2 is a flowchart of an implementation of a data processing method according to an embodiment of the present application;

[0026] FIG3 is a schematic diagram of multimodal data corresponding to various element features according to an embodiment of the present application;

[0027] FIG4 is a schematic diagram of a large natural language model according to an embodiment of the present application;

[0028] FIG5A is a schematic diagram of an interface presentation according to an embodiment of the present application;

[0029] FIG5B is a schematic diagram of an interface presentation according to an embodiment of the present application;

[0030] FIG6A is a schematic diagram of an interface presentation according to an embodiment of the present application;

[0031] FIG6B is a schematic diagram of an interface presentation according to an embodiment of the present application;

[0032] FIG7 is a flow chart of a large natural language model training method according to an embodiment of the present application;

[0033] FIG8 is a flowchart of obtaining a training sample set according to an embodiment of the present application;

[0034] FIG9 is a schematic diagram of a clustering process according to an embodiment of the present application;

[0035] FIG10 is a schematic diagram of a clustering process according to an embodiment of the present application;

[0036] FIG11 is a flow chart of a one-cycle iterative training process according to an embodiment of the present application;

[0037] FIG12 is a logic diagram of a conversational robot according to an embodiment of the present application;

[0038] FIG13 is a logic diagram of a resume evaluation system applied in an embodiment of the present application;

[0039] FIG14 is a schematic diagram of a data processing device according to an embodiment of the present application;

[0040] FIG15 is a schematic diagram of an electronic device according to an embodiment of the present application;

[0041] FIG16 is a schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0042] To make the objectives, technical solutions, and advantages of this application more clear, this application will be further described in detail below with reference to the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of this application.

[0043] In order to help those skilled in the art better understand the technical solution of this application, some of the terms involved in this application are introduced below.

[0044] K-means clustering algorithm: It is an iterative clustering analysis algorithm. Its steps are to divide the data into K groups in advance, randomly select K objects as the initial cluster centers, and then calculate the distance between each object and each seed cluster center, and assign each object to the cluster center closest to it. The cluster center and the objects assigned to it represent a cluster. Every time a sample is assigned, the cluster center of the cluster will be recalculated based on the existing objects in the cluster. This process will be repeated until a certain termination condition is met. The termination condition can be that no (or only a minimum number of) objects are reassigned to different clusters, no (or only a minimum number of) cluster centers change again, and the sum of squared errors is locally minimized.

[0045] The word “exemplary” is used hereinafter to mean “serving as an example, example, or illustration.” Any embodiment described as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

[0046] The terms "first" and "second" are used for descriptive purposes only and should not be construed as explicitly or implicitly indicating relative importance or the number of the technical features indicated. Therefore, features specified as "first" or "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.

[0047] The embodiments of the present application relate to artificial intelligence (AI) technology and are designed based on machine learning (ML) and voice technology in artificial intelligence.

[0048] Artificial Intelligence (AI) refers to the theories, methods, techniques, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, to perceive the environment, acquire knowledge, and use that knowledge to achieve optimal results. In other words, AI is a comprehensive technology within computer science that seeks to understand the essence of intelligence and produce new intelligent machines that can respond in a manner similar to human intelligence. AI also involves studying the design principles and implementation methods of various intelligent machines, enabling them to possess the capabilities of perception, reasoning, and decision-making.

[0049] Artificial intelligence (AI) technology is a comprehensive discipline encompassing a wide range of fields, encompassing both hardware and software technologies. Foundational AI technologies generally include sensors, specialized AI chips, cloud computing, distributed storage, big data processing, operating / interaction systems, and mechatronics. AI software technologies primarily encompass computer vision, speech processing, natural language processing, and machine learning / deep learning.

[0050] Natural language processing (NLP) is a key area of ​​research in computer science and artificial intelligence. It studies the theories and methods that enable effective communication between humans and computers using natural language. Natural language processing (NLP) integrates linguistics, computer science, and mathematics. Therefore, research in this field involves natural language—the language we use in everyday life—and is closely linked to the study of linguistics. Natural language processing technologies typically include text processing, semantic understanding, machine translation, robotic question answering, and knowledge graphs.

[0051] Machine learning (ML) is a multidisciplinary field that encompasses probability theory, statistics, approximation theory, convex analysis, and algorithmic complexity theory. It specifically studies how computers can simulate or implement human learning behaviors to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is at the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications span all areas of AI. Machine learning and deep learning typically include techniques such as artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and self-learning.

[0052] Key technologies in speech technology include automatic speech recognition, speech synthesis, and voiceprint recognition. Enabling computers to hear, see, speak, and feel is the future direction of human-computer interaction, with speech becoming one of the most promising methods of human-computer interaction.

[0053] The following is a brief introduction to the design concept of the embodiment of this application:

[0054] In the related art, the text input by the user is usually classified through a large language model (such as GPT3), and the classification result is sent to the user, and the user makes a decision based on the classification result. However, since only a certain text category can be sent to the user, the data available to the user when making a decision is relatively simple. Therefore, when the user makes a decision based only on the text category, the reliability of the decision made will be reduced. In view of the shortcomings of the method of classifying text using such a large language model, the embodiment of the present application proposes a data processing method, device and electronic device. After obtaining the multimodal data input by the target object (i.e., the user), the embodiment of the present application can determine the multimodal data category of the multimodal data through the trained natural language large model. At the same time, the embodiment of the present application can also determine the confidence corresponding to the multimodal data category, represent the accuracy of the corresponding multimodal data category through the confidence, and use the determined confidence as reference information for downstream tasks, thereby improving the accuracy and reliability of downstream tasks. For example, after the conversational robot obtains the multimodal data category and confidence level corresponding to the multimodal data, it can determine a more accurate multimodal data category based on the confidence level, and then determine more accurate feedback information based on the more accurate multimodal data category, thereby improving the accuracy of feedback to the target object and the reliability of the conversational robot's automatic conversation.

[0055] The following describes the embodiments of the present application in conjunction with the drawings in the specification. It should be understood that the embodiments described herein are only used to illustrate and explain the present application and are not used to limit the present application. In addition, the embodiments of the present application and the features in the embodiments can be combined with each other if there is no conflict.

[0056] As shown in Figure 1, it is a schematic diagram of an application scenario of the data processing method in an embodiment of the present application. This application scenario schematic includes a terminal device 10 and a server 11. The terminal device 10 and the server 11 can communicate with each other via a communication network. In one embodiment, the communication network can be a wired network or a wireless network. Therefore, the terminal device 10 and the server 11 can be directly or indirectly connected via wired or wireless communication, which is not specifically limited in this embodiment of the present application.

[0057] In the embodiment of the present application, the terminal device 10 is an electronic device used by the target object, which can be a personal computer, mobile phone, tablet computer, notebook, e-book reader, intelligent voice interaction device, smart home, car terminal, etc., which has certain computing power and runs instant messaging software and websites or social software and websites. The server 11 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud storage, cloud functions, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0058] In the embodiment of the present application, the large natural language model can be deployed on the terminal device 10 for training, or it can be deployed on the server 11 for training. For example, when the large natural language model is deployed on the server 11 for training, the server 11 can store a large number of training sample sets, each of which includes multiple training samples, as well as the sample category and auxiliary training information corresponding to each training sample, for training the large natural language model.

[0059] After obtaining a trained large natural language model based on the training method in the embodiment of the present application, the trained large natural language model can be directly deployed on the terminal device 10 or the server 11, and the data processing method of the embodiment of the present application can be executed separately by the terminal device 10 or the server 11. Alternatively, the terminal device 10 and the server 11 can also cooperate with each other to execute the data processing method of the embodiment of the present application. In implementation, the trained large natural language model can be deployed on the server 11, and after the terminal device 10 receives the multimodal data to be processed, the multimodal data is sent to the server 11, and the server 11 executes the data processing method on the multimodal data, and then provides feedback to the target object through the terminal device 10.

[0060] For example, after the server 11 receives the multimodal data sent by the terminal device 10, the server 11 determines the multimodal data category corresponding to the multimodal data and the confidence level corresponding to the multimodal data category, determines the corresponding feedback information based on the multimodal data category corresponding to the multimodal data and the confidence level corresponding to the multimodal data category, and sends the feedback information to the terminal device 10, and then presents the corresponding feedback information to the target object through the terminal device 10.

[0061] Alternatively, after the server 11 receives the multimodal data sent by the terminal device 10, the server 11 determines the multimodal data category corresponding to the multimodal data and the confidence level corresponding to the multimodal data category, and sends the multimodal data category corresponding to the multimodal data and the confidence level corresponding to the multimodal data category to the terminal device 10. The terminal device 10 determines corresponding feedback information based on the multimodal data category corresponding to the multimodal data and the confidence level corresponding to the multimodal data category, and presents the corresponding feedback information to the target object.

[0062] It should be noted that the data processing method provided in the embodiment of the present application can be applied to various application scenarios that include data processing tasks, such as the multimodal data processing module of some robot question-and-answer platforms, the session processing module of the session audit platform corresponding to some chat software, the comment processing module of some content sharing platforms, etc., and can also be used to process data of private conversations, public information, public conversations, etc. of some target objects. These modules can be deployed on the corresponding platform, or they can also be deployed on the cloud server. The platform can act as a tenant and purchase the corresponding cloud resources on the cloud server to realize the data processing functions of each module. If the module is not deployed on the cloud server, the cloud server can provide an API interface for the platform, so that the platform can send the data to be processed to the cloud server through the API interface, and the cloud server will return the results of the data processing of the multimodal data to the platform through the API interface.

[0063] Taking the data processing method of an embodiment of the present application as an example, applied to the multimodal data processing module of a robotic question-answering platform, multimodal data input by a target subject is obtained. A trained large natural language model is configured on the multimodal data processing module. The multimodal data processing module then determines the multimodal data category corresponding to the multimodal data and the confidence level corresponding to the multimodal data category. Based on the multimodal data category corresponding to the multimodal data and the confidence level corresponding to the multimodal data category, corresponding feedback information is determined, and the feedback information is presented to the target subject via the robotic question-answering platform.

[0064] In addition to applying the data processing method in the embodiments of the present application to the multimodal data processing module of the above-mentioned robot question-and-answer platform to process real-time conversational multimodal data, the data processing method can also be applied to other business scenarios, such as text data processing, SMS processing, news headline processing, image processing, video processing, voice processing and other data processing tasks in the client.

[0065] The embodiment of the present application can also determine the multimodal data category corresponding to the multimodal data and the confidence level corresponding to the multimodal data category through a data processing method. The downstream task can determine feedback information based on the multimodal data category corresponding to the multimodal data and the confidence level corresponding to the multimodal data category, and present the corresponding feedback information to the object.

[0066] The following describes the data processing method provided by the exemplary embodiment of the present application in conjunction with the application scenarios described in the above embodiments and with reference to the accompanying drawings. It should be noted that the above application scenarios are only shown to facilitate understanding of the spirit and principles of the present application, and the embodiments of the present application are not limited in this respect.

[0067] Referring to FIG. 2 , which is a flowchart of an implementation of a data processing method provided in an embodiment of the present application, the method can be executed by an electronic device, which can be the terminal device in FIG. 1 or the server in FIG. 1 . The specific implementation process of the method includes the following steps S201-S205:

[0068] Step S201: Acquire multimodal data input by a target object and input the multimodal data into a natural language model. In an embodiment, the natural language model may be a trained natural language model.

[0069] It should be noted that multimodal data refers to data obtained from different fields or perspectives for the same descriptive object, and each field or perspective describing this data is called a modality. Different forms of existence or information sources can be referred to as a modality. Data composed of two or more modalities is called multimodal data. Multimodality is used to refer to different forms of data, or different formats of the same form.

[0070] In an embodiment, multimodal data may include but is not limited to text data, pictures, audio, video, or a combination of at least two thereof.

[0071] For example, the multimodal data may be text data, voice, picture, video, or a file input by the target object. The embodiment of the present application does not limit the method of obtaining the multimodal data.

[0072] The text data input by the target object can be a piece of text data input by the target object through an input method keyboard, or a piece of text data intercepted from all text data input by the target object. At the same time, this application does not limit the language category of the obtained text data. For example, the language category of the text data can be Chinese, English, etc.

[0073] Based on the trained natural language model, the following steps S202-S204 are performed:

[0074] Step S202: Extract features from the multimodal data to obtain the element features and positional features of the multimodal data;

[0075] Among them, the pre-trained large natural language model includes an input layer, an embedding layer, and at least one encoding layer.

[0076] The large natural language model in the embodiments of this application is a deep learning model for natural language processing and other sequence-to-sequence learning tasks. For example, it can be a GPT model; among them, the GPT model includes but is not limited to the GPT-1 model, the GPT-2 model, the GPT-3 model, the GPT-4 model, and the ChatGPT model.

[0077] In implementation, based on the input layer of the pre-trained large natural language model, extract features from the multimodal data to obtain the corresponding element features (Token Features) and positional features (Positional Features) of the multimodal data.

[0078] Among them, the element features are used to represent the element information of each element in the multimodal data. The element information may include the semantic information or other attributes of the element. Therefore, the element features refer to the features extracted from each element (word or character) to represent the semantic information or other attributes of each element. In natural language processing, the element features are usually extracted by converting each element into an embedding vector (Embedding Vector). The embedding vector is a high-dimensional representation of the element that can capture the semantic relationship between elements.

[0079] Taking the multimodal data as the text sentence "Xiaoming went on a spring outing today" as an example, if this sentence is divided into single characters (regarding one Chinese character as one character, the same as one English word) as one element, then each character of "小", "明", "今", "天", "去", "春", "游", "啦" will be converted into an embedding vector. These embedding vectors, as element features, are input into the pre-trained large natural language model for further processing.

[0080] The positional features are used to represent the relative or absolute positional information of each element in the multimodal data. The positional features can help the large natural language model understand the positional relationship of each element in the sentence. Among them, the relative or absolute positional information can be represented by the character position, and here the "character position" refers to the position of an element in the entire multimodal data.

[0081] It should be noted that when the multimodal data is text data, an element can be a character in the multimodal data, or a segmented word, an English word, etc., or multiple words can be regarded as an element, which is not specifically limited in this application. When an element is composed of multiple words or multiple segmented words, the "character position" here refers to the position of the first word or Chinese character (that is, a character) in this element in the entire multimodal data, that is, (when the multimodal sequence data is an input sequence) the starting position of this element in the entire input sequence (sometimes also including the starting position and ending position of this element in the entire input sequence).

[0082] The position features finally extracted can be a mathematical representation based on the positions of these characters, such as a one-dimensional position index vector, or a more complex encoding form (for example, achieved through position encoding or position embedding), which is not limited in the embodiments of the present application.

[0083] For example, when the multimodal data is "Xiao Ming goes on a spring outing today", "Spring outing" can be regarded as an element. Assuming that the character index is used as the character position for representing the position information of the element (counting starts with 0), the character position of "Spring" is 6, and the character position of "Outing" is 7, then the position feature of "Spring Outing" can be represented by their starting position 6 (or some combination of 6 and 7). The embodiments of the present application are not limited here.

[0084] In the embodiments of this application, positional features enable the trained natural language model to learn the positional relationship of each element in a sentence, while elemental features provide semantic information about the elements. The combination of positional and elemental features enables the trained natural language model to better understand and process natural language data.

[0085] In some embodiments, based on the input layer of a trained natural language model, the element features corresponding to each element can be determined according to the element information of each element in the above-mentioned multimodal data, and the position features corresponding to each element can be determined according to the character position of each element in the multimodal data.

[0086] In some embodiments, in step S202 above, feature extraction is performed on the multimodal data to obtain element features and position features of the multimodal data, specifically including the following steps A1-A3:

[0087] A1. Receive multimodal data input by the target object and divide the multimodal data into various elements.

[0088] For example, if the multimodal data is text data, such as "Xiao Ming is going on a spring outing today", the elements of the multimodal data may be: Xiao Ming, today, go, spring outing, ah.

[0089] A2. Obtain element features of each element based on the element information of each element to obtain element features of multimodal data.

[0090] As shown in Figure 3, it is a schematic diagram of the characteristics of each element corresponding to a multimodal data provided in an embodiment of the present application. If the multimodal data is text data, then based on the multimodal data in the figure being "Xiao Ming went on a spring outing today", each element is determined to be Xiao Ming, today, go, spring outing, . Based on the input layer in the trained natural language large model, the element characteristics corresponding to each element in the multimodal data are determined. The method for determining the element characteristics of each element in the multimodal data is as described above and will not be repeated here.

[0091] A3. Obtain corresponding position features based on the character positions of each element in the multimodal data.

[0092] In some embodiments, in the input layer of the trained natural language model, corresponding position features are obtained based on the character positions of each element in the multimodal data.

[0093] Step S203: Fusing the element features and position features corresponding to the multimodal data to obtain fused features.

[0094] In some embodiments, based on the embedding layer of the trained natural language model, the element features and position features corresponding to the multimodal data are fused to obtain fused features.

[0095] In some embodiments, fusing element features and position features corresponding to multimodal data to obtain fused features includes the following steps:

[0096] A, generating a corresponding positional encoding (Positional Encoding) for each element in the multimodal data.

[0097] In some embodiments of the present application, for each element's positional feature, a positional code of the same dimension as the element's feature (embedding vector) is generated. Thus, the positional code is a vector. Generating the positional code can be implemented using a predefined mathematical function, such as a combination of sine and cosine functions, to generate a positional code based on each element's positional feature, ensuring that each position has a unique positional code.

[0098] B. Fuse the element features of each element and the corresponding position code to obtain the fused features.

[0099] In some embodiments of the present application, the embedding vector representing each element's feature is added to its corresponding positional encoding or combined in other ways (such as concatenation followed by nonlinear transformation) to generate a fused feature. Fusion of the two by addition is a common fusion strategy because it maintains the independence of element features and positional features while allowing a trained large natural language model to consider the positional information of each element when processing it.

[0100] Therefore, the fused features contain the semantic information of the elements and their relative position information in the sequence. This fused feature enables the model to understand not only the meaning of each element (such as a word or character), but also the role and relationship of the elements in the entire sentence or sequence.

[0101] For example, given the multimodal data for the sentence "Xiao Ming went on a spring outing today," we first transform the elements "Xiao Ming," "today," "go," "spring outing," and "la" into an embedding vector (assuming 100 dimensions). Based on the positional features of these elements (assuming "Xiao Ming" starts at position 0, "today" starts at position 2, and so on), we generate positional encodings of the same dimension (100 dimensions) for these elements. Then, for each element, we add its embedding vector to the corresponding positional encoding, and the resulting fused feature is the result. For example, if the embedding vector for "Xiao Ming" is a 100-dimensional vector [0.25, -0.4, ...], its positional encoding might be [0.3, 0.1, ...], and the resulting fused feature after addition is [0.55, -0.3, ...]. The fused features obtained in this way contain both the semantic information of the element "Xiao Ming" and the position information of the element "Xiao Ming" in the sentence, so that the trained natural language model can consider that the element "Xiao Ming" is not only a person's name, but also the first element in the sentence when processing.

[0102] Step S204: Based on the fusion features, obtain the multimodal data category of the multimodal data and the confidence level corresponding to the multimodal data category.

[0103] Among them, confidence is used to represent the accuracy of the corresponding classification results.

[0104] It should be noted that during the training process of the natural language large model, the natural language large model is trained by inputting auxiliary training information so that the natural language large model can obtain the confidence corresponding to the multimodal data after the training is completed. The auxiliary training information is used to characterize the accuracy of the sample categories corresponding to the training samples used to train the natural language large model.

[0105] In some embodiments, the following steps are performed in at least one encoding layer of a trained natural language model:

[0106] A. Determine the multimodal data category corresponding to the multimodal data and the confidence level corresponding to the multimodal data category based on the fusion features and the weight matrix corresponding to each coding layer.

[0107] Among them, the weight matrix corresponding to each encoding layer is determined by the trained natural language model during the training process. The weight matrix converts the multimodal data in each encoding layer of the trained natural language model to capture the different features of the multimodal data, thereby helping the trained natural language model to learn the mapping relationship between the input multimodal data and the output categories. Among them, the various encoding layers of the above-mentioned trained natural language model can include convolutional layers, recurrent layers, Transformer layers, etc. These encoding layers can process fusion features and capture and learn the deep patterns and relationships of the input multimodal data.

[0108] In an embodiment of the present application, if there are multiple coding layers in the trained natural language large model, the fusion features are input into each coding layer in the trained natural language large model respectively. For any coding layer in the trained natural language large model, the corresponding fusion result will be determined based on the fusion features and the weight matrix corresponding to each coding layer. Among them, when determining the fusion result, at each coding layer, the fusion features are matrix multiplied with the weight matrix of the layer, and the bias term (if any) is added, and then the result is input into a nonlinear activation function. The above process is called forward propagation.

[0109] B. By concatenating the fusion results obtained from multiple encoding layers, the multimodal data category corresponding to the multimodal data and the confidence corresponding to the multimodal data category are determined according to the concatenated fusion results.

[0110] .

[0111] In an embodiment of the present application, the fusion results obtained by multiple encoding layers are input into a classification layer, such as a fully connected layer, to convert the fusion results into a vector corresponding to the category predicted by the model. This vector is then input into an activation function (such as Softmax) for processing, converting it into a probability distribution. Each value in this probability distribution represents the confidence of the trained natural language model for each category. The category corresponding to the highest probability value is the predicted multimodal data category, and the highest probability value itself is the confidence corresponding to the predicted multimodal data category.

[0112] As shown in Figure 4, it is a schematic diagram of a natural language large model provided in an embodiment of the present application. In Figure 4, the acquired multimodal data is input into the input layer of the trained natural language large model, and feature extraction is performed on the multimodal data in the input layer to obtain element features and position features corresponding to the multimodal data. Based on the embedding layer in the trained natural language large model, the element features and position features corresponding to the multimodal data are fused to obtain fusion features. Based on at least one encoding layer of the trained natural language large model, the multimodal data category corresponding to the multimodal data and the confidence corresponding to the multimodal data category are determined according to the fusion features and the weight matrix corresponding to each encoding layer determined by the trained natural language large model during the training process. The multimodal data category corresponding to the multimodal data and the confidence corresponding to the multimodal data category are used as the output of the trained natural language large model.

[0113] Exemplarily, if the data processing method is applied to a multimodal data processing module in a robot question-answering platform, the multimodal data processing module can be deployed in a cloud server, and the multimodal data processing module can determine the multimodal data category of the multimodal data and the confidence level corresponding to the multimodal data category based on the text data, voice, or picture received from the target object.

[0114] In some embodiments, if the multimodal data input by the target object includes at least one of the following: text data containing tone elements, text data containing emotional elements, and text data containing adjective elements, then the multimodal data category determined based on the multimodal data can be an emotion category.

[0115] For example, if the multimodal data is text data, the mood element can be a modal particle in the text data, the emotion element can be an emotion noun in the text data, and the adjective element can be an adjective in the text data. If the multimodal data is "What a nice day today! So happy!", then based on the modal particle "Yeah," the adjective "good," and the emotion noun "happy" in the multimodal data, the emotion category corresponding to the multimodal data can be determined to be positive emotion.

[0116] In some embodiments, the multimodal data categories may be emotion categories, field categories, grade assessment categories, etc. Field categories may include work field categories, academic field categories, etc. This application does not limit the types of multimodal data categories.

[0117] In some embodiments, a piece of multimodal data may correspond to multiple multimodal data categories. For example, a piece of multimodal data may correspond to a field category, a grade assessment category, and a work field category. This application does not limit the number of multimodal data categories to which a multimodal data corresponds.

[0118] For example, sentiment categories can include positive sentiment and negative sentiment. Rating categories can include five-star praise, four-star praise, three-star praise, and negative reviews. Similarly, they can also include excellent, good, acceptable, and poor reviews. Alternatively, they can also include highly recommended, recommended, average, and not recommended. Academic field categories can include microcontrollers and neural networks.

[0119] Step S205: present corresponding feedback information to the target object according to the multimodal data category and confidence level.

[0120] In some embodiments, presenting corresponding feedback information to the target object based on the multimodal data category and confidence level may include at least one of the following methods 1 and 2:

[0121] Method 1: Based on the confidence level, the corresponding multimodal data category is used as feedback information and the feedback information is presented to the target object.

[0122] In the embodiment of the present application, the above-mentioned method of using the corresponding multimodal data category as feedback information based on the confidence level may include the following method 1 and method 2, as shown below:

[0123] Method 1: Sort the corresponding multimodal data categories according to the size of the confidence value, and use the sorted multimodal data categories as feedback information.

[0124] Method 2: Filter the confidence levels according to preset rules, and use the multimodal data categories corresponding to the filtered confidence levels as feedback information.

[0125] The present application provides several scenarios in which corresponding multimodal data categories are used as feedback information based on confidence levels, as shown below:

[0126] Scenario 1: After the cloud server determines the multimodal data category corresponding to the multimodal data and the confidence level corresponding to the multimodal data category, it uses the corresponding multimodal data category as feedback information based on the confidence level and sends the feedback information to the corresponding client, which then presents the feedback information to the target object.

[0127] Scenario 2: After the cloud server determines the multimodal data category corresponding to the multimodal data and the confidence level corresponding to the multimodal data category, it sends the multimodal data category and confidence level to the corresponding client. The client uses the corresponding multimodal data category as feedback information based on the confidence level and presents the feedback information to the target object.

[0128] As shown in Figure 5A, it is a schematic diagram of an interface presentation provided by an embodiment of the present application. Taking the display interface of the content sharing client installed on the terminal device as an example, the target object is currently using the content sharing client, and the multimodal data input by the target object is: Super recommend this egg yolk pastry, it is super delicious. The content sharing client on the terminal device sends the multimodal data to the cloud server, and the cloud server determines the multimodal data category corresponding to the multimodal data and the confidence corresponding to each multimodal data category through the trained natural language large model. Assume that the multimodal data category determined by the cloud server is "super recommendation", "food category", and the confidence corresponding to the "super recommendation" is 100%, and the confidence corresponding to the "food category" is 95%.

[0129] The cloud server sorts the "super recommendation" and "food category" based on the confidence level of 100% for the "super recommendation" and the confidence level of 95% for the "food category". Since the confidence level of the "super recommendation" is greater than the confidence level of the "food category", the sorted "super recommendation" and "food category" are used as feedback information; or

[0130] The cloud server sends the determined multimodal data categories and corresponding confidence levels to the client. The client sorts the "super recommendation" and "food category" based on the confidence level of 100% for the "super recommendation" and the confidence level of 95% for the "food category", and uses the sorted "super recommendation" and "food category" as feedback information.

[0131] As shown in FIG5B , the client arranges the label of “Super Recommendation” before the label of “Food Category” on the display interface according to the feedback information, resulting in the client display interface shown in FIG5B .

[0132] Method 2: Determine the response content based on the multimodal data category and confidence level, use the response content as feedback information, and present the feedback information to the target object.

[0133] The reply content may include at least one of the following: text data, pictures, voice, video, etc.

[0134] The present application provides several scenarios for determining reply content based on multimodal data categories and confidence levels, as shown below:

[0135] Scenario 1: After the cloud server determines the multimodal data category corresponding to the multimodal data and the confidence level corresponding to the multimodal data category, it can determine the reply content based on the multimodal data category and the confidence level, and send the reply content as feedback information to the corresponding client, which then presents the feedback information to the target object.

[0136] It should be noted that the trained natural language model in the embodiment of the present application can also determine the reply content corresponding to the multimodal data based on the multimodal data input by the target object.

[0137] Scenario 2: After the cloud server determines the multimodal data category corresponding to the multimodal data and the confidence level corresponding to the multimodal data category, it inputs the multimodal data category and confidence level into the downstream task. In the downstream task, the response content is determined based on the multimodal data category and confidence level, and the response content is presented to the target object as feedback information.

[0138] This provides downstream tasks with the multimodal data category and the confidence level associated with that multimodal data category, assisting them in determining feedback and presenting it to the target audience. This addresses the issue of downstream tasks being unable to determine the multimodal data category and confidence level due to limited conditions.

[0139] Figure 6A is a schematic diagram of an interface presentation provided by an embodiment of the present application. Taking the display interface on a soothing robot as an example, a target subject is currently using the soothing robot, and the target subject enters the multimodal data: "I'm so sad. I almost won this game." After receiving the multimodal data, the soothing robot sends it to a cloud server. The cloud server uses a trained natural language model to determine that the multimodal data category corresponding to the multimodal data is negative emotion, with a confidence level of 80%.

[0140] The cloud server uses the trained natural language model to determine the negative emotion and the 80% confidence level, and responds to the target person with "Don't be discouraged, this is just a temporary failure. I believe you are the best." The response is then sent to the comforting robot; or

[0141] The cloud server inputs the multimodal data category and confidence into the downstream task of the comforting robot. In the downstream task, the response content is determined to be "Don't be discouraged, this is just a temporary failure, I believe you are the best" based on the multimodal data category and confidence.

[0142] As shown in FIG6B , the soothing robot presents “Don’t be discouraged, this is just a temporary failure, I believe you are the best” as feedback information to the target object in the display interface, resulting in the display interface of the soothing robot as shown in FIG6B .

[0143] The above data processing method is performed by the electronic device using a trained natural language model. The trained natural language model is obtained by training based on a large number of training samples. The training process of the natural language model is described in detail below. As shown in Figure 7, the embodiment of the present application can train the natural language model according to the following steps S701-S702:

[0144] Step S701: Acquire a training sample set, which includes multiple training samples. Each training sample contains object history data, and each training sample is provided with a sample category and auxiliary training information.

[0145] The embodiment of the present application provides a flowchart of obtaining a training sample set as shown in FIG8 , specifically including steps S801 to S803 as shown below:

[0146] Step S801: Acquire historical data of multiple objects.

[0147] In some embodiments, object history data can be obtained based on a corpus (e.g., Wikipedia) or any object input data available on the platform or client. Object history data can be any object input history data, including the object ID and the data input by the object.

[0148] It should be noted that the object history data can also be multimodal data, which is not limited in this application.

[0149] The plurality of object history data are respectively input into the classification model, and for each of the plurality of object history data, the following steps S802 and S803 are performed:

[0150] Step S802: Based on the classification model, obtain the sample category and auxiliary training information corresponding to the object historical data; and generate a candidate training sample according to the object historical data and the sample category and auxiliary training information corresponding to the object historical data.

[0151] In the embodiment of the present application, the classification model may be an open source classification model, such as a text data classification model. Based on the text data classification model, the sample category and auxiliary training information corresponding to the object historical data can be obtained.

[0152] The auxiliary training information is used to characterize the accuracy of the sample category corresponding to the object's historical data.

[0153] It should be noted that the embodiments of the present application do not limit the types of sample categories corresponding to the object historical data. In addition to the emotion categories in the above examples, the types of sample categories can refer to the types in the multimodal data categories above, and can be the same as or different from the types in the multimodal data categories.

[0154] Step S803: Determine a training sample set based on the generated multiple candidate training samples.

[0155] In an embodiment, all or part of the generated multiple candidate training samples are used to form a training sample set.

[0156] One implementation method for determining a training sample set is to cluster multiple candidate training samples according to at least one of the clustering conditions corresponding to each candidate training sample to obtain multiple candidate training sample sets, and select at least one candidate training sample from each of the multiple candidate training sample sets to form a training sample set.

[0157] The clustering conditions include: the sample categories corresponding to the candidate training samples and the auxiliary training information corresponding to the candidate training samples;

[0158] In the embodiment of the present application, based on the clustering conditions, at least one of the following methods 1-3 is used to cluster the generated multiple candidate training samples to obtain multiple candidate training sample sets.

[0159] Method 1: Based on the auxiliary training information corresponding to each candidate training sample, the candidate training samples are clustered using the k-means clustering algorithm.

[0160] In one embodiment, if one of the generated multiple candidate training samples corresponds to only one sample category, the candidate training sample is clustered using a k-means clustering algorithm according to the auxiliary training information corresponding to the sample category.

[0161] In another embodiment, if one of the generated multiple candidate training samples corresponds to multiple sample categories, the candidate training sample can be clustered using a k-means clustering algorithm according to the maximum value in the auxiliary training information corresponding to each sample category.

[0162] For example, if the sample category is emotion, one of the generated candidate training samples corresponds to a positive emotion and a negative emotion. The auxiliary training information for positive emotion is 70%, and the auxiliary training information for negative emotion is 30%. Since the maximum value of the auxiliary training information corresponding to positive emotion and negative emotion is 70%, the candidate training samples are clustered using the k-means clustering algorithm based on 70%.

[0163] Method 2: Based on the auxiliary training information corresponding to each candidate training sample, the candidate training samples corresponding to the auxiliary training information that meets a preset range are clustered.

[0164] In one embodiment, if a candidate training sample among the generated multiple candidate training samples corresponds to a sample category, clustering is performed on the candidate training samples corresponding to the auxiliary training information that meets a preset range according to the auxiliary training information corresponding to the sample category.

[0165] For example, candidate training samples corresponding to auxiliary training information not exceeding 60% may be clustered according to a preset range, or candidate training samples corresponding to auxiliary training information exceeding 60% may be clustered according to a preset range. It should be noted that this application does not limit the number of preset ranges.

[0166] In another embodiment, if one of the generated multiple candidate training samples corresponds to multiple sample categories, the candidate training samples may be clustered according to the maximum value and a preset range in the auxiliary training information corresponding to each sample category.

[0167] Method 3: According to the sample categories corresponding to each candidate training sample, the candidate training samples with the same sample category are clustered.

[0168] For example, if the sample category is the work field category, the sample category of candidate training sample 1 is the service field, the sample category of candidate training sample 2 is the lawyer field and the service field, and the sample category of candidate training sample 3 is the scientific research field, then candidate training sample 1 and candidate training sample 2 are clustered.

[0169] In one embodiment, if one of the generated multiple candidate training samples corresponds to multiple sample categories, the sample category corresponding to the maximum value in the auxiliary training information corresponding to the candidate training sample can be used as the sample category of the candidate training sample, and the candidate training sample can be clustered; or, the sample category corresponding to the auxiliary training information that is greater than a preset threshold in the auxiliary training information corresponding to multiple sample categories can be used as the sample category of the candidate training sample, and the candidate training sample can be clustered.

[0170] Based on the multiple candidate training sample sets obtained after the clustering process on the candidate training samples, at least one candidate training sample is selected from each of the multiple candidate training sample sets to form a training sample set.

[0171] Through the above process, each candidate training sample in the candidate training sample set can have common features. By selecting at least one candidate training sample from each candidate training sample set to form a training sample set, it can be ensured that the candidate training samples in the training sample set have more types of features, making the features in the training sample set richer.

[0172] For the convenience of description, candidate training samples in the training sample set are referred to as training samples hereinafter.

[0173] In implementation, the training sample set includes multiple training samples, each training sample contains object history data, and a sample category and auxiliary training information are set corresponding to each training sample.

[0174] It should be noted that the auxiliary training information is used to characterize the accuracy of the sample categories corresponding to the training samples.

[0175] The training sample set may include not only training samples but also test samples.

[0176] It should be noted that the test samples are used to detect the accuracy of model training.

[0177] In some embodiments, any training sample in the training sample set may correspond to at least one sample category, and each sample category corresponds to one piece of auxiliary training information.

[0178] For example, if the training sample is "Spring is coming", the sample categories corresponding to the training sample may be positive emotions and negative emotions, the auxiliary training information corresponding to positive emotions may be 70%, and the auxiliary training information corresponding to negative emotions may be 30%.

[0179] Based on the above example, in the training sample set of the embodiment of the present application, for any training sample, if the sample category corresponding to the training sample is the emotion category, the object history data contained in the training sample, as well as the sample category and auxiliary training information corresponding to the training sample in the training sample set can be in the form of: i →positive=c i [0], negative = c i [1].

[0180] Among them, x i Represents the object history data contained in any training sample in the training sample set; positive and negative represent the positive emotion and negative emotion in the emotion category corresponding to the training sample, respectively; c i [0] represents the auxiliary training information corresponding to the positive emotion; c i [1] represents the auxiliary training information corresponding to the negative emotion.

[0181] For example, the training samples of the emotion category in the training sample set can be expressed as follows: Sentiment Analysis: Great piece of → positive = 100%, negative = 0% the quirky → positive = 90%, negative = 10% fails on its own → positive = 100%, negative = 0% its entertaining → positive = 90%, negative = 0%

[0182] Among them, Sentiment Analysis represents the emotion category; Great piece of, the quirky, fails on its own, and its entertaining represent the object historical data contained in each exemplary training sample; positive and negative represent the positive and negative emotions in the emotion category, respectively; the corresponding percentages of positive and negative emotions represent the corresponding auxiliary training information.

[0183] For example, for Great piece of → positive = 100%, negative = 0%, 100% means that the auxiliary training information of positive emotion corresponding to Great piece of is 100%, and 0% means that the auxiliary training information of negative emotion corresponding to Great piece of is 0%.

[0184] It should be noted that the embodiments of the present application do not limit the types of sample categories corresponding to the training samples. In addition to the positive emotions and negative emotions in the above examples, the types of sample categories can refer to the types in the multimodal data categories above, and can be the same as or different from the types in the multimodal data categories.

[0185] The above process of obtaining the training sample set is described with reference to the accompanying figures:

[0186] As shown in Figure 9, it is a schematic diagram of a clustering process provided by an embodiment of the present application. Take the clustering process of candidate training samples according to the sample categories corresponding to the candidate training samples in the candidate training sample set as an example. As shown in Figure 9, multiple object historical data are obtained, and multiple candidate training samples are generated by determining the classification model. Among them, the sample category corresponding to candidate training sample 1 is positive emotion, and the auxiliary training information corresponding to positive emotion is 70%; the sample category corresponding to candidate training sample 2 is negative emotion, and the auxiliary training information corresponding to negative emotion is 75%; the sample category corresponding to candidate training sample 3 is positive emotion, and the auxiliary training information corresponding to positive emotion is 80%; the sample category corresponding to candidate training sample 4 is negative emotion, and the auxiliary training information corresponding to negative emotion is 75%. Candidate training sample 1 and candidate training sample 3 are clustered as candidate training sample set 1; candidate training sample 2 and candidate training sample 4 are clustered as candidate training sample set 2. Candidate training sample 1 is selected from candidate training sample set 1, and candidate training sample 2 and candidate training sample 4 are selected from candidate training sample set 2. Candidate training sample 1, candidate training sample 2 and candidate training sample 4 form a training sample set.

[0187] As shown in Figure 10, it is a schematic diagram of a clustering process provided by an embodiment of the present application. Take the clustering process of candidate training samples according to the sample categories corresponding to the candidate training samples in the candidate training sample set as an example. As shown in Figure 10, multiple object historical data are obtained, and multiple candidate training samples are generated by determining the classification model. Among them, candidate training sample 1 corresponds to positive emotions and negative emotions, and the auxiliary training information corresponding to the positive emotion is 80%, and the auxiliary training information corresponding to the negative emotion is 30%; candidate training sample 2 corresponds to positive emotions and negative emotions, and the auxiliary training information corresponding to the positive emotion is 50%, and the auxiliary training information corresponding to the negative emotion is 80%; candidate training sample 3 corresponds to positive emotions and negative emotions, and the auxiliary training information corresponding to the positive emotion is 80%, and the auxiliary training information corresponding to the negative emotion is 30%. For candidate training sample 1, the auxiliary training information corresponding to the positive emotion is 80%, which is the largest value in the auxiliary training information. For candidate training sample 3, the auxiliary training information corresponding to the positive emotion is 80%, which is also the largest value in the auxiliary training information. Therefore, candidate training sample 1 and candidate training sample 3 can be clustered according to the positive emotion as candidate training sample set 1. For candidate training sample 2, 80% of the auxiliary training information corresponding to its corresponding negative sentiment has the largest value in the auxiliary training information. Therefore, candidate training sample 2 can be clustered based on the negative sentiment to form candidate training sample set 2. Candidate training sample 1 is selected from candidate training sample set 1, and candidate training sample 2 is selected from candidate training sample set 2. Candidate training sample 1 and candidate training sample 2 are combined to form a training sample set.

[0188] Step S702: Perform cyclic iterative training on the initial natural language model based on multiple training samples in the training sample set, and output the trained natural language model after the training is completed.

[0189] Among them, in the process of performing cyclic iterative training on the initial natural language large model, the following explanation is given for one cyclic iterative training process.

[0190] As shown in FIG11 , it is a flowchart of a one-cycle iterative training process provided by an embodiment of the present application, specifically including steps S1101 to S1103, as shown below:

[0191] Step S1101: Input each training sample extracted from the training sample set into the natural language model, and obtain the prediction category and prediction confidence corresponding to the training sample output by the natural language model.

[0192] In some embodiments, the extracted training samples may be spliced ​​together, and the spliced ​​training samples may be input into a large natural language model.

[0193] For example, if the emotion category corresponding to the extracted training sample is an emotion category, the concatenated training sample is: [test example]→positive=c[0], negative=c[1].

[0194] Among them, [test example] represents the concatenated training sample; positive and negative represent the positive emotion and negative emotion in the emotion category corresponding to the concatenated training sample respectively; c[0] represents the auxiliary training information corresponding to the positive emotion; c[1] represents the auxiliary training information corresponding to the negative emotion.

[0195] In an embodiment, based on the input layer in the natural language large model, feature extraction is performed on the training samples to obtain element features and position features corresponding to the training samples; based on the embedding layer in the natural language large model, the element features and position features corresponding to the training samples are fused to obtain fused features; based on at least one encoding layer of the natural language large model, the prediction category corresponding to the training sample and the prediction confidence corresponding to the prediction category are determined according to the fused features and the initial weight matrix corresponding to each encoding layer in the natural language large model.

[0196] It should be noted that the initial weight matrix corresponding to each coding layer can be composed of random values, and the initial weight matrix corresponding to each coding layer can be the same or different, and this application does not limit this.

[0197] The types of the predicted categories may refer to the types in the multimodal data categories mentioned above, and may be the same as or different from the types in the multimodal data categories, and this application does not limit this.

[0198] Step S1102: construct a loss function based on first difference information between the predicted category and the sample category corresponding to the training sample, and second difference information between the prediction confidence corresponding to the training sample and the auxiliary training information.

[0199] In an embodiment, for any training sample in the training sample set, the first difference information corresponding to the training sample is determined based on the predicted category of the training sample obtained through the natural language large model and the sample category corresponding to the training sample in the training sample set; and the second difference information corresponding to the training sample is determined based on the prediction confidence of the training sample obtained through the natural language large model and the auxiliary training information corresponding to the training sample in the training sample set.

[0200] A loss function is constructed based on the first difference information corresponding to the plurality of training samples and the second difference information corresponding to the plurality of training samples.

[0201] In an embodiment of the present application, for a training sample in a training sample set, if the training sample corresponds to multiple predicted categories, the predicted categories that are the same as the sample category and the predicted categories that are different from the sample category are determined, and first difference information between these different predicted categories and the sample category is determined. If multiple pieces of first difference information are determined for the training sample, a mean operation can be performed on the multiple pieces of first difference information, and the mean operation result can be determined as the first difference information corresponding to the training sample.

[0202] When a training sample corresponds to multiple prediction categories, since each prediction category corresponds to a prediction confidence level, multiple pieces of second difference information corresponding to the training sample are obtained. A mean operation can be performed on the multiple pieces of second difference information, and the mean operation result is determined as the second difference information corresponding to the training sample.

[0203] In an embodiment, a loss function may also be constructed directly according to the plurality of first difference information and the plurality of second difference information corresponding to the training sample.

[0204] When training a large natural language model, we hope that the difference between the training sample and the predicted sample is as small as possible. Therefore, we need to use a loss function to measure whether the prediction of the large natural language model is accurate. Usually, we can use methods such as least squares, maximum likelihood estimation, or cross entropy to construct the loss function.

[0205] In some embodiments, taking the least squares method as an example, the first difference information can also be the square of the difference between each predicted category and the sample category corresponding to the training sample, and the second difference information can be the square of the difference between the confidence corresponding to the predicted category and the confidence of the sample category corresponding to the training sample. The loss function constructed based on the first difference information and the second difference information can be the sum of the first difference information and the second difference information. When the loss function, that is, the sum of the first difference information and the second difference information, is minimized, it is considered that the training of the large natural language model is completed. This application does not limit the number and method of determining the first difference information and the second difference information corresponding to the training sample.

[0206] Step S1103: Based on the loss function, adjust the model parameters of the natural language model.

[0207] Based on the above process of training the large natural language model, the large natural language model is trained in multiple rounds. When the model parameters of the large natural language model meet a preset condition, the training of the large natural language model is completed. The predetermined condition may be that the loss calculated by the loss function is minimized.

[0208] By adjusting the parameters of the natural language model as described above, a trained natural language model can be obtained.

[0209] This embodiment of the present application provides an overall process for training a large natural language model, and the specific steps include the following B1-B7:

[0210] B1. Obtain historical data of multiple objects.

[0211] B2. Input the historical data of multiple objects into the classification model respectively to generate multiple corresponding candidate training samples.

[0212] B3. Clustering the candidate training samples using a k-means clustering algorithm based on the auxiliary training information corresponding to each candidate training sample to obtain multiple candidate training sample sets.

[0213] It should be noted that k is a predefined number, for example: 8.

[0214] Among them, each candidate training sample set is equivalent to a cluster.

[0215] The process of clustering the candidate training samples using the k-means clustering algorithm has been explained in the embodiment of step S803 and will not be repeated here.

[0216] B4. Select at least one candidate training sample from each of the multiple candidate training sample sets to form a training sample set.

[0217] Among them, after selecting a candidate training sample from multiple candidate training sample sets, the candidate training sample is expressed as follows: i →positive=c i [0], negative = c i [1], the selected candidate training samples are composed into a training sample set.

[0218] Among them, x i represents a candidate training sample selected from the candidate training sample set; positive and negative represent the positive emotion and negative emotion in the emotion category corresponding to the candidate training sample, respectively; c i [0] represents the auxiliary training information corresponding to the positive emotion; c i [1] represents the auxiliary training information corresponding to the negative emotion.

[0219] Therefore, the training sample set includes candidate training samples, the sample categories corresponding to the candidate training samples, and auxiliary training information. For ease of understanding, the candidate training samples in the training sample set, the sample categories corresponding to the candidate training samples, and the auxiliary training information corresponding to the candidate training samples are hereinafter referred to as training samples, and the sample categories corresponding to the training samples, and the auxiliary training information.

[0220] B5. Input the training samples in the training sample set into the initial natural language model, and output the prediction category corresponding to the training sample and the prediction confidence corresponding to the prediction category through the initial natural language model.

[0221] In an embodiment, before inputting the training samples in the training sample set into the initial large natural language model, the training samples may be spliced.

[0222] For example, if the emotion category corresponding to the extracted training sample is an emotion category, the concatenated training sample is: [test example]→positive=c[0], negative=c[1].

[0223] Among them, [test example] represents the concatenated training sample; positive and negative respectively represent the positive emotion and negative emotion in the emotion category corresponding to the concatenated training sample; c[0] represents the auxiliary training information corresponding to the positive emotion; c[1] represents the auxiliary training information corresponding to the negative emotion.

[0224] B6. Determine the maximum value among the output prediction confidences, use the prediction category corresponding to the maximum prediction confidence as the final prediction category of the training sample, and use the prediction confidence as the final prediction confidence of the training sample.

[0225] B7. Adjust the model parameters of the natural language model based on the final predicted category of the training sample and the final prediction confidence of the training sample to obtain a trained natural language model.

[0226] A loss function is constructed based on the final predicted category of the training sample and the first difference information between the sample category corresponding to the training sample, as well as the final predicted confidence of the training sample and the second difference information between the auxiliary training information corresponding to the training sample. Based on the loss function, the model parameters of the large natural language model are adjusted. A trained large natural language model is obtained.

[0227] The following is an illustrative introduction to several specific application scenarios of the data processing method.

[0228] In an embodiment, the data processing method can be applied to the following scenarios:

[0229] Scenario 1: Conversational robot.

[0230] As shown in Figure 12, it is a logical diagram of a conversation robot provided by an embodiment of the present application. As shown in Figure 12, the target object enters "I'm so sad, I almost won this game" in the display interface of the conversation robot. The conversation robot sends the acquired multimodal data to the cloud server. The cloud server determines that the emotion category of the multimodal data is negative emotion and the confidence level corresponding to the negative emotion is 80% through a data processing method. Based on the negative emotion and the confidence level corresponding to the negative emotion of 80%, the cloud server determines the reply content as "Don't be discouraged, this is just a temporary failure, I believe you are the best", and sends the reply content to the conversation robot. The conversation robot presents the reply content to the target object in the display interface.

[0231] Scenario 2: Resume evaluation system.

[0232] As shown in Figure 13, it is a logical diagram of a resume evaluation system provided by an embodiment of the present application. As shown in Figure 13, by using a resume evaluation client, a resume file is uploaded to the client, and the client sends the resume file with multimodal data input by the target object to the cloud server. The cloud server uses a data processing method and, based on the trained natural language large model deployed in the cloud server, determines that the grade evaluation categories corresponding to the multimodal data in the resume file are excellent and good categories. The confidence corresponding to the excellent category is 80%, indicating that the accuracy of the resume file belonging to the excellent category is 80%; the confidence corresponding to the good category is 70%, indicating that the accuracy of the resume file belonging to the excellent category is 70%. The cloud server then determines that the confidence corresponding to the excellent category is higher than the confidence corresponding to the good category based on the confidence corresponding to the excellent category of 80% and the confidence corresponding to the good category of 70%, and then sends the excellent category as feedback information to the corresponding client, presenting the result of "excellent category" to the target object in the client.

[0233] For the convenience of description, the above parts are divided into modules according to their functions and described separately. Of course, when implementing this application, the functions of each module can be implemented in the same or multiple software or hardware.

[0234] Those skilled in the art will appreciate that various aspects of the present application can be implemented as systems, methods, or program products. Therefore, various aspects of the present application can be specifically implemented in the following forms: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation that combines hardware and software aspects, which may be collectively referred to herein as a "circuit," "module," or "system."

[0235] Regarding the device in the above embodiment, the specific execution method of each module has been described in detail in the embodiment of the method, and will not be elaborated here.

[0236] Based on the same inventive concept, an embodiment of the present application provides a data processing device, which solves the problem based on the same principle as the method of the above embodiment. Therefore, the implementation of the device can refer to the implementation of the above method, and the repeated parts will not be repeated.

[0237] An embodiment of the present application provides a data processing device 1400 , including an acquisition module 1401 , an extraction module 1402 , and a presentation module 1403 .

[0238] An acquisition module 1401 is configured to acquire multimodal data input by a target object and input the multimodal data into a natural language macro model;

[0239] Extraction module 1402 is used to perform the following operations based on the trained natural language large model: perform feature extraction on multimodal data to obtain element features and position features of the multimodal data; the element features represent element information of each element in the multimodal data, and the position features represent the character position of each element in the multimodal data; fuse the element features and the position features corresponding to the multimodal data to obtain fused features; based on the fused features, obtain the multimodal data category of the multimodal data and the confidence corresponding to the multimodal data category; wherein the confidence is used to represent the accuracy of the corresponding classification result. During the training process of the natural language large model, the natural language large model is trained by inputting auxiliary training information so that the natural language large model can obtain the confidence corresponding to the multimodal data after training is completed. The auxiliary training information is used to represent the accuracy of the sample category corresponding to the training sample used to train the natural language large model;

[0240] The presentation module 1403 is configured to present corresponding feedback information to the target object according to the multimodal data category and the confidence level.

[0241] In the embodiment of the present application, since auxiliary training information is input during the training of the large natural language model, the trained large natural language model is able to output the multimodal data category and confidence level corresponding to the multimodal data. Therefore, based on the multimodal data category and confidence level corresponding to the output multimodal data, the target object can increase the reliability of the decision made based on the output results.

[0242] In an embodiment, the extraction module 1401 is specifically configured to:

[0243] receiving multimodal data input by a target object, and dividing the multimodal data into individual elements;

[0244] Obtaining corresponding element features based on the element information of each element, and obtaining element features of the multimodal data based on each element feature;

[0245] Corresponding position features are obtained based on the character positions of the various elements in the multimodal data.

[0246] In an embodiment, the extraction module 1401 is specifically configured to:

[0247] The following steps are performed in at least one encoding layer of the natural language model:

[0248] Determining a multimodal data category corresponding to the multimodal data and a confidence level corresponding to the multimodal data category according to the fusion features and the weight matrices corresponding to the respective coding layers;

[0249] Among them, the weight matrix corresponding to each coding layer is determined by the trained natural language model during the training process.

[0250] In an embodiment, the natural language large model is trained by the following method:

[0251] Acquire a training sample set, wherein the training sample set includes a plurality of training samples, each training sample includes object historical data, and a sample category and auxiliary training information are set corresponding to each training sample;

[0252] According to the multiple training samples in the training sample set, the initial natural language model is subjected to cyclic iterative training, and when the training is completed, the trained natural language model is output.

[0253] In an embodiment, the extraction module 1401 is specifically used to:

[0254] During one training cycle, the following operations are performed:

[0255] Input each training sample extracted from the training sample set into the natural language model, and obtain the prediction category and prediction confidence corresponding to the training sample output by the natural language model;

[0256] Constructing a loss function based on first difference information between the predicted category and the sample category corresponding to the training sample, and second difference information between the prediction confidence corresponding to the training sample and the auxiliary training information;

[0257] Based on the loss function, the model parameters of the natural language model are adjusted.

[0258] In an embodiment, the extraction module 1401 is specifically configured to:

[0259] Get historical data of multiple objects;

[0260] The plurality of object history data are respectively input into the classification model, and the following operations are performed for each of the plurality of object history data:

[0261] Based on the classification model, obtaining a sample category and auxiliary training information corresponding to the object historical data; generating a candidate training sample according to the object historical data, and the sample category and auxiliary training information corresponding to the object historical data;

[0262] A training sample set is determined based on the generated multiple candidate training samples.

[0263] In an embodiment, the extraction module 1401 is specifically configured to:

[0264] Clustering the plurality of candidate training samples according to at least one of the clustering conditions corresponding to each candidate training sample to obtain a plurality of candidate training sample sets, wherein the clustering condition includes: a sample category corresponding to the candidate training sample and auxiliary training information corresponding to the candidate training sample;

[0265] At least one candidate training sample is selected from each of the plurality of candidate training sample sets to form the training sample set.

[0266] In an embodiment, the multimodal data input by the target object includes at least one of the following: multimodal data containing tone elements, multimodal data containing emotion elements, and multimodal data containing adjective elements.

[0267] The multimodal data categories include emotion categories.

[0268] In an embodiment, the presenting module 1403 is specifically configured to:

[0269] According to the confidence level, taking the corresponding multimodal data category as feedback information, and presenting the feedback information to the target object; or

[0270] Determine reply content according to the multimodal data category and the confidence level, use the reply content as feedback information, and present the feedback information to the target object.

[0271] In some embodiments, the electronic device of the embodiments of the present application may include at least one processor and at least one memory, wherein the memory stores program code that, when executed by the processor, causes the processor to perform the steps of the data processing method described above according to various exemplary embodiments of the present application.

[0272] Based on the same inventive concept as the above-mentioned method embodiment, the embodiment of the present application also provides an electronic device. The principle of solving the problem by the electronic device is the same as the method of the above-mentioned embodiment. Therefore, the implementation of the electronic device can refer to the implementation of the above-mentioned method, and the repeated parts will not be repeated.

[0273] 15 , the electronic device 150 may include at least a processor 151 and a memory 152. The memory 152 stores program code, which, when executed by the processor 151, enables the processor 151 to perform the steps of any data processing method in the above-mentioned embodiments of the present application.

[0274] The electronic device 160 according to an embodiment of the present application is described below with reference to Figure 16. The electronic device 160 in Figure 16 is merely an example and should not limit the functions and scope of use of the embodiment of the present application.

[0275] As shown in FIG16 , electronic device 160 is shown as a general electronic device. Components of electronic device 160 may include, but are not limited to, at least one processing unit 161 , at least one storage unit 162 , and a bus 163 connecting different system components (including storage unit 162 and processing unit 161 ).

[0276] Bus 163 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, and a processor or local bus using any of a variety of bus architectures.

[0277] The storage unit 162 may include a readable medium in the form of a volatile memory or a non-volatile memory, such as a random access memory (RAM) 1621 and / or a cache memory unit 1622 , and may further include a read-only memory (ROM) 1623 .

[0278] The storage unit 162 may also include a program / utility 1625 having a set (at least one) of program modules 1624, such program modules 1624 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0279] Electronic device 160 can also communicate with one or more external devices 164 (e.g., a keyboard, pointing device, etc.), one or more devices that enable objects to interact with electronic device 160, and / or any device that enables electronic device 160 to communicate with one or more other electronic devices (e.g., a router, a modem, etc.). Such communication can occur via input / output (I / O) interface 165. Furthermore, electronic device 160 can communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network such as the Internet) via network adapter 166. As shown, network adapter 166 communicates with other modules of electronic device 160 via bus 163. It should be understood that, although not shown, electronic device 160 may utilize other hardware and / or software modules, including but not limited to microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0280] Based on the same inventive concept as the above-mentioned method embodiments, various aspects of the data processing method provided in the present application can also be implemented in the form of a program product, which includes program code. When the program product is run on an electronic device, the program code is used to enable the electronic device to execute the steps in the data processing method described above according to various exemplary embodiments of the present application.

[0281] The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0282] Although the embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the embodiments and all changes and modifications that fall within the scope of the present application.

[0283] Obviously, those skilled in the art may make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.

Claims

1. A data processing method, executed by an electronic device, comprising: Acquire multimodal data input by the target object, and input the multimodal data into a natural language macro model; Based on the natural language big model, the following operations are performed: feature extraction is performed on the multimodal data to obtain element features and position features of the multimodal data; the element features represent element information of each element in the multimodal data, and the position features represent character positions of each element in the multimodal data; the element features and the position features corresponding to the multimodal data are fused to obtain fused features; Based on the fusion features, a multimodal data category of the multimodal data and a confidence level corresponding to the multimodal data category are obtained; wherein the confidence level is used to characterize the accuracy of the corresponding classification result. In the process of training the natural language large model, the natural language large model is trained by inputting auxiliary training information, so that the natural language large model can obtain the confidence level corresponding to the multimodal data after the training is completed. The auxiliary training information is used to characterize the accuracy of the sample category corresponding to the training sample used to train the natural language large model. According to the multimodal data category and the confidence level, corresponding feedback information is presented to the target object.

2. The method of claim 1, wherein: The extracting features of the multimodal data to obtain element features and position features of the multimodal data includes: Receiving multimodal data input by a target object, and dividing the multimodal data into individual elements; Obtaining element features of each element based on the element information of each element to obtain element features of the multimodal data; Corresponding position features are obtained based on the character positions of the various elements in the multimodal data.

3. The method of claim 2, wherein: The natural language model includes an input layer, an embedding layer and at least one encoding layer; The obtaining, based on the fusion feature, a multimodal data category corresponding to the multimodal data and a confidence level corresponding to the multimodal data category includes: The following steps are performed in at least one encoding layer of the natural language model: Determining a multimodal data category corresponding to the multimodal data and a confidence level corresponding to the multimodal data category according to the fusion features and the weight matrices corresponding to each encoding layer; Among them, the weight matrix corresponding to each coding layer is determined by the natural language large model during the training process.

4. The method of claim 1, 2 or 3, wherein: The natural language model is trained in the following way: Acquire a training sample set, wherein the training sample set includes a plurality of training samples, each training sample includes object historical data, and a sample category and auxiliary training information are set corresponding to each training sample; According to the multiple training samples in the training sample set, the initial natural language large model is subjected to cyclic iterative training, and when the training is completed, the trained natural language large model is output.

5. The method of claim 4, wherein: The step of performing cyclic iterative training on the initial natural language large model according to the multiple training samples in the training sample set specifically includes: The following operations are performed during one training cycle: Input each training sample extracted from the training sample set into the natural language big model, and obtain the prediction category and prediction confidence corresponding to the training sample output by the natural language big model; Constructing a loss function based on first difference information between the prediction category and the sample category corresponding to the training sample, and second difference information between the prediction confidence corresponding to the training sample and the auxiliary training information; Based on the loss function, the model parameters of the natural language model are adjusted.

6. The method of claim 4, wherein: The step of obtaining a training sample set includes: Get historical data of multiple objects; The plurality of object history data are respectively input into the classification model, and for each object history data in the plurality of object history data, the following operations are respectively performed: Based on the classification model, obtaining a sample category and auxiliary training information corresponding to the object historical data; generating a candidate training sample according to the object historical data and the sample category and auxiliary training information corresponding to the object historical data; The training sample set is determined according to the generated multiple candidate training samples.

7. The method of claim 6, wherein: The step of determining the training sample set according to the generated plurality of candidate training samples comprises: Clustering the plurality of candidate training samples according to at least one of the clustering conditions corresponding to the candidate training samples to obtain a plurality of candidate training sample sets, wherein the clustering conditions include: sample categories corresponding to the candidate training samples and auxiliary training information corresponding to the candidate training samples; At least one candidate training sample is selected from each of the plurality of candidate training sample sets to form the training sample set.

8. The method of claim 1, 2 or 3, wherein: The multimodal data input by the target object includes at least one of the following: multimodal data containing tone elements, multimodal data containing emotional elements, and multimodal data containing adjective elements; The multimodal data categories include emotion categories.

9. The method of claim 1, 2 or 3, wherein: The presenting corresponding feedback information to the target object according to the multimodal data category and the confidence level includes: According to the confidence level, using the corresponding multimodal data category as feedback information, and presenting the feedback information to the target object; or Determine reply content according to the multimodal data category and the confidence level, use the reply content as feedback information, and present the feedback information to the target object.

10. A data processing device, comprising: An acquisition module, used to acquire multimodal data input by a target object and input the multimodal data into a natural language macro model; The extraction module is used to perform the following operations based on the natural language large model: extracting features from the multimodal data to obtain element features and position features of the multimodal data; the element features represent the position of each element in the multimodal data; element information of the element, the position feature representing the character position of each element in the multimodal data; fusing the element feature corresponding to the multimodal data and the position feature to obtain a fusion feature; Based on the fusion features, a multimodal data category of the multimodal data and a confidence level corresponding to the multimodal data category are obtained; wherein the confidence level is used to characterize the accuracy of the corresponding classification result. In the process of training the natural language large model, the natural language large model is trained by inputting auxiliary training information, so that the natural language large model can obtain the confidence level corresponding to the multimodal data after the training is completed. The auxiliary training information is used to characterize the accuracy of the sample category corresponding to the training sample used to train the natural language large model. A presentation module is used to present corresponding feedback information to the target object according to the multimodal data category and the confidence level.

11. The device of claim 10, wherein: The extraction module is used to: Receiving multimodal data input by a target object, and dividing the multimodal data into individual elements; Obtaining element features of each element based on the element information of each element to obtain element features of the multimodal data; Corresponding position features are obtained based on the character positions of the various elements in the multimodal data.

12. The device of claim 11, wherein: The natural language model includes an input layer, an embedding layer and at least one encoding layer; The extraction module is specifically configured to perform the following steps in at least one encoding layer of the natural language large model: Determining a multimodal data category corresponding to the multimodal data and a confidence level corresponding to the multimodal data category according to the fusion features and the weight matrices corresponding to each encoding layer; Among them, the weight matrix corresponding to each coding layer is determined by the natural language large model during the training process.

13. The device of claim 10, 11 or 12, wherein: The natural language model is trained in the following way: Acquire a training sample set, wherein the training sample set includes a plurality of training samples, each training sample includes object historical data, and a sample category and auxiliary training information are set corresponding to each training sample; According to the multiple training samples in the training sample set, the initial natural language large model is subjected to cyclic iterative training, and when the training is completed, the trained natural language large model is output.

14. The device of claim 13, wherein: The step of performing cyclic iterative training on the initial natural language large model according to the multiple training samples in the training sample set specifically includes: The following operations are performed during one training cycle: Input each training sample extracted from the training sample set into the natural language big model, and obtain the prediction category and prediction confidence corresponding to the training sample output by the natural language big model; Constructing a loss function based on first difference information between the prediction category and the sample category corresponding to the training sample, and second difference information between the prediction confidence corresponding to the training sample and the auxiliary training information; Based on the loss function, the model parameters of the natural language model are adjusted.

15. The device of claim 13, wherein: The extraction module is used to: Get historical data of multiple objects; The plurality of object history data are respectively input into the classification model, and for each object history data in the plurality of object history data, the following operations are respectively performed: Based on the classification model, obtaining sample categories and auxiliary training information corresponding to the object historical data; Generate a candidate training sample according to the object historical data, and the sample category and auxiliary training information corresponding to the object historical data; The training sample set is determined according to the generated multiple candidate training samples.

16. The device of claim 15, wherein: The extraction module is used to: Clustering the plurality of candidate training samples according to at least one of the clustering conditions corresponding to the candidate training samples to obtain a plurality of candidate training sample sets, wherein the clustering conditions include: sample categories corresponding to the candidate training samples and auxiliary training information corresponding to the candidate training samples; At least one candidate training sample is selected from each of the plurality of candidate training sample sets to form the training sample set.

17. The device of claim 10, 11 or 12, wherein: The multimodal data input by the target object includes at least one of the following: multimodal data containing tone elements, multimodal data containing emotional elements, and multimodal data containing adjective elements; The multimodal data categories include emotion categories.

18. An electronic device comprising a processor and a memory, wherein: The memory stores program codes, and when the program codes are executed by the processor, the processor executes the method according to any one of claims 1 to 9.

19. A computer-readable storage medium comprising a computer program, wherein when the computer program is executed on an electronic device, the computer program is used to cause the electronic device to execute the method according to any one of claims 1 to 9.

20. A computer program product, comprising a computer program, wherein the computer program is stored in a computer-readable storage medium, and a processor of an electronic device reads and executes the computer program from the computer-readable storage medium, so that the electronic device executes the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Voice emotion recognition method and device and storage medium

    CN111508530A

  • Training method, category recognition method and device, electronic equipment and storage medium

    CN113361603A

  • Cross-modal understanding and generating method and device based on multi-modal pre-training model

    CN113591902A

  • Natural language processing method, electronic equipment and storage medium

    CN114510932A

  • Visual question and answer method based on cross-modal pre-training feature enhancement

    CN114663677A

Cited By

  • Knowledge graph-based large model task calling execution method and device

    CN118963869A

  • Industrial equipment service life prediction method based on large model knowledge enhancement

    CN119884653A

  • Intelligent voice interaction method and device based on voice gateway

    CN120375821A