Voice log data processing method and device and computer equipment

By using attention-based encoding and label generation, voice log data is processed automatically, solving the problem of low processing efficiency, improving the accuracy of target events and user satisfaction, and optimizing vehicle functions.

CN118113675BActive Publication Date: 2026-11-24GREAT WALL MOTOR CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311648995.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-04
Publication Date
2026-11-24
Estimated Expiration
2043-12-04

AI Technical Summary

Technical Problem

Existing technologies have low processing efficiency for voice log data, making it impossible to efficiently utilize the log data generated by voice assistants, which limits user satisfaction and vehicle function optimization.

Method used

An attention mechanism is used to encode voice log data, obtain sub-data features, and identify and generate target events through labeling to achieve automated processing.

Benefits of technology

It improved the processing efficiency of voice log data and the accuracy of target events, enhanced the performance of the voice assistant, increased user satisfaction, and optimized vehicle functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118113675B_ABST
    Figure CN118113675B_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, and computer device for processing voice log data, belonging to the field of computer technology. The technical solution provided in this application acquires voice log data generated when a user uses a vehicle's voice assistant. The voice log data is encoded based on an attention mechanism to obtain sub-data features of each sub-data element. Based on the sub-data features, label discrimination and label generation are performed on the voice log data to obtain a first predicted label and a second predicted label for each sub-data element. Based on the first predicted label, the second predicted label, and multiple sub-data elements in the voice log data, the target event corresponding to the voice log data is determined. This processing combines an attention mechanism, label discrimination, and label generation method, improving both the efficiency of voice log data processing and the accuracy of the identified target event.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and more specifically, to a method, apparatus, and computer device for processing voice log data in the field of vehicle technology. Background Technology

[0002] With the development of vehicle technology, vehicles offer increasingly rich functions. To facilitate users' safe and quick use of these functions, most manufacturers have built-in voice assistants into their vehicles. When users use these voice assistants, voice log data is generated. This data can be used to improve the voice assistant, increase user satisfaction, and optimize vehicle functions.

[0003] In related technologies, before using voice log data, technicians often need to manually process the voice log data. As the amount of voice log data increases, the disadvantage of low efficiency in manual processing becomes more and more obvious.

[0004] Therefore, there is an urgent need for an efficient method to process voice log data. Summary of the Invention

[0005] This application provides a method, apparatus, and computer device for processing voice log data, which can efficiently process voice log data. The technical solution is as follows:

[0006] On the one hand, a method for processing voice log data is provided, the method comprising:

[0007] Acquire the vehicle's voice log data, which is the log data generated when the user uses the vehicle's voice assistant;

[0008] The voice log data is encoded based on an attention mechanism to obtain sub-data features of each sub-data in the voice log data;

[0009] Based on the sub-data features of each sub-data, the voice log data is labeled and labeled to obtain a first predicted label and a second predicted label for each sub-data. The first predicted label and the second predicted label are used to represent the entity type to which the corresponding sub-data belongs. Label labeling refers to determining the predicted label from existing labels, and label generation refers to directly generating the predicted label.

[0010] Based on the first prediction label and the second prediction label of each of the sub-data and multiple sub-data in the voice log data, the target event corresponding to the voice log data is determined.

[0011] In one possible implementation, encoding the voice log data based on an attention mechanism to obtain sub-data features of each sub-data in the voice log data includes:

[0012] The sub-data in the voice log data is embedded and encoded to obtain the data vector of each sub-data;

[0013] The data vectors and position vectors of each sub-data are concatenated to obtain the embedding vector of each sub-data, wherein the position vector is used to represent the position of the corresponding sub-data in the voice log data;

[0014] Linear transformation and vector fusion are performed on the embedding vectors of each sub-data to obtain the sub-data features of each sub-data.

[0015] In one possible implementation, the voice log data includes at least one of log text and log voice signal, wherein the log voice signal is a voice signal collected when a user uses the vehicle's voice assistant, and the log text is text obtained by speech recognition of the log voice signal. The step of embedding and encoding each sub-data in the voice log data to obtain a data vector for each sub-data includes:

[0016] When the voice log data includes log text, multiple words in the log text are embedded and encoded to obtain data vectors for each word.

[0017] When the voice log data includes a log voice signal, multiple voice segments of the log voice signal are embedded and encoded to obtain a data vector for each voice segment;

[0018] When the voice log data includes log text and log voice signal, multiple words in the log text are embedded and encoded to obtain data vectors for each word; multiple voice segments in the log voice signal are embedded and encoded to obtain data vectors for each voice segment; the data vectors of each word and the data vectors of the corresponding voice segments are concatenated to obtain data vectors for each sub-data, wherein the sub-data includes words and corresponding voice segments.

[0019] In one possible implementation, the linear transformation and vector fusion of the embedding vectors of each of the sub-data points to obtain the sub-data features of each of the sub-data points includes:

[0020] For any one of the multiple sub-data, a linear transformation is performed on the embedding vector of the sub-data to obtain the query vector, key vector, and value vector of the sub-data.

[0021] Based on the query vector of the sub-data and the key vector of the multiple sub-data, determine the attention weight of the multiple sub-data to the sub-data;

[0022] Based on the attention weights of the multiple sub-data points to the sub-data points, the value vectors of each sub-data point are fused to obtain the sub-data features of the sub-data points.

[0023] In one possible implementation, the step of performing label discrimination and label generation on the voice log data based on the sub-data features of each sub-data to obtain a first predicted label and a second predicted label for each sub-data includes:

[0024] Based on the sub-data features of each sub-data and the label transition matrix, a first predicted label for each sub-data is determined. The label transition matrix is ​​used to represent the probability of a predicted label being transferred to other predicted labels. The label transition matrix is ​​trained based on multiple sample speech log data and the label set of each sample speech log data. The label set includes the label of each sub-data of each sample speech log data.

[0025] The sub-data features of each sub-data are decoded based on an attention mechanism to obtain the second predicted label of each sub-data.

[0026] In one possible implementation, determining the target event corresponding to the voice log data based on the first predicted label, the second predicted label, and multiple sub-data in the voice log data includes:

[0027] Based on the first and second predicted labels of each of the sub-data, the target label of each of the sub-data is determined;

[0028] Based on the target labels of each of the sub-data and the multiple sub-data, the target event corresponding to the voice log data is determined.

[0029] In one possible implementation, determining the target label for each of the sub-data based on the first and second predicted labels of each of the sub-data includes:

[0030] For any one of the plurality of sub-data, if the first predicted label and the second predicted label of the sub-data are the same, the target label of the sub-data is determined to be either the first predicted label or the second predicted label of the sub-data.

[0031] If the first predicted label and the second predicted label of the sub-data are different, the target label of the sub-data is determined to be the one to be labeled, or the target label of the sub-data is determined to be the predicted label with higher confidence among the first predicted label and the second predicted label of the sub-data.

[0032] In one possible implementation, determining the target event corresponding to the voice log data based on the target labels of each of the sub-data and the plurality of sub-data includes:

[0033] Based on the target tags of each of the sub-data and the multiple sub-data, determine the event trigger words, event types and event roles corresponding to the voice log data;

[0034] Based on the target labels of each of the sub-data, the multiple sub-data, and the event roles, event arguments are determined from the multiple sub-data;

[0035] Based on the event trigger word, the event type, the event role, and the event argument, the target event corresponding to the voice log data is determined.

[0036] On the one hand, a device for processing voice log data is provided, the device comprising:

[0037] The acquisition module is used to acquire the vehicle's voice log data, which is the log data generated when the user uses the vehicle's voice assistant;

[0038] The encoding module is used to encode the voice log data based on an attention mechanism to obtain the sub-data features of each sub-data in the voice log data;

