Vehicle workflow generation method and device, medium and program product
By obtaining target voice and user portrait data to generate vehicle workflow, it solves the problems of cumbersome manual settings and inability to adjust in the existing technology, and achieves convenient and efficient workflow generation and personalized user experience.
Patent Information
- Application Number
- CN202411272626.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing vehicle workflows must be manually set or arranged by users and cannot be flexibly adjusted, resulting in task execution effects that cannot meet user needs and affect user experience.
By obtaining the target voice, determine the target user and obtain user portrait data, combine the voice text and prompt word input workflow to generate a model, generate a matching target workflow, including vehicle tasks, and monitor and adjust during the execution process to adapt to user habits and need.
It realizes workflow generation without the need for manual user settings, improves operational convenience and user experience, and can flexibly adapt to users' driving habits and preferences to provide personalized services.
Smart Images

Figure CN118798618A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the automotive field, and in particular to a method, device, medium and program product for generating a vehicle workflow. Background Art
[0002] Currently, the vehicle supports users to customize vehicle workflows in different scenarios. Each vehicle workflow contains multiple tasks that need to be performed by the vehicle. For example, the owner can set the vehicle workflow in the homecoming scenario to include three tasks: automatically planning the optimal route home, adjusting the seat to the memory position, and adjusting the temperature in the car to the memory temperature. Based on this, when the owner says "go home" in the car, the vehicle can automatically execute the aforementioned pre-set vehicle workflow.
[0003] However, in the related art, the vehicle workflow must be manually set or arranged by the user, which is a cumbersome and time-consuming process, especially for users who are not familiar with the operation. Moreover, even in the same scenario, the same user may use the vehicle differently. However, when the vehicle executes the workflow, it can only perform tasks strictly according to the task parameters set in advance by the user, and cannot be adjusted flexibly, which often results in the vehicle's task execution effect failing to meet the user's needs, thus affecting the user experience. Summary of the invention
[0004] The present application provides a method, device, medium and program product for generating a vehicle workflow to address deficiencies in related technologies.
[0005] According to a first aspect of one or more embodiments of the present application, a method for generating a vehicle workflow is provided, the method comprising: Acquire a target voice, determine a target user according to the target voice, and convert the target voice into voice text; Acquire target user portrait data based on the determined target user, wherein the target user portrait data is used to indicate the vehicle use habits of the target user; The voice text, the target user portrait data and the prompt word are input into a workflow generation model, so that the workflow generation model, under the instruction of the prompt word, generates and outputs a target workflow that matches both the voice text and the target user portrait data, wherein the target workflow includes at least one target vehicle task.
[0006] Optionally, determining the target user based on the target voice includes: identifying whether the originator of the target voice is the first driver who is currently driving the vehicle; when it is identified that the originator of the target voice is the first driver, determining the first driver as the target user; when it is identified that the originator of the target voice is not the first driver and the predefined standard includes a rule for determining the voice originator as the target user, determining the originator of the target voice as the target user.
[0007] Optionally, the method also includes: acquiring vehicle data of the vehicle, the vehicle data including driving environment data of the vehicle and / or vehicle status data of the vehicle; searching a preset rule library based on the vehicle data, the preset rule library containing multiple candidate preset rules, each candidate preset rule containing a trigger condition for updating a corresponding vehicle task and an update plan for the corresponding vehicle task; when the retrieval result indicates that there is a target preset rule matching the vehicle data in the preset rule library, determining whether the vehicle data satisfies a target trigger condition contained in the target preset rule; when it is determined that the vehicle data satisfies the target trigger condition, updating the corresponding vehicle task according to the target update plan contained in the target preset rule.
[0008] Optionally, the method also includes: outputting the target workflow to the driver and passenger of the vehicle, and upon receiving a confirmation instruction from the driver and passenger regarding the target workflow, controlling the target functional components corresponding to each target vehicle task in the target workflow to execute the corresponding target vehicle task.
[0009] Optionally, the method further includes: monitoring the execution status of each target vehicle task in the target workflow; and when an execution exception is detected in any target vehicle task, enabling an alternative task plan corresponding to any target vehicle task for execution.
[0010] Optionally, when the target workflow includes at least two target vehicle tasks, there is a specific execution order between the at least two target vehicle tasks, and the method further includes: monitoring whether each target vehicle task in the target workflow is executed in the specific execution order; when it is monitored that the execution order of each target vehicle task is different from the specific execution order, displaying prompt information that the execution order of the target workflow is incorrect to the driver and passenger of the vehicle, and / or whether to adjust the prompt information of the target workflow so that the driver and passenger adjust the target workflow based on the displayed prompt information.
[0011] According to a second aspect of one or more embodiments of the present application, a method for training a workflow generation model is provided, the method comprising: Obtaining sample text for a vehicle, as well as sample user portrait data and sample workflow corresponding to the sample text; Inputting the sample text, the sample user portrait data and the sample prompt word into a pre-trained workflow generation model, so that the pre-trained workflow generation model generates and outputs a sample prediction workflow that matches both the sample text and the sample user portrait data under the instruction of the sample prompt word; According to the difference between the sample workflow and the sample prediction workflow, the sample prompt words are adjusted and the pre-trained workflow generation model is iteratively trained.
[0012] According to a third aspect of one or more embodiments of the present application, a device for generating a vehicle workflow is provided, the device comprising: A speech acquisition unit, used to acquire a target speech, determine a target user according to the target speech, and convert the target speech into speech text; A user portrait data acquisition unit, used to acquire target user portrait data based on the determined target user, wherein the target user portrait data is used to indicate the vehicle use habits of the target user; The workflow generation unit is used to input the voice text, the target user portrait data and the prompt word into the workflow generation model, so that the workflow generation model, under the instruction of the prompt word, generates and outputs a target workflow that matches both the voice text and the target user portrait data, wherein the target workflow includes at least one target vehicle task.
[0013] According to a fourth aspect of one or more embodiments of the present application, a training device for a workflow generation model is provided, the device comprising: A sample acquisition unit, used to acquire sample text for a vehicle, and sample user portrait data and sample workflow corresponding to the sample text; A workflow prediction unit, configured to input the sample text, the sample user portrait data and the sample prompt word into a pre-trained workflow generation model, so that the pre-trained workflow generation model generates and outputs a sample prediction workflow that matches both the sample text and the sample user portrait data under the instruction of the sample prompt word; An iteration unit is used to adjust the sample prompt words and iteratively train the pre-trained workflow generation model according to the difference between the sample workflow and the sample prediction workflow.
[0014] According to a fifth aspect of one or more embodiments of the present application, an electronic device is provided, including: processor; a memory for storing processor-executable instructions; The processor implements the method described in any one of the embodiments of the first aspect or the second aspect by running the executable instructions.
[0015] According to a sixth aspect of one or more embodiments of the present application, a computer-readable storage medium is provided, on which computer instructions are stored. When the instructions are executed by a processor, the steps of the method described in any embodiment of the first aspect or the second aspect are implemented.
[0016] According to the seventh aspect of one or more embodiments of the present application, a computer program product is provided, comprising a computer program and / or instructions, which, when executed by a processor, implement the steps of the method described in any embodiment of the first or second aspect above.
[0017] As can be seen from the above technical solutions, in one or more embodiments of the present application, the target user is determined based on the acquired target voice, and the acquired target voice is converted into voice text, and then the target user portrait data is obtained according to the determination result. Then, the voice text, the target user portrait data and the prompt word are input into the workflow generation model, so that the workflow generation model generates and outputs the target workflow that matches the voice text and the target user portrait data at the same time. The above method realizes the automatic generation of the target workflow according to the user voice, without the need for the user to manually set or arrange, which greatly improves the convenience of user operation. In addition, since the target user portrait data is generated based on the target user's car-using habits, that is, the target user portrait data can reflect the target user's car-using habits and preferences, and the voice text can reflect the current car-using needs of the user who issued the target voice, therefore, the target workflow generated based on the voice text and the target user portrait data can not only meet the car-using needs of the user who issued the target voice, but also can flexibly adapt to the target user's car-using habits / preferences, thereby significantly improving the car-using experience of the driver and passengers, and ensuring that personalized services are provided to users.
[0018] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0020] Figure 1 It is a schematic diagram of the architecture of a vehicle workflow system provided by an exemplary embodiment.
[0021] Figure 2 It is a flowchart of a method for generating a vehicle workflow provided by an exemplary embodiment.
[0022] Figure 3 This is a schematic diagram of outputting a target workflow to a user provided by an exemplary embodiment.
[0023] Figure 4 It is a flowchart of updating / adjusting a target workflow provided by an exemplary embodiment.
[0024] Figure 5 This is a schematic diagram of a prompt information display page provided by an exemplary embodiment.
[0025] Figure 6 It is a block diagram of a vehicle workflow system provided by an exemplary embodiment.
[0026] Figure 7 It is a flowchart of a training method for a workflow generation model provided by an exemplary embodiment.
[0027] Figure 8 It is a schematic structural diagram of an electronic device provided by an exemplary embodiment.
[0028] Fig. 9 It is a block diagram of a device for generating a vehicle workflow provided by an exemplary embodiment.
[0029] Fig.10 It is a block diagram of a training device for a workflow generation model provided by an exemplary embodiment. DETAILED DESCRIPTION
[0030] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0031] Next, one or more embodiments of the present application are described in detail.
[0032] Figure 1 FIG. 1 is a schematic diagram of the architecture of a vehicle workflow system provided by an exemplary embodiment. Figure 1 As shown, the vehicle workflow system may include a server 11, a network 12, and several vehicles, such as vehicles 13-14, etc. In the present application, the vehicle workflow system is responsible for generating and executing the vehicle workflow.
[0033] The server 11 may be a physical server including an independent host, or the server 11 may be a virtual server carried by a host cluster. During operation, the server 11 may run a server-side program of the vehicle workflow system to realize the service end of the vehicle workflow system, which may also be referred to as a corresponding vehicle workflow generation platform.
[0034] The vehicles 13-14 may be any vehicles. The vehicles 13-14 and the server 11 may be directly or indirectly connected via wired communication or wireless communication, and this application does not impose any special restrictions.
[0035] based on Figure 1 In the vehicle workflow system shown, any of the vehicles 13-14 can obtain the voice of the driver and passenger in the vehicle, and submit the obtained voice to the server 11. The server 11 can determine the target user based on the received voice, and convert the received voice into voice text. Then, the target user portrait data is obtained, and the voice text, the obtained target user portrait data, and the prompt words are input into the workflow generation model to obtain the target workflow output by the workflow generation model. Finally, the server 11 returns the target workflow to the vehicle that submitted the voice, so that the target workflow is executed by the vehicle.
[0036] In another embodiment, the vehicle workflow system may only include vehicles. In this case, the workflow generation model is deployed locally in the vehicle. Figure 1 Taking vehicle 13 in the example, vehicle 13 can obtain the voice of the driver and passenger in the vehicle, determine the target user based on the target voice, and convert the target voice into voice text. Then, vehicle 13 obtains target user portrait data based on the determined target user, and inputs the obtained target user portrait data, prompt words and voice text into the workflow generation model to obtain the target workflow output by the workflow generation model for execution.
[0037] Figure 2 FIG. 1 is a flow chart of a method for generating a vehicle workflow provided by an exemplary embodiment, and the method can be applied to a vehicle workflow system. Figure 2 As shown, the method may include the following steps: S201, acquiring a target voice, determining a target user according to the target voice, and converting the target voice into voice text.
[0038] In this embodiment, the target voice refers to the voice made by any occupant (including the driver and passengers) in the vehicle. The sender of the target voice is not necessarily the target user. For example, if user A drives vehicle a and user B sits in vehicle a, then user B can make the target voice and user A can be determined as the target user. The method of determining the target user can be set by the user of the vehicle, and this application does not limit this.
[0039] In one embodiment, the user of the vehicle can predefine the criteria for determining the target user, and then determine the target user in combination with the target voice during the use of the vehicle. Exemplarily, first identify whether the initiator of the target voice is the first driver currently driving the vehicle. When the initiator of the target voice is identified as the first driver, since the vehicle is driven by the first driver, the first driver's car use needs are the most important for driving safety considerations. Therefore, regardless of any rules included in the predefined criteria, the first driver needs to be determined as the target user. When the initiator of the target voice is identified as not the first driver, the target user needs to be determined in combination with the predefined criteria. If the predefined criteria include rules for determining the voice initiator as the target user, then the initiator of the target voice needs to be determined as the target user. For example, user A drives vehicle a, and user B sits in vehicle a. In the case where user B makes a target voice, user B needs to be determined as the target user.
[0040] The purpose of determining the target user is to obtain the corresponding target user portrait data. Exemplarily, user portrait data of at least one user may be pre-stored. Furthermore, in the process of executing the solution of the present application, the timbre of the target voice is identified, and the identity information of the target user is confirmed based on the identified timbre result, and then the target user portrait data is queried in the pre-stored user portrait data set based on the identity information of the target user.
[0041] In this embodiment, the target user is determined according to the target voice and predefined standards, so that not only the portrait data of the driver who is currently driving can be obtained, but also the portrait data of the passenger can be obtained when the passenger makes the target voice, so that the target workflow finally generated can meet the passenger's car preference, which helps to improve the passenger's car experience. Especially for family cars, it can effectively improve the car satisfaction of multiple family members, greatly improving the applicability and scalability of this application solution.
[0042] In the process of voice conversion, the acquired target voice can be converted into voice text using voice recognition technology. There are many voice recognition technologies, such as Deep Speech (DS) and Automatic Speech Recognition (ASR). Those skilled in the art can choose specific voice recognition technology according to actual needs, and this application does not limit this. Before converting the target voice into voice text, the target voice can be preprocessed, such as using a noise filtering algorithm to identify and remove background noise (which may be air conditioning noise, traffic noise, etc.) in the target voice, or using an enhancement algorithm to improve the clarity and recognizability of the target voice. Then, converting the preprocessed target voice helps to obtain a clearer and more accurate voice text, effectively avoiding interference from background noise and the like on the voice text. It should be noted that there is no necessary order between determining the target user according to the target voice and converting the target voice into voice text. The two can be executed in parallel or in series, and this application does not limit this.
[0043] S202: Acquire target user portrait data based on the determined target user, where the target user portrait data is used to indicate the vehicle usage habits of the target user.
[0044] The target user's car-using habits (or car-using preferences) may include driving habits, car-sitting habits, etc., such as the set temperature of the air conditioner, the songs that are usually played, the braking distance, etc. The user's daily car-using data can be collected and sorted to organize the messy daily car-using data into standardized structured data, which is the user portrait data. In this embodiment, the user portrait data includes but is not limited to: user personal data, security domain data, entertainment domain data, and economic domain data. Among them, the user's personal data may include user name, age, occupation, etc. and user personal information. The security domain data can be understood as data related to the user's driving safety habits, such as braking distance, seat position, vehicle speed, etc. The entertainment domain data can be understood as data related to entertainment habits, such as the settings of various multimedia data such as radio stations and playing songs, air conditioning temperature settings, etc. The economic domain data can be understood as data related to vehicle expenses, such as power saving / fuel saving mode, power consumption / fuel consumption mode, etc. The user portrait data can be stored in the portrait database so that the portrait data of the target user can be obtained from the portrait database during the implementation of the present application scheme. The portrait database can be deployed locally in the vehicle or on a server, and this application does not restrict this. User portrait data is not static and can be updated in a timely manner as the user's car usage habits change. In addition, in the above-mentioned collection of user car usage data, as well as the generation and storage of user portrait data, it is necessary to strengthen the privacy protection of various data to avoid data leakage leading to the abuse of user data.
[0045] S203, inputting the voice text, the target user portrait data and the prompt word into the workflow generation model, so that the workflow generation model, under the instruction of the prompt word, generates and outputs a target workflow that matches both the voice text and the target user portrait data, wherein the target workflow includes at least one target vehicle task.
[0046] There are many workflow generation models, such as BERT (Bidirectional Encoder Representations from Transformers), Large Language Model (LLM), etc. This application does not limit the specific workflow generation model. Prompt words can help the model better understand the user's needs and guide the model to generate results that match the input. In this embodiment, the workflow generation model generates a target workflow that matches both the voice text and the target user portrait data under the instruction of the prompt word. Exemplarily, the workflow generation model analyzes the target user portrait data, summarizes the common car use scenarios of the target user, and generates workflows corresponding to each common car use scenario based on the target user portrait data. And, the workflow generation model analyzes the voice text to determine the target scenario corresponding to the voice text. Then, the workflow generation model selects and outputs the target workflow that matches the target scenario from the multiple workflows generated above. The target workflow includes at least one target vehicle task. The target vehicle task refers to a task performed by the vehicle, such as adjusting the seat position, adjusting the air conditioning temperature, and the like. It should be noted that when the target workflow includes two or more target vehicle tasks, there is a specific execution order between the target vehicle tasks. That is, when executing the target workflow, each target vehicle task included in the target workflow needs to be implemented in a specific execution order. The specific execution order may include a parallel execution order and / or a serial execution order.
[0047] For example, when the driver says the target voice "Go home after get off work", the target user is determined to be the driver based on the target voice, and the target voice is converted into voice text. Then the driver's user portrait data is obtained, and the voice text, prompt words and the obtained user portrait data are input into the workflow generation model. The workflow generation model analyzes the voice text to determine that the target scene corresponding to the voice text is the scene of going home after get off work. Then the input user portrait data is analyzed. For example, the user portrait data corresponding to the scene of going home after get off work is first filtered out according to the time and location of the user portrait data (assuming that it is the user portrait data of driving from the company to home during the time period of 17:30-18:30), and then the filtered user portrait data is integrated and analyzed to generate the workflow corresponding to the scene of going home after work. Since the target scene corresponding to the voice text is the scene of going home after get off work, the target workflow is the workflow corresponding to the scene of going home after work generated above. The target workflow may include three target vehicle tasks: planning a route home, setting the air conditioning temperature to 24°C, and playing soothing music. The execution order of the three target vehicle tasks is setting the air conditioning temperature to 24°C (to ensure a comfortable temperature for the user after getting on the car) → planning a route home → playing soothing music. Of course, in some cases, multiple target vehicle tasks can be executed in parallel, such as adjusting the rearview mirror and planning the navigation route. The two target vehicle tasks can be executed in parallel by different functional components. The execution order between target vehicle tasks can be determined based on user portrait data or based on user-defined rules, and this application does not limit this.
[0048] In the above embodiment, the target workflow is automatically generated according to the user's voice, without the need for manual setting or arrangement by the user, which greatly improves the convenience of user operation. In addition, since the target user portrait data is generated based on the target user's car-using habits, that is, the target user portrait data can reflect the target user's car-using habits and preferences, and the voice text can reflect the current car-using needs of the user who issued the target voice, the target workflow generated based on the voice text and the target user portrait data can not only meet the car-using needs of the user who issued the target voice, but also flexibly adapt to the target user's car-using habits / preferences, thereby significantly improving the car-using experience of the driver and passengers and ensuring the provision of personalized services to users.
[0049] In one embodiment, after the vehicle acquires the target workflow, it can output the target workflow to the driver and passengers to determine whether to execute the target workflow based on the driver and passengers' instructions. There are many ways to output. For example, the target workflow and prompt information on whether to execute the target workflow can be displayed on the human-computer interaction interface, or the driver and passengers can be informed by voice whether to execute the target workflow. This application does not limit the specific output method. In conjunction with the embodiment shown in S203 above, the prompt information "The target workflow is to set the air conditioning temperature to 24°C → plan a route home → play soothing music. Do you want to execute the above target workflow?" can be displayed on the human-computer interaction interface (please refer to Figure 3 ), or voice broadcast to the driver and passengers "Do you want to execute the target workflow of setting the air conditioning temperature to 24℃, planning a route home and playing soothing music?"
[0050] If the driver confirms that the target vehicle tasks included in the target workflow are correct and the execution order between the target vehicle tasks is also correct, the driver will issue a confirmation instruction to the vehicle workflow system (such as voice confirmation or triggering the consent control in the human-computer interaction interface). After receiving the confirmation instruction from the driver for the target workflow, the vehicle workflow system can control the target functional components corresponding to each target vehicle task to perform the corresponding target vehicle task. Combined with the aforementioned target workflow "Set the air conditioning temperature to 24°C → Plan the route home → Play soothing music", if the driver confirms the execution of the target workflow, the vehicle workflow system will send a control instruction to set the temperature to 24°C to the air conditioning controller, so that the air conditioning controller responds to the control instruction and sets the air conditioning temperature in the car to 24°C. And send a control instruction to plan the optimal route from the company to home to the navigation system control unit, so that the navigation system control unit responds to the control instruction and plans the optimal driving route from the company to home. And send a control instruction to play soothing music to the multimedia control unit, so that the multimedia control unit responds to the control instruction and plays soothing music through the speaker.
[0051] If the driver or passenger believes that there is an error in the target workflow, the target vehicle tasks or the execution order between the target vehicle tasks contained in the target workflow can be manually adjusted, so that the vehicle workflow system executes the adjusted target workflow.
[0052] In this embodiment, the driver and passengers check and confirm the generated target workflow to ensure that the vehicle can execute the correct target workflow, thereby providing the driver and passengers with the correct ride service. Moreover, for the correct target workflow, the driver and passengers only need to perform a confirmation operation, and the vehicle can automatically execute all vehicle tasks included in the target workflow, effectively improving the convenience of user driving.
[0053] In one embodiment, the generated target workflow may be updated / adjusted according to the vehicle data. The updating / adjusting process may be performed before the vehicle executes the target workflow or during the vehicle executes the target workflow. Figure 4 FIG. 1 is a flowchart of an exemplary embodiment showing a process of updating / adjusting a target workflow. Figure 4 As shown, the process may include the following steps: S401. Obtain vehicle data.
[0054] Vehicle data includes vehicle driving environment data and / or vehicle status data. The vehicle driving environment data may include, but is not limited to, traffic condition information, weather information, external temperature information, and GPS positioning information. The vehicle status data may include, but is not limited to, vehicle speed, vehicle interior temperature, and tire pressure. Vehicle data (such as vehicle speed) may be collected using various sensors installed on the vehicle, and vehicle data (such as weather information) may be obtained using the Internet.
[0055] S402: Preprocess the acquired vehicle data.
[0056] The preprocessing may include cleaning, formatting and standardizing the data so as to facilitate subsequent retrieval based on the standardized vehicle data and ensure the accuracy of the retrieval results.
[0057] S403: Determine whether there is a target preset rule in the preset rule library that matches the processed vehicle data.
[0058] The preset rule library includes multiple candidate preset rules, each of which includes a trigger condition for updating the corresponding vehicle task and an update scheme for the corresponding vehicle task. Table 1 is an exemplary embodiment showing two candidate preset rules, see Table 1: Table 1
[0059] The codes corresponding to the two candidate preset rules shown in Table 1 can be referred to as follows: { "rules": [ { "id": "1", "description": "Traffic congestion detection", "condition": { "data_source": "traffic", "parameter": "congestion_level", "threshold": ">7" }, "action": "replan_route" }, { "id": "2", "description": "Outside temperature changes", "condition": { "data_source": "weather", "parameter": "temperature", "threshold": "<10" }, "action": "adjust_air_conditioning", "parameters": { "temperature": 24 } } ] The meaning of the candidate preset rule 1 is: when the trigger condition that the traffic congestion level parameter value is greater than 7 is met, the update plan of "replanning the navigation route" is triggered. The meaning of the candidate preset rule 2 is: when the trigger condition that the outside temperature is lower than 10°C is met, the update plan of "setting the air conditioning temperature to 24°C" is triggered.
[0060] The search is performed in the preset rule library based on the processed vehicle data. The search process is actually to match the vehicle data with each candidate preset rule to determine whether the vehicle data is associated with the vehicle task corresponding to the candidate preset rule. If the vehicle data is associated with the vehicle task corresponding to a candidate preset rule, the candidate preset rule can be considered to be the target preset rule that matches the vehicle data. Combined with Table 1, assuming that the vehicle data includes traffic condition data, which is associated with the vehicle task of navigation, it can be determined that candidate preset rule 1 is the target preset rule that matches the traffic condition data.
[0061] If the search result shows that there is a target preset rule that matches the processed vehicle data, jump to S404; if the search result shows that there is no target preset rule that matches the processed vehicle data, jump to S405.
[0062] S404: Determine whether the processed vehicle data meets the target triggering condition included in the target preset rule.
[0063] If it is determined that the processed vehicle data meets the target trigger condition, jump to S406; if it is determined that the processed vehicle data does not meet the target trigger condition, jump to S405. In combination with the candidate preset rule 1 in Table 1, the traffic congestion level parameter value can be calculated based on the traffic condition data. If the calculated traffic congestion level parameter value is 9 (greater than 7), it is determined that the target trigger condition included in the target preset rule is met.
[0064] S405: Continue executing the target workflow.
[0065] S406: Update the corresponding vehicle task according to the target update solution included in the target preset rule. Combined with the candidate preset rule 1 in Table 1, update the navigation vehicle task to "replan the navigation path", thereby realizing the update target workflow.
[0066] In this embodiment, the generated target workflow is dynamically adjusted according to the real-time driving environment data and / or the real-time status data of the vehicle, so that the adjusted target workflow can be more in line with the user's actual driving conditions, especially when the traffic conditions change or the weather changes significantly, which can effectively improve the user's riding experience.
[0067] In one embodiment, due to the complex and changeable driving environment of the vehicle, various unexpected situations may be encountered during the execution of the target workflow, such as sensor failure, network interruption, equipment failure, etc., which may lead to the failure of the target workflow execution and cause an unfriendly car experience for the user. Therefore, in order to ensure the smooth execution of the target workflow, the execution status of each target vehicle task in the target workflow can be monitored in real time, and when any target vehicle task is monitored to have an execution exception, the alternative task plan corresponding to the target vehicle task is enabled for execution. The user can pre-set the alternative task plan corresponding to each vehicle task, and can set different alternative task plans according to different abnormal situations. Table 2 is an alternative task plan corresponding to several different target workflows provided by an exemplary embodiment, please refer to Table 2: Table 2
[0068] In Table 2, the main task solution corresponding to each target vehicle task can be understood as the task solution included in the generated target workflow. Taking target workflow 1 as an example, the target workflow 1 output by the workflow generation model includes three vehicle tasks: navigation (planning the optimal route), setting the air conditioning temperature according to user habits, and playing the user's favorite music list. When the vehicle executes target workflow 1, the execution of these three vehicle tasks is monitored in real time. If a vehicle task is detected to be abnormal, such as traffic congestion or temporary construction on the optimal route, the navigation target vehicle task is determined to be abnormal. At this time, the corresponding alternative task solution 1 (planning a suboptimal route) or alternative task solution 2 (prompting the user to manually select a new route) is enabled to execute, so as to ensure that the vehicle can drive home safely. For example, if the target vehicle task of setting the air conditioning temperature is detected to be abnormal, the cause of the abnormality needs to be determined first, and then the alternative task solution matching the abnormal cause is enabled. If the abnormal cause is a temperature sensor failure, the alternative task solution 1 (setting the default temperature to 22°C) is enabled; if the abnormal cause is a temperature sensor failure, the alternative task solution 2 (prompting the user to manually adjust the window) is enabled.
[0069] In this embodiment, by setting a corresponding alternative task plan for each vehicle task, the alternative task plan is used as a fallback strategy. Therefore, when the target workflow is executed abnormally, the alternative task plan is enabled to provide users with corresponding functions / services, which helps to ensure the smooth execution of the target workflow and improve the robustness and user experience of the vehicle workflow system.
[0070] In one embodiment, when the target workflow includes at least two target vehicle tasks, since each target vehicle task in the target workflow needs to be executed in a specific execution order, it is also necessary to monitor the execution order of each target vehicle task during the execution of the target workflow. If the execution order of each target vehicle task is different from the specific execution order, it is necessary to display a prompt message indicating that the execution order of the target workflow is incorrect to the vehicle occupants, or display a prompt message indicating whether to adjust the target workflow. Figure 5 FIG. 1 is a schematic diagram of a prompt information display page provided by an exemplary embodiment. Figure 5 As shown, the prompt information displayed in the human-computer interaction interface includes: the target workflow is to set the air conditioning temperature to 24°C → plan the route home → play soothing music, and the current execution order is to play soothing music → plan the route home → set the air conditioning temperature to 24°C, which is different from the specific execution order. Do I need to adjust the execution order to the specific execution order? Of course, the information that the target workflow execution order is incorrect and / or whether to adjust the target workflow may also be output to the driver and passengers through voice broadcast, and this application does not limit this.
[0071] The driver and passenger can determine whether the execution order of the target vehicle tasks needs to be adjusted according to actual needs. There are many ways to determine whether the execution order of the target vehicle tasks needs to be adjusted, such as by triggering the consent control in the human-computer interaction interface, or by voice determination. This application does not limit the specific determination method. If the driver and passenger determines that the execution order of the target vehicle tasks does not need to be adjusted, the current workflow can be continued.
[0072] In this embodiment, by monitoring the execution order of each target vehicle task and promptly notifying the user when an abnormality occurs in the execution order, it helps to ensure that the target workflow can be executed correctly and improve the user's riding experience.
[0073] Figure 6 is a block diagram of a vehicle workflow system shown in an exemplary embodiment. Figure 6 The vehicle workflow system includes: a voice conversion module 601, a user portrait data acquisition module 602, a target workflow generation module 603, a target workflow update module 604 and a monitoring module 605. The speech conversion module 601 is used to convert the acquired target speech into speech text, and send the speech text to the target workflow generation module 603 .
[0074] The user portrait data acquisition module 602 is used to determine the target user according to the target voice, and obtain the target user portrait data from the user portrait database according to the determined target user. Then, the user portrait data acquisition module 602 sends the obtained target user portrait data to the target workflow generation module 603.
[0075] The target workflow generation module 603 has a workflow generation model deployed therein. The target workflow generation module 603 inputs the received voice text, target user portrait data and prompt words into the workflow generation model, obtains the target workflow output by the workflow generation model, and sends the target workflow to the target workflow update module 604.
[0076] The target workflow update module 604 can obtain real-time vehicle data and determine whether the target workflow needs to be updated based on the obtained real-time vehicle data and preset rules. If no update is required, the original target workflow is sent to the monitoring module 605; if update is required, the updated target workflow is sent to the monitoring module 605.
[0077] The monitoring module 605 is used to execute the received target workflow, and to monitor the execution status of each target vehicle task in the target workflow and the execution order of each target vehicle task during the execution process. If an execution abnormality is monitored, the corresponding exception handling measures are enabled for processing. The exception handling measures include: (1) when any target vehicle task is monitored to have an execution abnormality, the alternative task plan corresponding to the target vehicle task is enabled for execution; (2) when the execution order of each target vehicle task is monitored to be different from the specific execution order, the prompt information of the target workflow execution order being incorrect and / or the prompt information of whether to adjust the target workflow is displayed to the vehicle's drivers and passengers, and the processing is carried out according to the instructions of the drivers and passengers.
[0078] In the above embodiments, the solution of generating a vehicle workflow according to the user's target speech is introduced. In the specific implementation process, the workflow generation model can be established and trained, so as to efficiently and accurately implement the above workflow generation solution based on the workflow generation model.
[0079] Figure 7 FIG. 1 is a flowchart of a training method for a workflow generation model shown in an exemplary embodiment. Figure 7 As shown, the method may include the following steps: S701. Obtain sample text for a vehicle, as well as sample user portrait data and sample workflow corresponding to the sample text.
[0080] The sample text, sample user profile data, and sample workflow are all known and determined. In order to improve the prediction accuracy of the workflow generation model, multiple sample texts and sample user profile data and sample workflows corresponding to the multiple sample texts can be obtained, each sample workflow contains a preset number of sample vehicle tasks and each sample vehicle task is executed in a preset order.
[0081] For example, the sample text is "go to work", and the user portrait data corresponding to the sample text can be seen in Table 3: Table 3
[0082] The sample workflow that matches both the sample user portrait data and the sample text is: set the air conditioning temperature to 22°C → navigate to the company → play the podcast.
[0083] S702. Input the sample text, the sample user portrait data and the sample prompt word into a pre-trained workflow generation model, so that the pre-trained workflow generation model, under the instruction of the sample prompt word, generates and outputs a sample prediction workflow that matches both the sample text and the sample user portrait data.
[0084] The sample prompt words can be obtained by initialization, and then the sample prompt words are adjusted during the training process so that the adjusted sample prompt words can provide clear and accurate instructions for the pre-trained workflow generation model. In this embodiment, the pre-trained workflow generation model refers to a model that has completed preliminary training, and the preliminary training is based on a large amount of unlabeled general data. In order to improve the performance of the pre-trained workflow generation model in the vertical task of generating workflows, the pre-trained workflow generation model can be fine-tuned using workflow-related data to obtain a model suitable for the workflow generation task. For example, the pre-trained workflow generation model is fine-tuned using sample user portrait data and the sample workflow corresponding to the sample user portrait data. During the fine-tuning process, the pre-trained workflow generation model will generate a sample prediction workflow. The specific process of generating a sample prediction workflow can refer to the embodiment shown in S203, which will not be repeated here. The sample prediction workflow includes at least one sample prediction vehicle service. When the sample prediction workflow contains two or more sample prediction vehicle services, each sample prediction vehicle service is executed in the sample prediction order.
[0085] S703: According to the difference between the sample workflow and the sample prediction workflow, adjust the sample prompt words and iteratively train the pre-trained workflow generation model.
[0086] The differences between the sample workflow and the sample prediction workflow include: the difference between the sample vehicle tasks and the sample prediction vehicle tasks, and the difference between the preset order of each sample vehicle task and the sample prediction order of each sample prediction vehicle task.
[0087] After multiple iterations of training, when the obtained workflow generation model meets the predefined training target or reaches the predefined number of iterations, the training of the pre-trained workflow generation model is completed. And through multiple adjustments, the prompt words for the trained workflow generation model are determined. The trained workflow generation model can be used to implement the following Figure 2 The vehicle workflow generation scheme shown.
[0088] Figure 8 is a schematic diagram of the structure of an electronic device according to an exemplary embodiment of the present application. Figure 8At the hardware level, the electronic device includes a processor 802, an internal bus 804, a network interface 806, a memory 808, and a non-volatile memory 810, and may also include hardware required for other services. The processor 802 reads the corresponding computer program from the non-volatile memory 810 into the memory 808 and then runs it. Of course, in addition to the software implementation, this application does not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0089] Corresponding to the above method embodiment, the present application also provides an embodiment of a vehicle workflow generation device.
[0090] Fig. 9 1 is a block diagram of a vehicle workflow generation device according to an exemplary embodiment of the present application. The device can be applied to a vehicle workflow system. Fig. 9 The device includes a voice acquisition unit 901, a user portrait data acquisition unit 902 and a workflow generation unit 903, wherein: The speech acquisition unit 901 is configured to acquire a target speech, determine a target user according to the target speech, and convert the target speech into speech text; A user portrait data acquisition unit 902 is configured to acquire target user portrait data based on the determined target user, wherein the target user portrait data is used to indicate the vehicle use habits of the target user; The workflow generation unit 903 is configured to input the voice text, the target user portrait data and the prompt word into the workflow generation model, so that the workflow generation model, under the instruction of the prompt word, generates and outputs a target workflow that matches both the voice text and the target user portrait data, wherein the target workflow includes at least one target vehicle task.
[0091] Optionally, the voice acquisition unit 901 is specifically used to: identify whether the originator of the target voice is the first driver who is currently driving the vehicle; when it is identified that the originator of the target voice is the first driver, determine the first driver as the target user; when it is identified that the originator of the target voice is not the first driver and the predefined standard includes a rule for determining the voice originator as the target user, determine the originator of the target voice as the target user.
[0092] Optionally, the device further comprises: The updating unit 904 is configured to obtain vehicle data of the vehicle, wherein the vehicle data includes driving environment data of the vehicle and / or vehicle status data of the vehicle; perform a search in a preset rule library based on the vehicle data, wherein the preset rule library contains multiple candidate preset rules, and each candidate preset rule contains a trigger condition for updating a corresponding vehicle task and an update plan for the corresponding vehicle task; when the retrieval result shows that there is a target preset rule matching the vehicle data in the preset rule library, determine whether the vehicle data satisfies the target trigger condition contained in the target preset rule; when it is determined that the vehicle data satisfies the target trigger condition, update the corresponding vehicle task according to the target update plan contained in the target preset rule.
[0093] Optionally, the device further comprises: The display unit 905 is configured to output the target workflow to the driver and passenger of the vehicle, and upon receiving a confirmation instruction from the driver and passenger regarding the target workflow, control the target functional components corresponding to each target vehicle task in the target workflow to execute the corresponding target vehicle task.
[0094] Optionally, the device further comprises: The first monitoring unit 906 is configured to monitor the execution status of each target vehicle task in the target workflow; when it is monitored that any target vehicle task has an execution exception, an alternative task solution corresponding to any target vehicle task is enabled for execution.
[0095] Optionally, when the target workflow includes at least two target vehicle tasks, there is a specific execution order between the at least two target vehicle tasks, and the device further includes: The second monitoring unit 907 is configured to monitor whether each target vehicle task in the target workflow is executed in the specific execution order; when it is monitored that the execution order of each target vehicle task is different from the specific execution order, display a prompt message to the vehicle driver and passenger that the execution order of the target workflow is incorrect, and / or whether to adjust the prompt message of the target workflow so that the driver and passenger adjust the target workflow based on the displayed prompt message.
[0096] Fig.10 is a block diagram of a training device for a workflow generation model according to an exemplary embodiment of the present application. Fig.10 , the device includes a sample acquisition unit 1001, a workflow prediction unit 1002 and an iteration unit 1003, wherein: The sample acquisition unit 1001 is configured to acquire sample text for a vehicle, and sample user portrait data and sample workflow corresponding to the sample text; The workflow prediction unit 1002 is configured to input the sample text, the sample user portrait data and the sample prompt word into a pre-trained workflow generation model, so that the pre-trained workflow generation model generates and outputs a sample prediction workflow that matches both the sample text and the sample user portrait data under the instruction of the sample prompt word; The iteration unit 1003 is configured to adjust the sample prompt words and iteratively train the pre-trained workflow generation model according to the difference between the sample workflow and the sample prediction workflow.
[0097] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.
[0098] The devices or modules described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0099] In a typical configuration, a computer includes one or more processors, including a central processing unit (CPU) and a graphics processing unit (GPU), an input / output interface, a network interface, and a memory. The CPU is used for computational simulation, and the GPU is used for outputting high-quality 3D images.
[0100] Memory may include non-permanent storage in a computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0101] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules 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, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, disk storage, quantum memory, graphene-based storage media 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. As defined herein, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0102] Corresponding to the embodiments of the aforementioned method, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of any embodiment of the aforementioned method are implemented.
[0103] Corresponding to the embodiments of the aforementioned method, the present application also provides a computer program product, including a computer program and / or instructions, which implement the steps of any embodiment of the aforementioned method when executed by a processor.
[0104] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for generating a vehicle workflow, It is characterized in that include: Acquire a target voice, determine a target user according to the target voice, and convert the target voice into voice text; Acquire target user portrait data based on the determined target user, wherein the target user portrait data is used to indicate the vehicle use habits of the target user; The voice text, the target user portrait data and the prompt word are input into a workflow generation model, so that the workflow generation model, under the instruction of the prompt word, generates and outputs a target workflow that matches both the voice text and the target user portrait data, wherein the target workflow includes at least one target vehicle task.
2. The method according to claim 1, It is characterized in that The determining a target user according to the target voice comprises: Identify whether the originator of the target voice is the first driver currently driving the vehicle; In a case where it is identified that the originator of the target voice is the first driver, determining the first driver as the target user; In a case where it is identified that the originator of the target voice is not the first driver and the predefined criteria include a rule for determining the voice originator as the target user, the originator of the target voice is determined as the target user.
3. The method according to claim 1, It is characterized in that Also includes: Acquiring vehicle data of the vehicle, the vehicle data including driving environment data of the vehicle and / or vehicle status data of the vehicle; Searching a preset rule library based on the vehicle data, wherein the preset rule library includes a plurality of candidate preset rules, each candidate preset rule includes a trigger condition for updating a corresponding vehicle task and an update plan for the corresponding vehicle task; If the search result shows that there is a target preset rule matching the vehicle data in the preset rule library, determining whether the vehicle data satisfies the target trigger condition included in the target preset rule; When it is determined that the vehicle data meets the target trigger condition, the corresponding vehicle task is updated according to the target update scheme included in the target preset rule.
4. The method according to claim 1, It is characterized in that Also includes: The target workflow is output to the driver and passenger of the vehicle, and upon receiving a confirmation instruction from the driver and passenger for the target workflow, the target functional components corresponding to each target vehicle task in the target workflow are controlled to execute the corresponding target vehicle task.
5. The method according to claim 1, It is characterized in that Also includes: Monitoring the execution status of each target vehicle task in the target workflow; When it is monitored that any target vehicle task has an execution abnormality, an alternative task plan corresponding to the target vehicle task is enabled for execution.
6. The method according to claim 1, It is characterized in that In a case where the target workflow includes at least two target vehicle tasks, there is a specific execution order between the at least two target vehicle tasks, and the method further includes: Monitoring whether each target vehicle task in the target workflow is executed in the specific execution order; When it is monitored that the execution order of the various target vehicle tasks is different from the specific execution order, a prompt message indicating that the execution order of the target workflow is incorrect is displayed to the vehicle's driver and passenger, and / or the prompt message of the target workflow is adjusted so that the driver and passenger adjust the target workflow based on the displayed prompt message.
7. A training method for a workflow generation model, It is characterized in that include: Obtaining sample text for a vehicle, as well as sample user portrait data and sample workflow corresponding to the sample text; Inputting the sample text, the sample user portrait data and the sample prompt word into a pre-trained workflow generation model, so that the pre-trained workflow generation model generates and outputs a sample prediction workflow that matches both the sample text and the sample user portrait data under the instruction of the sample prompt word; According to the difference between the sample workflow and the sample prediction workflow, the sample prompt words are adjusted and the pre-trained workflow generation model is iteratively trained.
8. A vehicle workflow generation device, It is characterized in that include: A speech acquisition unit, used to acquire a target speech, determine a target user according to the target speech, and convert the target speech into speech text; A user portrait data acquisition unit, used to acquire target user portrait data based on the determined target user, wherein the target user portrait data is used to indicate the vehicle use habits of the target user; The workflow generation unit is used to input the voice text, the target user portrait data and the prompt word into the workflow generation model, so that the workflow generation model, under the instruction of the prompt word, generates and outputs a target workflow that matches both the voice text and the target user portrait data, wherein the target workflow includes at least one target vehicle task.
9. A training device for a workflow generation model, It is characterized in that include: A sample acquisition unit, used to acquire sample text for a vehicle, and sample user portrait data and sample workflow corresponding to the sample text; A workflow prediction unit, configured to input the sample text, the sample user portrait data and the sample prompt word into a pre-trained workflow generation model, so that the pre-trained workflow generation model generates and outputs a sample prediction workflow that matches both the sample text and the sample user portrait data under the instruction of the sample prompt word; An iteration unit is used to adjust the sample prompt words and iteratively train the pre-trained workflow generation model according to the difference between the sample workflow and the sample prediction workflow.
10. An electronic device, It is characterized in that include: processor; a memory for storing processor-executable instructions; The processor implements the method according to any one of claims 1 to 7 by running the executable instructions.
11. A computer-readable storage medium having computer instructions stored thereon, It is characterized in that When the instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
12. A computer program product, It is characterized in that The method comprises a computer program and / or instructions, which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Vehicle control method and mapping relation generation method for vehicle control
CN113948082A
Control method and device, equipment and storage medium
CN114435383A
Driver self-defined voice command multifunctional synchronization realization system and method
CN115148189A
Voice control method, device, equipment, medium, system and vehicle
CN115346530A
Vehicle-mounted voice instruction recommendation method and device and model training method
CN115547302A
Cited By
Cabin control method and device, vehicle-mounted equipment and computer program product
CN120096606A
