Vehicle-mounted voice control method and device, storage medium and electronic device

Through the combination of the personalized Lora model and the vehicle-mounted language model, the limitations of the vehicle-mounted voice interaction system in complex semantics and multi-wheel interactions are solved, providing a personalized interaction experience and ensuring the professionalism and stability of vehicle control.

CN118782033APending Publication Date: 2024-10-15CHONGQING CHANGAN TECH CO LTD
View PDF 0 Cites 6 Cited by

Patent Information

Application Number
CN202410858659.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing in-vehicle voice interaction systems have limitations in processing complex semantics and multi-turn interactions, and lack of personalized processing, resulting in poor user experience and no efficient and accurate solutions.

Method used

It uses a personalized Lora model combined with a general vehicle language model to generate personalized reply text and control instructions through semantic analysis and logical error judgment of voice commands, and updates the model through incremental training to meet the user's language habits and operating preferences.

Benefits of technology

It improves the naturalness and fluency of human-computer interaction, provides a customized interactive experience, and ensures the professionalism and stability of vehicle control. Incremental training and real-time interaction are independent of each other and do not affect response speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118782033A_ABST
    Figure CN118782033A_ABST
Patent Text Reader

Abstract

The invention provides a vehicle-mounted voice control method and device, a storage medium and an electronic device, and the method comprises the steps: collecting a vehicle-mounted voice instruction of a target user; a special Lora model matched with the target user is called, and the special Lora model is a personalized model corresponding to the target user; the vehicle-mounted voice instruction is input into a vehicle-mounted language model and the special Lora model, a target reply text and a target control instruction are output, and the vehicle-mounted language model is a universal model corresponding to a plurality of users; the target reply text is played on the vehicle through voice, and the target control instruction is executed on the vehicle. According to the embodiment of the invention, in the semantic understanding and reply generation process, the vehicle-mounted scene optimization model of the Lora model special for the user is combined, so that not only is the specialty of vehicle-mounted field knowledge ensured, but also the personalized requirements of the user are met, and the naturalness and fluency of human-computer interaction are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a vehicle-mounted voice control method and device, a storage medium, and an electronic device. Background Art

[0002] Among related technologies, with the rapid development of artificial intelligence technology, voice interaction technology is increasingly being used in in-vehicle scenarios, providing drivers with a more convenient and intelligent interactive experience.

[0003] In the related technologies, there are many voice vehicle control systems, which use voice recognition technology to identify the driver's voice commands and complete the corresponding vehicle control according to the preset control logic. However, the in-vehicle voice interaction model still has limitations in processing complex semantics and performing multiple rounds of interaction. Most voice vehicle control systems adopt a "one-size-fits-all" interaction strategy, without considering the personalized needs of different users, resulting in poor user experience.

[0004] With respect to the above-mentioned problems existing in the related technologies, no efficient and accurate solutions have been found yet. Summary of the invention

[0005] The present invention provides a vehicle-mounted voice control method and device, a storage medium, and an electronic device to solve the technical problems in related technologies.

[0006] According to one embodiment of the present invention, a method for controlling in-vehicle voice is provided, comprising: collecting in-vehicle voice commands of a target user; calling a dedicated Lora model matching the target user, wherein the dedicated Lora model is a personalized model corresponding to the target user; inputting the in-vehicle voice commands into an in-vehicle language model and the dedicated Lora model, and outputting a target reply text and a target control command, wherein the in-vehicle language model is a common model corresponding to multiple users; voice playing the target reply text on the vehicle, and executing the target control command on the vehicle.

[0007] Optionally, inputting the in-vehicle voice command into the in-vehicle language model and the Lora model, and outputting the reply text and the control command includes: inputting the in-vehicle voice command into the in-vehicle language model, and outputting the intermediate reply text and the intermediate control command; using the Lora model to personalize the intermediate reply text and the intermediate control command, and outputting the target reply text and the target control command.

[0008] Optionally, the in-vehicle voice command is input into an in-vehicle language model, and an intermediate reply text and an intermediate control command are output, including: using the in-vehicle language model to perform semantic analysis on the in-vehicle voice command to obtain semantic content; judging whether there is a logical error in the semantic content; if there is no logical error in the semantic content, outputting an intermediate reply text and an intermediate control command that match the in-vehicle voice command.

[0009] Optionally, after determining whether there is a logical error in the semantic content, the method further includes: determining whether there is a logical error in the semantic content, and outputting an error correction reply text that matches the in-vehicle voice command.

[0010] Optionally, before inputting the in-vehicle voice command into the in-vehicle language model and the dedicated Lora model, the method also includes: obtaining in-vehicle scene data, wherein the in-vehicle scene data includes at least one of the following: in-vehicle voice command corpus, an in-vehicle knowledge base, and a vehicle operation manual; and using the in-vehicle scene data to perform incremental training on a preset large language model to obtain the in-vehicle language model.

[0011] Optionally, before calling the dedicated Lora model matching the target user, the method further includes: acquiring language habit data and behavior habit data of the target user; and training a general Lora template using the language habit data and the behavior habit data to obtain the dedicated Lora model.

[0012] Optionally, obtaining the language habit data and behavior habit data of the target user includes: reading a personalized corpus of the target user, and reading a historical vehicle control record of the target user, wherein the personalized corpus includes at least one of the following: common expressions, catchphrases, and proper nouns, and the historical vehicle control records include at least one of the following: operation preference information and control habit information; extracting the language habit data and behavior habit data of the target user from the personalized corpus and the historical vehicle control records.

[0013] Optionally, after playing the target reply text on the vehicle and executing the target control instruction on the vehicle, the method also includes: generating incremental sample data using the in-vehicle voice instruction, the target reply text and the target control instruction; adding the incremental sample data to a sample database; selecting a sample data set of the current update cycle from the sample database according to priority; performing incremental training on the dedicated Lora model using the sample data set, and updating the dedicated Lora model based on the training results.

[0014] Optionally, selecting a sample data set for the current update cycle from the sample database according to priority includes: for each target sample data newly added in the current update cycle, reading the confidence of the target sample data, wherein the confidence is used to characterize the uncertainty of the model output result; using the confidence to configure the priority of each sample data newly added in the current update cycle; and selecting a number of sample data from multiple sample data newly added in the current update cycle according to the priority to obtain a sample data set.

[0015] Optionally, before reading the confidence of the target sample data, the method also includes: inputting the in-vehicle voice command into a natural language understanding NLU model, wherein the NLU model includes a first layer and a second layer connected in series in sequence, the first layer is deployed with multiple base learners in parallel, and the second layer is deployed with a global classification model, and each base learner corresponds to a knowledge domain; using the multiple parallel base learners to determine whether the in-vehicle voice command belongs to the corresponding knowledge domain; if the in-vehicle voice command does not belong to the corresponding knowledge domain, transmitting the in-vehicle voice command to the global classification model, and using the global classification model to determine whether the in-vehicle voice command belongs to a vehicle control command; if the global classification model determines that the in-vehicle voice command does not belong to a vehicle control command, generating the confidence of the in-vehicle voice command.

[0016] Optionally, reading the confidence of the target sample data includes: using a word vector model to obtain multiple recall vectors matching the sample voice instructions from a vector database; generating a word embedding vector based on the average value of the multiple recall vectors; inputting the sample voice instruction into a word vector encoding layer to obtain a vector matrix; inputting the vector matrix into a multi-layer convolution layer to obtain a convolution feature, wherein the multi-layer convolution layer includes a first convolution layer, a second convolution layer, and a third convolution layer, and the corresponding convolution kernel sizes are 3, 4, and 5, respectively; inputting the convolution feature into a maximum pooling layer to obtain a pooling feature; inputting the pooling feature into a fully connected layer to output a navigation domain feature score; inputting the sample voice instruction into multiple parallel knowledge domain text convolution neural network TextCNN models, and correspondingly outputting multiple knowledge domain feature scores, wherein the knowledge domain TextCNN model corresponds to one knowledge domain feature score; splicing the navigation domain feature score and the multiple knowledge domain feature scores with the word embedding vector to obtain a spliced ​​vector; inputting the spliced ​​vector into a support vector machine SVM model to output the confidence of the target sample data.