[0039] The prediction module is used to perform label discrimination and label generation on the voice log data based on the sub-data features of each sub-data, to obtain a first predicted label and a second predicted label for each sub-data. The first predicted label and the second predicted label are used to represent the entity type to which the corresponding sub-data belongs. Label discrimination refers to determining the predicted label from existing labels, and label generation refers to directly generating the predicted label.

[0040] The event determination module is used to determine the target event corresponding to the voice log data based on the first prediction label, the second prediction label of each of the sub-data and multiple sub-data in the voice log data.

[0041] In one possible implementation, the encoding module is used to embed and encode each of the sub-data in the voice log data to obtain a data vector for each of the sub-data; to concatenate the data vector and the position vector of each of the sub-data to obtain an embedding vector for each of the sub-data, wherein the position vector is used to represent the position of the corresponding sub-data in the voice log data; and to perform linear transformation and vector fusion on the embedding vector of each of the sub-data to obtain the sub-data features of each of the sub-data.

[0042] In one possible implementation, the voice log data includes at least one of log text and log voice signal, wherein the log voice signal is a voice signal collected when a user uses the vehicle's voice assistant, and the log text is text obtained by speech recognition of the log voice signal. The encoding module is configured to perform the following steps:

[0043] When the voice log data includes log text, multiple words in the log text are embedded and encoded to obtain data vectors for each word.

[0044] When the voice log data includes a log voice signal, multiple voice segments of the log voice signal are embedded and encoded to obtain a data vector for each voice segment;

[0045] When the voice log data includes log text and log voice signal, multiple words in the log text are embedded and encoded to obtain data vectors for each word; multiple voice segments in the log voice signal are embedded and encoded to obtain data vectors for each voice segment; the data vectors of each word and the data vectors of the corresponding voice segments are concatenated to obtain data vectors for each sub-data, wherein the sub-data includes words and corresponding voice segments.

[0046] In one possible implementation, the encoding module is configured to perform a linear transformation on the embedding vector of any one of the plurality of sub-data to obtain a query vector, a key vector, and a value vector of the sub-data; determine the attention weights of the plurality of sub-data on the sub-data based on the query vector of the sub-data and the key vectors of the plurality of sub-data; and fuse the value vectors of each of the sub-data based on the attention weights of the plurality of sub-data on the sub-data to obtain the sub-data features of the sub-data.

[0047] In one possible implementation, the prediction module is configured to determine a first predicted label for each of the sub-data items based on the sub-data features of each sub-data item and a label transition matrix, wherein the label transition matrix represents the probability of a predicted label transitioning to another predicted label, and the label transition matrix is ​​trained based on multiple sample speech log data and a set of labeled labels for each of the sample speech log data items, wherein the set of labeled labels includes the labeled labels of each sub-data item of each of the sample speech log data items; and to decode the sub-data features of each of the sub-data items based on an attention mechanism to obtain a second predicted label for each of the sub-data items.

[0048] In one possible implementation, the event determination module is configured to determine a target label for each of the sub-data based on a first predicted label and a second predicted label for each of the sub-data; and to determine a target event corresponding to the voice log data based on the target labels of each of the sub-data and the plurality of sub-data.

[0049] In one possible implementation, the event determination module is configured to, for any sub-data among the plurality of sub-data, if the first predicted label and the second predicted label of the sub-data are the same, determine the target label of the sub-data as either the first predicted label or the second predicted label of the sub-data; if the first predicted label and the second predicted label of the sub-data are different, determine the target label of the sub-data as to be labeled, or determine the target label of the sub-data as the predicted label with higher confidence among the first predicted label and the second predicted label of the sub-data.

[0050] In one possible implementation, the event determination module is configured to determine the event trigger word, event type, and event role corresponding to the voice log data based on the target tags of each of the sub-data and the plurality of sub-data; determine the event argument from the plurality of sub-data based on the target tags of each of the sub-data, the plurality of sub-data, and the event role; and determine the target event corresponding to the voice log data based on the event trigger word, the event type, the event role, and the event argument.

[0051] On one hand, a computer device is provided, the computer device including one or more processors and one or more memories, the one or more memories storing at least one piece of program code, the program code being loaded and executed by the one or more processors to implement the operations performed by the voice log data processing method.

[0052] On one hand, a computer-readable storage medium is provided, wherein at least one piece of program code is stored in the computer-readable storage medium, the program code being loaded and executed by a processor to implement the operations performed by the voice log data processing method.

[0053] The technical solution provided in this application obtains voice log data generated when a user uses a vehicle's voice assistant. The voice log data is encoded based on an attention mechanism to obtain sub-data features of each sub-data item. Based on these sub-data features, the voice log data is labeled and labeled to obtain a first predicted label and a second predicted label for each sub-data item. These first and second predicted labels represent the entity type to which the corresponding sub-data item belongs. Based on the first and second predicted labels of each sub-data item and multiple sub-data items in the voice log data, the target event corresponding to the voice log data is determined, thus completing the automated processing of the voice log data. The processing combines an attention mechanism, label discrimination, and label generation methods. The attention mechanism can obtain sub-data features with strong expressive power. Label discrimination utilizes existing labels, that is, it uses existing information to determine the predicted labels. Label generation utilizes the generalization ability of the generation process, so that the generated predicted labels are not limited to existing labels, providing more possibilities for label prediction. As can be seen from the above description, label discrimination is more stable, label generation is more divergent, and the combination of label discrimination and label generation can form a complementary relationship. Therefore, combining the above process to determine the target event improves both the efficiency of processing voice log data and the accuracy of the identified target event. This target event can then be used to improve the voice assistant, increase user satisfaction, and optimize vehicle functionality. Attached Figure Description

[0054] Figure 1 This is a schematic diagram of the implementation environment of a voice log data processing method provided in an embodiment of this application;

[0055] Figure 2 This is a flowchart of a method for processing voice log data provided in an embodiment of this application;

[0056] Figure 3 This is a flowchart of another method for processing voice log data provided in an embodiment of this application;

[0057] Figure 4 This is a schematic diagram of the structure of a label prediction model provided in an embodiment of this application;

[0058] Figure 5 This is a schematic diagram of the structure of a voice log data processing device provided in an embodiment of this application;

[0059] Figure 6 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0060] The technical solutions in this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. "And / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

[0061] In the following text, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of technical features reflected. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.

[0062] To provide a clearer explanation of the technical solutions provided in the embodiments of this application, the terms involved in the embodiments of this application will be introduced below.

[0063] Artificial intelligence (AI) is the theory, methods, technology, and application system that uses digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.

[0064] Machine learning (ML) is a multidisciplinary field involving probability theory, statistics, approximation theory, convex analysis, and algorithm complexity theory. It specifically studies how computers can simulate or implement human learning behavior to acquire new knowledge or skills, and reorganize existing knowledge sub-models to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to endow computers with intelligence; its applications span all areas of artificial intelligence.

[0065] Semantic features: Features used to represent the semantics expressed by text. Different texts can correspond to the same semantic features; for example, the text "How's the weather today?" and the text "How's the weather today?" can correspond to the same semantic feature. Computer devices can map characters in text into character vectors, and combine and operate on these character vectors according to the relationships between characters to obtain the semantic features of the text. For example, computer devices can use a bidirectional encoder representation from transformers (BERT).

[0066] Normalization: Mapping sequences of values ​​with different ranges to the interval (0, 1) to facilitate data processing. In some cases, normalized values ​​can be directly expressed as probabilities.

[0067] Learning rate: Used to control the learning progress of the model. The learning rate guides the model in adjusting network weights using the gradient of the loss function during gradient descent. If the learning rate is too large, the loss function may directly skip the global optimum, resulting in excessive loss. If the learning rate is too small, the loss function changes very slowly, greatly increasing the convergence complexity of the network and making it easy to get trapped in local minima or saddle points.

