Vehicle control method, system and equipment and storage medium

By using knowledge graph and embedded sentence representation technology in the semantic recognition system, the problem of non-uniform knowledge representation system is solved, the maintenance difficulty and scalability are reduced, and the efficiency and scalability of the system are improved.

CN118535745APending Publication Date: 2024-08-23ZHEJIANG ZEEKR INTELLIGENT TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310161081.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-22
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing technologies in knowledge expression and semantic recognition systems have problems such as inconsistent knowledge representation systems, high maintenance difficulty, and poor scalability, which results in difficulty in adding system functions and high maintenance costs in the later period.

Method used

Use knowledge graphs to standardize automotive control knowledge, use embedded sentence representation technology to convert spoken text into standardized sentences, find the corresponding standard control text through cosine distance matching, and use embedded representation technology based on neural networks to standardize the diversity of spoken language into the knowledge graph system.

Benefits of technology

It reduces the difficulty of maintaining the semantic recognition system, avoids confusion in knowledge expression and insufficient generalization of technical methods, and improves the scalability and maintenance efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535745A
    Figure CN118535745A
Patent Text Reader

Abstract

The invention discloses a vehicle control method, system and device and a storage medium, and the method employs a knowledge graph in the aspect of knowledge expression, carries out the systematic standardization of the knowledge needed by vehicle control, and generates a corresponding standardized statement through the standardized knowledge. And in the aspect of oral language expression processing, an embedded statement expression technology is adopted, the standardized statements formed by the knowledge graph are subjected to embedded expression, when oral languages are processed, the oral languages are subjected to embedded expression, then the distance between the oral languages and the embedded expression of the standardized statements is calculated, and the oral languages are processed according to the distance between the oral languages and the embedded expression of the standardized statements. And finding the nearest statement as the corresponding normalized statement. The defects of knowledge expression disorder, insufficient technical method generalization, difficulty in later-stage system function increase and high later-stage maintenance cost caused by lack of a unified knowledge expression system in natural language understanding are avoided, and the maintenance difficulty of a semantic recognition system is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Natural language understanding is the primary task in the natural language processing process. Its purpose is to enable subsequent natural language processing programs to know the "behavior and purpose" that the input text wants to express, and then make corresponding operations. In related technologies, in terms of knowledge expression, the regular matching method is mainly used for spoken language analysis, and then the parsed sentences are divided into corresponding "scenarios", "intentions" and "slots" according to the defined rules, so as to achieve control of the vehicle. However, when the scene needs to be expanded, the newly added scene data will overlap and conflict with the previous scene data, which makes the maintenance of the semantic recognition system more difficult. Summary of the invention

[0003] The embodiments of the present application aim to reduce the difficulty of maintaining a semantic recognition system by providing a vehicle control method, system, device and storage medium.

[0004] The embodiment of the present application provides a vehicle control method, the vehicle control method comprising:

[0005] Determine the embedded vector of the current vehicle control text;

[0006] Determining a cosine distance between the embedded vector and a preset embedded vector of each standard control text in a knowledge graph corpus, wherein the standard control text is determined based on a knowledge graph constructed from a set of historical vehicle control samples;

[0007] Determining a standard control text that matches the current vehicle control text according to the cosine distance;

[0008] The vehicle is controlled based on the standard control context.

[0009] Optionally, before the step of determining the cosine distance between the embedded vector and the preset embedded vectors of each standard control text in the knowledge graph corpus, the step further includes:

[0010] Obtain a historical vehicle control sample set;

[0011] Determining entities, relationships, and features of each sample in the historical vehicle control sample set;

[0012] Determine, according to the entities, the relationships, and the features of each of the samples, the slots and slot values ​​corresponding to each of the samples;

[0013] Constructing the knowledge graph according to the slots and the slot values ​​corresponding to each of the samples;

[0014] Generate standard control text corresponding to each sample in the knowledge graph;

[0015] The knowledge graph corpus is generated according to each of the standard control texts.

[0016] Optionally, after the step of generating the knowledge graph corpus according to each of the standard control texts, the following steps are included:

[0017] Each standard control text in the knowledge graph corpus is input into the embedding representation model for embedded representation to obtain a preset embedded vector for each standard control text.

[0018] Optionally, the step of inputting each standard control text in the knowledge graph corpus into an embedding representation model for embedded representation to obtain a preset embedded vector for each standard control text includes:

[0019] Obtaining similar control texts corresponding to each of the standard control texts;

[0020] The standard control text and the similar control text are passed through a word embedding layer to obtain word vectors and position vectors corresponding to the standard control text and the similar control text respectively;

[0021] According to the word vector and the position vector, a preset embedded vector corresponding to each of the standard control texts is obtained.

[0022] Optionally, the step of determining the entities, relations and features of each sample in the historical vehicle control sample set includes:

[0023] Performing data cleaning on samples in the historical vehicle control sample set;

[0024] Entities, relationships and features of each sample after data cleaning are extracted.

[0025] Optionally, the step of generating a standard control text corresponding to each sample in the knowledge graph includes:

[0026] Obtain the slot and slot value corresponding to each sample in the knowledge graph;

[0027] Based on the preset template, the slot and the slot value, a standard control text corresponding to each of the samples is generated.

[0028] Optionally, the step of determining a standard control text matching the current vehicle control text according to the cosine distance includes:

[0029] Obtain a target cosine distance greater than a preset cosine distance threshold among all the cosine distances;

[0030] The standard control text corresponding to the target cosine distance is determined as the standard control text matching the current vehicle control text.

[0031] In addition, to achieve the above object, the present invention also provides a vehicle control system, comprising:

[0032] A first determination module, used to determine the embedded vector of the current vehicle control text;

[0033] A second determination module is used to determine the cosine distance between the embedded vector and a preset embedded vector of each standard control text in the knowledge graph corpus, wherein the standard control text is determined based on the knowledge graph constructed according to the historical vehicle control sample set;

[0034] A third determination module, configured to determine a standard control text matching the current vehicle control text according to the cosine distance;

[0035] A control module is used to control the vehicle based on the standard control text.

[0036] In addition, to achieve the above-mentioned purpose, the present invention also provides a vehicle control device including: a memory, a processor and a vehicle control program stored in the memory and executable on the processor, wherein the vehicle control program implements the steps of the above-mentioned vehicle control method when executed by the processor.

[0037] In addition, to achieve the above-mentioned purpose, the present invention also provides a storage medium on which a vehicle control program is stored, and when the vehicle control program is executed by a processor, the steps of the above-mentioned vehicle control method are implemented.

[0038] A technical solution of a vehicle control method, system, device and storage medium provided in the embodiment of the present application adopts a knowledge graph in terms of knowledge expression, systematically normalizes the knowledge required for automobile control, and then generates corresponding normalized sentences using the normalized knowledge. In terms of spoken expression processing, an embedded sentence representation technology is adopted, and the normalized sentences formed by the knowledge graph are firstly embedded. When processing spoken language, the spoken language is also first generated with an embedded representation, and then the distance with the embedded representation of the normalized sentence is calculated, and the closest one is found as the normalized sentence corresponding to it. Since the normalized knowledge graph system is used as the backbone, the same set of unified knowledge understanding system is used in the entire system, and the embedded representation technology based on neural network is used as the pre-processing technical means to normalize the diversity of spoken language into the normalized system based on the knowledge graph. It avoids the disadvantages of knowledge expression confusion, insufficient generalization of technical methods, difficulty in increasing system functions in the later stage, and high maintenance cost in the later stage caused by the lack of a unified knowledge representation system in natural language understanding, and reduces the difficulty of maintaining the semantic recognition system. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 A schematic flow chart of a first embodiment of a vehicle control method of the present invention;

[0040] Figure 2 It is a functional module diagram of the vehicle control system of the present invention;

[0041] Figure 3 It is a schematic diagram of the structure of the hardware operating environment involved in the embodiment of the present invention.

[0042] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. The above-mentioned drawings are only an embodiment diagram, not the entire invention. DETAILED DESCRIPTION

[0043] Natural language understanding is the primary task in the natural language processing process. Its purpose is to enable the subsequent natural language processing program to know the "behavior and purpose" to be expressed by the input text, and then make corresponding operations. In terms of knowledge expression, the current natural language understanding method is based on practical considerations in terms of the standardization of knowledge expression. It mainly starts from the actual project in question, and often uses methods that are more convenient to handle in the current project and methods that are convenient for communication in the current project to define the "scenario", "intention" and "slot" of the language. The advantage is that it is convenient for the project to be developed quickly and solve problems within a certain scope of application. However, if the scenario and scope of application need to be expanded, knowledge expression will often be confused, and even conflict with the previous knowledge expression specifications. The initial development cost is low, but the later maintenance cost is high, and even the situation where the early development program has to be completely abandoned, knowledge planning and expression are re-expressed, and the entire system is re-developed.