[0017] Optionally, after reading the confidence of the target sample data, the method further includes: determining whether the confidence of the target sample data exceeds a preset threshold; if the confidence of the target sample data exceeds the preset threshold, generating a clarification request for the target sample data; obtaining explanatory information of the clarification request, and supplementing the explanatory information to the target sample data.

[0018] Optionally, adding the incremental sample data to the sample database includes: adding the incremental sample data to the current incremental data block of the sample database; determining whether the number of word elements in the current incremental data block reaches a preset number; if the number of word elements in the current incremental data block reaches a preset number, outputting the current incremental data block as sample data for the current cycle, and adding several most recent word elements in the current incremental data block to the next incremental data block.

[0019] According to another embodiment of the present invention, a vehicle-mounted voice control device is provided, comprising: a collection module, used to collect vehicle-mounted voice instructions of a target user; a calling module, used to call a dedicated Lora model matching the target user, wherein the dedicated Lora model is a personalized model corresponding to the target user; a processing module, used to input the vehicle-mounted voice instructions into a vehicle-mounted language model and the dedicated Lora model, and output a target reply text and a target control instruction, wherein the vehicle-mounted language model is a common model corresponding to multiple users; and an execution module, used to voice-play the target reply text on the vehicle, and execute the target control instruction on the vehicle.

[0020] Optionally, the processing module includes: a first processing unit, used to input the in-vehicle voice command into a vehicle-mounted language model, and output an intermediate reply text and an intermediate control instruction; a second processing unit, used to use the Lora model to personalize the intermediate reply text and the intermediate control instruction, and output a target reply text and a target control instruction.

[0021] Optionally, the first processing unit includes: a parsing subunit, used to perform semantic parsing on the vehicle-mounted voice command using the vehicle-mounted language model to obtain semantic content; a judgment subunit, used to judge whether there is a logical error in the semantic content; and a first output subunit, used to output an intermediate reply text and an intermediate control instruction that matches the vehicle-mounted voice command if there is no logical error in the semantic content.

[0022] Optionally, the first processing unit also includes: a second output subunit, used to determine whether there is a logical error in the semantic content after the judgment subunit determines whether there is a logical error in the semantic content, and output a correction reply text matching the in-vehicle voice command.

[0023] Optionally, the device also includes: a first acquisition module, used to obtain vehicle-mounted scene data before the processing module inputs the vehicle-mounted voice command into the vehicle-mounted language model and the dedicated Lora model, wherein the vehicle-mounted scene data includes at least one of the following: vehicle-mounted voice command corpus, a vehicle-mounted knowledge base, and a vehicle operation manual; a first training module, used to use the vehicle-mounted scene data to perform incremental training on a preset large language model to obtain the vehicle-mounted language model.

[0024] Optionally, the device also includes: a second acquisition module, used to obtain the language habit data and behavior habit data of the target user before the calling module calls the dedicated Lora model matching the target user; a second training module, used to use the language habit data and the behavior habit data to train a general Lora template to obtain the dedicated Lora model.

[0025] Optionally, the second acquisition module includes: a reading unit, used to read a personalized corpus of the target user, and to read a historical vehicle control record of the target user, wherein the personalized corpus includes at least one of the following: common expressions, catchphrases, and proper nouns, and the historical vehicle control records include at least one of the following: operation preference information and control habit information; and an extraction unit, used to extract the language habit data and behavior habit data of the target user from the personalized corpus and the historical vehicle control records.

[0026] Optionally, the device also includes: a generation module, which is used to generate incremental sample data using the on-board voice command, the target reply text and the target control command after the execution module plays the target reply text on the vehicle and executes the target control command on the vehicle; an adding module, which is used to add the incremental sample data to a sample database; a selection module, which is used to select a sample data set of the current update cycle from the sample database according to priority; and a third training module, which is used to perform incremental training on the dedicated Lora model using the sample data set, and update the dedicated Lora model based on the training results.

[0027] Optionally, the selection module includes: a reading unit, used to read the confidence of the target sample data added in the current update cycle, wherein the confidence is used to characterize the uncertainty of the model output result; a configuration unit, used to configure the priority of each sample data added in the current update cycle using the confidence; and a selection unit, used to select several sample data from multiple sample data added in the current update cycle according to the priority to obtain a sample data set.

[0028] Optionally, the selection module also includes: an input unit, used to input the vehicle voice command into a natural language understanding NLU model before the reading unit reads the confidence of the target sample data, wherein the NLU model includes a first layer and a second layer connected in series in sequence, the first layer is deployed with multiple base learners in parallel, and the second layer is deployed with a global classification model, and each base learner corresponds to a knowledge domain; a judgment unit, used to use the multiple parallel base learners to judge whether the vehicle voice command belongs to the corresponding knowledge domain; a transmission unit, used to transmit the vehicle voice command to the global classification model if the vehicle voice command does not belong to the corresponding knowledge domain, and use the global classification model to judge whether the vehicle voice command belongs to a vehicle control command; a generation unit, used to generate the confidence of the vehicle voice command if the global classification model judges that the vehicle voice command does not belong to a vehicle control command.

[0029] Optionally, the reading unit is also used to: use a word vector model to obtain multiple recall vectors matching the sample voice instructions from a vector database; generate a word embedding vector based on the average value of the multiple recall vectors; input the sample voice instructions into a word vector encoding layer to obtain a vector matrix; input the vector matrix into a multi-layer convolution layer to obtain a convolution feature, wherein the multi-layer convolution layer includes a first convolution layer, a second convolution layer, and a third convolution layer, and the corresponding convolution kernel sizes are 3, 4, and 5, respectively; input the convolution feature into a maximum pooling layer to obtain a pooling feature; input the pooling feature into a fully connected layer to output a navigation domain feature score; input the sample voice instructions into multiple parallel knowledge domain text convolution neural network TextCNN models, and output multiple knowledge domain feature scores accordingly, wherein the knowledge domain TextCNN model corresponds to one knowledge domain feature score; splice the navigation domain feature score and the multiple knowledge domain feature scores with the word embedding vector to obtain a spliced ​​vector; input the spliced ​​vector into a support vector machine SVM model to output the confidence of the target sample data.

[0030] Optionally, the selection module also includes: a judgment unit, used to judge whether the confidence of the target sample data exceeds a preset threshold after the reading unit reads the confidence of the target sample data; a generation unit, used to generate a clarification request for the target sample data if the confidence of the target sample data exceeds the preset threshold; and a supplement unit, used to obtain explanatory information of the clarification request and supplement the explanatory information to the target sample data.

[0031] Optionally, the adding module is also used to: add the incremental sample data to the current incremental data block of the sample database; determine whether the number of word elements in the current incremental data block reaches a preset number; if the number of word elements in the current incremental data block reaches a preset number, output the current incremental data block as sample data for the current cycle, and add the most recent several word elements in the current incremental data block to the next incremental data block.

[0032] According to another aspect of an embodiment of the present application, a storage medium is further provided, which includes a stored program, and the above steps are executed when the program is run.

[0033] According to another aspect of an embodiment of the present application, there is also provided an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; wherein: the memory is used to store computer programs; and the processor is used to execute the steps in the above method by running the program stored in the memory.

[0034] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps in the above method.

[0035] Beneficial effects of the present invention:

[0036] 1. Incremental pre-training of in-vehicle scenarios through in-vehicle language models can better understand natural language commands in in-vehicle scenarios, master professional knowledge of vehicle control, and generate dialogue responses that meet in-vehicle scenarios;