[0068] Embedded coding, mathematically speaking, represents a correspondence, that is, mapping data in space X to space Y using a function F. This function F is injective, and the mapping result preserves the structure. An injective function means that the mapped data uniquely corresponds to the original data, and preserving the structure means that the order of the original data remains the same. For example, if there are data X1 and X2 before mapping, after mapping we get Y1 corresponding to X1 and Y2 corresponding to X2. If the original data X1 > X2, then correspondingly, the mapped data Y1 > Y2. For words, this means mapping words to another space to facilitate subsequent machine learning and processing.

[0069] Attention weights represent the importance of a piece of data during training or prediction. Importance indicates the magnitude of the influence of input data on output data. Data with high importance corresponds to higher attention weights, while data with low importance corresponds to lower attention weights. The importance of data varies in different scenarios, and training the model to assign attention weights is essentially the process of determining data importance.

[0070] It should be noted that all information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in this application are authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the voice log data involved in this application were all obtained with the full authorization of the user.

[0071] The implementation environment of the embodiments of this application is described below. See also... Figure 1 The implementation environment of the voice log data processing method provided in this application embodiment includes an in-vehicle terminal 101 and a server 104.

[0072] The vehicle-mounted terminal 101 is a terminal installed in the vehicle. The vehicle-mounted terminal 101 is connected to the server 104 via a wireless network, enabling data exchange between them. The vehicle-mounted terminal 101 provides a voice assistant, which allows users to access various vehicle functions. The vehicle-mounted terminal 101 also stores voice log data generated during voice assistant use and uploads this data to the server 104.

[0073] Server 104 is a standalone physical server, 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 functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, Content Delivery Network (CDN), and big data and artificial intelligence platforms. Server 104 can collect and process the voice log data uploaded by the vehicle terminal 101.

[0074] Those skilled in the art will understand that the number of the aforementioned vehicle-mounted terminals can be more or less. For example, there may be only one vehicle-mounted terminal, or there may be dozens or hundreds, or even more, in which case other vehicle-mounted terminals may also be included in the aforementioned implementation environment. This application does not limit the number or type of vehicle-mounted terminals in its embodiments.

[0075] After introducing the implementation environment of the embodiments of this application, the application scenarios of the technical solutions provided by the embodiments of this application will be described below. The technical solutions provided by the embodiments of this application can be applied to scenarios where voice log data uploaded by various vehicles is processed. The technical solutions provided by the embodiments of this application can be applied to scenarios where voice log data uploaded by electric vehicles is processed, as well as scenarios where voice log data uploaded by hybrid vehicles is processed, and scenarios where voice log data uploaded by fuel vehicles is processed. The embodiments of this application do not limit the scope of application.

[0076] The technical solution provided in this application is applied to the processing of voice log data uploaded by electric vehicles. The server obtains the voice log data from the electric vehicle, which is log data generated when using the vehicle's voice assistant. The server encodes the voice log data based on an attention mechanism to obtain sub-data features of each sub-data element. Based on the sub-data features, the server performs label discrimination and label decoding on multiple sub-data elements in the voice log data to obtain a first predicted label and a second predicted label for each sub-data element. That is, the predicted label for each sub-data element is determined in two ways, and the predicted label represents the entity corresponding to the sub-data element. Based on the first predicted label, the second predicted label, and the multiple sub-data elements, the target event corresponding to the voice log data is determined. The target event can express the voice log data in a structured form, thereby facilitating subsequent use of the voice log data and achieving efficient processing of the voice log data.

[0077] It should be noted that the above description is based on the application of the technical solution provided in the embodiments of this application to process voice log data uploaded by electric vehicles. When the technical solution provided in the embodiments of this application is applied to other types of vehicles, the implementation process is the same as the above description and will not be repeated here.

[0078] After introducing the implementation environment and application scenarios of the embodiments of this application, the technical solutions provided by the embodiments of this application are described below. (See also...) Figure 2 Taking the server as the executing entity as an example, the method includes the following steps.

[0079] 201. The server obtains the vehicle's voice log data, which is the log data generated when the user uses the vehicle's voice assistant.

[0080] The vehicle can be an electric vehicle, a hybrid vehicle, or a gasoline-powered vehicle; this application does not limit the specific type of vehicle. A voice assistant is an intelligent voice interaction system based on artificial intelligence technology, capable of communicating with users through voice to help them complete various operations or provide various services. Correspondingly, a vehicle's voice assistant can help users use vehicle functions. When a user uses a voice assistant, they provide voice commands. The voice assistant can recognize the user's voice commands and execute the corresponding actions; the voice log data is the log data corresponding to that voice command.

[0081] 202. The server encodes the voice log data based on an attention mechanism to obtain the sub-data features of each sub-data in the voice log data.

[0082] The voice log data comprises multiple sub-data sets, each representing a different part of the log. The sub-data sets have different meanings depending on the type of data included. For example, if the log includes text, the sub-data sets refer to the words in the text; if the log includes audio signals, the sub-data sets refer to audio segments within those signals. Encoding the voice log data using an attention mechanism involves utilizing the attention relationships between the sub-data sets to encode each sub-data set. The resulting sub-data features can accurately represent the characteristics of the corresponding sub-data set within the overall voice log data.

[0083] 203. Based on the sub-data features of each sub-data, the server performs label discrimination and label generation on the voice log data to obtain the first predicted label and the second predicted label of each sub-data. The first predicted label and the second predicted label are used to represent the entity type to which the corresponding sub-data belongs. Label discrimination refers to determining the predicted label from the existing labels, and label generation refers to directly generating the predicted label.

[0084] Label discrimination and label generation are two methods for determining predicted labels. The first predicted label is obtained through label discrimination, and the second predicted label is obtained through label generation. Label discrimination is a discriminative label prediction method, and label generation is a generative label prediction method. Discriminative label prediction refers to the method of determining which existing label a sub-data belongs to, while generative label prediction refers to the method of directly generating labels.

[0085] 204. The server determines the target event corresponding to the voice log data based on the first prediction label, the second prediction label of each sub-data and multiple sub-data in the voice log data.

[0086] The target event is a structured representation of the voice log data, capable of indicating the meaning of the voice log data. Through this target event, the information provided by the voice log data can be fully utilized.

[0087] The technical solution provided in this application obtains voice log data generated when a user uses a vehicle's voice assistant. The voice log data is encoded based on an attention mechanism to obtain sub-data features of each sub-data item. Based on these sub-data features, the voice log data is labeled and labeled to obtain a first predicted label and a second predicted label for each sub-data item. These first and second predicted labels represent the entity type to which the corresponding sub-data item belongs. Based on the first and second predicted labels of each sub-data item and multiple sub-data items in the voice log data, the target event corresponding to the voice log data is determined, thus completing the automated processing of the voice log data. The processing combines an attention mechanism, label discrimination, and label generation methods. The attention mechanism can obtain sub-data features with strong expressive power. Label discrimination utilizes existing labels, that is, it uses existing information to determine the predicted labels. Label generation utilizes the generalization ability of the generation process, so that the generated predicted labels are not limited to existing labels, providing more possibilities for label prediction. As can be seen from the above description, label discrimination is more stable, label generation is more divergent, and the combination of label discrimination and label generation can form a complementary relationship. Therefore, combining the above process to determine the target event improves both the efficiency of processing voice log data and the accuracy of the identified target event. This target event can then be used to improve the voice assistant, increase user satisfaction, and optimize vehicle functionality.

[0088] It should be noted that steps 201-204 above are a simplified description of the voice log data processing method provided in the embodiments of this application. The following will provide a more detailed description of the voice log data processing method provided in the embodiments of this application, using some examples. See [link to relevant documentation]. Figure 3 Taking the server as the executing entity as an example, the method includes the following steps.

[0089] 301. The server obtains the vehicle's voice log data, which is the log data generated when the user uses the vehicle's voice assistant.