[0044] The existing system mainly uses regular matching to parse the spoken language, and then defines rules to divide the parsed sentences into corresponding "scenarios", "intentions", and "slots". The benefit is that the project can be developed quickly and problems can be solved. However, the scalability of spoken sentences will also lead to confusion in the expression of rules and conflicts with previous rules. Moreover, when new spoken expressions appear, new manually defined rules need to be written, and the subsequent manual maintenance costs are also relatively high.

[0045] Therefore, the present application adopts the knowledge graph in terms of knowledge expression, systematically normalizes the knowledge required for automobile control, and then uses the normalized knowledge to generate corresponding normalized sentences. In terms of spoken expression processing, the embedded sentence representation technology is adopted, and the normalized sentences formed by the knowledge graph are firstly embedded. When processing spoken language, the spoken language is also first generated into an embedded representation, and then the distance with the embedded representation of the normalized sentence is calculated, and the closest one is found as the normalized sentence corresponding to it. Since the normalized knowledge graph system is used as the backbone, the same set of unified knowledge understanding system is used in the whole system, and the embedded representation technology based on neural network is used as the pre-processing technical means to normalize the diversity of spoken language into the normalized system based on the knowledge graph. It avoids the disadvantages of confusion in knowledge expression, insufficient generalization of technical methods, difficulty in increasing system functions in the later stage, and high maintenance cost in the later stage caused by the lack of a unified knowledge representation system in natural language understanding, and reduces the difficulty of maintaining the semantic recognition system.

[0046] In order to better understand the above technical solution, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0047] like Figure 1 As shown, in the first embodiment of the present application, the vehicle control method of the present application includes the following steps:

[0048] Step S110, determining the embedded vector of the current vehicle control text.

[0049] In this embodiment, the current vehicle control text may be obtained in the form of spoken language, that is, a microphone is installed on the vehicle control device, the voice spoken by the user is obtained through the microphone, and the text of the user's words is obtained through the voice recognition system. Optionally, the current vehicle control text may be an air conditioning control instruction, such as setting the air conditioning temperature to 25°C, and the vehicle control text may also be the control text of other devices on the vehicle.

[0050] After obtaining the current vehicle control text, the current vehicle control text can be generated into an embedded vector, and then the distance between the normalized statement, that is, the distance between the embedded vector and the standard control text is calculated, and the closest one is found as the corresponding normalized statement. In this way, the non-standardized control text can be converted into a standardized standard control text.

[0051] In one embodiment, the current vehicle control text may be input into the SimBERT model to generate an embedded vector of the current vehicle control text. Optionally, determining the embedded vector of the current vehicle control text includes: obtaining similar control texts corresponding to the current vehicle control text; passing the current vehicle control text and the similar control text through a word embedding layer to obtain word vectors corresponding to the current vehicle control text and the similar control text, and combining sentence vectors and position vectors corresponding to the similar control texts; inputting the word vectors and the position vectors into the trained SimBERT neural network model to obtain an embedding 768-dimensional vector of the current vehicle control text and the similar control text, and then calculating the cosine distance between the two, and judging the similarity between the two according to the size of the cosine distance.

[0052] The word embedding layer is used to convert each word of the current vehicle control text into a fixed-dimensional word vector. In BERT, each word is converted into a 768-dimensional vector representation. Optionally, the current vehicle control text is first segmented before being fed into the word embedding layer. In addition, two special identifiers are inserted at the beginning ([CLS]) and end ([SEP]) of the word segmentation result, which are used for the subsequent classification task and sentence pair division. The sentence embedding layer has only two vector representations. The first vector assigns 0 to each word in the first sentence, and the second vector assigns 1 to each word in the second sentence. If the input has only one sentence, its sentence vector is all 0. The position vector allows the SimBERT model to learn the order of the input. After obtaining the word vector, sentence vector, and position vector, each vector can be added to obtain the embedded vector corresponding to the current vehicle control text.

[0053] Optionally, the embedded vector is generated according to the SimBERT model, which is based on the idea of ​​the UniLM model. The training corpus is a group of similar sentence pairs, and the Seq2Seq part is constructed by generating similar sentences by predicting one sentence from another. Its loss function consists of two parts:

[0054] Part 1: Construct a Seq2Seq task to generate similar texts. The steps are as follows;

[0055] Assuming that each line is a group of similar sentences, during training, the sentences in the above figure are sent to the neural network as a batch. In a line of the corpus, the previous sentence separated by [SEP] is used to predict the next sentence, and a similar sentence generation task is performed. This is the Seq2Seq part. The loss function formula is as follows:

[0056]

[0057] Part 2: Similarity task, the corresponding text similarity of the input will be calculated to train the text conversion vector. The steps are as follows:

[0058] First, the sentence vector matrix V∈bVd of [CLS] in the batch is calculated through the initialized Simbert neural network; where b=batch_size, d=hidden_size.

[0059] Then, the matrix is ​​normalized and inner-producted to obtain the similarity matrix of bVb, and the diagonal part is removed by masking. Finally, the softmax output of each row is used as a classification task for model training. The purpose is to treat all non-similar samples in the batch as negative samples, and use softmax to increase the similarity of similar samples and reduce the similarity of other samples.

[0060] This application mainly uses the similarity task part of Simbert as the encoding model for spoken text and knowledge graph standard generated text. After the model training is completed, the current vehicle control text is input into the model, and the corresponding embedded vector is calculated to retrieve the standard control text that matches the spoken text.

[0061] In one embodiment, the present application uses a unified knowledge graph to model the model, which is easy to maintain and expand the model. Optionally, obtain a set of historical vehicle control samples; determine the entities, relationships and features of each sample in the historical vehicle control sample set; determine the slots and slot values ​​corresponding to each sample according to the entities, relationships and features of each sample; construct a knowledge graph according to the slots and slot values ​​corresponding to each sample, thereby completing the construction of the automobile knowledge graph. After obtaining the knowledge graph, a knowledge graph corpus can be further generated. The human-computer dialogue system needs to recognize information in human language in order to perform specific tasks. In the oral parsing task, the task of identifying the main idea of ​​the sentence is called "intention detection", and screening requirements from the sentence according to different intentions is called "slot filling".

[0062] In one embodiment, after obtaining the historical vehicle control sample set, data cleaning can be performed on the samples in the historical vehicle control sample set; entities, relationships and features of each sample after data cleaning can be extracted, so that the determined standard control text is more accurate.

[0063] Optionally, after obtaining the knowledge graph, a standard control text corresponding to each sample in the knowledge graph may be generated, and a knowledge graph corpus may be generated based on each standard control text.

[0064] Optionally, obtain the slot and slot value corresponding to each sample in the knowledge graph; based on the preset template, the slot and the slot value, generate the standard control text corresponding to each sample; generate the knowledge graph corpus according to each standard control text. For example: entity: air conditioning; characteristic: temperature; relationship: setting; characteristic value: xx degrees. A set of examples of such a knowledge graph can generate: The air conditioning temperature is set to xx degrees. The slot is (relationship, entity, characteristic, characteristic value), and the corresponding slot value is (setting, air conditioning, temperature, 25°C).

[0065] In one embodiment, after obtaining the knowledge graph corpus, each standard control text in the knowledge graph corpus can be input into the embedding representation model for embedded representation to obtain a preset embedded vector of each standard control text. The embedding representation model is a ROFormer model, which is trained based on the Transformer model. The specific training process of the model is a well-known technology in the art and will not be repeated here.

[0066] Optionally, the method of determining the preset embedded vector of each standard control text is similar to the method of determining the embedded vector of the current control text described above. Specifically, each standard control text in the knowledge graph corpus is input into an embedding representation model, in which similar control texts corresponding to each standard control text are obtained, and each standard control text and the corresponding similar control text are passed through a word embedding layer to obtain the word vector and position vector corresponding to each of the standard control text and the similar control text, and then the preset embedded vector corresponding to each standard control text is obtained according to the word vector and the position vector.

[0067] Step S120, determining the cosine distance between the embedded vector and a preset embedded vector of each standard control text in the knowledge graph corpus, wherein the standard control text is determined based on the knowledge graph constructed based on historical vehicle control samples.