[0037] 2. Build a personalized dedicated Lora model for each user. Through pre-training with personalized corpus and historical interaction data, it can learn and understand the user's language habits, operation preferences and other personalized characteristics, and provide a tailored interactive experience;

[0038] 3. In the process of semantic understanding and response generation, the dedicated Lora model and the in-vehicle language model are combined to ensure the professionalism of in-vehicle domain knowledge while taking into account the satisfaction of users' personalized needs, greatly improving the naturalness and fluency of human-computer interaction;

[0039] 4. Incremental training of the dedicated Lora model for the user's personalized corpus improves the personalized service capabilities while avoiding interference with the vehicle scene optimization model and ensuring the stability of the vehicle control function. Incremental training and real-time interaction are independent of each other, which does not affect the interactive response speed, and enables personalized Lora to be updated synchronously with the user's new knowledge and new preferences. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0041] Figure 1 is a hardware structure block diagram of a vehicle according to an embodiment of the present invention;

[0042] Figure 2 is a flow chart of a method for controlling vehicle-mounted voice according to an embodiment of the present invention;

[0043] Figure 3 is an architecture diagram of a voice vehicle control system in an embodiment of the present invention;

[0044] Figure 4 This is the workflow of the voice vehicle control system in this embodiment of the present invention;

[0045] Figure 5 is a schematic diagram of a vehicle-mounted language model in an embodiment of the present invention;

[0046] Figure 6 is a schematic diagram of a dedicated Lora model in an embodiment of the invention;

[0047] Figure 7 It is a schematic diagram of the NLU model in the embodiment of the present invention;

[0048] Figure 8 is a schematic diagram of an active learning feedback loop in an embodiment of the present invention;

[0049] Fig. 9 4 is a structural block diagram of a vehicle-mounted voice control device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0050] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only embodiments of a part of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.

[0051] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0052] Example 1

[0053] The method embodiment provided in the first embodiment of the present application can be executed in a vehicle, a server or a similar processing device. Taking running on a vehicle as an example, Figure 1 FIG. 1 is a hardware structure diagram of a vehicle according to an embodiment of the present invention. Figure 1 As shown, the server may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the server may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0054] The memory 104 can be used to store server programs, for example, software programs and modules of application software, such as a server program corresponding to a remote control method for a vehicle in an embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the server program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0055] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0056] In this embodiment, a method for controlling vehicle-mounted voice is provided, which is applied to a mobile terminal. Figure 2 is a flow chart of a method for controlling vehicle-mounted voice according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0057] Step S202, collecting the in-vehicle voice command of the target user;

[0058] The solution of this embodiment can be applied in a vehicle to realize voice interaction and voice control between a person and a vehicle, and the vehicle-mounted voice command can be a vehicle control command.

[0059] Step S204, calling a dedicated Lora model that matches the target user, wherein the dedicated Lora model is a personalized model corresponding to the target user;

[0060] The dedicated Lora (Low-rank adaptation) model of this embodiment can be stored on the vehicle side, or on the vehicle side and the service side. The vehicle obtains the service provided by the dedicated Lora model through the network interface.

[0061] A personalized dedicated Lora module can be generated for each vehicle or each user. The module is pre-trained according to the personalized corpus and historical interaction records of the corresponding user to obtain a dedicated Lora.

[0062] Step S206, inputting the vehicle voice command into the vehicle language model and the dedicated Lora model, and outputting a target reply text and a target control command, wherein the vehicle language model is a general model corresponding to multiple users;

[0063] Optionally, before the in-vehicle voice commands are input into the in-vehicle language model and the dedicated Lora model, the in-vehicle voice commands can also be preprocessed, such as converting voice data into text data, performing noise reduction and filtering on the voice data, etc. The in-vehicle voice commands can also be preprocessed through some network layers of the in-vehicle language model to obtain data that can be directly recognized and processed by the machine.

[0064] Step S208: voice-play the target reply text on the vehicle, and execute the target control instruction on the vehicle.

[0065] Through the above steps, the in-vehicle voice commands of the target user are collected, and a dedicated Lora model matching the target user is called, wherein the dedicated Lora model is a personalized model corresponding to the target user, the in-vehicle voice commands are input into the in-vehicle language model and the dedicated Lora model, and a target reply text and a target control command are output, wherein the in-vehicle language model is a common model corresponding to multiple users, the target reply text is voice-played on the vehicle, and the target control command is executed on the vehicle. In the process of semantic understanding and reply generation, the in-vehicle scene optimization model combined with the user-specific Lora model not only ensures the professionalism of the in-vehicle domain knowledge, but also takes into account the satisfaction of the user's personalized needs, which greatly improves the naturalness and fluency of human-computer interaction.

[0066] Figure 3 It is an architecture diagram of the voice vehicle control system in an embodiment of the present invention, including a speech recognition module, a speech synthesis module, an on-board scene optimization model (on-board language model), a user-specific Lora model library, a central controller, a personalized data update module and a dedicated Lora model incremental training module.

[0067] The speech recognition module uses mainstream speech recognition technologies such as DeepSpeech and Kaldi to convert the user's voice commands into text format, providing input for subsequent semantic understanding. The speech synthesis module uses speech synthesis technologies such as WaveNet and Tacotron to convert the system-generated reply text into natural and fluent speech, which is played to the user through the car audio.

[0068] The central controller is the coordination center of the voice vehicle control system, which connects various links such as voice recognition, semantic understanding, reply generation, speech synthesis and vehicle control. Specifically, the central controller receives the text form of the user's command from the voice recognition module, and inputs it into the vehicle scene optimization model and the corresponding user's dedicated personalized Lora model (dedicated Lora model) at the same time, and obtains the vehicle-mounted professional and user-personalized reply text and control instructions generated by the vehicle scene optimization model combined with the dedicated Lora model. Then, the central controller puts the input and output of this round of interaction in the personalized data update module. Next, the reply text is converted into speech by the speech synthesis module and played to the user through the vehicle audio; at the same time, the control command is parsed and the vehicle's underlying interface is called to perform the corresponding control operations such as windows, air conditioning, and navigation. The entire process realizes an end-to-end closed loop from vehicle voice commands to vehicle control.

[0069] The personalized data update module is responsible for managing and updating the personalized data of users, including personalized corpora and historical interaction records. Among them, the personalized corpus stores the personalized corpora that users actively provide during the system initialization phase, such as common vocabulary, catchphrases, proper nouns, etc. These corpora reflect the user's language habits and expression style. The historical interaction records store all the conversations between the user and the system, including the user's voice commands, the system's reply text, and the corresponding control commands, etc. These records contain the user's operational preferences and control habits in actual interactions. The personalized data update module monitors the interaction process between the user and the system in real time, extracts the text, voice, and command data generated by each round of interaction, and updates them to the corresponding user's personalized corpus and historical interaction records to ensure that the personalized data is synchronized with the user's actual usage status.

[0070] The personalized model incremental training module uses the personalized corpus and historical interaction data updated in real time in the personalized data update module to perform incremental training on the user's dedicated Lora model. The incremental training process is independent of online interaction and is performed asynchronously. The personalized model incremental training module starts a guard thread to monitor the information in the personalized data in real time. When the personalized data changes, the latest personalized data is extracted from the personalized data update module, and the Lora parameters in the user personalized module are generated by fine-tuning to adapt to the user's recent personalized feature changes. For example, if a user has recently frequently used the expression "I'm going to the company", the personalized module after incremental training can learn this new catchphrase in time and use it to replace more general expressions when generating replies, thereby enhancing the intimacy of the interaction. Incremental training enables the personalized model to keep pace with the dynamic changes of users and continuously provide high-quality personalized services.

[0071] The voice vehicle control system of this embodiment has a reasonable architecture and a high degree of modularization, and each module has a clear division of labor and close coordination. The system has good scalability and maintainability, and can flexibly connect new functional modules to meet the development needs of future in-vehicle interactive technology.