[0090] The vehicle can be an electric vehicle, a hybrid vehicle, or a gasoline-powered vehicle; this application embodiment does not limit the specific type. A voice assistant is an intelligent voice interaction system based on artificial intelligence technology, capable of communicating with users through voice to help them complete various operations or provide various services. Correspondingly, a vehicle's voice assistant can help users use vehicle functions. When a user uses a voice assistant, they provide voice commands. The voice assistant can recognize the user's voice commands and execute the corresponding actions; the voice log data is the log data corresponding to that voice command. In this application embodiment, the server obtains the vehicle's voice log data with the user's permission. Without the user's permission, the server cannot obtain the vehicle's voice log data.

[0091] In one possible implementation, the server obtains the vehicle's voice log data from a cloud platform, which is uploaded by the vehicle to the cloud platform.

[0092] The cloud platform serves as the vehicle's TSP (Transportation Service) platform, providing various services such as voice assistant, media playback, fault identification, roadside assistance, and location services. The vehicle periodically uploads voice log data to the cloud platform, which then processes or forwards this data to a server for further processing, thereby utilizing the voice log data to improve vehicle services.

[0093] In this implementation, the server can obtain the vehicle's voice log data from the cloud platform without having to establish a connection with each vehicle, thus reducing the cost of obtaining voice log data.

[0094] In one possible implementation, the server obtains the vehicle's voice log data from the vehicle.

[0095] In this implementation, the server can directly obtain voice log data from the vehicle. The process of obtaining voice log data does not need to be forwarded through the cloud platform, and the voice log data has high real-time performance.

[0096] It should be noted that the server can obtain the vehicle's voice log data through any of the above methods, and this application embodiment does not limit this.

[0097] Furthermore, when using the voice log data processing method provided in this application embodiment, the server can simultaneously acquire multiple voice log data sets, thereby processing the multiple voice log data sets. For ease of understanding, this application embodiment uses the processing of one voice log data set as an example for explanation.

[0098] 302. The server preprocesses the voice log data.

[0099] The voice log data includes at least one of log text and log voice signal. The log voice signal is the voice signal collected when the user uses the vehicle's voice assistant, and the log text is the text obtained by speech recognition of the log voice signal. Preprocessing the voice log data is performed to eliminate errors or anomalies and improve the accuracy of subsequent processing.

[0100] In one possible implementation, if the voice log data includes log text, the server performs text cleaning on the log text to obtain a first preprocessed text. The server then performs stop word processing on the first preprocessed text to obtain a second preprocessed text. The server further performs missing value processing on the second preprocessed text to obtain a third preprocessed text. Finally, the server normalizes the third preprocessed text, completing the preprocessing of the log text.

[0101] Text cleaning, stop word processing, missing value processing, and standardization are all preprocessing methods. The above implementation is based on the example of the server performing all the above processes on the log text. In other possible implementations, the server can also perform one or more of the above preprocessing methods on the log text. This application embodiment does not limit this.

[0102] In this implementation, when the voice log data includes log text, the log text is preprocessed by performing text cleaning, stop word removal, missing value removal, and standardization to improve the accuracy of the log text.

[0103] To provide a clearer explanation of the above embodiments, the following description will be divided into several parts.

[0104] The first part involves the server performing text cleaning on the log text to obtain the first preprocessed text.

[0105] In one possible implementation, the server removes special characters from the log text. The server then performs case conversion and simplified / traditional character conversion on the log text after removing special characters to obtain the first preprocessed text.

[0106] Special characters include non-text content, special symbols, and punctuation marks. For example, non-text content includes HTML tags and links; special symbols include "@", "¥", and "&"; and punctuation marks include quotation marks, commas, and semicolons. Case conversion is used to unify the case of English characters in the log text, such as converting all English characters in the log text to lowercase. Traditional / Simplified character conversion is used to unify the case of Chinese characters in the log text, such as converting all Chinese characters in the log text to simplified characters.

[0107] In this implementation, special characters are removed from the log text, and case conversion as well as traditional-to-simplified Chinese conversion are performed on the log text, thereby implementing the first preprocessing of the log text.

[0108] For example, the server performs special character recognition on the log text to obtain special characters in the log text. The server removes the special characters from the log text. The server performs case conversion and traditional-to-simplified Chinese conversion on the log text after special character removal, to uniformly convert English characters in the log text to lowercase and Chinese characters to simplified Chinese, thereby obtaining the first preprocessed text. In some embodiments, the server may use a special character table to perform special character recognition on the log text, where the special character table stores a plurality of special characters, and the plurality of special characters may be set and adjusted by technicians according to actual conditions, which is not limited in the embodiments of the present application.

[0109] In the second part, the server performs stop word processing on the first preprocessed text to obtain a second preprocessed text.

[0110] In a possible implementation, the server removes stop words from the first preprocessed text to obtain the second preprocessed text.

[0111] Herein, stop words refer to certain characters or words that are automatically ignored before or after text processing, and stop words do not affect the meaning of the text. For example, "的", "是", and "在" are stop words.

[0112] In this implementation, stop words in the first preprocessed text can be removed, and the dimension of subsequent feature extraction can be reduced after the stop words are removed.

[0113] For example, the server performs stop word recognition on the first preprocessed text to obtain stop words in the first preprocessed text. The server removes the stop words from the first preprocessed text to obtain the second preprocessed text. In some embodiments, the server may use a stop word table to perform stop word recognition on the log text, where the stop word table stores a plurality of stop words, and the plurality of stop words may be set and adjusted by technicians according to actual conditions, which is not limited in the embodiments of the present application.

[0114] In the third part, the server performs missing value processing on the second preprocessed text to obtain a third preprocessed text.

[0115] In a possible implementation, the server removes or fills missing values in the second preprocessed text to obtain the third preprocessed text.

[0116] Herein, the missing values include Not a Number (NaN) or empty strings.

[0117] In this implementation, accuracy is further improved by removing or filling in missing values ​​in the second preprocessed text.

[0118] Part Four: The server standardizes the third preprocessed text, completing the preprocessing of the log text.

[0119] In one possible implementation, the server segments the third preprocessed text to obtain multiple words. The server then normalizes these words to map each word to a normalized representation, thus completing the preprocessing of the log text.

[0120] The above explanation uses the voice log data including log text as an example. The following explanation uses the voice log data including log voice signal as an example.

[0121] In one possible implementation, if the voice log data includes a log voice signal, the server performs voice enhancement and trimming on the log voice signal to achieve preprocessing of the log voice signal.

[0122] Speech enhancement is used to reduce noise in speech signals, suppressing noise and highlighting the speech components. Trimming removes blank areas from the speech signal.

[0123] In this implementation, by enhancing and trimming the log audio signal, noise in the log audio signal can be suppressed and blank parts can be removed, which facilitates subsequent processing of the log audio signal.

[0124] For example, the server segments and windowes the log audio signal to obtain multiple audio segments. The server then performs a time-frequency transform on these segments to obtain their spectra. The server inputs these spectra into a speech enhancement model, which outputs the target spectra for each segment, representing the enhanced audio signal. The server performs an inverse Fourier transform on the target spectra of each segment to obtain the enhanced log audio signal. Finally, the server removes blank portions from the enhanced log audio signal, completing the preprocessing. The speech enhancement model is trained on multiple sample audio signals and their corresponding labeled audio signals. The sample audio signals are noisy, while the labeled audio signals are clean.

[0125] It should be noted that step 302 above is an optional step. After step 301, step 302 can be executed first and then step 303 below can be executed directly. This application embodiment does not limit this.

[0126] 303. The server encodes the voice log data based on an attention mechanism to obtain the sub-data features of each sub-data in the voice log data.