[0068] In this embodiment, embedded sentence representation technology is used to first perform embedded representation on the standard control text formed by the knowledge graph. When processing spoken language, the spoken language, i.e., the current vehicle control text, is also first generated into an embedded representation. Then, the distance between the spoken language and the embedded representation of the standard control text is calculated, and the one with the closest distance is found as the corresponding normalized statement.

[0069] Step S130: determining a standard control text matching the current vehicle control text according to the cosine distance.

[0070] In this embodiment, the current vehicle control text is generated with an embedded vector through the SimBERT model; the cosine distance between the embedded vector of the current vehicle control text and the preset embedded vector of the standard control text in the knowledge graph corpus is calculated through the cosine distance formula, and the target cosine distance greater than the preset cosine distance threshold is obtained among all the cosine distances; the standard control text corresponding to the target cosine distance is determined as the standard control text matching the current vehicle control text. Among them, the preset cosine distance threshold is determined after the embedded vector and cosine distance calculation are performed in a large number of known positive example sentences with the same meaning and negative example sentences with different meanings, and the standard control text with the highest ranking is used as the normative text corresponding to the current vehicle control text; among them, the cosine distance formula is as follows:

[0071]

[0072] Among them, A represents the embedded vector of the current vehicle control text, and B represents the preset embedded vector of the standard control text.

[0073] Parse the standard control text into slots under the knowledge graph system to complete the natural language understanding process.

[0074] Step S140: controlling the vehicle based on the standard control text.

[0075] In this embodiment, after obtaining the standard control text, the vehicle control device can control the vehicle based on the standard control text.

[0076] According to the above technical solution, this embodiment adopts knowledge graph in knowledge expression, systematically normalizes the knowledge required for automobile control, and then uses the normalized knowledge to generate corresponding normalized sentences. In terms of spoken expression processing, embedded sentence representation technology is adopted, and the normalized sentences formed by the knowledge graph are firstly embedded. When processing spoken language, the spoken language is also first generated into an embedded representation, and then the distance with the embedded representation of the normalized sentence is calculated, and the one with the closest distance is found as the normalized sentence corresponding to it. Since the normalized knowledge graph system is used as the backbone, the same set of unified knowledge understanding system is used in the whole system, and the embedded representation technology based on neural network is used as the pre-processing technical means to normalize the diversity of spoken language into the normalized system based on knowledge graph. It avoids the disadvantages of knowledge expression confusion, insufficient generalization of technical methods, difficulty in adding system functions in the later stage, and high maintenance cost in the later stage caused by the lack of a unified knowledge representation system in natural language understanding, and reduces the difficulty of maintaining the semantic recognition system.

[0077] The embodiments of the present invention provide embodiments of the vehicle control method. It should be noted that although a logical order is shown in the flow chart, in some cases, the steps shown or described may be executed in an order different from that shown here.

[0078] like Figure 2 As shown, the present application provides a vehicle control system, the vehicle control system comprising:

[0079] The first determination module 10 is used to determine the embedded vector of the current vehicle control text.

[0080] A second determination module 20, for determining a cosine distance between the embedded vector and a preset embedded vector of each standard control text in the knowledge graph corpus, wherein the standard control text is determined based on the knowledge graph constructed according to the historical vehicle control sample set;

[0081] Optionally, a knowledge graph corpus generation module is also connected before the second determination module 10, and the knowledge graph corpus generation module is used to obtain a historical vehicle control sample set; determine the entities, relationships and features of each sample in the historical vehicle control sample set; determine the slots and slot values ​​corresponding to each sample based on the entities, relationships and features of each sample; construct the knowledge graph based on the slots and slot values ​​corresponding to each sample; generate standard control texts corresponding to each sample in the knowledge graph; and generate the knowledge graph corpus based on each standard control text.

[0082] Optionally, the knowledge graph corpus generation module is also used to perform data cleaning on samples in the historical vehicle control sample set; and extract entities, relationships and features of each of the samples after data cleaning.

[0083] Optionally, the generation module of the knowledge graph corpus is also used to obtain the slots and slot values ​​corresponding to each sample in the knowledge graph; based on a preset template, the slots and the slot values, generate standard control texts corresponding to each of the samples.

[0084] Optionally, a module for determining preset embedded vectors is connected after the knowledge graph corpus generation module, and the module for determining preset embedded vectors is used to input each standard control text in the knowledge graph corpus into an embedding representation model for embedded representation to obtain preset embedded vectors for each standard control text.

