Method for responding to vehicle demand, electronic equipment and vehicle
By receiving user car use requirements instructions in the vehicle computer system, automatically determining and executing the required atomic capabilities and logic, and generating automated scripts, the problem of users needing to manually set functions in the existing technology is solved, and a more efficient and convenient car use experience is achieved.
Patent Information
- Application Number
- CN202411861559.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2044-12-17
AI Technical Summary
When responding to users' car use needs, existing car systems require users to manually set functions, resulting in large amounts of operation, high learning costs, and poor user experience.
By receiving user's car use requirements instructions, the atomic capabilities required to be executed and their execution logic are automatically determined, and automated scripts are generated and run to achieve automatic response to user needs.
It reduces the number of users' operations and learning costs, improves the user's car use experience, and can meet complex car use needs without manual settings by users.
Smart Images

Figure CN119883197A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and more particularly to a method, electronic equipment and vehicle for responding to vehicle use needs. Background Art
[0002] In the current car use scenario, if the driver or passengers have a car use demand, such as wanting the car system to perform certain car functions under certain conditions, they need to enter the function settings, manually select the corresponding conditions and functional actions, and perform logical splicing, and then the car system can understand and execute. For example, if the user wants to close the windows when it rains, the user needs to enter the function settings, manually select the condition "When it rains and the windows are open", and the functional action associated with the condition "Close the windows".
[0003] In such a function setting, due to the numerous functions and complex concepts, there is no clear explanation of the scope of each function, and users need to pay extra learning costs to understand how to use it. In addition, if the user's needs are more complex, it will also bring more operations to the user, causing inconvenience in use.
[0004] Therefore, this application is specially filed. Summary of the invention
[0005] In view of this, the purpose of this application is to propose a method, electronic device and vehicle for responding to car use needs, which can automatically generate an automated script for responding to car use needs according to the user's car use needs, so as to meet the user's car use needs by executing the automated script, solving the problem of high operation volume and high learning cost in realizing the user's car use needs, which is conducive to improving the user experience.
[0006] Based on the above objectives, in a first aspect, the present application provides a method for responding to vehicle demand, comprising:
[0007] In response to receiving a vehicle demand instruction, determining atomic capabilities required to be executed in response to the vehicle demand instruction and execution logic between the atomic capabilities;
[0008] Generate an execution script based on the atomic capabilities that need to be executed and the execution logic between the atomic capabilities;
[0009] The execution script is run to respond to the vehicle demand instruction.
[0010] Furthermore, the determining of the atomic capabilities required to be executed in response to the vehicle demand instruction and the execution logic between the atomic capabilities includes:
[0011] Determine whether there is a target script matching the vehicle demand instruction in the script content library, wherein the script content library includes scripts corresponding to a plurality of vehicle demands, and each script includes atomic capabilities required to be executed in response to the vehicle demand and execution logic between the atomic capabilities;
[0012] In response to the existence of a target script matching the vehicle demand instruction in the script content library, the atomic capabilities involved in the target script and the execution logic between the atomic capabilities are determined as the atomic capabilities and the execution logic between the atomic capabilities required to be executed in response to the vehicle demand instruction.
[0013] Furthermore, generating an execution script according to the atomic capabilities to be executed and the execution logic between the atomic capabilities includes:
[0014] Determine the name information of the atomic capabilities involved in the target script;
[0015] Determine the real-time parameters corresponding to each atomic capability according to the name information and the vehicle demand instruction;
[0016] The real-time parameters are used to replace the historical parameters corresponding to the atomic capabilities in the target script to obtain the execution script.
[0017] Furthermore, the determining of the name information of the atomic capabilities involved in the target scenario includes:
[0018] Matching the name information of each preset atomic capability in the atomic capability library with the content of the target script respectively, and determining the name information of the preset atomic capability whose matching degree reaches a first threshold as the name information of the atomic capability involved in the target script;
[0019] Alternatively, the information associated with the preset keyword in the target script is determined as the name information of the atomic capability involved in the target script.
[0020] Furthermore, determining the real-time parameters corresponding to each atomic capability according to the name information and the vehicle demand instruction includes:
[0021] Determining a parameter name that matches the name information, and identifying an information segment in the vehicle demand instruction that corresponds to the name information;
[0022] The information in the information segment that matches the parameter name is determined as the real-time parameter of the corresponding atomic capability.
[0023] Further, the step of determining whether there is a target script matching the vehicle demand instruction in the script content library includes:
[0024] Calculate the similarity between the content of the vehicle demand instruction and the function summary information of each script in the script content library;
[0025] In response to the existence of a target script whose similarity reaches a second threshold, it is determined that there is a target script matching the vehicle demand instruction in the script content library.
[0026] Furthermore, the determining of the atomic capabilities to be executed in response to the vehicle demand instruction and the execution logic between the atomic capabilities further includes:
[0027] In response to the absence of a target script matching the vehicle demand instruction in the script content library, the vehicle demand instruction is understood to determine the atomic capabilities that need to be executed and the execution logic between the atomic capabilities.
[0028] Furthermore, it also includes:
[0029] The vehicle demand instruction and the execution script are added as a new script to the script content library.
[0030] Based on the above purpose, in a second aspect, the present application also provides a device for responding to vehicle use needs, including:
[0031] A determination module, configured to determine, in response to receiving a vehicle demand instruction, the atomic capabilities required to be executed in response to the vehicle demand instruction and the execution logic between the atomic capabilities;
[0032] A generation module is used to generate an execution script according to the atomic capabilities to be executed and the execution logic between the atomic capabilities;
[0033] The running module is used to run the execution script to respond to the vehicle demand instruction.
[0034] Based on the above purpose, in a third aspect, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for responding to vehicle use needs as described in the first aspect above is implemented.
[0035] Based on the above purpose, in a fourth aspect, the present application also provides a vehicle, comprising the electronic device as described in the third aspect above.
[0036] Based on the above purpose, in a fifth aspect, the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method of responding to vehicle demand as described in any one of the above-mentioned first aspects.
[0037] From the above, it can be seen that the method for responding to car demand provided by the present application includes receiving the user's car demand instruction, that is, the user only needs to issue the car demand instruction according to his own car demand, without manually performing relevant settings, thereby saving user operations, and the user does not need to learn the relevant settings required to make the car computer respond to his own car demand, thereby reducing the user's learning cost and improving the user's car experience. When receiving the user's car demand instruction, the atomic capabilities required to be executed in response to the demand instruction and the execution logic between the atomic capabilities are automatically determined, so as to automatically generate an execution script, and the automatic response to the user's demand instruction is realized by running the execution script. Compared with the user manually setting the atomic capabilities required to be executed and the execution logic between the atomic capabilities, the present application scheme can automatically determine the atomic capabilities required to be executed in response to the demand instruction and the execution logic between the atomic capabilities according to the user's car demand instruction. Therefore, the user's needs can be responded to without the user manually operating any settings, which solves the problem of high operation volume and high learning cost in realizing the user's car demand, which is conducive to improving the user's use experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0039] Figure 1 A flow chart of a method for responding to vehicle use demand according to an embodiment of the present application Figure 1 ;
[0040] Figure 2 A flow chart of a method for responding to vehicle use demand according to an embodiment of the present application Figure 2 ;
[0041] Figure 3 A flow chart of a method for responding to vehicle use demand according to an embodiment of the present application Figure 3 ;
[0042] Figure 4 A flow chart of a method for responding to vehicle use demand according to an embodiment of the present application Figure 4 ;
[0043] Figure 5 A schematic diagram of a device for responding to vehicle use demand according to an embodiment of the present application;
[0044] Figure 6 A schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0045] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0046] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0047] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.
[0048] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0049] In the current car use scenario, if the driver and passengers have a car use demand, such as hoping that the car system will perform certain specific car functions under certain specific conditions (for example, if it rains, please close the car window, if it is sunny, please open the car window), it is necessary to enter the function settings, and the user needs to manually select the corresponding conditions and functional actions and perform logical splicing, and then the car system can understand and execute. For example, if the user's car use demand is "close the car window when it rains", the user needs to enter the function settings, manually select the condition "when it rains and the car window is open", and the functional action "close the car window" associated with the condition. In such a function setting, due to the numerous functions and complex concepts, there is no clear explanation of the scope of each function, so the user needs to pay additional learning costs to understand how to use it. In addition, if the user's needs are more complex, it will also bring more operations to the user, causing inconvenience in use. Therefore, it is necessary to develop a method for automatically setting car-related functions according to user needs to solve the problem of high operation volume and high learning cost in realizing the user's car use needs.
[0050] In some embodiments, Figure 1 A flow chart of a method for responding to a vehicle demand is shown, and the method for responding to a vehicle demand can be performed by a device for responding to a vehicle demand. The device for responding to a vehicle demand can be implemented in the form of software and / or hardware and integrated in a vehicle computer.
[0051] like Figure 1 As shown, the method for responding to vehicle demand includes the following steps:
[0052] S110 , in response to receiving a vehicle demand instruction, determining atomic capabilities required to be executed in response to the vehicle demand instruction and execution logic between the atomic capabilities.
[0053] Among them, the vehicle demand instruction is issued by the user. The user can speak the specific vehicle demand instruction by voice, or enter his or her own user demand instruction in text form through the interactive interface, or display some commonly used demand information on the interactive interface, and the user can directly select specific demand information to trigger the vehicle demand instruction, so as to further simplify the user's operation and improve the user's operation convenience and usage experience.
[0054] In summary, the car demand instructions are used to express the user's car demand, such as "If it rains, please close the window, if it is sunny, please open the window", "Every August at 5 pm, play music for me as soon as I get in the car", etc., which are specific car demand.
[0055] After receiving the vehicle demand instruction, the vehicle demand instruction is automatically parsed, identified or processed in other ways, in order to determine the atomic capabilities required to respond to the vehicle demand instruction and the execution logic between the atomic capabilities. The essence of the atomic capability is the detailed vehicle function, and one atomic capability represents a specific vehicle function. For example, "heat the second row left seat" and "turn on the air conditioner" are two different atomic capabilities.
[0056] By breaking down the functions of the car machine into independent atomic capabilities, a basis can be provided for realizing personalized customization of functions. The car machine system can flexibly combine various atomic capabilities according to the needs and preferences of different users to provide users with personalized functional configurations and services. For example, some users focus on entertainment functions, and the car machine system can combine atomic capabilities such as "music playback", "video playback", and "online radio". Some users focus on assisted driving, and the car machine system can combine atomic capabilities such as "adaptive cruise control", "lane keeping", and "automatic parking" to meet the diverse and personalized needs of users.
[0057] The execution logic between atomic capabilities refers to the execution order and execution conditions of each atomic capability. For example, for the car demand instruction "If it rains, please close the car windows", it involves two atomic capabilities, namely "Judge whether it is raining" and "Close the car windows". The execution logic between these two atomic capabilities means: if the execution result of the first atomic capability "Judge whether it is raining" is "Raining", then continue to execute the second atomic capability "Close the car windows"; if the execution result of the first atomic capability "Judge whether it is raining" is "Not raining", then do not continue to execute the second atomic capability "Close the car windows".
[0058] S120 : Generate an execution script according to the atomic capabilities to be executed and the execution logic between the atomic capabilities.
[0059] Among them, the execution script is a specific computer program. When the vehicle system runs the execution script, it can execute each atomic capability according to the execution logic between each atomic capability, thereby responding to user needs and achieving the purpose of meeting user needs.
[0060] Exemplarily, an atomic capability library can be set up in advance, which includes all atomic capabilities that the vehicle system can support, and corresponding execution scripts are pre-generated for different atomic capabilities and their execution logic, and the scenario functions that the execution script can satisfy are summarized, and a correspondence between the summary and the execution script is established. When the user's demand instructions are received, the user's demand and the summaries can be directly calculated for similarity, and the execution script corresponding to the summary with higher similarity is determined as the execution script used to meet the user's demand this time.
[0061] S130: Run the execution script to respond to the vehicle demand instruction.
[0062] The method for responding to vehicle use needs provided in this embodiment includes receiving a vehicle use demand instruction from a user, that is, the user only needs to issue a vehicle use demand instruction according to his or her own vehicle use needs, without having to manually perform relevant settings, thereby saving user operations, and the user does not need to learn the relevant settings required to make the vehicle computer respond to his or her own vehicle use needs, thereby reducing the user's learning cost and improving the user's vehicle use experience. When receiving the user's vehicle use demand instruction, the atomic capabilities required to be executed in response to the demand instruction and the execution logic between the atomic capabilities are automatically determined, thereby automatically generating an execution script, and automatically responding to the user's demand instruction by running the execution script. Compared with the user manually setting the atomic capabilities required to be executed and the execution logic between the atomic capabilities, the present application scheme can automatically determine the atomic capabilities required to be executed in response to the demand instruction and the execution logic between the atomic capabilities according to the user's vehicle use demand instruction. Therefore, the user's needs can be met without the user manually operating any settings, solving the problem of a large amount of operations and high learning costs in realizing the user's vehicle use needs, which is conducive to improving the user's use experience.
[0063] Based on the above embodiments, Figure 2 A flow chart of a method for responding to vehicle demand is shown. This embodiment provides an optional implementation method for S110 in the above embodiment "In response to receiving a vehicle demand instruction, determining the atomic capabilities required to be executed in response to the vehicle demand instruction and the execution logic between the atomic capabilities". Specifically, it is determined from the script content library whether there is a target script that matches the vehicle demand instruction. If so, the atomic capabilities involved in the target script and the execution logic between the atomic capabilities are determined as the atomic capabilities required to be executed in response to the vehicle demand instruction and the execution logic between the atomic capabilities. This method of determining the atomic capabilities required to be executed in response to the vehicle demand instruction and the execution logic between the atomic capabilities has the advantages of high precision and high speed, thereby improving the speed and efficiency of responding to user vehicle needs, which is conducive to providing users with a better user experience.
[0064] like Figure 2 As shown, the method for responding to vehicle demand includes the following steps:
[0065] S210. In response to receiving a vehicle demand instruction, determine whether there is a target script matching the vehicle demand instruction in the script content library.
[0066] The script content library includes scripts corresponding to various vehicle use requirements, and each script includes atomic capabilities required to respond to vehicle use requirements and the execution logic between the atomic capabilities. The script is a user-defined scenario function presentation, and each script consists of several related atomic capabilities and the logical relationships between them.
[0067] Optionally, corresponding function summary information can be defined for each script in the script content library. The function summary information is used to indicate the scene functions that can be realized by the corresponding script, for example, it can be "If it rains, please close the windows in time". Therefore, the function summary information corresponding to each script in the script content library is equivalent to the specific car demand. Therefore, when the car demand instruction issued by the user in real time is received, the semantic similarity between the car demand instruction and the function summary information corresponding to each script in the script content library can be calculated. If there is function summary information with a high degree of similarity, it means that there is a target script in the script content library that can meet the car demand, that is, it is determined that there is a target script in the script content library that matches the car demand instruction. Then, the atomic capabilities involved in the target script and the execution logic between the atomic capabilities can be determined as the atomic capabilities required to be executed in response to the car demand instruction and the execution logic between the atomic capabilities. That is, the atomic capabilities required to be executed in response to the vehicle demand instruction and the execution logic between each atomic capability are determined from the script content library. Since the atomic capabilities involved in each script in the script content library and the execution logic between each atomic capability are predetermined, usually specially formulated by developers or obtained through authoritative channels, the atomic capabilities involved in each script in the script content library and the execution logic between each atomic capability have high accuracy and reliability. Therefore, by determining the atomic capabilities required to be executed in response to the vehicle demand instruction and the execution logic between each atomic capability from the script content library, the determined atomic capabilities required to be executed in response to the vehicle demand instruction and the execution logic between each atomic capability have high accuracy and reliability.
[0068] In summary, the method of determining whether there is a target script matching the vehicle demand instruction in the script content library includes: calculating the similarity between the content of the vehicle demand instruction and the function summary information of each script in the script content library; in response to the existence of a target script whose similarity reaches a second threshold, determining that there is a target script matching the vehicle demand instruction in the script content library. In other words, the target script matching the vehicle demand instruction can be determined from the script content library only through similarity calculation, which makes the method of determining the target script simpler, simplifies the method of determining the target script, reduces the difficulty of implementation, and can obtain a higher determination speed and accuracy, laying the foundation for quickly and accurately responding to vehicle demand instructions.
[0069] By pre-storing a variety of scripts that can realize different scenario functions in the script content library, when the user issues a car demand instruction in real time, the script content library can be searched and matched first. If there is a target script matching the car demand instruction in the script content library, the atomic capabilities involved in the target script and the execution logic between the atomic capabilities are determined to be the atomic capabilities required to be executed in response to the car demand instruction and the execution logic between the atomic capabilities. This improves the accuracy, reliability and efficiency of determining the atomic capabilities required to be executed in response to the car demand instruction and the execution logic between the atomic capabilities, laying the foundation for accurate and rapid response to user demand instructions.
[0070] S220. In response to the existence of a target script matching the vehicle demand instruction in the script content library, the atomic capabilities involved in the target script and the execution logic between the atomic capabilities are determined as the atomic capabilities and the execution logic between the atomic capabilities required to be executed in response to the vehicle demand instruction.
[0071] The script content library includes scripts corresponding to various vehicle use requirements, and each script includes the atomic capabilities required to respond to vehicle use requirements and the execution logic between the atomic capabilities. The script is the presentation of user-defined scenario functions, and each script consists of several related atomic capabilities and the logical relationships between them.
[0072] When it is determined that there is a target script matching the vehicle demand instruction in the script content library, the atomic capabilities involved in the target script and the execution logic between the atomic capabilities are directly determined as the atomic capabilities required to be executed in response to the vehicle demand instruction and the execution logic between the atomic capabilities. This is beneficial to improving the accuracy, reliability and efficiency of determining the atomic capabilities required to be executed in response to the vehicle demand instruction and the execution logic between the atomic capabilities, and laying the foundation for accurately and quickly responding to user demand instructions.
[0073] S230: Generate an execution script according to the atomic capabilities to be executed and the execution logic between the atomic capabilities.
[0074] S240: Run the execution script to respond to the vehicle demand instruction.
[0075] The method for responding to car demand provided in this embodiment, upon receiving a user's car demand instruction, determines whether there is a target script matching the car demand instruction in the script content library. If there is a target script matching the car demand instruction in the script content library, the atomic capabilities involved in the target script and the execution logic between the atomic capabilities are determined as the atomic capabilities and the execution logic between the atomic capabilities required to be executed in response to the car demand instruction. Since the atomic capabilities and the execution logic between the atomic capabilities involved in each script in the script content library are specially formulated by developers or obtained through authoritative channels, the atomic capabilities and the execution logic between the atomic capabilities involved in each script in the script content library have a higher accuracy. Therefore, by determining the atomic capabilities and the execution logic between the atomic capabilities required to respond to the user's car demand instruction from the script content library, the accuracy and reliability of determining the atomic capabilities and the execution logic between the atomic capabilities required to be executed in response to the car demand instruction are improved. When determining the atomic capabilities required to respond to the user's car demand instructions and the execution logic between the atomic capabilities from the script content library, it is only necessary to calculate the similarity between the content of the car demand instructions and the functional summary information of each script in the script content library to determine the corresponding atomic capabilities and the execution logic between the atomic capabilities. Therefore, it has a high determination efficiency and lays the foundation for accurately and quickly responding to user demand instructions. By automatically determining the atomic capabilities required to respond to the demand instructions and the execution logic between the atomic capabilities, an execution script is automatically generated, and the automatic response to the user demand instructions is achieved by running the execution script. The user's needs can be met without the user manually operating any settings, which solves the problem of high operation volume and high learning cost in realizing the user's car demand, which is conducive to improving the user experience.
[0076] Based on the above embodiments, Figure 3A flow chart of a method for responding to a car demand is shown. This embodiment provides an optional embodiment for S120 "generating an execution script according to the atomic capabilities to be executed and the execution logic between the atomic capabilities" in the above embodiment. Specifically, the script structure of the target script (i.e., the framework of the execution script) is used, and the parameters corresponding to each atomic capability are identified from the current car demand instruction, and the corresponding parameters in the target script are replaced with the parameters, so as to obtain an execution script for responding to the current car demand. Since the script structure of each script in the script library is pre-formulated, usually specially formulated by developers, it has high accuracy and reliability. Therefore, by referring to the script structure of the target script (i.e., the framework of the execution script), the execution script for responding to the current car demand is determined, so that the execution script determined to respond to the current car demand has high accuracy and reliability; and by using the script structure of the target script (i.e., the framework of the execution script), only the parameters therein are replaced to obtain the execution script for responding to the current car demand, so that the determination of the execution script for responding to the current car demand is more efficient, simpler, and easier to implement.
[0077] Alternatively, the execution script of the target scenario is directly determined as the execution script for responding to the current secondary vehicle use demand. Determining the execution script for responding to the current secondary vehicle use demand in this way has the advantages of easy implementation, high efficiency, high reliability and low online calculation.
[0078] like Figure 3 As shown, the method for responding to vehicle demand includes the following steps:
[0079] S310. In response to the existence of a target script matching the vehicle demand instruction in the script content library, the atomic capabilities involved in the target script and the execution logic between the atomic capabilities are determined as the atomic capabilities and the execution logic between the atomic capabilities required to be executed in response to the vehicle demand instruction.
[0080] S320: Determine the name information of the atomic capabilities involved in the target scenario.
[0081] Among them, the name information of the atomic capability may be, for example, "second row seat heating", and the parameters corresponding to the atomic capability are "first gear, second gear, third gear, off", indicating that it can support the seat heating to be turned on to the first gear, second gear, third gear or off.
[0082] Determine the name information of the atomic capabilities involved in the target script, specifically by directly reading the name information of the atomic capabilities stored in association with the target script. Alternatively, match the name information of each preset atomic capability in the atomic capability library with the content of the target script respectively, and determine the name information of the preset atomic capability that reaches a first threshold value as the name information of the atomic capability involved in the target script. For example, the name information of the preset atomic capability in the atomic capability library is "second row seat heating", match the text information "second row seat heating" with the content of the target script, and detect whether the content of the target script includes the text information. If included, determine that the name information of the atomic capability involved in the target script includes "second row seat heating".
[0083] Alternatively, the information associated with the preset keyword in the target script is determined as the name information of the atomic capability involved in the target script. For example, a preset keyword (such as action) is set in the target script, and the name information of the atomic capability is recorded after the preset keyword. Therefore, the name information of the atomic capability can be determined by identifying the preset keyword.
[0084] S330. Determine the real-time parameters corresponding to each atomic capability according to the name information and the vehicle demand instruction.
[0085] Exemplarily, according to a preset mapping relationship, a parameter name matching the name information is determined. For example, for the name information "second row seat heating", the parameter names matching it include "first gear, second gear, third gear and off".
[0086] And identify the information segment corresponding to the name information in the vehicle demand instruction. The information segment corresponding to the name information can be understood as an information segment composed of several characters before and after the position of the name information in the vehicle demand instruction together with the name information. In addition to the name information, the information segment also includes corresponding real-time parameters, such as "Please heat the second row of seats to the second gear". The corresponding real-time parameters are usually close to the position of the name information. Based on this rule, first identify the information segment corresponding to the name information in the vehicle demand instruction, then match the parameter name in the information segment, and determine the matched parameter name as the real-time parameter of the corresponding atomic capability. That is, the information that matches the parameter name in the information segment is determined as the real-time parameter of the corresponding atomic capability.
[0087] S340. Use the real-time parameters to replace the historical parameters corresponding to the atomic capabilities in the target script to obtain the execution script.
[0088] Furthermore, the vehicle demand instruction and the execution script are added as new scripts to the script content library to enrich the scripts in the script content library and provide a basis for subsequent response to vehicle demand.
[0089] For the new script, the vehicle demand instruction is its functional summary information, and the execution script is its script structure.
[0090] For example, when the car demand instruction is: "Play music as soon as I get in the car; if it rains, close the rear windows", the corresponding execution script, or the script structure, is:
[0091] Trigger (when the car computer is started), Action (play the playlist {mediaSrc = **music, sheet = recommended playlist}); Condition (judge the weather {day = today, type = raining}), Action (second row left window {state = all closed}), Action (second row right window {state = all closed}).
[0092] S350: Run the execution script to respond to the vehicle demand instruction.
[0093] In some implementations, in response to the absence of a target script matching the vehicle demand instruction in the script content library, the vehicle demand instruction is understood to determine the atomic capabilities to be executed and the execution logic between the atomic capabilities. For example, the vehicle demand instruction can be semantically understood through a large language model to determine the atomic capabilities to be executed and the execution logic between the atomic capabilities.
[0094] Specifically, the trigger classification model, atomic capability recognition model, parameter filling model and script generation model can be trained respectively through the matching sample data. Among them, the atomic capability recognition model, parameter filling model and script generation model are LLM (Large Language Model), which are implemented based on the Transformer architecture and attention mechanism. The model architecture includes a multi-layer structure, which consists of multiple layers of encoders and decoders to form a hierarchical structure. The encoder is responsible for analyzing and processing the input text and extracting representations containing key information such as semantics, grammar and context. The decoder generates coherent and context-related responses based on the encoded representation, and gradually refines and improves the response generation through each layer, so that the model can grasp the language nuances layer by layer and generate high-quality text. The attention mechanism is the core component of the model, which can assign different weights to different words in a sentence, so that the model can focus on key information in a given context, ignore irrelevant details, and understand the potential meaning of the text more accurately.
[0095] The trigger classification model is a NLP (Natural Language Processing) model in the form of BERT (Bidirectional Encoder Representations from Transformers). The model structure is a Transformer-based encoder, consisting of multiple stacked self-attention layers and feedforward neural network layers. The self-attention mechanism can calculate the degree of association between each word in the text and other words in parallel, thereby effectively capturing long-distance semantic dependencies, which enables the model to better understand the contextual information of the text.
[0096] The trigger classification model is used to identify the trigger category contained in the vehicle demand instruction. A trigger is a type of atomic capability that is used to determine whether the corresponding trigger timing is met. When the trigger timing arrives, the subsequent content will continue to be executed. For example, if the vehicle demand instruction is "Play music as soon as I get in the car", the corresponding trigger category is "When the car computer starts". The input of the trigger classification model is the text information corresponding to the vehicle demand instruction, and the output is the trigger category.
[0097] The atomic capability recognition model is used to identify all atomic capabilities that need to be executed in response to the vehicle demand instruction. Its input is the trigger category output by the trigger classification model and the text information corresponding to the vehicle demand instruction, and its output is a list of all atomic capabilities that need to be executed in response to the vehicle demand instruction. For example, the vehicle demand instruction is "When I say it's a bit hot, if the weather is sunny, please help me open the window", and the trigger category is "voice command". "When I say it's a bit hot, if the weather is sunny, please help me open the window" and "voice command" are input into the atomic capability recognition model to obtain the atomic capability list "window control", "voice command", "weather judgment".
[0098] The parameter filling model is used to identify the parameters corresponding to each atomic capability from the vehicle demand instruction. Its input is the text information of the vehicle demand instruction and the atomic capability list output by the atomic capability identification model, and its output is the atomic capability and the corresponding parameters. For example, if the vehicle demand instruction is "Play music for me as soon as I get in the car. If it rains, close the rear windows", the corresponding atomic capability list is "When the car computer starts, play the song list, judge the weather, second row left window, second row right window", and use this information as the input of the parameter filling model, and its output is "When the car computer starts, play the song list, mediaSrc = ** music, sheet = play the song list; judge the weather, day = today, type = raining; second row left window, state = all closed, second row right window, state = all closed".
[0099] The script generation model is used to generate execution scripts, that is, to generate scripts. Its input is the output of the parameter filling model, and its output is the final script. For example, the car demand instruction is "Play music for me as soon as I get in the car. If it rains, close the rear windows", and the output of the parameter filling model is "When the car starts, play the song list, mediaSrc = ** music, sheet = play the song list; judge the weather, day = today, type = rain; second row left window, state = all closed, second row right window, state = all closed". The output of the parameter filling model is used as the input of the script generation model. The output of the script generation model is:
[0100] Trigger (when the car computer is started), Action (play the playlist {mediaSrc = **music, sheet = recommended playlist}); Condition (judge the weather {day = today, type = raining}), Action (second row left window {state = all closed}), Action (second row right window {state = all closed}).
[0101] Based on the above large model, refer to Figure 4 The flowchart of a method for responding to vehicle demand is shown in the figure. When the user inputs the vehicle demand into the vehicle computer, the voice function of the vehicle computer converts it into a textual demand description. Then, using the text similarity model, the user's demand description is matched with the functional summary of all scripts in the script content library. If a script with a high similarity can be matched, branch one is executed: retaining the script structure and only re-determining the parameter values of the relevant atomic capabilities; if a script with a high similarity cannot be matched, branch two is executed: generating the script from scratch using the model capability.
[0102] Branch 1: directly obtain the matched script, keep its script structure unchanged, and extract all the atomic capabilities. All atomic capabilities and the user's original demand description are used as the input of the parameter filling large model to obtain the parameter values of all atomic capabilities that meet the current demand description. For example, the input of the parameter filling large model is: when I say it's a bit hot, if the weather is sunny, please help me open the window; window control and voice command. The output data is: main driving window-1102672, state = full open; voice command-1102673, zone = any, value = a bit hot; judge the weather-1102674, day = today, type = sunny. Re-fill the atomic capabilities with updated parameters into the script structure to get the final script.
[0103] Branch 2: Use the trigger classification model to obtain the trigger category to which the requirement description belongs. Based on the results of the previous step and the pre-maintained atomic capability library, use the atomic capability identification model to find all the atomic capabilities involved in the requirement description. Use all atomic capabilities and the user's original requirement description as inputs to the parameter filling large model to obtain the parameter values of all atomic capabilities that meet the current description. Use all the atomic capabilities with filled parameters and the user's original requirement description as inputs to the script generation large model to generate the final script. After completing the above process, organize the new scripts into the script content library, and continuously enrich the number of scripts in the script content library to provide a basis for subsequent responses to vehicle needs.
[0104] This embodiment combines a large language model, a traditional natural language processing model, a text similarity model, and several business logic rules to decompose the complex content understanding task into multiple relatively simple and direct subtasks, and trains the model in a targeted manner to quickly and accurately understand the user's car needs, and structuredly generate automated scripts that can meet the car needs. This solves the problem of high learning costs and cumbersome operations for users.
[0105] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a device for responding to vehicle use needs.
[0106] refer to Figure 5 The device for responding to vehicle demand includes: a determination module 510, which is used to determine the atomic capabilities required to be executed in response to the vehicle demand instruction and the execution logic between the atomic capabilities in response to the vehicle demand instruction; a generation module 520, which is used to generate an execution script according to the atomic capabilities required to be executed and the execution logic between the atomic capabilities; and an operation module 530, which is used to run the execution script to respond to the vehicle demand instruction.
[0107] Furthermore, the determination module 510 includes a first determination unit, which is used to determine whether there is a target script matching the vehicle demand instruction in the script content library, the script content library includes scripts corresponding to multiple vehicle demand instructions, and each script includes atomic capabilities required to be executed in response to the vehicle demand and execution logic between each atomic capability. In response to the existence of a target script matching the vehicle demand instruction in the script content library, the atomic capabilities involved in the target script and the execution logic between each atomic capability are determined as the atomic capabilities required to be executed in response to the vehicle demand instruction and the execution logic between each atomic capability.
[0108] Furthermore, the generation module 520 includes: a second determination unit, used to determine the name information of the atomic capabilities involved in the target script; a third determination unit, used to determine the real-time parameters corresponding to each atomic capability based on the name information and the vehicle demand instruction; a replacement unit, used to replace the historical parameters corresponding to each atomic capability in the target script with the real-time parameters to obtain the execution script.
[0109] Furthermore, the second determination unit is specifically used to: match the name information of each preset atomic capability in the atomic capability library with the content of the target script respectively, and determine the name information of the preset atomic capability whose matching degree reaches the first threshold as the name information of the atomic capability involved in the target script;
[0110] Alternatively, the information associated with the preset keyword in the target script is determined as the name information of the atomic capability involved in the target script.
[0111] Further, the third determination unit is specifically used to: determine a parameter name matching the name information, and identify an information segment corresponding to the name information in the vehicle demand instruction;
[0112] The information in the information segment that matches the parameter name is determined as the real-time parameter of the corresponding atomic capability.
[0113] Furthermore, the first determination unit is specifically used to: calculate the similarity between the content of the vehicle demand instruction and the function summary information of each script in the script content library; in response to the existence of a target script whose similarity reaches a second threshold, determine whether there is a target script in the script content library that matches the vehicle demand instruction.
[0114] Furthermore, the first determination unit is also used to: in response to the absence of a target script matching the vehicle demand instruction in the script content library, understand the vehicle demand instruction, determine the atomic capabilities that need to be executed and the execution logic between the atomic capabilities.
[0115] Furthermore, it also includes an adding module for adding the vehicle demand instruction and the execution script as a new script to the script content library.
[0116] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0117] The device of the above-mentioned embodiment is used to implement the corresponding method of responding to vehicle demand in any of the above-mentioned embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0118] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0119] The device of the above-mentioned embodiment is used to implement the corresponding method of responding to vehicle demand in any of the above-mentioned embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0120] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a vehicle, which includes the device for responding to vehicle demand.
[0121] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for responding to vehicle use needs described in any of the above embodiments is implemented.
[0122] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for responding to vehicle use needs described in any of the above embodiments is implemented.
[0123] Figure 6 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0124] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0125] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0126] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0127] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0128] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0129] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0130] The electronic device of the above-mentioned embodiment is used to implement the corresponding method of responding to the vehicle demand in any of the above-mentioned embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0131] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method for responding to vehicle demand as described in any of the above embodiments.
[0132] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0133] The computer instructions stored in the storage medium of the above embodiments are used to enable the computer to execute the method for responding to vehicle demand as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0134] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0135] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.
[0136] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0137] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.
Claims
1. A method for responding to vehicle demand, characterized in that: include: In response to receiving a vehicle demand instruction, determining atomic capabilities required to be executed in response to the vehicle demand instruction and execution logic between the atomic capabilities; Generate an execution script based on the atomic capabilities that need to be executed and the execution logic between the atomic capabilities; The execution script is run to respond to the vehicle demand instruction.
2. The method for responding to vehicle demand according to claim 1, characterized in that: The determining of the atomic capabilities to be executed in response to the vehicle demand instruction and the execution logic between the atomic capabilities includes: Determine whether there is a target script matching the vehicle demand instruction in the script content library, wherein the script content library includes scripts corresponding to a plurality of vehicle demands, and each script includes atomic capabilities required to be executed in response to the vehicle demand and execution logic between the atomic capabilities; In response to the existence of a target script matching the vehicle demand instruction in the script content library, the atomic capabilities involved in the target script and the execution logic between the atomic capabilities are determined as the atomic capabilities and the execution logic between the atomic capabilities required to be executed in response to the vehicle demand instruction.
3. The method for responding to vehicle demand according to claim 2, characterized in that: The step of generating an execution script according to the atomic capabilities to be executed and the execution logic between the atomic capabilities includes: Determine the name information of the atomic capabilities involved in the target script; Determine the real-time parameters corresponding to each atomic capability according to the name information and the vehicle demand instruction; The real-time parameters are used to replace the historical parameters corresponding to the atomic capabilities in the target script to obtain the execution script.
4. The method for responding to vehicle demand according to claim 3, characterized in that: The determining of the name information of the atomic capabilities involved in the target script includes: Matching the name information of each preset atomic capability in the atomic capability library with the content of the target script respectively, and determining the name information of the preset atomic capability whose matching degree reaches a first threshold as the name information of the atomic capability involved in the target script; Alternatively, the information associated with the preset keyword in the target script is determined as the name information of the atomic capability involved in the target script.
5. The method for responding to vehicle demand according to claim 3, characterized in that: Determining the real-time parameters corresponding to each atomic capability according to the name information and the vehicle demand instruction includes: Determining a parameter name that matches the name information, and identifying an information segment in the vehicle demand instruction that corresponds to the name information; The information in the information segment that matches the parameter name is determined as the real-time parameter of the corresponding atomic capability.
6. The method for responding to vehicle demand according to claim 2, characterized in that: The step of determining whether there is a target script matching the vehicle demand instruction in the script content library includes: Calculate the similarity between the content of the vehicle demand instruction and the function summary information of each script in the script content library; In response to the existence of a target script whose similarity reaches a second threshold, it is determined that there is a target script matching the vehicle demand instruction in the script content library.
7. The method for responding to vehicle demand according to claim 2, characterized in that: Also includes: In response to the absence of a target script matching the vehicle demand instruction in the script content library, the vehicle demand instruction is understood to determine the atomic capabilities that need to be executed and the execution logic between the atomic capabilities.
8. The method for responding to vehicle demand according to claim 1, characterized in that: Also includes: The vehicle demand instruction and the execution script are added as a new script to the script content library.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method for responding to vehicle demand as described in any one of claims 1 to 8 is implemented.
10. A vehicle, characterized in that: The vehicle comprises the electronic device as claimed in claim 9.
Citation Information
Patent Citations
Script generation method and device, electronic equipment and storage medium
CN117215725A
Vehicle remote control method and device and storage medium
CN117440049A
Simulation system graphical user interface generation method based on parameter script
CN118094673A
Vehicle control method and device based on atomic function and storage medium
CN118585174A