[0127] The voice log data comprises multiple sub-data items, each representing a different part of the log. The sub-data items have different meanings depending on the type of data included. For example, if the log includes text, the sub-data items refer to the words in the text. If the log includes audio signals, the sub-data items refer to audio segments within those signals. Encoding the voice log data using an attention mechanism involves leveraging the attention relationships between the sub-data items to encode each item. This ensures that the encoding process focuses on the more important sub-data items, resulting in sub-data features that accurately represent the characteristics of each item within the voice log data.

[0128] In one possible implementation, the server performs embedding encoding on each sub-data item in the voice log data to obtain a data vector for each sub-data item. The server concatenates the data vectors and position vectors of each sub-data item to obtain an embedding vector for each sub-data item, where the position vector represents the position of the corresponding sub-data item in the voice log data. The server then performs linear transformation and vector fusion on the embedding vectors of each sub-data item to obtain the sub-data features of each sub-data item.

[0129] Embedding encoding is used to encode sub-data into data vectors for subsequent processing. After embedding encoding, different sub-data have different data vectors, and these data vectors can represent the corresponding sub-data. The position vector represents the position of the corresponding sub-data within the voice log data. Since multiple sub-data in the voice log data are arranged in a certain order, the voice log data can be considered as a sequence of sub-data, and the position vector represents the order of the corresponding sub-data within the voice log data. In some embodiments, the position vector is obtained by embedding encoding the order of the sub-data within the voice log data.

[0130] In this implementation, each sub-data point in the voice log data is embedded and encoded to map it into a data vector. The data vector and position vector of each sub-data point are then concatenated to obtain the embedding vector for that sub-data point. Further processing of these embedding vectors allows for feature extraction of each sub-data point, resulting in highly efficient feature extraction.

[0131] To provide a clearer explanation of the above embodiments, the embodiments will be described in several parts below.

[0132] The first part involves the server embedding and encoding each sub-data in the voice log data to obtain the data vector of each sub-data.

[0133] In one possible implementation, if the voice log data includes log text, the server performs embedding encoding on multiple words in the log text to obtain data vectors for each word.

[0134] In this embodiment of the application, a word may include one character or multiple characters, and this embodiment of the application does not limit this.

[0135] In this implementation, when the voice log data includes log text, multiple words in the log text are embedded and encoded to obtain data vectors for each word, which can then be used for subsequent processing.

[0136] The above implementation method is illustrated below with two examples.

[0137] Example 1: When the server performs step 302 above and segments the log text, the server inputs multiple words from the log text into an encoder. The encoder encodes each word to obtain a data vector for each word. For example, the server inputs multiple words from the log text into the encoder. For any word among these words, the server uses the encoder to look up that word in the encoder's encoding table to obtain its data vector. This encoding table stores the correspondence between multiple words and multiple data vectors.

[0138] Example 2: If the server does not perform step 302 above or perform word segmentation on the log text, the server performs word segmentation on the log text to obtain multiple words. The server inputs these multiple words into an encoder, which encodes each word to obtain a data vector for each word. The method of encoding each word using the encoder belongs to the same inventive concept as described in Example 1 above, and the implementation process is described in the relevant description of Example 1 above, and will not be repeated here.

[0139] In one possible implementation, if the voice log data includes a log voice signal, the server embeds and encodes multiple voice segments of the log voice signal to obtain data vectors for each voice segment.

[0140] Among them, the voice segment refers to the audio frame of the log voice signal.

[0141] In this implementation, when the voice log data includes a log voice signal, multiple voice segments of the log voice signal are embedded and encoded to obtain data vectors for each voice segment, and subsequent processing can be performed based on the data vectors.

[0142] The above implementation method is illustrated below with two examples.

[0143] Example 1: After the server executes step 302 above and performs framing and windowing on the log audio signal, the server inputs multiple audio segments of the log audio signal into an encoder. The encoder encodes each audio segment to obtain a data vector for each audio segment. For example, the server inputs multiple audio segments of the log audio signal into the encoder. For any audio segment among these multiple audio segments, the server uses the encoder to extract features from the audio segment, obtaining its time-domain feature vector. The server uses the encoder to perform time-frequency transformation on the audio segment, obtaining its spectrum. The server uses the encoder to extract features from the spectrum of the audio segment, obtaining its frequency-domain feature vector. The server concatenates the time-domain feature vector and the frequency-domain feature vector of the audio segment to obtain its data vector.

[0144] The time-domain feature vectors include signal variation vectors, semantic vectors, and local feature vectors. Signal variation vectors describe the short-time energy and short-time zero-crossing rate of speech segments, while semantic vectors describe phoneme features, syllable features, intonation features, and emotional polarity. Local feature vectors are obtained by convolving specific frequency components of a speech segment. Frequency-domain feature vectors describe the Mel-Frequency Cepstral Coefficients (MFCCs) of the speech spectrum.

[0145] Example 2: If the server does not perform step 302 above or perform framing and windowing on the log audio signal, the server performs framing and windowing on the log audio signal to obtain multiple audio segments. The server inputs these multiple audio segments into an encoder, which encodes each audio segment to obtain a data vector for each audio segment. The method of encoding each audio segment using the encoder belongs to the same inventive concept as described in Example 1 above, and the implementation process is described in the relevant section of Example 1 above, and will not be repeated here.

[0146] In one possible implementation, when the voice log data includes log text and log voice signal, the server performs embedding encoding on multiple words in the log text to obtain data vectors for each word. The server performs embedding encoding on multiple voice segments of the log voice signal to obtain data vectors for each voice segment. The server concatenates the data vectors of each word and the corresponding voice segment data vectors to obtain data vectors for each sub-data, where each sub-data includes a word and its corresponding voice segment.

[0147] In this context, the correspondence between a word and a speech segment means that the word can be obtained after speech recognition of the speech segment. A fusion sub-data is obtained by concatenating a word with its corresponding speech segment. The process of embedding and encoding multiple words and multiple speech segments belongs to the same inventive concept as the two implementation methods described above, and the implementation process will not be elaborated further.

[0148] In this implementation, when the voice log data includes log text and log voice signal, each word of the log text is concatenated with the corresponding voice segment of the log voice signal to obtain multiple fused sub-data. These multiple fused sub-data are then embedded and encoded to obtain data vectors for each fused sub-data, thereby achieving the embedding and encoding of multiple sub-data in the voice log data.

[0149] The second part involves the server concatenating the data vectors and position vectors of each sub-data to obtain the embedding vector of each sub-data. This position vector is used to represent the position of the corresponding sub-data in the voice log data.

[0150] In one possible implementation, for any sub-data set among multiple sub-data sets, the data vector and position vector of that sub-data set are concatenated dimensionally to obtain the embedding vector of that sub-data set. For example, if the data vector of the sub-data set is A and the position vector is B, concatenating them dimensionally yields the embedding vector.

[0151] Part Three: The server performs linear transformation and vector fusion on the embedding vectors of each sub-data to obtain the sub-data features of each sub-data.

[0152] In one possible implementation, for any one of the plurality of sub-data, the server performs a linear transformation on the embedding vector of the sub-data to obtain the query vector, key vector, and value vector of the sub-data. Based on the query vector of the sub-data and the key vectors of the plurality of sub-data, the server determines the attention weights of the plurality of sub-data for the sub-data. Based on the attention weights of the plurality of sub-data for the sub-data, the server fuses the value vectors of each sub-data to obtain the sub-data feature of the sub-data.

[0153] In the above process, multiple sub-data include this sub-data, that is, in the process of determining attention weight, the attention weight of this sub-data "to itself" is determined.

[0154] In this implementation, a linear transformation is performed on the embedding vector to obtain the query vector, key vector, and value vector of the sub-data. Using the query vector, key vector, and value vector of the sub-data, the attention weights of multiple sub-data points on that sub-data are determined, ultimately yielding the sub-data features. This fully utilizes the information from multiple sub-data points, and the sub-data features can accurately represent the sub-data.