[0085] Optionally, the module for determining the preset embedded vector is also used to obtain similar control texts corresponding to each of the standard control texts; pass the standard control text and the similar control text through a word embedding layer to obtain word vectors and position vectors corresponding to the standard control text and the similar control text respectively; and obtain the preset embedded vector corresponding to each of the standard control texts based on the word vectors and the position vectors.

[0086] A third determination module 30, configured to determine a standard control text matching the current vehicle control text according to the cosine distance;

[0087] Optionally, the third determination module 30 is further used to obtain a target cosine distance greater than a preset cosine distance threshold among all the cosine distances; and determine the standard control text corresponding to the target cosine distance as the standard control text matching the current vehicle control text.

[0088] The control module 40 is configured to control the vehicle based on the standard control text.

[0089] The specific implementation of the vehicle control system of the present invention is basically the same as the various embodiments of the above-mentioned vehicle control method, and will not be repeated here.

[0090] like Figure 3 As shown, Figure 3 It is a schematic diagram of the structure of the hardware operating environment of the vehicle control device involved in the embodiment of the present invention.

[0091] like Figure 3 As shown, the vehicle control device may include: a processor 1001, such as a CPU, a memory 1005, a user interface 1003, a network interface 1004, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.

[0092] Those skilled in the art will understand that Figure 3 The vehicle control device structure shown in the figure does not constitute a limitation on the vehicle control device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0093] like Figure 3 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module and a vehicle control program. The operating system is a program that manages and controls the hardware and software resources of the vehicle control device, the vehicle control program and the operation of other software or programs.

[0094] exist Figure 3 In the vehicle control device shown, the user interface 1003 is mainly used to connect to the terminal and communicate data with the terminal; the network interface 1004 is mainly used for the background server and communicates data with the background server; the processor 1001 can be used to call the vehicle control program stored in the memory 1005.

[0095] In this embodiment, the vehicle control device includes: a memory 1005, a processor 1001, and a vehicle control program stored in the memory and executable on the processor, wherein:

[0096] When the processor 1001 calls the vehicle control program stored in the memory 1005, the following operations are performed:

[0097] Determine the embedded vector of the current vehicle control text;

[0098] Determining a cosine distance between the embedded vector and a preset embedded vector of each standard control text in a knowledge graph corpus, wherein the standard control text is determined based on a knowledge graph constructed from a set of historical vehicle control samples;

[0099] Determining a standard control text that matches the current vehicle control text according to the cosine distance;

[0100] The vehicle is controlled based on the standard control context.

[0101] When the processor 1001 calls the vehicle control program stored in the memory 1005, the following operations are performed:

[0102] Obtain a historical vehicle control sample set;

[0103] Determining entities, relationships, and features of each sample in the historical vehicle control sample set;

[0104] Determine, according to the entities, the relationships, and the features of each of the samples, the slots and slot values ​​corresponding to each of the samples;

[0105] Constructing the knowledge graph according to the slots and the slot values ​​corresponding to each of the samples;

[0106] Generate standard control text corresponding to each sample in the knowledge graph;

[0107] The knowledge graph corpus is generated according to each of the standard control texts.

[0108] When the processor 1001 calls the vehicle control program stored in the memory 1005, the following operations are performed:

[0109] Each standard control text in the knowledge graph corpus is input into the embedding representation model for embedded representation to obtain a preset embedded vector for each standard control text.

[0110] When the processor 1001 calls the vehicle control program stored in the memory 1005, the following operations are performed:

[0111] Obtaining similar control texts corresponding to each of the standard control texts;

[0112] The standard control text and the similar control text are passed through a word embedding layer to obtain word vectors and position vectors corresponding to the standard control text and the similar control text respectively;

[0113] According to the word vector and the position vector, a preset embedded vector corresponding to each of the standard control texts is obtained.

[0114] When the processor 1001 calls the vehicle control program stored in the memory 1005, the following operations are performed:

[0115] Performing data cleaning on samples in the historical vehicle control sample set;

[0116] Entities, relationships and features of each sample after data cleaning are extracted.

[0117] When the processor 1001 calls the vehicle control program stored in the memory 1005, the following operations are performed:

[0118] Obtain the slot and slot value corresponding to each sample in the knowledge graph;

[0119] Based on the preset template, the slot and the slot value, a standard control text corresponding to each of the samples is generated.

[0120] When the processor 1001 calls the vehicle control program stored in the memory 1005, the following operations are performed:

[0121] Obtain a target cosine distance greater than a preset cosine distance threshold among all the cosine distances;

[0122] The standard control text corresponding to the target cosine distance is determined as the standard control text matching the current vehicle control text.

[0123] Based on the same inventive concept, an embodiment of the present application also provides a computer-readable storage medium, which stores a vehicle control program. When the vehicle control program is executed by a processor, it implements the various steps of the vehicle control method as described above and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0124] Since the storage medium provided in the embodiments of the present application is the storage medium used to implement the method of the embodiments of the present application, based on the method introduced in the embodiments of the present application, the person skilled in the art can understand the specific structure and deformation of the storage medium, so it is not repeated here. All storage media used in the methods of the embodiments of the present application belong to the scope of protection of this application.

[0125] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0126] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0127] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0128] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0129] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claim. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.

[0130] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0131] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A vehicle control method, characterized in that: The method comprises: Determine the embedded vector of the current vehicle control text; Determining a cosine distance between the embedded vector and a preset embedded vector of each standard control text in a knowledge graph corpus, wherein the standard control text is determined based on a knowledge graph constructed from a set of historical vehicle control samples; Determining a standard control text that matches the current vehicle control text according to the cosine distance; The vehicle is controlled based on the standard control context.

2. The method according to claim 1, characterized in that Before the step of determining the cosine distance between the embedded vector and the preset embedded vectors of each standard control text in the knowledge graph corpus, the method further includes: Obtain a historical vehicle control sample set; Determining entities, relationships, and features of each sample in the historical vehicle control sample set; Determine, according to the entities, the relationships, and the features of each of the samples, the slots and slot values ​​corresponding to each of the samples; Constructing the knowledge graph according to the slots and the slot values ​​corresponding to each of the samples; Generate standard control text corresponding to each sample in the knowledge graph; The knowledge graph corpus is generated according to each of the standard control texts.

3. The method according to claim 2, characterized in that After the step of generating the knowledge graph corpus according to each of the standard control texts, the method further includes: Each standard control text in the knowledge graph corpus is input into the embedding representation model for embedded representation to obtain a preset embedded vector for each standard control text.

4. The method according to claim 3, characterized in that The step of inputting each standard control text in the knowledge graph corpus into an embedding representation model for embedded representation to obtain a preset embedded vector for each standard control text comprises: Obtaining similar control texts corresponding to each of the standard control texts; The standard control text and the similar control text are passed through a word embedding layer to obtain word vectors and position vectors corresponding to the standard control text and the similar control text respectively; According to the word vector and the position vector, a preset embedded vector corresponding to each of the standard control texts is obtained.

5. The method according to claim 2, characterized in that The step of determining the entities, relations and features of each sample in the historical vehicle control sample set comprises: Performing data cleaning on samples in the historical vehicle control sample set; Entities, relationships and features of each sample after data cleaning are extracted.

6. The method according to claim 2, characterized in that The step of generating the standard control text corresponding to each sample in the knowledge graph includes: Obtain the slot and slot value corresponding to each sample in the knowledge graph; Based on the preset template, the slot and the slot value, a standard control text corresponding to each of the samples is generated.

7. The method according to any one of claims 1 to 6, characterized in that: The step of determining the standard control text matching the current vehicle control text according to the cosine distance comprises: Obtain a target cosine distance greater than a preset cosine distance threshold among all the cosine distances; The standard control text corresponding to the target cosine distance is determined as the standard control text matching the current vehicle control text.

8. A vehicle control system, characterized in that: The vehicle control system comprises: A first determination module, used to determine the embedded vector of the current vehicle control text; A second determination module is used to determine the cosine distance between the embedded vector and a preset embedded vector of each standard control text in the knowledge graph corpus, wherein the standard control text is determined based on the knowledge graph constructed according to the historical vehicle control sample set; A third determination module, configured to determine a standard control text matching the current vehicle control text according to the cosine distance; A control module is used to control the vehicle based on the standard control text.

9. A vehicle control device, characterized in that: The vehicle control device includes: a memory, a processor, and a vehicle control program stored in the memory and executable on the processor. When the vehicle control program is executed by the processor, the steps of the vehicle control method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a vehicle control program, and when the vehicle control program is executed by a processor, the steps of the vehicle control method according to any one of claims 1 to 7 are implemented.