[0072] Figure 4 This is the workflow of the voice vehicle control system in this embodiment of the present invention, combined with Figure 3In the system structure shown, the user speaks a voice command through the vehicle microphone, and the voice recognition module converts it into text and sends it to the central controller. The central controller inputs the text into the vehicle scene optimization model and the user's dedicated Lora model, and calculates the vehicle scene optimization model combined with the user's dedicated Lora model to obtain the final reply text and control instructions that take into account both professionalism and personalization. The reply text is synthesized into speech by the speech synthesis module and played to the user through the vehicle audio; the control instructions are parsed and executed to achieve precise control of the vehicle. At the same time, the text and voice data of this round of interaction are obtained by the personalized data update module to update the user's personalized corpus and historical interaction records. The personalized model incremental training module regularly pulls the latest data from the personalized data update module and conducts incremental training on the user's dedicated Lora model to keep up with the latest changes in user needs.

[0073] In one implementation of this embodiment, the in-vehicle voice command is input into the in-vehicle language model and the Lora model, and the reply text and the control command are output, including: inputting the in-vehicle voice command into the in-vehicle language model, and outputting the intermediate reply text and the intermediate control command; using the Lora model to personalize the intermediate reply text and the intermediate control command, and outputting the target reply text and the target control command.

[0074] In this implementation, the vehicle language model is used to understand the general semantics of the user's instructions and provide professional knowledge of the vehicle scene; the dedicated Lora model is responsible for combining the user's personalized information to personalize the output of the vehicle language model, so that the response is more in line with the user's interaction style and preferences. The output of the vehicle scene model with a dedicated Lora model will integrate the user's personalized information to form the final target response text and target control instructions.

[0075] Figure 5 This is a schematic diagram of the vehicle language model in the embodiment of the present invention. The vehicle language model is based on the large language model pre-trained by the open source Llama, and is incrementally pre-trained on a large amount of vehicle scene corpus to learn the language characteristics and professional knowledge in the vehicle scene. The incremental pre-training process introduces vehicle scene-specific data such as vehicle voice command corpus, vehicle knowledge base, and vehicle operation manual to fine-tune the parameters of the preset model, so that it can better understand the vehicle natural language query, mine the vehicle control intention in the query, and generate appropriate dialogue responses based on the vehicle knowledge. The output of the vehicle language model has the professionalism and accuracy of the vehicle field, but lacks personalized performance.

[0076] Figure 6It is a schematic diagram of the dedicated Lora model in the embodiment of the invention. The user-specific Lora model library is a collection of user personalized models, including multiple Lora (Lora1~Lora5). Each user corresponds to an independent dedicated Lora model. When a new user uses the system for the first time, a new personalized module is instantiated from the general Lora template and assigned to the user. The dedicated Lora model uses low-rank adaptation to effectively capture and model user personalized features while reducing parameter storage and update overhead. Each user's personalized module is trained in two stages: the pre-training stage uses the user's personalized corpus for training to learn the user's language habits; the incremental training stage uses the continuously updated historical interaction data for training to track the dynamic changes of user interests and preferences. The corresponding personalized module is called according to the user ID, and the output of the on-board language model is personalized for colloquial rewriting, detail supplementation and preference matching to generate reply text and control instructions that reflect the user's personal style.

[0077] In one example, the in-vehicle voice command is input into an in-vehicle language model, and an intermediate reply text and an intermediate control command are output, including: using the in-vehicle language model to perform semantic analysis on the in-vehicle voice command to obtain semantic content; determining whether there is a logical error in the semantic content; if there is no logical error in the semantic content, outputting an intermediate reply text and an intermediate control command that match the in-vehicle voice command.

[0078] In another example, after determining whether there is a logical error in the semantic content, it also includes: determining whether there is a logical error in the semantic content, and outputting an error correction reply text that matches the in-vehicle voice command.

[0079] In one implementation scenario, when Xiao Wang gave a logically incorrect command "fill up the trunk with gasoline", the model that had not been optimized for the scenario was affected by Xiao Wang's previous large number of inappropriate commands and gave an incorrect response such as "OK, filling the trunk with gasoline, please wait". The in-vehicle scenario optimization model found a logical error in the command through semantic analysis and generated a reasonable error correction response such as "Gasoline should be added to the tank instead of the trunk, please rephrase the command". The error correction response covered the incorrect response and avoided inappropriate control of the vehicle. Xiao Wang's malicious input did not succeed, and the robustness and reliability of the system were guaranteed.

[0080] This embodiment makes full use of the professionalism of the in-vehicle scene optimization model and the customizability of the dedicated Lora model, combining the two to form a voice vehicle control system that has both domain expertise and user personalization. The in-vehicle scene optimization model plays the role of a domain expert to ensure the accurate understanding and execution of vehicle control commands; the personalized model plays the role of a user assistant, providing tailored services by continuously learning the user's language habits and interaction preferences. Combined with the user-specific Lora model, the system's ability to cope with complex commands and diverse users is greatly enhanced, enabling it to meet the user's personalized needs while ensuring the professionalism and safety of vehicle control, creating a natural, smooth, and humane in-vehicle interactive experience for users.

[0081] User Xiao Wang always inputs some wrong, complex, or even malicious commands to the vehicle voice system in an attempt to confuse and mislead the system. For example, "Please fill up the trunk with gasoline for me", "I want to fly to Beijing", etc. In the face of these tricky questions, the vehicle scene optimization model of this embodiment has strong robustness to these boundary commands after pre-training with large-scale corpus and integration of vehicle knowledge, thus improving the robustness of the voice interaction system.

[0082] In this embodiment, a preset large language model and a general Lora template may be acquired or trained in advance to obtain an in-vehicle language model and a dedicated Lora model used in actual scenarios.

[0083] In the training example of the in-vehicle language model, before the in-vehicle voice command is input into the in-vehicle language model and the dedicated Lora model, it also includes: obtaining in-vehicle scene data, wherein the in-vehicle scene data includes at least one of the following: in-vehicle voice command corpus, in-vehicle knowledge base, and vehicle operation manual; and using the in-vehicle scene data to perform incremental training on a preset large language model to obtain the in-vehicle language model.

[0084] In-vehicle scenario data includes in-vehicle voice command corpus, in-vehicle knowledge base, vehicle operation manual, etc. By performing incremental pre-training on massive in-vehicle corpus, the preset large language model can be better adapted to the specific semantics and expressions of in-vehicle scenarios.

[0085] By incrementally pre-training the preset large language model for in-vehicle scenarios, it can better understand natural language commands in in-vehicle scenarios, master professional knowledge of vehicle control, and generate dialogue responses that are in line with in-vehicle scenarios.

[0086] In the training example of a dedicated Lora model, before calling the dedicated Lora model matching the target user, it also includes: acquiring the language habit data and behavior habit data of the target user; using the language habit data and the behavior habit data to train a general Lora template to obtain the dedicated Lora model.

[0087] A dedicated Lora model is built for each user. Through pre-training with personalized corpus and historical interaction data, the system can learn the user's language habits, operation preferences and other personalized characteristics to provide a tailored interactive experience.

[0088] In the above example, obtaining the language habit data and behavior habit data of the target user includes: reading the personalized corpus of the target user, and reading the historical vehicle control records of the target user, wherein the personalized corpus includes at least one of the following: common expressions, catchphrases, and proper nouns, and the historical vehicle control records include at least one of the following: operation preference information and control habit information; extracting the language habit data and behavior habit data of the target user from the personalized corpus and the historical vehicle control records.

[0089] In this example, the historical vehicle control records include vehicle control records such as voice vehicle control behaviors and manual vehicle control behaviors.