[0155] For example, for any one of the multiple sub-data sets, the server multiplies the embedding vector of that sub-data set with the first, second, and third linear transformation matrices respectively, to obtain the query vector, key vector, and value vector of that sub-data set. The first, second, and third linear transformation matrices are all trained. The server then multiplies the query vector of that sub-data set with the key vectors of the multiple sub-data sets to obtain the attention weights of the multiple sub-data sets for that sub-data set. Based on these attention weights, the server fuses the value vectors of each sub-data set to obtain the sub-data set features.

[0156] For example, for any one of the multiple sub-data (1, 3, 4), the server will use three linear transformation matrices. as well as Multiply the subdata (1, 3, 4) by the right to obtain the query vector (2, 3, 15), key vector (5, 10, 1), and value vector (-8, 18, 6) of the subdata (1, 3, 4).

[0157] If there are multiple sub-data items, each consisting of three sub-data items, the query vector for the first sub-data item is (2, 3, 15), the key vector is (5, 10, 1), and the value vector is (-8, 18, 6); the key vector for the second sub-data item is (5, 1, 2), and the value vector is (-1, 0, 1); and the key vector for the third sub-data item is (6, 2, 0), and the value vector is (1, 1, 2). The server multiplies the query vector (2, 3, 15) of the first sub-data item with the key vectors of each of the three sub-data items (including the first sub-data item itself) to obtain the attention scores for the three sub-data items. Specifically, the attention score for the first sub-data item itself is (2, 3, 15)·(5, 10, 1) = 55; the attention score for the second sub-data item on the first sub-data item is (2, 3, 15)·(5, 1, 2) = 43; and the attention score for the third sub-data item on the first sub-data item is (2, 3, 15)·(6, 2, 0) = 18. The server normalizes the three attention scores (55, 43, 18) using the Softmax function, resulting in attention weights (0.47, 0.37, 0.16) for the first data point from the three sub-data points. Using these attention weights, the server then performs a weighted sum on the value vectors of the three sub-data points (-8, 18, 6), (-1, 0, 1), and (1, 1, 2) to obtain the sub-data features of the first data point (3.76, 8.83, 3.3).

[0158] 304. Based on the sub-data features of each sub-data, the server performs label discrimination and label generation on the voice log data to obtain the first and second predicted labels for each sub-data.

[0159] Label discrimination and label generation are two methods for determining predicted labels. The first predicted label is obtained through label discrimination, and the second predicted label is obtained through label generation. Label discrimination is a discriminative label prediction method, while label generation is a generative label prediction method. Discriminative label prediction refers to determining which existing label a piece of data belongs to, while generative label prediction refers to directly generating labels. In some embodiments, predicted labels include entity labels (such as person names and place names), event labels (such as accidents and traffic jams), sentiment labels (such as positive, negative, and neutral), and relationship labels (such as the relationship between a user and their destination).

[0160] In one possible implementation, the server determines a first predicted label for each sub-data point based on its sub-data features and a label transition matrix. This label transition matrix represents the probability of a predicted label transitioning to another predicted label. The label transition matrix is ​​trained using multiple sample speech log data and a set of labeled labels for each sample speech log data point. The labeled label set includes the labeled labels for each sub-data point of each sample speech log data point. The server then decodes the sub-data features of each sub-data point using an attention mechanism to obtain a second predicted label for each sub-data point.

[0161] In this implementation, the first predicted label of each sub-data is determined by using the sub-data features of each sub-data and the label transition matrix. The second predicted label of each sub-data is obtained by decoding the sub-data features of each sub-data based on the attention mechanism. That is, the predicted label is determined in two ways, making full use of the sub-data features of the sub-data.

[0162] To provide a clearer explanation of the above embodiments, the following description will be divided into two parts.

[0163] Part 1: The server determines the first predicted label for each sub-data based on the sub-data features and the label transition matrix.

[0164] In one possible implementation, the server determines multiple candidate paths composed of multiple candidate predicted labels corresponding to each of the multiple sub-data sets, based on the sub-data features and the label transition matrix. The server scores each candidate path to obtain a path score, which represents the probability that a candidate predicted label contained in the corresponding candidate path belongs to the first predicted label. The server then determines the multiple candidate predicted labels contained in the candidate path with the highest path score as the first predicted label for each of the multiple sub-data sets.

[0165] The first predicted label is used to characterize the entity boundary label and entity type label of the current sub-data. In other words, the first predicted label is equivalent to providing the entity boundary labeling result and entity type labeling result of the current sub-data.

[0166] The second part involves the server decoding the sub-data features of each sub-data based on an attention mechanism to obtain the second predicted label for each sub-data.

[0167] In one possible implementation, the server sequentially inputs the sub-data features of the multiple sub-data into the decoder, which performs multiple rounds of iterative decoding based on an attention mechanism and outputs the second predicted label for each sub-data.

[0168] For example, the server adds a start character at the beginning and a stop character at the end of the multiple data segments to obtain the input sequence, which is then fed into the decoder. The decoder decodes the start character in the input sequence to obtain the first decoded character. The server then inputs the first decoded character and the first data segment of the input sequence into the decoder, which decodes the first decoded character and the first data segment to obtain the second decoded character, and so on, until the decoder detects the stop character, completing the iteration. The resulting multiple decoded characters are the second predicted labels for each data segment.

[0169] In some embodiments, the server can perform steps 303 and 304 above using a label prediction model, see [link to documentation]. Figure 4 The label prediction model 400 includes a feature extraction unit 401 and a prediction unit 402. The prediction unit 402 includes a first prediction subunit 4021 and a second prediction subunit 4022, which are used to perform label prediction in different ways. The feature extraction unit 401 is used to perform step 303, and the prediction unit is used to perform step 304. In some embodiments, the feature extraction unit 401 is an encoder for a BERT (Bidirectional Encoder Representations from Transformers) model, the first prediction subunit 4021 is a CRF (Conditional Random Fields) model, and the second prediction subunit 4022 is a decoder for a BERT model.

[0170] In some embodiments, the server trains the label prediction model using multiple sample speech log data and the labeled tags of each sample speech log data. This label prediction model has the ability to determine the target tags for multiple sub-data items within the speech log data. During the training of the label prediction model, technicians can find suitable training parameters by adjusting the learning rate, batch size, and number of training epochs. Of course, after the label prediction model has been trained, the server can use a test set to test its performance. If the label prediction model passes the test, it can be applied to the technical solutions provided in the embodiments of this application. In some embodiments, the server can use the test set to determine the accuracy, recall, and F1 score of the label prediction model, and use these metrics to evaluate the predictive performance of the label prediction model.

[0171] 305. The server determines the target label for each sub-data based on the first and second predicted labels of each sub-data.

[0172] The target label is the label that is ultimately assigned to the sub-data.

[0173] In one possible implementation, for any one of the plurality of sub-data, if the first predicted label and the second predicted label of the sub-data are the same, the server determines the target label of the sub-data as either the first predicted label or the second predicted label of the sub-data.

[0174] In this implementation, if the first predicted label and the second predicted label are the same, the first predicted label or the second predicted label is directly determined as the target label, resulting in high accuracy of the target label.

[0175] In one possible implementation, if the first predicted label and the second predicted label of the sub-data are different, the server determines the target label of the sub-data as to be labeled, or the server determines the target label of the sub-data as the predicted label with higher confidence between the first predicted label and the second predicted label of the sub-data.

[0176] Once a data point is identified as needing labeling, technical personnel will label it to determine its target label. Since the first and second predicted labels are determined using two different methods, their confidence levels are the sum of the confidence levels of these two methods. These confidence levels are set by technical personnel based on the actual situation, and this embodiment does not impose any limitations on this.

[0177] 306. The server determines the target event corresponding to the voice log data based on the target tags of each sub-data and the multiple sub-data.

[0178] The target event is a structured representation of the voice log data, capable of indicating the meaning of the voice log data. Through this target event, the information provided by the voice log data can be fully utilized.

