User intent disambiguation method and apparatus, device, medium, and vehicle
By constructing an event graph and combining in-vehicle device status information, the problem of inaccurate intentions in the dialogue clarification method based on the deep learning model is solved, and the accuracy and effect of dialogue clarification are improved.
Patent Information
- Application Number
- PCT/CN2024/083934
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-30
- Filing Date
- 2024-03-26
- Publication Date
- 2024-10-03
AI Technical Summary
When existing dialogue clarification methods based on deep learning models ignore situational information, they lead to inaccurate user intentions and poor dialogue clarification effects.
By counting users' car usage events within a preset time period, constructing an event map, receiving current control instructions, constructing prefix and complete feature sample groups, merging probability values, and removing erroneous samples combined with in-car equipment status information, the target user intent is obtained.
It improves the accuracy of dialogue clarification, improves the effect of dialogue clarification, and ensures the accuracy of user intentions.
Smart Images

Figure CN2024083934_03102024_PF_FP_ABST
Abstract
Description
User intention clarification method, device, equipment, medium and vehicle
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese patent application No. 202310336319.0 filed in China on March 30, 2023, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present disclosure relates to the field of computer technology, and in particular to a method, apparatus, device, medium, computer program product, computer program, and vehicle for clarifying user intent. Background Art
[0004] Conversational clarification has a long history. Early research largely used manually designed rules to track conversational states and conduct clarification and counter-questions. However, due to the ever-changing nature of conversations, manually defined rules struggle to cover all scenarios, requiring high labor costs to maintain the rule tables. Consequently, rule-based approaches suffer from numerous limitations, such as limited generalization, high error rates, and poor domain adaptability.
[0005] With the rise of deep learning models, researchers have begun considering incorporating various deep learning neural network models into conversation clarification. In some car scenarios, when a user says "turn on," these model-based approaches, combined with the context of the current conversation, might predict that the user intends to turn on the air conditioner. However, hardware signals indicate that the air conditioner is already on, so the user's true intention is not to turn it on.
[0006] Since the above model-based methods mostly focus on the text content of the user's current conversation and ignore the contextual information at the current moment, the user's true intention after clarification is inaccurate, resulting in poor conversation clarification effect.
[0007] Summary of the Invention
[0008] In order to solve the above technical problems, the embodiments of the present disclosure provide a user intent clarification method, apparatus, device, medium, computer program product, computer program and vehicle.
[0009] In a first aspect, an embodiment of the present disclosure provides a method for clarifying user intent, comprising:
[0010] Counting the user's vehicle usage events within a preset time period, arranging the vehicle usage events in chronological order, and obtaining an event map. The vehicle usage events include the control commands issued by the user to the vehicle and the changes in the status information of the in-vehicle devices;
[0011] receiving a current control instruction issued by a user, and constructing a prefix feature sample group and a complete feature sample group for the current control instruction;
[0012] Calculating the probability value corresponding to each prefix feature sample in the prefix feature sample group and the probability value corresponding to each complete feature sample in the complete feature sample group from the event map;
[0013] Combine the probability values corresponding to each prefix feature sample and the probability values corresponding to each complete feature sample to obtain the user intention probability table;
[0014] The state information of the in-vehicle device is used to remove the erroneous samples in the user intention probability table to obtain the target user intention probability table, and the feature sample corresponding to the maximum probability value in the target user intention probability table is used as the clarified user's true intention.
[0015] In some embodiments, the counting of the user's vehicle usage events within a preset time period includes:
[0016] Obtaining a vehicle usage log within a preset time period, the vehicle usage log including a conversation log between the user and the vehicle computer and a log of changes in the status information of the vehicle devices;
[0017] The vehicle usage events are counted from the vehicle usage log.
[0018] In some embodiments, the counting of vehicle usage events from the vehicle usage log includes:
[0019] Extracting voice event attribute information from the conversation log between the user and the vehicle computer, and arranging the voice event attribute information according to a preset format to obtain a voice event;
[0020] Extracting hardware event attribute information from the change log of the status information of the in-vehicle device, and arranging the hardware event attribute information according to the preset format to obtain a hardware event;
[0021] The voice event and the hardware event are combined to obtain a vehicle use event.
[0022] In some embodiments, the receiving of the current control instruction issued by the user and constructing a prefix feature sample group and a complete feature sample group for the current control instruction respectively include:
[0023] Monitoring the voice information sent by the user, wherein the voice information includes the wake-up word and the current control command;
[0024] Acquiring the current control instruction from the voice information;
[0025] The current control instruction is divided into at least one prefix word. For each prefix word, a vehicle use event containing the prefix word is found from the event map. The prefix word is combined with the vehicle use event containing the prefix word to obtain a prefix feature sample. All prefix feature samples are summarized into a prefix feature sample group.
[0026] The current control instruction is regarded as an incomplete instruction, and the vehicle use event corresponding to the complete instruction based on the incomplete instruction is found from the event map. The incomplete instruction is combined with the vehicle use event corresponding to the complete instruction to obtain a complete feature sample, and all complete feature samples are summarized into a complete feature sample group.
[0027] In some embodiments, the step of calculating from the event graph the probability value corresponding to each prefix feature sample in the prefix feature sample group and the probability value corresponding to each complete feature sample in the complete feature sample group includes:
[0028] Counting the number of times each prefix feature sample in the prefix feature sample group appears in the event graph;
[0029] Calculating a first ratio of the number of times each prefix feature sample appears in the event graph to the total number of vehicle use events in the event graph, and using the first ratio as a probability value corresponding to each prefix feature sample;
[0030] Counting the number of times each complete feature sample in the complete feature sample group appears in the event graph;
[0031] A second ratio of the number of times each complete feature sample appears in the event graph to the total number of vehicle use events in the event graph is calculated, and the second ratio is used as the probability value corresponding to each complete feature sample.
[0032] In some embodiments, the probability value corresponding to each prefix feature sample and the probability value corresponding to each complete feature sample are combined to obtain a user intention probability table, including:
[0033] Obtaining a first probability weight corresponding to the prefix feature sample and a second probability weight corresponding to the complete feature sample;
[0034] Multiplying the probability value corresponding to each prefix feature sample by the first probability weight to obtain the intention probability of each prefix feature sample;
[0035] Multiplying the probability value corresponding to each complete feature sample by the second probability weight to obtain the intention probability of each complete feature sample;
[0036] The intention probability of each prefix feature sample and the intention probability of each complete feature sample are combined to obtain a user intention probability table.
[0037] In some embodiments, the method of using the state information of the in-vehicle device to remove erroneous samples in the user intention probability table to obtain the target user intention probability table includes:
[0038] Get status information of in-vehicle devices;
[0039] For each feature sample in the user intention probability table, if the state information of the in-vehicle device is the same as the intention state of the in-vehicle device corresponding to the feature sample, then determining that the feature sample is an error sample;
[0040] The erroneous samples in the user intention probability table are removed to obtain a target user intention probability table.
[0041] In a second aspect, an embodiment of the present disclosure provides a user intention clarification device, including:
[0042] The first obtaining module is used to count the user's vehicle usage events within a preset time period, arrange the vehicle usage events in chronological order, and obtain an event map. The vehicle usage events include control commands issued by the user to the vehicle and changes in status information of in-vehicle devices;
[0043] A construction module, configured to receive a current control instruction issued by a user, and construct a prefix feature sample group and a complete feature sample group for the current control instruction;
[0044] A calculation module, configured to calculate, from the event graph, a probability value corresponding to each prefix feature sample in the prefix feature sample group and a probability value corresponding to each complete feature sample in the complete feature sample group;
[0045] The second obtaining module is used to combine the probability value corresponding to each prefix feature sample and the probability value corresponding to each complete feature sample to obtain a user intention probability table;
[0046] The intention clarification module is used to use the status information of the in-vehicle device to remove the erroneous samples in the user intention probability table, obtain the target user intention probability table, and use the feature sample corresponding to the maximum probability value in the target user intention probability table as the clarified user's true intention.
[0047] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
[0048] Memory;
[0049] processor; and
[0050] computer programs;
[0051] Wherein, the computer program is stored in the memory and is configured to be executed by the processor to implement the user intention clarification method described in any embodiment of the first aspect of the present disclosure.
[0052] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the user intention clarification method described in any embodiment of the first aspect of the present disclosure.
[0053] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements the user intention clarification method described in any embodiment of the first aspect of the present disclosure.
[0054] In a sixth aspect, an embodiment of the present disclosure provides a computer program, comprising a computer program code, which, when executed on a computer, enables the computer to execute the user intention clarification method described in any embodiment of the first aspect of the present disclosure.
[0055] In a seventh aspect, an embodiment of the present disclosure provides a vehicle, comprising the user intention clarification device described in any embodiment of the second aspect of the present disclosure or the electronic device described in any embodiment of the third aspect of the present disclosure.
[0056] The disclosed embodiments provide a method, apparatus, device, medium, computer program product, computer program, and vehicle for clarifying user intent. The method collects statistics on a user's vehicle usage events within a preset time period and arranges the vehicle usage events in chronological order to obtain an event graph. The vehicle usage events include control instructions issued by the user to the vehicle and changes in the status information of in-vehicle devices. The method receives a current control instruction issued by the user, constructs a prefix feature sample group and a complete feature sample group for each current control instruction, calculates a probability value corresponding to each prefix feature sample in the prefix feature sample group and a probability value corresponding to each complete feature sample in the complete feature sample group from the event graph, merges the probability values corresponding to each prefix feature sample and each complete feature sample to obtain a user intent probability table, uses the status information of in-vehicle devices to remove erroneous samples in the user intent probability table, and obtains a target user intent probability table. The feature sample corresponding to the maximum probability value in the target user intent probability table is used as the clarified user's true intent. Compared with the related art, the embodiment of the present disclosure solves the problem that the user's true intention after clarification is inaccurate and the effect of dialogue clarification is poor. By counting the car use events, an event graph is obtained. The event graph is compatible with different attributes for different events and has good scalability. It further constructs feature samples for the current control instructions, combines the status of the equipment in the car, removes erroneous samples, and can improve the accuracy of dialogue clarification, thereby improving the dialogue clarification effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0058] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0059] FIG1 is a flow chart of a method for clarifying user intentions provided by an embodiment of the present disclosure;
[0060] FIG2 is a flow chart of a method for clarifying user intentions provided by another embodiment of the present disclosure;
[0061] FIG3 is a flow chart of a method for clarifying user intentions provided by another embodiment of the present disclosure;
[0062] FIG4 is a schematic structural diagram of a device for clarifying user intentions provided by an embodiment of the present disclosure;
[0063] FIG5 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0064] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features therein can be combined with each other in the absence of conflict.
[0065] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0066] The first embodiment of the present disclosure provides a method for clarifying user intentions, which is introduced below in conjunction with specific embodiments.
[0067] Figure 1 is a flow chart of the user intention clarification method provided by the embodiment of the present disclosure. The method can be applied to an in-vehicle terminal, which can be a portable mobile device such as a smart phone, tablet computer, laptop computer, in-vehicle navigation device, smart sports equipment; it can also be a fixed device such as a personal computer, smart home appliance, etc. The method can be applied to the scenario of clarifying the user's intention. The method solves the problem in the related art that the true intention of the user after clarification is inaccurate and the effect of dialogue clarification is poor. The event map is obtained by counting the car use events. The event map is compatible with different attributes for different events and has good scalability. The feature sample intention is further constructed for the current control instruction. Combined with the status of the in-vehicle device, the impossible intention is filtered out, which can improve the accuracy of dialogue clarification and thus improve the dialogue clarification effect. It can be understood that the user intention clarification method provided by the embodiment of the present disclosure can also be applied in other scenarios.
[0068] The following introduces the user intention clarification method shown in FIG1 , which includes specific steps S101 to S105 .
[0069] S101. Count the user's vehicle usage events within a preset time period, arrange the vehicle usage events in chronological order, and obtain an event map. The vehicle usage events include control commands issued by the user to the vehicle and changes in status information of in-vehicle devices.
[0070] In this step, the vehicle terminal counts the user's vehicle usage events within a preset time period and arranges these events in chronological order to generate an event map. These vehicle usage events include events in which the user issues control commands to the vehicle and events in which the status information of in-vehicle devices changes. For example, the vehicle terminal can count the user's vehicle usage events within the preset time period from the log file for that time period. The preset time period can be the last six months, the last year, the last three years, or a historical period, and this embodiment does not limit the preset time period.
[0071] S102: Receive a current control instruction sent by a user, and construct a prefix feature sample group and a complete feature sample group for the current control instruction.
[0072] After obtaining the event graph, the vehicle terminal can store it locally or in the cloud as a vehicle event database and can also update the event graph. The vehicle terminal receives the current control command issued by the user and constructs a prefix feature sample group and a complete feature sample group for the current control command. The current control command is the command that needs clarification, such as "open" or "open all".
[0073] A prefix refers to the header of a control instruction, and the length of the prefix is limited to be greater than or equal to two. For example, if the control instruction is "turn on all air conditioners", the prefixes can be turn on, turn all, turn all, turn all empty, and turn all air conditioners. Five prefix feature samples can be constructed, namely: (turn on, turn on all air conditioners), (turn all, turn on all air conditioners), (turn all, turn all air conditioners), (turn all empty, turn all air conditioners), (turn all air conditioners, turn all air conditioners). These five prefix feature samples can constitute a prefix feature sample group.
[0074] A complete feature refers to a control instruction that has clear semantics but does not conform to the actual intent. The actual intent contains supplementary information in the control instruction (e.g., object entity location, object entity function, sub-object entity). For example, if the control instruction is "open the window" and the user's actual intention is to open the rear window or all windows, several complete feature samples can be constructed, namely: (open the window, turn on the rear air conditioner), (open the window, open all windows). These complete feature samples can constitute a complete feature sample set. For example, if the control instruction is "adjust the air conditioner", and the user's actual intention is to adjust the air conditioner volume, air conditioner direction, or air conditioner temperature, several complete feature samples can be constructed, namely: (adjust the air conditioner, adjust the air conditioner volume), (adjust the air conditioner, adjust the air conditioner direction), (adjust the air conditioner, adjust the air conditioner temperature). These complete feature samples can constitute a complete feature sample set.
[0075] S103: Calculate from the event graph the probability value corresponding to each prefix feature sample in the prefix feature sample group and the probability value corresponding to each complete feature sample in the complete feature sample group.
[0076] After constructing the prefix feature sample group and the complete feature sample group, the vehicle terminal further calculates the probability value corresponding to each prefix feature sample in the prefix feature sample group and the probability value corresponding to each complete feature sample in the complete feature sample group from the event map. As shown in Table 1, the probability value corresponding to each prefix feature sample in the prefix feature sample group is calculated. As shown in Table 2, the probability value corresponding to each complete feature sample in the complete feature sample group is calculated.
[0077] Table 1 Probability values corresponding to prefix feature samples
[0078] Table 2 Probability values corresponding to complete feature samples
[0079] S104: Merge the probability value corresponding to each prefix feature sample and the probability value corresponding to each complete feature sample to obtain a user intention probability table.
[0080] In some embodiments, the vehicle terminal combines the probability values corresponding to each prefix feature sample and the probability values corresponding to each complete feature sample to obtain a user intent probability table. In some embodiments, the data in the two tables can be combined into a single table to obtain a user intent probability table. In some embodiments, the data in the two tables can be multiplied by their respective corresponding weight values to calculate the weighted probability of each feature sample, and then combined into a single table to obtain a user intent probability table.
[0081] S105 , using the status information of the in-vehicle device to remove erroneous samples in the user intention probability table to obtain a target user intention probability table, and taking the feature sample corresponding to the maximum probability value in the target user intention probability table as the clarified user's true intention.
[0082] After obtaining the user intention probability table, the vehicle terminal uses the status information of the in-vehicle device to remove erroneous samples from the user intention probability table to obtain a target user intention probability table. The feature sample corresponding to the maximum probability value in the target user intention probability table is used as the clarified user's true intention. For example, if the air conditioner in the vehicle is already on, the user's true intention is probably not to turn on the air conditioner. The erroneous samples with the feature sample "turn on the air conditioner" are removed to obtain the target user intention probability table. The probability values of the feature samples in the target user intention probability table are compared, and the feature sample corresponding to the maximum probability value in the target user intention probability table is used as the clarified user's true intention, thereby improving the accuracy of user intention clarification.
[0083] The embodiment of the present disclosure counts the user's car usage events within a preset time period, arranges the car usage events in chronological order, and obtains an event map. The car usage events include control instructions issued by the user to the vehicle and changes in status information of the in-vehicle equipment. The current control instruction issued by the user is received, and a prefix feature sample group and a complete feature sample group are constructed for the current control instruction respectively. The probability value corresponding to each prefix feature sample in the prefix feature sample group and the probability value corresponding to each complete feature sample in the complete feature sample group are counted from the event map. The probability value corresponding to each prefix feature sample and the probability value corresponding to each complete feature sample are merged to obtain a user intention probability table. The status information of the in-vehicle equipment is used to remove erroneous samples in the user intention probability table to obtain a target user intention probability table. The feature sample corresponding to the maximum probability value in the target user intention probability table is used as the clarified user's true intention. Compared with the related art, the embodiment of the present disclosure solves the problem that the user's true intention after clarification is inaccurate and the effect of dialogue clarification is poor. By counting the car use events, an event graph is obtained. The event graph is compatible with different attributes for different events and has good scalability. It further constructs feature samples for the current control instructions, combines the status of the equipment in the car, removes erroneous samples, and can improve the accuracy of dialogue clarification, thereby improving the dialogue clarification effect.
[0084] FIG2 is a flow chart of a method for clarifying user intentions according to another embodiment of the present disclosure. As shown in FIG2 , the method includes the following steps S201 to S210 .
[0085] S201: Obtain a vehicle usage log within a preset time period, wherein the vehicle usage log includes a conversation log between the user and the vehicle computer and a change log of status information of in-vehicle devices.
[0086] Obtain vehicle usage logs for a preset time period. The logs include conversations between the user and the vehicle computer and changes to the status of in-vehicle devices. The preset time period can be the last six months, the last year, the last three years, or a historical period. This embodiment does not limit the preset time period.
[0087] S202: Count vehicle usage events from the vehicle usage log.
[0088] In some embodiments, the vehicle terminal can collect vehicle usage events from the vehicle usage log. For example, the vehicle terminal can extract vehicle usage events from the vehicle usage log. The vehicle usage events can be presented in a preset format, which can include an event number, a trigger word, an object entity, the date and time of the event, and additional attribute information related to the object entity.
[0089] In some embodiments, S202 includes but is not limited to the following steps S2021, S2022, and S2023.
[0090] S2021. Extract voice event attribute information from the conversation log between the user and the vehicle computer, and organize the voice event attribute information according to a preset format to obtain a voice event.
[0091] In some embodiments, the preset format includes at least one of the following: an event number, a trigger word, an object entity, a date and time when the event occurred, and additional attribute information related to the object entity.
[0092] Trigger words are the actions to be performed, such as open, close, adjust, etc.; object entities are the objects to be controlled, such as air conditioning, car windows, wipers, etc.
[0093] S2022: Extract hardware event attribute information from the change log of the status information of the in-vehicle device, and organize the hardware event attribute information according to the preset format to obtain a hardware event.
[0094] S2023: Merge the voice event with the hardware event to obtain a vehicle use event.
[0095] After obtaining the voice event and the hardware event, the vehicle-mounted terminal merges the voice event with the hardware event to obtain a vehicle use event.
[0096] S203: Arrange the vehicle use events in chronological order to obtain an event graph.
[0097] After obtaining the vehicle use events, the vehicle-mounted terminal arranges the vehicle use events to obtain an event map. In this embodiment, the vehicle use events are arranged in chronological order to obtain an event map.
[0098] S204: Monitoring voice information sent by the user, where the voice information includes a wake-up word and a current control instruction.
[0099] The vehicle-mounted terminal monitors the voice information sent by the user in real time, and the voice information includes the wake-up word and the current control instruction.
[0100] S205: Acquire the current control instruction from the voice information.
[0101] After monitoring the voice information sent by the user, the vehicle-mounted terminal obtains the current control instruction from the voice information.
[0102] S206. Divide the current control instruction into at least one prefix word. For each prefix word, find a vehicle use event containing the prefix word from the event map, combine the prefix word with the vehicle use event containing the prefix word to obtain a prefix feature sample, and summarize all prefix feature samples into a prefix feature sample group.
[0103] For example, if the current control instruction is "turn on the rain", the current control instruction can be divided into at least one prefix word, namely: turn on, turn on the rain. For the prefix word "turn on", find the car use event containing the prefix word from the event map, combine the prefix word with the car use event containing the prefix word, and obtain prefix feature samples: (turn on, turn on the air conditioner), (turn on, open the window), (turn on, turn on the wiper), etc. Similarly, for the prefix word "turn on the rain", find the car use event containing the prefix word from the event map, combine the prefix word with the car use event containing the prefix word, and obtain prefix feature samples: (turn on the rain, turn on the wiper). All prefix feature samples are summarized as prefix feature sample groups.
[0104] S207. Treat the current control instruction as an incomplete instruction, find out the vehicle use event corresponding to the complete instruction based on the incomplete instruction from the event map, combine the incomplete instruction with the vehicle use event corresponding to the complete instruction to obtain a complete feature sample, and summarize all the complete feature samples into a complete feature sample group.
[0105] For example, if the current control instruction is "adjust the air conditioner," the current control instruction can be treated as an incomplete instruction. The vehicle usage event corresponding to the complete instruction based on the incomplete instruction can be found from the event map. The incomplete instruction and the vehicle usage event corresponding to the complete instruction can be combined to obtain complete feature samples: (adjust the air conditioner, adjust the air volume of the air conditioner), (adjust the air conditioner, adjust the air temperature of the air conditioner), (adjust the air conditioner, adjust the air direction of the air conditioner), (adjust the air conditioner, adjust the air mode of the air conditioner), etc. All complete feature samples are summarized as a complete feature sample group.
[0106] This also applies if the current control instruction is already a complete instruction. If the current control instruction is a complete instruction, the same process is followed: the current control instruction is considered an incomplete instruction, and the vehicle usage event corresponding to the complete instruction (i.e., the current control instruction) based on the incomplete instruction is found from the event graph. The incomplete instruction is combined with the vehicle usage event corresponding to the complete instruction to obtain a complete feature sample.
[0107] For example, the current control instruction is "adjust the air conditioning temperature", and the vehicle usage event found is adjusting the air conditioning temperature. The incomplete instruction is combined with the vehicle usage event corresponding to the complete instruction to obtain a complete feature sample: (adjust the air conditioning temperature, adjust the air conditioning temperature).
[0108] S208 , calculating from the event graph a probability value corresponding to each prefix feature sample in the prefix feature sample group and a probability value corresponding to each complete feature sample in the complete feature sample group.
[0109] Specifically, the implementation process and principle of S208 and S103 are the same and will not be repeated here.
[0110] In some embodiments, S208 includes but is not limited to the following steps S2081, S2082, S2083, and S2084.
[0111] S2081. Count the number of times each prefix feature sample in the prefix feature sample group appears in the event graph.
[0112] The vehicle-mounted terminal counts the number of times each prefix feature sample in the prefix feature sample group appears in the event graph.
[0113] S2082. Calculate a first ratio of the number of times each prefix feature sample appears in the event graph to the total number of vehicle use events in the event graph, and use the first ratio as a probability value corresponding to each prefix feature sample.
[0114] After counting the number of times each prefix feature sample appears in the event map, the vehicle terminal calculates a first ratio of the number of times each prefix feature sample appears in the event map to the total number of vehicle use events in the event map, and uses the first ratio as the probability value corresponding to each prefix feature sample.
[0115] S2083: Count the number of times each complete feature sample in the complete feature sample group appears in the event graph.
[0116] The vehicle-mounted terminal counts the number of times each complete feature sample in the complete feature sample group appears in the event graph.
[0117] S2084. Calculate a second ratio of the number of times each complete feature sample appears in the event graph to the total number of vehicle use events in the event graph, and use the second ratio as the probability value corresponding to each complete feature sample.
[0118] After counting the number of times each complete feature sample appears in the event map, the vehicle terminal calculates a second ratio of the number of times each complete feature sample appears in the event map to the total number of vehicle use events in the event map, and uses the second ratio as the probability value corresponding to each complete feature sample.
[0119] S209 : Merge the probability value corresponding to each prefix feature sample and the probability value corresponding to each complete feature sample to obtain a user intention probability table.
[0120] Specifically, the implementation process and principle of S209 and S104 are the same and will not be repeated here.
[0121] S210 , using the status information of the in-vehicle device to remove the erroneous samples in the user intention probability table to obtain a target user intention probability table, and taking the feature sample corresponding to the maximum probability value in the target user intention probability table as the clarified user's true intention.
[0122] Specifically, the implementation process and principle of S210 and S105 are the same and will not be repeated here.
[0123] The disclosed embodiment obtains a vehicle usage log within a preset time period, wherein the vehicle usage log includes a conversation log between the user and the vehicle computer and a change log of the status information of the in-vehicle equipment. Vehicle usage events are counted from the vehicle usage log, and the vehicle usage events are arranged in chronological order to obtain an event map. Further, the voice information emitted by the user is monitored, wherein the voice information includes a wake-up word and a current control instruction. The current control instruction is obtained from the voice information, and the current control instruction is divided into at least one prefix word. For each prefix word, the vehicle usage event containing the prefix word is searched from the event map, and the prefix word is combined with the vehicle usage event containing the prefix word to obtain a prefix feature sample, and all prefix feature samples are summarized into a prefix feature sample group. The current control instruction is regarded as an incomplete instruction, and the vehicle usage event corresponding to the complete instruction based on the incomplete instruction is searched from the event map, and the incomplete instruction is combined with the vehicle usage event corresponding to the complete instruction to obtain a complete feature sample, and all complete feature samples are summarized into a complete feature sample group. Then, the probability value corresponding to each prefix feature sample in the prefix feature sample group and the probability value corresponding to each complete feature sample in the complete feature sample group are calculated from the event graph. A second ratio of the number of times each complete feature sample appears in the event graph to the total number of vehicle use events in the event graph is calculated. This second ratio is used as the probability value corresponding to each complete feature sample. The probability values corresponding to each prefix feature sample and each complete feature sample are combined to obtain a user intent probability table. The status information of the in-vehicle device is then used to remove erroneous samples from the user intent probability table to obtain a target user intent probability table. The feature sample corresponding to the maximum probability value in the target user intent probability table is used as the clarified user's true intent. Compared with the related art, the embodiment of the present disclosure solves the problem that the true intention of the user after clarification is inaccurate and the effect of dialogue clarification is poor. By counting the car use events, an event map is obtained. The event map is compatible with different attributes for different events and has good scalability. Feature samples are further constructed for the current control instructions, and the probability value of each feature sample is counted. Combined with the status of the equipment in the car, samples that are impossible to appear are removed, and the feature sample corresponding to the maximum probability value in the target user intention probability table is used as the true intention of the user after clarification. This can improve the accuracy of dialogue clarification and thus improve the effect of dialogue clarification.
[0124] FIG3 is a flow chart of a method for clarifying user intention provided by another embodiment of the present disclosure. As shown in FIG3 , the method includes the following steps S301 to S311 .
[0125] S301. Count the user's vehicle usage events within a preset time period, arrange the vehicle usage events in chronological order, and obtain an event map. The vehicle usage events include control commands issued by the user to the vehicle and changes in status information of in-vehicle devices.
[0126] Specifically, the implementation process and principle of S301 and S101 are the same and will not be described in detail here.
[0127] S302: Receive a current control instruction sent by a user, and construct a prefix feature sample group and a complete feature sample group for the current control instruction.
[0128] Specifically, the implementation process and principle of S302 and S102 are the same and will not be described in detail here.
[0129] S303: Calculate from the event graph the probability value corresponding to each prefix feature sample in the prefix feature sample group and the probability value corresponding to each complete feature sample in the complete feature sample group.
[0130] Specifically, the implementation process and principle of S303 and S103 are the same, and will not be repeated here.
[0131] S304: Obtain a first probability weight corresponding to the prefix feature sample and a second probability weight corresponding to the complete feature sample.
[0132] In some embodiments, the prefix feature sample and the complete feature sample each have corresponding probability weights, and the corresponding probability weights may be the same or different, without limitation. For example, the first probability weight is 50%, the second probability weight is 50%, or the first probability weight is 60%, the second probability weight is 40%, or the first probability weight is 40%, the second probability weight is 60%, which is only for explanation and not for specific limitation. The vehicle terminal obtains the first probability weight corresponding to the prefix feature sample and the second probability weight corresponding to the complete feature sample.
[0133] S305 : Multiply the probability value corresponding to each prefix feature sample by the first probability weight to obtain the intention probability of each prefix feature sample.
[0134] The on-vehicle terminal multiplies the probability value corresponding to each prefix feature sample by the first probability weight to obtain the intention probability of each prefix feature sample.
[0135] S306: Multiply the probability value corresponding to each complete feature sample by the second probability weight to obtain the intention probability of each complete feature sample.
[0136] The on-board terminal multiplies the probability value corresponding to each complete feature sample by the second probability weight to obtain the intention probability of each complete feature sample.
[0137] S307: Combine the intention probability of each prefix feature sample with the intention probability of each complete feature sample to obtain a user intention probability table.
[0138] After obtaining the intent probability for each prefix feature sample and the intent probability for each complete feature sample, the vehicle terminal combines the intent probabilities for each prefix feature sample with the intent probabilities for each complete feature sample to obtain a user intent probability table. This is done by combining the two tables into one. If the two tables contain the same feature sample, the intent probabilities corresponding to the same feature sample in the tables are added together to obtain the user intent probability table.
[0139] S308: Obtain status information of in-vehicle devices.
[0140] In this step, the vehicle terminal obtains status information of the in-vehicle devices, such as the status of the windows, the temperature of the air conditioner, the wind direction of the air conditioner, etc.
[0141] S309 : For each feature sample in the user intention probability table, if the state information of the in-vehicle device is the same as the intention state of the in-vehicle device corresponding to the feature sample, determine that the feature sample is an error sample.
[0142] For each feature sample in the user intention probability table, if the state information of the in-vehicle device is the same as the intention state of the in-vehicle device corresponding to the feature sample, the vehicle terminal determines that the feature sample is an error sample.
[0143] S310: Remove erroneous samples in the user intention probability table to obtain a target user intention probability table.
[0144] After determining the error samples, the vehicle-mounted terminal removes the error samples from the user intention probability table to obtain a target user intention probability table. Removing the error samples can improve the accuracy of dialogue clarification.
[0145] S311 , taking the feature sample corresponding to the maximum probability value in the target user intention probability table as the clarified true intention of the user.
[0146] After obtaining the target user intention probability table, the in-vehicle terminal uses the feature sample corresponding to the maximum probability value in the target user intention probability table as the clarified user's true intention.
[0147] The disclosed embodiment counts the user's vehicle usage events within a preset time period, arranges the vehicle usage events in chronological order, and obtains an event map. The vehicle usage events include control instructions issued by the user to the vehicle and changes in the status information of the in-vehicle equipment. The current control instruction issued by the user is received, and a prefix feature sample group and a complete feature sample group are constructed for the current control instruction. The probability value corresponding to each prefix feature sample in the prefix feature sample group and the probability value corresponding to each complete feature sample in the complete feature sample group are counted from the event map. Further, the first probability weight corresponding to the prefix feature sample and the second probability weight corresponding to the complete feature sample are obtained. The probability value corresponding to each prefix feature sample is multiplied by the first probability weight to obtain the intention probability of each prefix feature sample. The probability value corresponding to each complete feature sample is multiplied by the second probability weight to obtain the intention probability of each complete feature sample. The intention probability of each prefix feature sample is merged with the intention probability of each complete feature sample to obtain a user intention probability table. Then, the status information of the in-vehicle device is obtained. For each feature sample in the user intention probability table, if the status information of the in-vehicle device is the same as the intention state of the in-vehicle device corresponding to the feature sample, the feature sample is determined to be an error sample. Then, the error samples in the user intention probability table are removed to obtain the target user intention probability table, and the feature sample corresponding to the maximum probability value in the target user intention probability table is used as the user's true intention after clarification. Compared with the related art, the embodiment of the present disclosure solves the problem that the user's true intention after clarification is inaccurate and the effect of dialogue clarification is poor. An event graph is obtained by counting vehicle use events. The event graph is compatible with different attributes for different events and has good scalability. A feature sample is further constructed for the current control instruction, and the probability value of each feature sample is counted. In combination with the status of the in-vehicle device, samples that are impossible to appear are removed. The feature sample corresponding to the maximum probability value in the target user intention probability table is used as the user's true intention after clarification. This can improve the accuracy of dialogue clarification and thus improve the effect of dialogue clarification.
[0148] Figure 4 is a structural diagram of a user intention clarification device provided by an embodiment of the second aspect of the present disclosure. The user intention clarification device may be a vehicle-mounted terminal as described in the above embodiment, or the user intention clarification device may be a component or assembly in the vehicle-mounted terminal. The user intention clarification device provided by an embodiment of the present disclosure may execute the processing flow provided by the embodiment of the user intention clarification method of the first aspect. As shown in Figure 4, the user intention clarification device 40 includes: a first obtaining module 41, a construction module 42, a calculation module 43, a second obtaining module 44, and an intention clarification module 45; wherein the first obtaining module 41 is used to count the user's vehicle use events within a preset time period, and arrange the vehicle use events in chronological order to obtain an event map, wherein the vehicle use events include control instructions issued by the user to the vehicle and changes in status information of the in-vehicle equipment; the construction module 42 is used to receive the current control instructions issued by the user, and respectively construct the current control instructions. A prefix feature sample group and a complete feature sample group are created; a calculation module 43 is used to count the probability value corresponding to each prefix feature sample in the prefix feature sample group and the probability value corresponding to each complete feature sample in the complete feature sample group from the event map; a second obtaining module 44 is used to merge the probability value corresponding to each prefix feature sample and the probability value corresponding to each complete feature sample to obtain a user intention probability table; an intention clarification module 45 is used to use the status information of the in-vehicle equipment to remove the erroneous samples in the user intention probability table to obtain a target user intention probability table, and use the feature sample corresponding to the maximum probability value in the target user intention probability table as the clarified user's true intention.
[0149] In some embodiments, when the first obtaining module 41 counts the user's car usage events within a preset time period, it is specifically used to: obtain the car usage log within the preset time period, the car usage log including the conversation log between the user and the car computer, and the change log of the status information of the in-car equipment; and count the car usage events from the car usage log.
[0150] In some embodiments, when the first obtaining module 41 counts the vehicle usage events from the vehicle usage log, it is specifically used to: extract voice event attribute information from the conversation log between the user and the vehicle computer, organize the voice event attribute information according to a preset format, and obtain voice events; extract hardware event attribute information from the change log of the status information of the in-vehicle equipment, organize the hardware event attribute information according to the preset format, and obtain hardware events; merge the voice events with the hardware events to obtain vehicle usage events.
[0151] In some embodiments, the construction module 42 receives the current control instruction issued by the user, and constructs a prefix feature sample group and a complete feature sample group for the current control instruction respectively, which is specifically used to: monitor the voice information issued by the user, the voice information including the wake-up word and the current control instruction; obtain the current control instruction from the voice information; divide the current control instruction into at least one prefix word, for each prefix word, find out the car use event containing the prefix word from the event map, combine the prefix word with the car use event containing the prefix word to obtain a prefix feature sample, and summarize all the prefix feature samples into a prefix feature sample group; treat the current control instruction as an incomplete instruction, find out the car use event corresponding to the complete instruction based on the incomplete instruction from the event map, combine the incomplete instruction with the car use event corresponding to the complete instruction to obtain a complete feature sample, and summarize all the complete feature samples into a complete feature sample group.
[0152] In some embodiments, when the calculation module 43 counts the probability value corresponding to each prefix feature sample in the prefix feature sample group and the probability value corresponding to each complete feature sample in the complete feature sample group from the event map, it is specifically used to: count the number of times each prefix feature sample in the prefix feature sample group appears in the event map; calculate a first ratio of the number of times each prefix feature sample appears in the event map to the total number of vehicle use events in the event map, and use the first ratio as the probability value corresponding to each prefix feature sample; count the number of times each complete feature sample in the complete feature sample group appears in the event map; calculate a second ratio of the number of times each complete feature sample appears in the event map to the total number of vehicle use events in the event map, and use the second ratio as the probability value corresponding to each complete feature sample.
[0153] In some embodiments, the second obtaining module 44 merges the probability value corresponding to each prefix feature sample and the probability value corresponding to each complete feature sample to obtain the user intention probability table, which is specifically used to: obtain the first probability weight corresponding to the prefix feature sample and the second probability weight corresponding to the complete feature sample; multiply the probability value corresponding to each prefix feature sample by the first probability weight to obtain the intention probability of each prefix feature sample; multiply the probability value corresponding to each complete feature sample by the second probability weight to obtain the intention probability of each complete feature sample; merge the intention probability of each prefix feature sample with the intention probability of each complete feature sample to obtain the user intention probability table.
[0154] In some embodiments, the intention clarification module 45 uses the status information of the in-vehicle device to remove the erroneous samples in the user intention probability table to obtain the target user intention probability table, which is specifically used to: obtain the status information of the in-vehicle device; for each feature sample in the user intention probability table, if the status information of the in-vehicle device is the same as the intention state of the in-vehicle device corresponding to the feature sample, then determine that the feature sample is an erroneous sample; remove the erroneous samples in the user intention probability table to obtain the target user intention probability table.
[0155] In some embodiments, the preset format includes at least one of the following: an event number, a trigger word, an object entity, a date and time when the event occurred, and additional attribute information related to the object entity.
[0156] The user intention clarification device of the embodiment shown in FIG4 can be used to implement the technical solution of the method embodiment of the first aspect described above. Its implementation principle and technical effects are similar and will not be described in detail here.
[0157] FIG5 is a schematic diagram of the structure of an electronic device according to an embodiment of the third aspect of the present disclosure. With specific reference below to FIG5 , a schematic diagram of the structure of an electronic device 600 suitable for implementing the embodiments of the present disclosure is shown. The electronic device shown in FIG5 is merely an example and should not limit the functionality or scope of use of the embodiments of the present disclosure.
[0158] As shown in Figure 5, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes to implement the user intention clarification method of the embodiment described in the present disclosure according to the program stored in the read-only memory (ROM) 602 or the program loaded from the storage device 608 to the random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0159] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although FIG. 5 shows the electronic device 600 with various devices, it should be understood that not all of the devices shown are required to be implemented or present. More or fewer devices may be implemented or present instead.
[0160] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart, thereby implementing the user intention clarification method as described above. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0161] It should be noted that the computer-readable medium described above in the embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device, or device. In the embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0162] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the user intention clarification method described in any embodiment of the first aspect of the present disclosure.
[0163] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, which includes a computer program or instructions, and when the computer program or instructions are executed by a processor, the method for clarifying user intention described in any embodiment of the first aspect of the present disclosure is implemented.
[0164] In a sixth aspect, an embodiment of the present disclosure provides a computer program, comprising a computer program code, which, when executed on a computer, enables the computer to execute the user intention clarification method described in any embodiment of the first aspect of the present disclosure.
[0165] In addition, an embodiment of the seventh aspect of the present disclosure provides a vehicle, comprising the user intention clarification device described in any embodiment of the second aspect of the present disclosure or the electronic device described in any embodiment of the third aspect of the present disclosure.
[0166] It should be noted that the explanations of the user intention clarification method and apparatus in the aforementioned embodiments are also applicable to the electronic device, computer-readable storage medium, computer program product, computer program and vehicle in the embodiments of the present disclosure, and will not be repeated here.
[0167] All embodiments of the present disclosure may be implemented individually or in combination with other embodiments, and are all considered to be within the scope of protection claimed by the present disclosure.
[0168] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.
[0169] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0170] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:
[0171] Counting the user's vehicle usage events within a preset time period, arranging the vehicle usage events in chronological order, and obtaining an event map. The vehicle usage events include the control commands issued by the user to the vehicle and the changes in the status information of the in-vehicle devices;
[0172] receiving a current control instruction issued by a user, and constructing a prefix feature sample group and a complete feature sample group for the current control instruction;
[0173] Calculating the probability value corresponding to each prefix feature sample in the prefix feature sample group and the probability value corresponding to each complete feature sample in the complete feature sample group from the event map;
[0174] Combine the probability values corresponding to each prefix feature sample and the probability values corresponding to each complete feature sample to obtain the user intention probability table;
[0175] The state information of the in-vehicle device is used to remove the erroneous samples in the user intention probability table to obtain the target user intention probability table, and the feature sample corresponding to the maximum probability value in the target user intention probability table is used as the clarified user's true intention.
[0176] In some embodiments, when the above one or more programs are executed by the electronic device, the electronic device may also execute other steps described in the above embodiments.
[0177] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0178] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0179] The units involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a unit does not necessarily limit the unit itself.
[0180] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0181] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0182] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
[0183] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0184] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A method for clarifying user intention, comprising: Counting the vehicle use events of users within a preset time period, arranging the vehicle use events in chronological order, and obtaining an event map, wherein the vehicle use events include control commands issued by users to the vehicle and changes in status information of in-vehicle equipment; receiving a current control instruction issued by a user, and constructing a prefix feature sample group and a complete feature sample group for the current control instruction respectively; Counting the probability value corresponding to each prefix feature sample in the prefix feature sample group and the probability value corresponding to each complete feature sample in the complete feature sample group from the event map; The probability value corresponding to each prefix feature sample and the probability value corresponding to each complete feature sample are combined to obtain a user intention probability table; The state information of the in-vehicle device is used to remove the erroneous samples in the user intention probability table to obtain the target user intention probability table, and the feature sample corresponding to the maximum probability value in the target user intention probability table is used as the clarified user's true intention.
2. The method according to claim 1, wherein the counting of the user's vehicle use events within a preset time period comprises: Obtaining a vehicle usage log within a preset time period, wherein the vehicle usage log includes a conversation log between the user and the vehicle computer and a change log of status information of the in-vehicle equipment; The vehicle usage events are counted from the vehicle usage log.
3. The method according to claim 2, wherein the step of calculating vehicle usage events from the vehicle usage log comprises: Extracting voice event attribute information from the conversation log between the user and the vehicle computer, and arranging the voice event attribute information according to a preset format to obtain a voice event; Extracting hardware event attribute information from the change log of the status information of the in-vehicle device, and arranging the hardware event attribute information according to the preset format to obtain a hardware event; The voice event is combined with the hardware event to obtain a vehicle use event.
4. The method according to any one of claims 1 to 3, wherein the receiving of the current control instruction issued by the user and constructing a prefix feature sample group and a complete feature sample group for the current control instruction respectively comprise: Monitoring the voice information sent by the user, wherein the voice information includes a wake-up word and a current control instruction; Acquiring the current control instruction from the voice information; The current control instruction is divided into at least one prefix word, for each prefix word, a vehicle use event containing the prefix word is found from the event map, the prefix word is combined with the vehicle use event containing the prefix word to obtain a prefix feature sample, and all prefix feature samples are summarized as a prefix feature sample group; The current control instruction is regarded as an incomplete instruction, and the event map is used to find the The vehicle use event corresponding to the complete instruction is combined with the incomplete instruction and the vehicle use event corresponding to the complete instruction to obtain a complete feature sample, and all the complete feature samples are summarized into a complete feature sample group.
5. The method according to any one of claims 1 to 4, wherein the step of calculating from the event graph the probability value corresponding to each prefix feature sample in the prefix feature sample group and the probability value corresponding to each complete feature sample in the complete feature sample group comprises: Counting the number of times each prefix feature sample in the prefix feature sample group appears in the event graph; Calculate a first ratio of the number of times each prefix feature sample appears in the event graph to the total number of vehicle use events in the event graph, and use the first ratio as a probability value corresponding to each prefix feature sample; Counting the number of times each complete feature sample in the complete feature sample group appears in the event graph; A second ratio of the number of times each complete feature sample appears in the event graph to the total number of vehicle use events in the event graph is calculated, and the second ratio is used as the probability value corresponding to each complete feature sample.
6. The method according to any one of claims 1 to 5, wherein the probability value corresponding to each prefix feature sample and the probability value corresponding to each complete feature sample are combined to obtain a user intention probability table, comprising: Obtaining a first probability weight corresponding to the prefix feature sample and a second probability weight corresponding to the complete feature sample; Multiply the probability value corresponding to each prefix feature sample by the first probability weight to obtain the intention probability of each prefix feature sample; Multiply the probability value corresponding to each complete feature sample by the second probability weight to obtain the intention probability of each complete feature sample; The intention probability of each prefix feature sample is combined with the intention probability of each complete feature sample to obtain a user intention probability table.
7. The method according to any one of claims 1 to 6, wherein the step of removing erroneous samples in the user intention probability table by using the state information of the in-vehicle device to obtain the target user intention probability table comprises: Get status information of in-vehicle devices; For each feature sample in the user intention probability table, if the state information of the in-vehicle device is the same as the intention state of the in-vehicle device corresponding to the feature sample, determining that the feature sample is an error sample; The erroneous samples in the user intention probability table are removed to obtain a target user intention probability table.
8. A user intention clarification device, comprising: The first obtaining module is used to count the vehicle use events of the user within a preset time period, arrange the vehicle use events in chronological order, and obtain an event map, wherein the vehicle use events include control commands issued by the user to the vehicle and changes in status information of the in-vehicle equipment; A construction module, used for receiving a current control instruction issued by a user, and constructing a prefix feature sample group and a complete feature sample group for the current control instruction respectively; A calculation module, used to calculate from the event map the probability value corresponding to each prefix feature sample in the prefix feature sample group and the probability value corresponding to each complete feature sample in the complete feature sample group; The second obtaining module is used to merge the probability value corresponding to each prefix feature sample and the probability value corresponding to each complete feature sample to obtain a user intention probability table; The intention clarification module is used to use the status information of the in-vehicle device to remove the erroneous samples in the user intention probability table, obtain the target user intention probability table, and use the feature sample corresponding to the maximum probability value in the target user intention probability table as the clarified user's true intention.
9. An electronic device, comprising: Memory; processor; and Computer programs; The computer program is stored in the memory and is configured to be executed by the processor to implement the user intention clarification method according to any one of claims 1 to 7. 10 . A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the user intention clarification method according to claim 1 .
11. A computer program product, comprising a computer program or instructions, wherein when the computer program or instructions are executed by a processor, the method for clarifying user intention according to any one of claims 1 to 7 is implemented. 12 . A computer program, comprising computer program codes, which, when executed on a computer, enable the computer to execute the user intention clarifying method according to claim 1 . 13 . A vehicle, comprising the user intention clarification device according to claim 8 or the electronic device according to claim 9 .
Citation Information
Patent Citations
Intelligent statement clarification method and system for dialogue system
CN111199149A
Semantic recognition method and device
CN113806470A
Voice interaction method and device, electronic equipment and storage medium
CN114078478A
Intent Discovery in Audio or Text-Based Conversation
US20130339021A1
Dialogue control method and system for understanding natural language in a virtual assistant platform
WO2022131954A1