[0090] In an implementation scenario, user Xiao Ming is a new user who uses the voice vehicle control system for the first time. During the system initialization phase, Xiao Ming enters some personalized corpus according to the prompts, such as "I usually like to set the air conditioning temperature to 25 degrees" and "I have to take the airport highway to go to the company", etc. These corpus reflect Xiao Ming's preferences and idioms in vehicle control. The system creates a new dedicated Lora model for Xiao Ming, and uses these initial corpus to pre-train the module so that it learns the initial state of Xiao Ming's personalized features. In the subsequent actual use process, Xiao Ming says "I am going to work", the voice recognition module converts it into text, inputs it into the central controller, and the vehicle scene optimization model understands the command semantically and generates a general reply such as "A route to the company has been planned for you, and it is expected to arrive in 40 minutes after departure". After integrating Xiao Ming's dedicated Lora model, according to Xiao Ming's initial preferences, the reply is modified to "A route to the company via the airport highway has been planned for you, and the air conditioning temperature is set to 25 degrees, and it is expected to arrive in 40 minutes after departure". The output of the user-specific Lora model retains the professional information of route planning and incorporates Xiao Ming's temperature settings to generate a personalized navigation plan. The reply is broadcast to Xiao Ming through synthesized voice, and the navigation and air conditioning instructions are executed at the same time, allowing Xiao Ming to experience the charm of personalized service.

[0091] The data of this interaction is obtained by the personalized data update module and added to Xiao Ming's historical interaction record. These data will participate in the subsequent personalized model incremental training, so that the system can further understand Xiao Ming's usage preferences.

[0092] In another implementation scenario, user Xiao Li is an old user who has been using this voice interaction system for more than a year. Recently, Xiao Li has become fond of a car podcast program and listens to it every time he drives to and from work. In the past month of interaction, "listen to podcast" has become Xiao Li's most frequently used command. The personalized data update module captures this new interest point and adds a large amount of command data with the keyword "podcast" to Xiao Li's personalized corpus and historical interaction records. The personalized model incremental training module uses these new data to incrementally train Xiao Li's dedicated Lora model so that it can quickly learn Xiao Li's preference for podcast programs. One morning, Xiao Li habitually said "going to work" after getting in the car. In the semantic understanding stage, the in-vehicle scene optimization model gives a regular reply "Good morning, a route to the company has been planned for you"; while Xiao Li's dedicated Lora model has learned Xiao Li's recent podcast preferences at this time, so it gives a more personalized reply "Good morning, a route to the company has been planned for you, and the daily car podcast is automatically opened for you. I wish you a pleasant journey." The output of the user-specific Lora model is seamlessly integrated again. The system greets Xiao Li in his tone, plans his commuting route, and automatically plays Xiao Li's favorite podcast.

[0093] In one implementation of the present embodiment, after the target reply text is played on the vehicle and the target control instruction is executed on the vehicle, it also includes: generating incremental sample data using the on-board voice instruction, the target reply text and the target control instruction; adding the incremental sample data to a sample database; selecting a sample data set of the current update cycle from the sample database according to priority; performing incremental training on the dedicated Lora model using the sample data set, and updating the dedicated Lora model based on the training results.

[0094] Incremental training of the dedicated Lora model for the user's personalized corpus improves the personalized service capabilities while avoiding interference with the vehicle scene optimization model and ensuring the stability of the vehicle control function. Incremental training and real-time interaction are independent of each other, which does not affect the interactive response speed, and enables the dedicated Lora model to be updated synchronously with the user's new knowledge and new preferences.

[0095] In one example, adding the incremental sample data to the sample database includes: adding the incremental sample data to the current incremental data block of the sample database; determining whether the number of word elements in the current incremental data block reaches a preset number; if the number of word elements in the current incremental data block reaches the preset number, outputting the current incremental data block as sample data for the current cycle, and adding several most recent word elements in the current incremental data block to the next incremental data block.

[0096] In this example, Lora is used for long-term memory storage, and during the generation process, tokens are generated block by block. At each block generation, the most recent LX tokens are used as the input X for generating subsequent tokens (all previous tokens beyond the distance LX are discarded). Once the number of generated tokens reaches the predefined block size Δ, we start the training of the Lora module with the latest block and then start generating the next block. It should be noted that LX+Δ≤W, where W is the context window size of the model.

[0097] When training the Lora module, it is recognized that generating new chunks without conditions may not constitute a meaningful training objective and may lead to significant overfitting. To address this issue, this embodiment incorporates the first LT tokens of each chunk into the training process, using them as input and the chunk as output.

[0098] Cache Reuse For more efficient reasoning, this embodiment proposes a strategy called cache reuse. In the standard framework, each time the Lora module is updated, it needs to be recalculated.

[0099] In one example, selecting a sample data set for the current update cycle from the sample database according to priority includes: for each target sample data newly added in the current update cycle, reading the confidence of the target sample data, wherein the confidence is used to characterize the uncertainty of the model output result; using the confidence to configure the priority of each sample data newly added in the current update cycle; and selecting a number of sample data from multiple sample data newly added in the current update cycle according to the priority to obtain a sample data set.

[0100] Optionally, before reading the confidence of the target sample data, it also includes: inputting the in-vehicle voice command into a natural language understanding NLU model, wherein the NLU model includes a first layer and a second layer connected in series in sequence, the first layer is deployed with multiple base learners in parallel, and the second layer is deployed with a global classification model, and each base learner corresponds to a knowledge domain; using the multiple parallel base learners to determine whether the in-vehicle voice command belongs to the corresponding knowledge domain; if the in-vehicle voice command does not belong to the corresponding knowledge domain, transmitting the in-vehicle voice command to the global classification model, and using the global classification model to determine whether the in-vehicle voice command belongs to a vehicle control command; if the global classification model determines that the in-vehicle voice command does not belong to a vehicle control command, generating the confidence of the in-vehicle voice command.

[0101] Optionally, reading the confidence of the target sample data includes: using a word vector model to obtain multiple recall vectors matching the sample voice instructions from a vector database; generating a word embedding vector based on the average value of the multiple recall vectors; inputting the sample voice instruction into a word vector encoding layer to obtain a vector matrix; inputting the vector matrix into a multi-layer convolution layer to obtain a convolution feature, wherein the multi-layer convolution layer includes a first convolution layer, a second convolution layer, and a third convolution layer, and the corresponding convolution kernel sizes are 3, 4, and 5, respectively; inputting the convolution feature into a maximum pooling layer to obtain a pooling feature; inputting the pooling feature into a fully connected layer to output a navigation domain feature score; inputting the sample voice instruction into multiple parallel knowledge domain text convolution neural network TextCNN models, and correspondingly outputting multiple knowledge domain feature scores, wherein the knowledge domain TextCNN model corresponds to one knowledge domain feature score; splicing the navigation domain feature score and the multiple knowledge domain feature scores with the word embedding vector to obtain a spliced ​​vector; inputting the spliced ​​vector into a support vector machine SVM model to output the confidence of the target sample data.

[0102] Optionally, after reading the confidence of the target sample data, it also includes: determining whether the confidence of the target sample data exceeds a preset threshold; if the confidence of the target sample data exceeds the preset threshold, generating a clarification request for the target sample data; obtaining explanation information of the clarification request, and supplementing the explanation information to the target sample data.

[0103] The process of personalized model and incremental training has been optimized, and an active learning mechanism has been introduced to improve the learning efficiency of personalized models.

[0104] In addition to outputting reply text and control instructions, the large model combined with the dedicated Lora model in this embodiment also generates an uncertainty score for the NLU model. This score measures the model's prediction confidence for the current input sample. The higher the score, the more uncertain the model is and the less reliable the prediction for the sample. For example, when a user issues a new type of instruction that the model has never seen before, the model's uncertainty score will be higher.

[0105] The NLU model in this embodiment is trained using the stacking strategy. Stacking is an integrated learning technique, also known as stacked generalization, and is an ensemble method in machine learning that improves overall prediction performance by combining predictions from multiple models. The workflow of stacking is as follows:

[0106] Training base learners: First, multiple different models are trained, which are called base learners or first-level learners. Each base learner is trained independently and can use different algorithms or parameters.

[0107] Generate first-level predictions: Use these base learners to make predictions on the training set or another dataset to get the predictions for each model.

[0108] Constructing a secondary learner: The prediction results of the base learner are input as new features into a secondary learner, which is also called a meta learner or a secondary learner. The goal of the meta learner is to get the final prediction result by combining the predictions of the base learners.

[0109] Get the final prediction result: Use the meta-learner to make a secondary prediction on the prediction result of the base learner to get the final prediction result.

[0110] When generating the confidence of the in-vehicle voice command, the vehicle control command is first divided into domains, which can be divided into navigation domain, vehicle domain, music domain, air conditioning domain, app domain, maintenance information domain and other domains. A base learner is trained based on each domain. Each base learner can perform binary classification to determine whether the in-vehicle voice command belongs to the domain. The first layer of Stacking is the base learner of all domains. Only when all base learners determine that the command does not belong to the domain, it enters the second layer of Stacking. The second layer is a full-domain binary classification model used to determine whether it is a vehicle control command. If not, an uncertain confidence score will be generated.

[0111] Figure 7 This is the architecture diagram of the NLU model in the embodiment of the present invention, which is trained using the stacking strategy. The entire NLU model consists of a word vector model, a query recall layer, a splicing fusion layer, a TextCNN network, and a SVM model. The following is an introduction to its functions:

[0112] Word vector model: Use the open source Word2Vec word vector model, obtain the word vector model from the standard saying library, and enter the query recall stage through user instructions.

[0113] Query recall layer: extract the top K vectors from the vector database.

[0114] After obtaining multiple recall vectors, take the average of the first K vectors, calculate the average of the first K vectors, and generate the word embedding vector.

[0115] Word embedding vector concatenation: Concatenate the generated word embedding vector with the score (score1, score2, score3, ..., scoren) of each TextCNN model to form a comprehensive feature vector.

[0116] Convolution layer and max pooling layer: The vector matrix generated by the word vector encoding layer is input into the convolution layer and max pooling layer of the TextCNN (text convolutional neural network) model to form the navigation domain features. The specific parameters are as follows: Convolution layer 1: The convolution kernel size is 3, and the activation function is ReLU. Convolution layer 2: The convolution kernel size is 4, and the activation function is ReLU. Convolution layer 3: The convolution kernel size is 5, and the activation function is ReLU. Max pooling layer: The pooling window size is 2, and the step size is 2.

[0117] Fully connected layer: The features after convolution and pooling are further processed through the fully connected layer.

[0118] The TextCNN model includes models of multiple different knowledge domains: TextCNN-car domain, TextCNN-music domain, TextCNN-air conditioning domain, and TextCNN-other domains.

[0119] SVM (Support Vector Machine) model: The feature scores (score1, score2, score3, score4, ..., scoren) output by each TextCNN model are concatenated with the embedded word vector and input into the SVM model for scoring to obtain the final confidence score.

[0120] This embodiment uses the Word2Vec word vector model and specifies the parameters of convolution layers 1, 2, and 3, introduces standard library instruction knowledge, and combines the TextCNN and SVM models to extract and score features of instructions in different domains to achieve more accurate control command recognition.

[0121] When training, the personalized model incremental training module gives priority to selecting samples with high uncertainty scores from the personalized data update module, and focuses on training the parts that the model lacks grasp. This can effectively improve the learning efficiency of the model and accelerate the model's absorption of new knowledge. At the same time, in order to avoid paying too much attention to uncertain samples and ignoring the content that has been learned, the personalized model incremental training module uses a balanced sampling strategy to ensure that both uncertain and certain samples can be properly trained.

[0122] This embodiment also introduces an active learning feedback loop, giving the system the ability to actively seek knowledge. Figure 8This is a schematic diagram of the active learning feedback loop in the embodiment of the present invention. When the personalized model finds that the uncertainty score of an input sample exceeds the preset threshold, it will actively initiate clarification or inquiry to the user, output counter-question content, and invite the user to provide more information or feedback to help the model eliminate doubts. For example, the user said "Please help me make an appointment for a physical examination next Friday", and the personalized model predicted uncertainty about the new concept of "physical examination", so it actively asked "OK, do you want to make an appointment for the annual inspection of the vehicle or the physical examination of the driver?" The user further explained "It's my personal physical examination", and the personalized model marked the sample as a high-value sample, giving priority to subsequent incremental training to quickly learn this new knowledge.

[0123] The active learning mechanism enables the personalized model to proactively discover its own knowledge blind spots and take measures to proactively improve them, rather than passively waiting for users to repeatedly use relevant instructions. This greatly speeds up the learning process of the personalized model, allowing it to closely synchronize with the dynamic needs of users.

[0124] The solution of this embodiment provides a multi-round personalized voice vehicle control method based on a large language model, including: performing incremental pre-training of the preset large language model with in-vehicle scene data to obtain an in-vehicle scene optimization model; generating a dedicated Lora model for each user, pre-training the module according to the user's personalized corpus and historical interaction records to obtain a user-specific Lora model; receiving the user's voice input, obtaining text through voice recognition, inputting the text into the in-vehicle scene optimization model and the user's dedicated Lora model, and generating personalized reply text and control instructions; converting the reply text into speech through speech synthesis technology, playing it to the user, and executing the control instructions at the same time to complete the corresponding vehicle control; updating the text and voice data of this interaction to the user's personalized corpus and historical interaction records, and performing incremental training on the user's personalized corpus through Lora technology to continuously improve the personalization level of the model.

[0125] By adopting the solution of this embodiment, the voice vehicle control system of the present invention uses the large language model optimized for vehicle scenes as the base and the user-specific Lora model as the interface, realizing the intelligent and personalized interaction between people and vehicles at two levels. The vehicle scene optimization model is responsible for digesting the massive vehicle corpus, mastering the general knowledge of vehicle scenes, and providing professional and accurate knowledge guarantee for interaction; the personalized model is responsible for capturing and modeling the personalized characteristics of users, incorporating every bit of user preferences into the system response, and providing a tailored interactive experience.

[0126] Combined with the user-specific Lora model, the previous drawback of the voice car control system being "one size fits all" has been changed, and personalized services with "one size fits all" have been achieved. The relationship between the user and the system is no longer a simple "command-response", but a "human-companion" relationship with warmth, attitude and interaction. Through continuous observation and learning, the system builds up an understanding of user habits and preferences, and based on this understanding, makes personalized adjustments to content and interaction methods. The user's new knowledge and new preferences are continuously updated to the personalized model in an incremental learning manner, so that the system and the user resonate with each other and keep pace.

[0127] The voice car control system of this embodiment also introduces an active learning mechanism, breaking through the shackles of previous passive learning of personalized models. The system actively grasps its own cognitive blind spots through analysis of model uncertainty, actively obtains targeted feedback from users through asking questions and seeking verification, checks for deficiencies and fills gaps, and accelerates the growth of personalized models. This active desire for knowledge gives the system a self-driving force for learning similar to that of humans, bringing personalized services to a higher level. The relationship between users and the system has been further upgraded from "people-companion" to "master-apprentice", and the breadth of users' knowledge and depth of cognition are respected as valuable sources of knowledge, and are actively explored and highly valued by the system.

[0128] The voice vehicle control system of this embodiment is also unique in its architectural design. The setting of the central controller makes the system's response logic clear and concise. The dedicated Lora model adapts to the pre-trained model under the vehicle scene optimization, completes the scheduling application in the controller, and outputs unified, coherent, and high-quality results. The asynchronous implementation of personalized data updates and incremental training makes full use of the computing resources during the user's idle period, maximizing the learning effect of the dedicated Lora model without affecting real-time response. The coupling of the active learning module and the dedicated Lora model incremental training module further improves the learning efficiency and pertinence of the system.