[0179] In one possible implementation, the server determines the event trigger word, event type, and event role corresponding to the voice log data based on the target tags of each sub-data and the multiple sub-data. The server then determines the event arguments from the multiple sub-data based on the target tags of each sub-data, the multiple sub-data, and the event role. Finally, the server determines the target event corresponding to the voice log data based on the event trigger word, the event type, the event role, and the event arguments.

[0180] Among them, the event trigger word represents the core word that indicates the occurrence of the event, and is mostly a verb or noun. The event type is determined by the event trigger word. Event roles, also known as argument roles, are the roles that event arguments play in the event. Event arguments are the participants in the event.

[0181] For example, the server determines the event trigger word and event role from the multiple sub-data sets based on the target tags of each sub-data set. The server determines the event type based on the event trigger word. The server determines the event argument from the multiple sub-data sets based on the target tags of each sub-data set and the event role. The server assembles the event trigger word, the event type, the event role, and the event argument to obtain the target event corresponding to the voice log data.

[0182] All of the above-mentioned optional technical solutions can be combined in any way to form the optional embodiments of this application, and will not be described in detail here.

[0183] The technical solution provided in this application obtains voice log data generated when a user uses a vehicle's voice assistant. The voice log data is encoded based on an attention mechanism to obtain sub-data features of each sub-data item. Based on these sub-data features, the voice log data is labeled and labeled to obtain a first predicted label and a second predicted label for each sub-data item. These first and second predicted labels represent the entity type to which the corresponding sub-data item belongs. Based on the first and second predicted labels of each sub-data item and multiple sub-data items in the voice log data, the target event corresponding to the voice log data is determined, thus completing the automated processing of the voice log data. The processing combines an attention mechanism, label discrimination, and label generation methods. The attention mechanism can obtain sub-data features with strong expressive power. Label discrimination utilizes existing labels, that is, it uses existing information to determine the predicted labels. Label generation utilizes the generalization ability of the generation process, so that the generated predicted labels are not limited to existing labels, providing more possibilities for label prediction. As can be seen from the above description, label discrimination is more stable, label generation is more divergent, and the combination of label discrimination and label generation can form a complementary relationship. Therefore, combining the above process to determine the target event improves both the efficiency of processing voice log data and the accuracy of the identified target event. This target event can then be used to improve the voice assistant, increase user satisfaction, and optimize vehicle functionality.

[0184] Figure 5 This is a schematic diagram of the structure of a voice log data processing device provided in an embodiment of this application. See also... Figure 5 The device includes: an acquisition module 501, an encoding module 502, a prediction module 503, and an event determination module 504.

[0185] The acquisition module 501 is used to acquire the vehicle's voice log data, which is the log data generated when the user uses the vehicle's voice assistant.

[0186] The encoding module 502 is used to encode the speech log data based on the attention mechanism to obtain the sub-data features of each sub-data in the speech log data.

[0187] The prediction module 503 is used to perform label discrimination and label generation on the voice log data based on the sub-data features of each sub-data, and to obtain the first predicted label and the second predicted label of each sub-data. The first predicted label and the second predicted label are used to represent the entity type to which the corresponding sub-data belongs. Label discrimination refers to determining the predicted label from the existing labels, and label generation refers to directly generating the predicted label.

[0188] The event determination module 504 is used to determine the target event corresponding to the voice log data based on the first prediction label, the second prediction label of each sub-data and multiple sub-data in the voice log data.

[0189] In one possible implementation, the encoding module 502 is used to embed and encode each sub-data in the voice log data to obtain a data vector for each sub-data. The data vectors and position vectors of each sub-data are concatenated to obtain an embedding vector for each sub-data, where the position vector represents the position of the corresponding sub-data in the voice log data. Linear transformation and vector fusion are then performed on the embedding vectors of each sub-data to obtain the sub-data features of each sub-data.

[0190] In one possible implementation, the voice log data includes at least one of log text and log voice signal, wherein the log voice signal is a voice signal collected when the user uses the vehicle's voice assistant, and the log text is text obtained by speech recognition of the log voice signal. The encoding module 502 is used to perform the following steps:

[0191] In the case where the voice log data includes log text, multiple words in the log text are embedded and encoded to obtain the data vector of each word.

[0192] When the voice log data includes a log voice signal, multiple voice segments of the log voice signal are embedded and encoded to obtain the data vector of each voice segment.

[0193] Given that the voice log data includes log text and log voice signal, multiple words in the log text are embedded and encoded to obtain data vectors for each word. Multiple speech segments in the log voice signal are also embedded and encoded to obtain data vectors for each speech segment. The data vectors of each word and the corresponding speech segment are concatenated to obtain data vectors for each sub-data set, which includes both the word and its corresponding speech segment.

[0194] In one possible implementation, the encoding module 502 is used to perform a linear transformation on the embedding vector of any one of the plurality of sub-data to obtain a query vector, a key vector, and a value vector for that sub-data. Based on the query vector of the sub-data and the key vectors of the plurality of sub-data, the attention weights of the plurality of sub-data for that sub-data are determined. Based on the attention weights of the plurality of sub-data for that sub-data, the value vectors of each sub-data are fused to obtain the sub-data features of that sub-data.

[0195] In one possible implementation, the prediction module 503 is used to determine a first predicted label for each sub-data based on the sub-data features of each sub-data and a label transition matrix. The label transition matrix represents the probability of a predicted label transitioning to another predicted label. This label transition matrix is ​​trained based on multiple sample speech log data and a set of labeled labels for each sample speech log data. The set of labeled labels includes the labeled labels of each sub-data of each sample speech log data. A second predicted label for each sub-data is obtained by decoding the sub-data features of each sub-data based on an attention mechanism.

[0196] In one possible implementation, the event determination module 504 is used to determine the target label for each sub-data based on the first predicted label and the second predicted label for each sub-data. Based on the target labels for each sub-data and the plurality of sub-data, the target event corresponding to the voice log data is determined.

[0197] In one possible implementation, the event determination module 504 is configured to, for any sub-data among the plurality of sub-data, determine the target label of the sub-data as either the first predicted label or the second predicted label of the sub-data if the first predicted label and the second predicted label of the sub-data are the same. If the first predicted label and the second predicted label of the sub-data are different, determine the target label of the sub-data as to be labeled, or determine the target label of the sub-data as the predicted label with higher confidence among the first predicted label and the second predicted label of the sub-data.

[0198] In one possible implementation, the event determination module 504 is configured to determine the event trigger word, event type, and event role corresponding to the voice log data based on the target labels of each sub-data and the plurality of sub-data. Based on the target labels of each sub-data, the plurality of sub-data, and the event role, event arguments are determined from the plurality of sub-data. Based on the event trigger word, the event type, the event role, and the event arguments, the target event corresponding to the voice log data is determined.

[0199] It should be noted that the voice log data processing device provided in the above embodiments is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device can be divided into different functional modules to complete all or part of the functions described above. In addition, the voice log data processing device and the voice log data processing method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process can be found in the method embodiments, which will not be repeated here.

[0200] The technical solution provided in this application obtains voice log data generated when a user uses a vehicle's voice assistant. The voice log data is encoded based on an attention mechanism to obtain sub-data features of each sub-data item. Based on these sub-data features, the voice log data is labeled and labeled to obtain a first predicted label and a second predicted label for each sub-data item. These first and second predicted labels represent the entity type to which the corresponding sub-data item belongs. Based on the first and second predicted labels of each sub-data item and multiple sub-data items in the voice log data, the target event corresponding to the voice log data is determined, thus completing the automated processing of the voice log data. The processing combines an attention mechanism, label discrimination, and label generation methods. The attention mechanism can obtain sub-data features with strong expressive power. Label discrimination utilizes existing labels, that is, it uses existing information to determine the predicted labels. Label generation utilizes the generalization ability of the generation process, so that the generated predicted labels are not limited to existing labels, providing more possibilities for label prediction. As can be seen from the above description, label discrimination is more stable, label generation is more divergent, and the combination of label discrimination and label generation can form a complementary relationship. Therefore, combining the above process to determine the target event improves both the efficiency of processing voice log data and the accuracy of the identified target event. This target event can then be used to improve the voice assistant, increase user satisfaction, and optimize vehicle functionality.