[0129] The voice car control system of this embodiment sets a new benchmark for human-vehicle interaction. It represents the cutting-edge direction of artificial intelligence application in vehicle-mounted scenarios. The system breaks through the professional barriers of vehicle-mounted knowledge through scene adaptation of large language models, breaks through the homogeneity dilemma of user experience through incremental learning of dedicated Lora models, and breaks through the separation barriers of human-machine cognition through the introduction of active learning. The system and users achieve deep interaction and mutual promotion at the level of "knowledge", presenting a beautiful picture of human-machine hybrid intelligence. This harmonious symbiotic relationship of "users teach me and I understand users" will surely lead the development trend of human-vehicle interaction in the future.

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

[0131] Example 2

[0132] In this embodiment, a vehicle-mounted voice control device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0133] Fig. 9 is a structural block diagram of a vehicle-mounted voice control device according to an embodiment of the present invention. Fig. 9 As shown, the device comprises:

[0134] A collection module 90, used to collect the in-vehicle voice commands of the target user;

[0135] A calling module 92, configured to call a dedicated Lora model matching the target user, wherein the dedicated Lora model is a personalized model corresponding to the target user;

[0136] A processing module 94 is used to input the vehicle-mounted voice command into the vehicle-mounted language model and the dedicated Lora model, and output a target reply text and a target control command, wherein the vehicle-mounted language model is a general model corresponding to multiple users;

[0137] The execution module 96 is used to voice play the target reply text on the vehicle and execute the target control instruction on the vehicle.

[0138] Optionally, the processing module includes: a first processing unit, used to input the in-vehicle voice command into a vehicle-mounted language model, and output an intermediate reply text and an intermediate control instruction; a second processing unit, used to use the Lora model to personalize the intermediate reply text and the intermediate control instruction, and output a target reply text and a target control instruction.

[0139] Optionally, the first processing unit includes: a parsing subunit, used to perform semantic parsing on the vehicle-mounted voice command using the vehicle-mounted language model to obtain semantic content; a judgment subunit, used to judge whether there is a logical error in the semantic content; and a first output subunit, used to output an intermediate reply text and an intermediate control instruction that matches the vehicle-mounted voice command if there is no logical error in the semantic content.

[0140] Optionally, the first processing unit also includes: a second output subunit, used to determine whether there is a logical error in the semantic content after the judgment subunit determines whether there is a logical error in the semantic content, and output a correction reply text matching the in-vehicle voice command.

[0141] Optionally, the device also includes: a first acquisition module, used to obtain vehicle-mounted scene data before the processing module inputs the vehicle-mounted voice command into the vehicle-mounted language model and the dedicated Lora model, wherein the vehicle-mounted scene data includes at least one of the following: vehicle-mounted voice command corpus, a vehicle-mounted knowledge base, and a vehicle operation manual; a first training module, used to use the vehicle-mounted scene data to perform incremental training on a preset large language model to obtain the vehicle-mounted language model.

[0142] Optionally, the device also includes: a second acquisition module, used to obtain the language habit data and behavior habit data of the target user before the calling module calls the dedicated Lora model matching the target user; a second training module, used to use the language habit data and the behavior habit data to train a general Lora template to obtain the dedicated Lora model.

[0143] Optionally, the second acquisition module includes: a reading unit, used to read a personalized corpus of the target user, and to read a historical vehicle control record of the target user, wherein the personalized corpus includes at least one of the following: common expressions, catchphrases, and proper nouns, and the historical vehicle control records include at least one of the following: operation preference information and control habit information; and an extraction unit, used to extract the language habit data and behavior habit data of the target user from the personalized corpus and the historical vehicle control records.

[0144] Optionally, the device also includes: a generation module, which is used to generate incremental sample data using the on-board voice command, the target reply text and the target control command after the execution module plays the target reply text on the vehicle and executes the target control command on the vehicle; an adding module, which is used to add the incremental sample data to a sample database; a selection module, which is used to select a sample data set of the current update cycle from the sample database according to priority; and a third training module, which is used to perform incremental training on the dedicated Lora model using the sample data set, and update the dedicated Lora model based on the training results.

[0145] Optionally, the selection module includes: a reading unit, used to read the confidence of the target sample data added in the current update cycle, wherein the confidence is used to characterize the uncertainty of the model output result; a configuration unit, used to configure the priority of each sample data added in the current update cycle using the confidence; and a selection unit, used to select several sample data from multiple sample data added in the current update cycle according to the priority to obtain a sample data set.

[0146] Optionally, the selection module also includes: an input unit, used to input the vehicle voice command into a natural language understanding NLU model before the reading unit reads the confidence of the target sample data, wherein the NLU model includes a first layer and a second layer connected in series in sequence, the first layer is deployed with multiple base learners in parallel, and the second layer is deployed with a global classification model, and each base learner corresponds to a knowledge domain; a judgment unit, used to use the multiple parallel base learners to judge whether the vehicle voice command belongs to the corresponding knowledge domain; a transmission unit, used to transmit the vehicle voice command to the global classification model if the vehicle voice command does not belong to the corresponding knowledge domain, and use the global classification model to judge whether the vehicle voice command belongs to a vehicle control command; a generation unit, used to generate the confidence of the vehicle voice command if the global classification model judges that the vehicle voice command does not belong to a vehicle control command.

[0147] Optionally, the reading unit is also used to: use a word vector model to obtain multiple recall vectors matching the sample voice instructions from a vector database; generate a word embedding vector based on the average value of the multiple recall vectors; input the sample voice instructions into a word vector encoding layer to obtain a vector matrix; input the vector matrix into a multi-layer convolution layer to obtain a convolution feature, wherein the multi-layer convolution layer includes a first convolution layer, a second convolution layer, and a third convolution layer, and the corresponding convolution kernel sizes are 3, 4, and 5, respectively; input the convolution feature into a maximum pooling layer to obtain a pooling feature; input the pooling feature into a fully connected layer to output a navigation domain feature score; input the sample voice instructions into multiple parallel knowledge domain text convolution neural network TextCNN models, and output multiple knowledge domain feature scores accordingly, wherein the knowledge domain TextCNN model corresponds to one knowledge domain feature score; splice the navigation domain feature score and the multiple knowledge domain feature scores with the word embedding vector to obtain a spliced ​​vector; input the spliced ​​vector into a support vector machine SVM model to output the confidence of the target sample data.

[0148] Optionally, the selection module also includes: a judgment unit, used to judge whether the confidence of the target sample data exceeds a preset threshold after the reading unit reads the confidence of the target sample data; a generation unit, used to generate a clarification request for the target sample data if the confidence of the target sample data exceeds the preset threshold; and a supplement unit, used to obtain explanatory information of the clarification request and supplement the explanatory information to the target sample data.

[0149] Optionally, the adding module is also used to: add the incremental sample data to the current incremental data block of the sample database; determine whether the number of word elements in the current incremental data block reaches a preset number; if the number of word elements in the current incremental data block reaches a preset number, output the current incremental data block as sample data for the current cycle, and add the most recent several word elements in the current incremental data block to the next incremental data block.

[0150] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0151] Example 3

[0152] An embodiment of the present invention further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0153] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:

[0154] S1, collects the target user’s in-vehicle voice commands;

[0155] S2, calling a dedicated Lora model matching the target user, wherein the dedicated Lora model is a personalized model corresponding to the target user;

[0156] S3, inputting the in-vehicle voice command into the in-vehicle language model and the dedicated Lora model, and outputting a target reply text and a target control command, wherein the in-vehicle language model is a general model corresponding to multiple users;

[0157] S4, playing the target reply text by voice on the vehicle, and executing the target control instruction on the vehicle.

[0158] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.

[0159] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0160] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0161] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0162] S1, collects the target user’s in-vehicle voice commands;

[0163] S2, calling a dedicated Lora model matching the target user, wherein the dedicated Lora model is a personalized model corresponding to the target user;

[0164] S3, inputting the in-vehicle voice command into the in-vehicle language model and the dedicated Lora model, and outputting a target reply text and a target control command, wherein the in-vehicle language model is a general model corresponding to multiple users;

[0165] S4, playing the target reply text by voice on the vehicle, and executing the target control instruction on the vehicle.

[0166] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0167] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0168] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0169] It should be understood that the terms used in the text are only for the purpose of describing specific example embodiments, and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used in the text may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.

[0170] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for controlling vehicle voice, characterized in that: include: Collect the target user's in-vehicle voice commands; Invoking a dedicated Lora model that matches the target user, wherein the dedicated Lora model is a personalized model corresponding to the target user; Inputting the vehicle voice command into the vehicle language model and the dedicated Lora model, and outputting a target reply text and a target control command, wherein the vehicle language model is a general model corresponding to multiple users; The target reply text is voice played on the vehicle, and the target control instruction is executed on the vehicle.

2. The method according to claim 1, characterized in that Inputting the vehicle voice command into the vehicle language model and the Lora model, and outputting the reply text and control command include: Inputting the vehicle-mounted voice command into a vehicle-mounted language model, and outputting an intermediate reply text and an intermediate control command; The Lora model is used to personalize the intermediate reply text and the intermediate control instruction, and the target reply text and the target control instruction are output.

3. The method according to claim 2, characterized in that Inputting the vehicle voice command into the vehicle language model, and outputting an intermediate reply text and an intermediate control command, including: Using the vehicle-mounted language model to perform semantic analysis on the vehicle-mounted voice command to obtain semantic content; Determining whether there is a logical error in the semantic content; If there is no logical error in the semantic content, an intermediate reply text and an intermediate control instruction matching the in-vehicle voice instruction are output.

4. The method according to claim 3, characterized in that After determining whether the semantic content has a logical error, the method further includes: It is determined that there is a logical error in the semantic content, and a correction reply text matching the in-vehicle voice command is output.

5. The method according to claim 1, characterized in that Before inputting the in-vehicle voice command into the in-vehicle language model and the dedicated Lora model, the method further includes: Acquire vehicle-mounted scene data, wherein the vehicle-mounted scene data includes at least one of the following: vehicle-mounted voice command corpus, vehicle-mounted knowledge base, and vehicle operation manual; The vehicle-mounted scene data is used to perform incremental training on a preset large language model to obtain the vehicle-mounted language model.

6. The method according to claim 1, characterized in that Before calling the dedicated Lora model matching the target user, the method further includes: Acquiring language habit data and behavioral habit data of the target user; The language habit data and the behavior habit data are used to train a general Lora template to obtain the dedicated Lora model.

7. The method according to claim 6, characterized in that Acquiring the language habit data and behavior habit data of the target user includes: Reading a personalized corpus of the target user and reading a historical vehicle control record of the target user, wherein the personalized corpus includes at least one of the following: common expressions, catchphrases, and proper nouns, and the historical vehicle control record includes at least one of the following: operation preference information and control habit information; The language habit data and behavior habit data of the target user are extracted from the personalized corpus and the historical vehicle control records.

8. The method according to claim 1, characterized in that After playing the target reply text on the vehicle and executing the target control instruction on the vehicle, the method further includes: Generating incremental sample data using the vehicle voice command, the target reply text and the target control command; Adding the incremental sample data to a sample database; Selecting a sample data set of a current update cycle from the sample database according to priority; The dedicated Lora model is incrementally trained using the sample data set, and the dedicated Lora model is updated based on the training result.

9. The method according to claim 8, characterized in that The sample data set of the current update cycle is selected from the sample database according to the priority, including: For each target sample data newly added in the current update cycle, read the confidence of the target sample data, wherein the confidence is used to characterize the uncertainty of the model output result; The confidence level is used to configure the priority of each piece of sample data added in the current update cycle; According to the priority, a number of sample data are selected from the multiple sample data newly added in the current update period to obtain a sample data set.

10. The method according to claim 9, characterized in that Before reading the confidence level of the target sample data, the method further includes: Inputting the sample voice command into a natural language understanding (NLU) model, wherein the NLU model includes a first layer and a second layer connected in series, the first layer is deployed with a plurality of base learners connected in parallel, the second layer is deployed with a global classification model, and each base learner corresponds to a knowledge domain; Using the plurality of parallel base learners to determine whether the sample voice instruction belongs to a corresponding knowledge domain; If the sample voice command does not belong to the corresponding knowledge domain, transmitting the sample voice command to the global classification model, and using the global classification model to determine whether the sample voice command belongs to a vehicle control command; If the global classification model determines that the sample voice command does not belong to a vehicle control command, a confidence level of the sample voice command is generated.

11. The method according to claim 9, characterized in that The confidence level of reading the target sample data includes: Using a word vector model to obtain multiple recall vectors matching the sample voice command from a vector database; generating a word embedding vector based on an average value of the multiple recall vectors; Input the sample voice command into the word vector encoding layer to obtain a vector matrix; input the vector matrix into the multi-layer convolution layer to obtain convolution features, wherein the multi-layer convolution layer includes a first convolution layer, a second convolution layer, and a third convolution layer, and the corresponding convolution kernel sizes are 3, 4, and 5 respectively; input the convolution features into the maximum pooling layer to obtain pooling features; input the pooling features into the fully connected layer, and output the navigation domain feature score; Inputting the sample voice instructions into a plurality of parallel knowledge domain text convolutional neural network TextCNN models respectively, and outputting a plurality of knowledge domain feature scores accordingly, wherein the knowledge domain TextCNN model corresponds to one knowledge domain feature score; Concatenating the navigation domain feature score and the plurality of knowledge domain feature scores with the word embedding vector to obtain a concatenated vector; The concatenated vector is input into a support vector machine (SVM) model, and the confidence of the target sample data is output.

12. The method according to claim 9, characterized in that After reading the confidence level of the target sample data, the method further includes: Determining whether the confidence level of the target sample data exceeds a preset threshold; If the confidence level of the target sample data exceeds a preset threshold, generating a clarification request for the target sample data; Obtain explanation information of the clarification request, and add the explanation information to the target sample data.

13. The method according to claim 8, characterized in that Adding the incremental sample data to the sample database includes: Adding the incremental sample data to the current incremental data block of the sample database; Determine whether the number of word units in the current incremental data block reaches a preset number; If the number of word units in the current incremental data block reaches a preset number, the current incremental data block is output as sample data of the current cycle, and several most recent word units in the current incremental data block are added to the next incremental data block.

14. A vehicle-mounted voice control device, characterized in that: include: A collection module, used to collect the in-vehicle voice commands of the target user; A calling module, configured to call a dedicated Lora model matching the target user, wherein the dedicated Lora model is a personalized model corresponding to the target user; A processing module, used for inputting the vehicle-mounted voice command into the vehicle-mounted language model and the dedicated Lora model, and outputting a target reply text and a target control command, wherein the vehicle-mounted language model is a general model corresponding to multiple users; An execution module is used to voice play the target reply text on the vehicle and execute the target control instruction on the vehicle.

15. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 13 when executed.

16. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 13.

Citation Information

Cited By

  • Intelligent interaction system and method for language recognition and large language model fusion

    CN119068864A

  • Voice interaction method based on dynamic label library and terminal equipment

    CN119673167A

  • Voice control method and electronic equipment

    CN121506126A

  • Multi-language-family artificial intelligence hearing aid fitting model construction and fitting method

    CN122133711A

  • A Multilingual AI-Based Hearing Aid Fitting Model Construction and Fitting Method

    CN122133711B