[0201] This application also provides a computer device. Figure 6 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application.

[0202] Typically, computer device 600 includes one or more processors 601 and one or more memories 602.

[0203] Processor 601 may include one or more processing cores, such as a quad-core processor, a hexa-core processor, etc. Processor 601 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 601 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 601 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 601 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.

[0204] The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 602 are used to store at least one computer program, which is executed by the processor 601 to implement the voice log data processing method provided in the method embodiments of this application.

[0205] Those skilled in the art will understand that Figure 6 The structure shown does not constitute a limitation on the computer device 600, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.

[0206] In addition, the apparatus provided in the embodiments of this application may specifically be a chip, component or module. The chip may include a connected processor and a memory. The memory is used to store instructions. When the processor calls and executes the instructions, the chip can execute a method for processing voice log data provided in the above embodiments.

[0207] This embodiment also provides a computer-readable storage medium storing computer program code. When the computer program code is run on a computer, the computer executes the above-described related method steps to implement the method for processing voice log data provided in the above embodiment.

[0208] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement a method for processing voice log data provided in the above embodiment.

[0209] In this embodiment, the device, computer-readable storage medium, computer program product, or chip are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0210] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0211] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0212] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for processing voice log data, characterized in that, The method includes: Acquire the vehicle's voice log data, which is the log data generated when the user uses the vehicle's voice assistant; The voice log data is encoded based on an attention mechanism to obtain sub-data features of each sub-data in the voice log data; Based on the sub-data features of each sub-data, the voice log data is labeled and labeled to obtain a first predicted label and a second predicted label for each sub-data. The first predicted label and the second predicted label are used to represent the entity type to which the corresponding sub-data belongs. Label labeling refers to determining the predicted label from existing labels, and label generation refers to directly generating the predicted label. Based on the first and second predicted labels of each of the sub-data and multiple sub-data in the voice log data, the target event corresponding to the voice log data is determined. The step of performing label discrimination and label generation on the voice log data based on the sub-data features of each sub-data to obtain the first predicted label and the second predicted label of each sub-data includes: Based on the sub-data features of each sub-data and the label transition matrix, a first predicted label for each sub-data is determined. The label transition matrix is ​​used to represent the probability of a predicted label being transferred to other predicted labels. The label transition matrix is ​​trained based on multiple sample speech log data and the label set of each sample speech log data. The label set includes the label of each sub-data of each sample speech log data. The sub-data features of each sub-data are decoded based on an attention mechanism to obtain the second predicted label of each sub-data.

2. The method according to claim 1, characterized in that, The encoding of the voice log data based on the attention mechanism to obtain the sub-data features of each sub-data in the voice log data includes: The sub-data in the voice log data is embedded and encoded to obtain the data vector of each sub-data; The data vectors and position vectors of each sub-data are concatenated to obtain the embedding vector of each sub-data, wherein the position vector is used to represent the position of the corresponding sub-data in the voice log data; Linear transformation and vector fusion are performed on the embedding vectors of each sub-data to obtain the sub-data features of each sub-data.

3. The method according to claim 2, characterized in that, The voice log data includes at least one of log text and log voice signal, wherein the log voice signal is a voice signal collected when the user uses the vehicle's voice assistant, and the log text is text obtained by speech recognition of the log voice signal. The step of embedding and encoding each sub-data in the voice log data to obtain a data vector for each sub-data includes: When the voice log data includes log text, multiple words in the log text are embedded and encoded to obtain data vectors for each word. When the voice log data includes a log voice signal, multiple voice segments of the log voice signal are embedded and encoded to obtain a data vector for each voice segment; When the voice log data includes log text and log voice signal, multiple words in the log text are embedded and encoded to obtain data vectors for each word; multiple voice segments in the log voice signal are embedded and encoded to obtain data vectors for each voice segment; the data vectors of each word and the data vectors of the corresponding voice segments are concatenated to obtain data vectors for each sub-data, wherein the sub-data includes words and corresponding voice segments.

4. The method according to claim 2, characterized in that, The linear transformation and vector fusion of the embedding vectors of each sub-data to obtain the sub-data features of each sub-data includes: For any one of the multiple sub-data, a linear transformation is performed on the embedding vector of the sub-data to obtain the query vector, key vector, and value vector of the sub-data. Based on the query vector of the sub-data and the key vector of the multiple sub-data, determine the attention weight of the multiple sub-data to the sub-data; Based on the attention weights of the multiple sub-data points to the sub-data points, the value vectors of each sub-data point are fused to obtain the sub-data features of the sub-data points.

5. The method according to claim 1, characterized in that, The process of determining the target event corresponding to the voice log data based on the first predicted label, the second predicted label, and multiple sub-data in the voice log data includes: Based on the first and second predicted labels of each of the sub-data, the target label of each of the sub-data is determined; Based on the target labels of each of the sub-data and the multiple sub-data, the target event corresponding to the voice log data is determined.

6. The method according to claim 5, characterized in that, The process of determining the target label for each of the sub-data based on the first and second predicted labels of each of the sub-data includes: For any one of the plurality of sub-data, if the first predicted label and the second predicted label of the sub-data are the same, the target label of the sub-data is determined to be either the first predicted label or the second predicted label of the sub-data. If the first predicted label and the second predicted label of the sub-data are different, the target label of the sub-data is determined to be the one to be labeled, or the target label of the sub-data is determined to be the predicted label with higher confidence among the first predicted label and the second predicted label of the sub-data.

7. The method according to claim 6, characterized in that, The determination of the target event corresponding to the voice log data based on the target labels of each of the sub-data and the plurality of sub-data includes: Based on the target tags of each sub-data and the multiple sub-data, determine the event trigger words, event types, and event roles corresponding to the voice log data; Based on the target labels of each of the sub-data, the plurality of sub-data, and the event roles, event arguments are determined from the plurality of sub-data; Based on the event trigger word, the event type, the event role, and the event argument, the target event corresponding to the voice log data is determined.

8. A device for processing voice log data, characterized in that, The device includes: The acquisition module is used to acquire the vehicle's voice log data, which is the log data generated when the user uses the vehicle's voice assistant; The encoding module is used to encode the voice log data based on an attention mechanism to obtain the sub-data features of each sub-data in the voice log data; The prediction module is used to perform label discrimination and label generation on the voice log data based on the sub-data features of each sub-data, and to obtain a first prediction label and a second prediction label for each sub-data. The first prediction label and the second prediction label are used to represent the entity type to which the corresponding sub-data belongs. The event determination module is used to determine the target event corresponding to the voice log data based on the first prediction label and the second prediction label of each of the sub-data and multiple sub-data in the voice log data. Specifically, the prediction module is used to determine the first predicted label for each of the sub-data based on the sub-data features and the label transition matrix. The label transition matrix represents the probability of a predicted label transitioning to another predicted label. The label transition matrix is ​​trained based on multiple sample speech log data and the labeled label set of each sample speech log data. The labeled label set includes the labeled labels of each sub-data of each sample speech log data. The module also decodes the sub-data features of each of the sub-data based on an attention mechanism to obtain the second predicted label for each of the sub-data.

9. A computer device, characterized in that, The computer device includes: Memory, used to store executable program code; A processor is configured to call and run the executable program code from the memory, causing the vehicle to perform the voice log data processing method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Event extraction method and system based on attention mechanism

    CN112307761A

  • Event extraction method and device, electronic equipment and readable storage medium

    CN114328838A