Service intention recognition method based on item semantic knowledge and electronic equipment
By building an item semantic knowledge base and adaptive fusion technology, we solve the problem of home service robots being unable to understand human service requests, improve the accuracy of service intent recognition and the flexibility of the system, and achieve more accurate semantic understanding.
Patent Information
- Application Number
- CN202310239382.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-14
- Publication Date
- 2024-09-20
AI Technical Summary
Existing home service robot language command understanding systems cannot accurately understand human service requests, mainly because they ignore the inherent semantic knowledge in the home environment, resulting in the robot being unable to provide rich decision-making information.
By building a semantic knowledge base of items, using natural language processing and cross-modal information fusion technology, we extract the modal features of environmental information and language text information, and combine multi-category corpus information for semantic supplementation to build a semantic knowledge representation database and use automatic Adapt the fusion method to improve the accuracy of service intent recognition.
It improves the accuracy of home service robots in understanding human intentions, provides richer item knowledge information, improves the accuracy of semantic understanding, and has scalability and high flexibility, and can quickly adapt to the semantic construction of newly added items.
Smart Images

Figure CN118673153A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of artificial intelligence technology, and specifically relates to a service intention recognition method and electronic device based on object semantic knowledge. Background Art
[0002] At present, service robot technology has become a hot research topic in the field of robotics and human-computer interaction. The continuous breakthrough of related technical bottlenecks will surely promote the transformation and development of the new generation of artificial intelligence. The vigorous research and development of service robot technology can, on the one hand, alleviate the increasingly serious shortage of nanny-type labor, and on the other hand, cater to people's desire for smart life in the information age. Furthermore, the ultimate goal of service robots for home environment applications is to achieve human-machine integration. Therefore, how to achieve natural interaction between humans and home service robots has become a decisive factor in whether they can be accepted by residents in the future.
[0003] Natural language is the most natural and comfortable way for humans to express themselves, and is the most ideal medium for humans to interact naturally with home service robots. Although existing natural language processing technologies such as speech recognition and machine translation have achieved high recognition accuracy in both academia and industry, these technologies cannot be directly transplanted into command understanding systems for home task execution. On the one hand, language command understanding systems for home tasks need to establish a connection between service intent and home environment to provide necessary decision-making information for the execution of robot service tasks; on the other hand, language commands for home tasks generally have serious semantic deficiencies, which is a severe challenge for traditional semantic understanding systems.
[0004] Research has found that most of the current language command understanding systems of home service robots ignore the inherent semantic knowledge in the home environment, resulting in the robot's inability to accurately understand human service requests and unable to provide rich decision-making information for the robot's subsequent behavior. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a service intention recognition method and electronic device based on object semantic knowledge, which provides prior knowledge for the robot's service intention recognition by constructing a semantic knowledge base of objects, thereby improving the accuracy of the home service robot's service intention recognition, and further solving the technical problems involved in the background technology.
[0006] In order to solve the above technical problems, this application is implemented as follows:
[0007] The present application embodiment provides a service intention recognition method based on object semantic knowledge, including:
[0008] 1) Obtain environmental information in the robot’s field of view;
[0009] 2) Receive user service requests and obtain corresponding language text information using natural language processing technology;
[0010] 3) extracting modal features of the environmental information and the language text information, inputting them into a cross-modal information fusion module, and obtaining a service intent representation R with context information;
[0011] 4) Collect a list of potential items related to the service task, use multi-category corpus information to semantically supplement the items in the list, and use the pre-trained language model to extract the corresponding text features A = [A1, ..., A n ], where A i Represents the text features corresponding to the i-th category of corpus information. Using the text features from different categories of corpus information, a semantic knowledge representation library about objects is constructed. As prior knowledge for service intention identification;
[0012] 5) Adaptively fuse the service intention representation with contextual information and the semantic knowledge representation library of items to obtain the service intention representation R′ with item semantic priors;
[0013] 6) Input the service intent representation with item semantic prior into the service intent decoding module to obtain the service intent corresponding to the user service request.
[0014] Optionally, in step 2), the user's service request is a voice signal.
[0015] Optionally, in step 2), the obtaining corresponding language text information by using natural language processing technology includes:
[0016] The speech recognition network is used to transcribe the received speech signal into language text information.
[0017] Optionally, in step 3), extracting modal features of the environmental information and the language text information includes:
[0018] The image feature extraction network is used to extract the environmental visual features of the environmental information; the pre-trained language model is used to extract the text feature sequence of the language text information.
[0019] Optionally, in step 3), the input cross-modal information fusion module is used to obtain a service intent representation R with context information, including:
[0020] 3.1) Based on the input environmental visual features, linear transformation is used to perform feature dimension reduction processing;
[0021] 3.2) For the input text feature sequence, first use 1D-CNN to perform convolution operation, enhance the local features of the text feature sequence through the local correlation between adjacent positions of the text feature sequence, then use the maximum pooling operation to select the maximum value in the text feature sequence as the text feature of the language text information, and finally use linear transformation to perform feature dimensionality reduction processing on this value;
[0022] 3.3) The feature splicing method is used to fuse the reduced-dimensional environmental visual features and text feature sequences, so that the same semantic concept can achieve information complementary enhancement through multimodal fusion, and the fused low-dimensional features are upgraded to a feature space with a fixed-size dimension using linear transformation to obtain the service intent representation R with contextual information.
[0023] Optionally, in step 5), the adaptive fusion method is used to obtain the service intention representation R′ with item semantic priors, including:
[0024] 5.1) Obtain the semantic similarity coefficient between the service intention representation with contextual information and the text features corresponding to various types of corpus information in the semantic knowledge representation library of the item
[0025] 5.2) Normalize the semantic similarity system to eliminate the inductive bias caused by the imbalance in the quantity of knowledge of different categories of corpus. The calculation formula is:
[0026]
[0027] Where α i is the semantic similarity coefficient of the text features corresponding to the i-th type of corpus information in the service intention representation and the semantic prior knowledge representation library of the item;
[0028] 5.3) Obtain the service intention representation R′ with item semantic priors, and the calculation formula is:
[0029]
[0030] Optionally, in step 6), the service intent representation with item semantics a priori is input into the service intent decoding module to obtain the service intent corresponding to the user service request, including:
[0031] 6.1) Based on the service intent representation with item semantic prior, regress and output the confidence score of the action category corresponding to the service request;
[0032] 6.2) The service intent representation with object semantics prior and the action category confidence score obtained by regression jointly determine the object category that the service request needs to interact with. The calculation formula is:
[0033] Object=max(objr +obj a )
[0034] Where obj r represents the probability of the required interactive object category obtained by regression based on the service intent representation with item semantic priors; obj a Represents the probability of the object category required for interaction obtained by regressing the action category predicted in the previous step;
[0035] 6.3) The predicted action category corresponding to the service request and the object category that the action category needs to interact with are output as the service intent corresponding to the service request.
[0036] Optionally, in step 6), the service intent consists of the action type required to perform the service task and the category of items interacted with to perform the service task.
[0037] An embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction implements the steps of the described method when executed by the processor.
[0038] An embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the described method are implemented.
[0039] The beneficial effects of this application are as follows:
[0040] 1. This application provides a technology for constructing semantic knowledge of household items. For common items in household scenes, multi-category corpus information is used to supplement the semantics of the items, and a pre-trained language model is used to extract corresponding text features, thereby obtaining a semantic knowledge representation library about the items;
[0041] 2. This application provides an adaptive fusion technology that integrates the prior knowledge of household items into the service robot language command understanding process, provides external knowledge to the service robot during semantic understanding, and improves the accuracy of the household service robot in understanding human intentions;
[0042] 3. The object semantic knowledge construction technology provided by this application introduces the semantic information of objects from the perspective of multi-category corpus, which can provide richer object knowledge information for the identification of subsequent service intentions;
[0043] 4. The adaptive fusion technology provided in this application enables the model to adaptively determine the proportion of prior knowledge of different types of corpora, thereby improving the accuracy of service intent recognition;
[0044] 5. The household item semantic construction technology provided by this application has the advantage of strong scalability and can quickly construct semantics for newly added items without rebuilding the entire knowledge base, which greatly improves the flexibility and practicality of the system;
[0045] 6. The technology provided in this application can quickly realize the semantic construction and management of household items by utilizing easily accessible corpus information (with a large number of public data sets) without much human intervention, thereby improving the practicality and convenience of the technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 It is a flowchart of a method for identifying service intention based on semantic knowledge of household items provided in an embodiment of the present application;
[0047] Figure 2 It is a structural framework diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0049] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0050] The following, in conjunction with the accompanying drawings, describes in detail the service intention recognition method based on semantic knowledge of household items provided by the embodiment of the present application through specific embodiments and their application scenarios.
[0051] See also Figure 1 , is a flow chart of a method for identifying service intention based on semantic knowledge of household items provided in an embodiment of the present application, such as Figure 1 As shown, the service intention recognition method based on household item semantic knowledge includes the following steps:
[0052] 1) Obtain environmental information in the robot’s field of view;
[0053] 2) Receive user service requests and obtain corresponding language text information using natural language processing technology;
[0054] 3) extracting modal features of the environmental information and the language text information, inputting them into a cross-modal information fusion module, and obtaining a service intent representation R with context information;
[0055] 4) Collect a list of potential items related to the service task, use multi-category corpus information to semantically supplement the items in the list, and use the pre-trained language model to extract the corresponding text features A = [A1, ..., A n ], where A n Represents the text features corresponding to the nth category of corpus information. Using the text features from different categories of corpus information, a semantic knowledge representation library about objects is constructed. As prior knowledge for service intention identification;
[0056] 5) Adaptively fuse the service intention representation with contextual information and the semantic knowledge representation library of items to obtain the service intention representation R′ with item semantic priors;
[0057] 6) Input the service intention representation with item semantics prior into the service intention decoding module to obtain the service intention corresponding to the user service request, wherein the service intention consists of the action type required to perform the service task and the item category interacted with to perform the service task.
[0058] Wherein, in step 2), the user's service request is a voice signal.
[0059] The method of obtaining the corresponding language text information by using natural language processing technology includes: using a speech recognition network to transcribe the received speech signal into language text information T, wherein the language text information T is expressed by formula (1):
[0060] T=[w1,...,w| T |] (1)
[0061] Among them, w i represents the i-th word in the transcribed sentence sequence, and |T| is the number of words in the text information.
[0062] In some specific embodiments, the speech recognition network uses a Whisper network.
[0063] In step 3), extracting modal features of the environmental information and the language text information includes:
[0064] The environmental visual feature I of the environmental information is extracted using the image feature extraction network. The environmental visual feature I is expressed by formula (2):
[0065]
[0066] Among them, C represents the number of channels of the image, H and W represent the length and width of the image respectively;
[0067] In some embodiments, the image feature extraction network uses a ResNet series network.
[0068] Extract text feature sequence F of language text information using pre-trained language model T =[f1, ..., f |T| ], where f i is the i-th word ω in the text information i The corresponding text features.
[0069] Among them, the language command feature F T It is expressed by formula (3):
[0070]
[0071] Among them, M is the size of the text feature vector, and |T| is the length of the text feature sequence.
[0072] In some embodiments, the pre-trained language model uses a Transformer series network, and the Transformer series network uses a "bert-base-uncased" model.
[0073] Furthermore, in step 3), the input cross-modal information fusion module obtains the service intention representation R with context information, including:
[0074] 3.1) Based on the input environmental visual features, linear transformation is used to perform feature dimension reduction processing;
[0075] 3.2) For the input text feature sequence, first use 1D-CNN to perform convolution operation, enhance the local features of the text feature sequence through the local correlation between adjacent positions of the text feature sequence, then use the maximum pooling operation to select the maximum value in the text feature sequence as the text feature of the language text information, and finally use linear transformation to perform feature dimensionality reduction processing on this value;
[0076] 3.3) The feature splicing method is used to fuse the reduced-dimensional environmental visual features and text feature sequences, so that the same semantic concept can achieve information complementary enhancement through multimodal fusion, and the fused low-dimensional features are upgraded to a feature space with a fixed-size dimension using linear transformation to obtain the service intent representation R with contextual information.
[0077] In step 5), the adaptive fusion method is used to obtain the service intention representation R′ with item semantic priors, including:
[0078] 5.1) Obtain the semantic similarity coefficient between the service intention representation with contextual information and the text features corresponding to various types of corpus information in the semantic knowledge representation library of the item
[0079] 5.2) Normalize the semantic similarity system to eliminate the inductive bias caused by the imbalance in the quantity of knowledge of different categories of corpus. The calculation formula is:
[0080]
[0081] Where α i is the semantic similarity coefficient of the text features corresponding to the i-th type of corpus information in the service intention representation and the semantic prior knowledge representation library of the item;
[0082] 5.3) Obtain the service intention representation R′ with item semantic priors, and the calculation formula is:
[0083]
[0084] In step 6), the service intent representation with the item semantics prior is input into the service intent decoding module to obtain the service intent corresponding to the user service request, including:
[0085] 6.1) Based on the service intent representation with item semantic prior, regress and output the confidence score of the action category corresponding to the service request;
[0086] 6.2) The service intent representation with object semantics prior and the action category confidence score obtained by regression jointly determine the object category that the service request needs to interact with. The calculation formula is:
[0087] Object = max(obj r +obj a )
[0088] Where obj r represents the probability of the required interactive object category obtained by regression based on the service intent representation with item semantic priors; obj a Represents the probability of the object category required for interaction obtained by regressing the action category predicted in the previous step;
[0089] 6.3) The predicted action category corresponding to the service request and the object category that the action category needs to interact with are output as the service intent corresponding to the service request.
[0090] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0091] like Figure 2 As shown, an embodiment of the present application further provides an electronic device 100, which includes a processor 101, a memory 102, and a program or instruction stored in the memory 102 and executable on the processor 101. When the program or instruction is executed by the processor 101, each process of the above-mentioned service intention recognition method based on semantic knowledge of household items is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0092] It should be noted that the first electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device mentioned above.
[0093] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 101 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 2 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0094] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned service intention identification method based on semantic knowledge of household items is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0095] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0096] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned service intention identification method based on semantic knowledge of household items. The same technical effect can be achieved, and it will not be repeated here to avoid repetition.
[0097] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0098] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0099] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal (which can be a robot, a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0100] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A service intention recognition method based on object semantic knowledge, characterized in that: include: 1) Obtain environmental information in the robot’s field of view; 2) Receive user service requests and obtain corresponding language text information using natural language processing technology; 3) extracting modal features of the environmental information and the language text information, inputting them into a cross-modal information fusion module, and obtaining a service intent representation R with context information; 4) Collect a list of potential items related to the service task, use multi-category corpus information to semantically supplement the items in the list, and use the pre-trained language model to extract the corresponding text features A = [A1, ..., A n ], where A i Represents the text features corresponding to the i-th category of corpus information. Using the text features from different categories of corpus information, a semantic knowledge representation library about objects is constructed. As prior knowledge for service intention identification; 5) Adaptively fuse the service intention representation with contextual information and the semantic knowledge representation library of items to obtain the service intention representation R′ with item semantic priors; 6) Input the service intent representation with item semantic prior into the service intent decoding module to obtain the service intent corresponding to the user service request.
2. The method according to claim 1, characterized in that In step 2), the user's service request is a voice signal.
3. The method according to claim 2, characterized in that In step 2), the use of natural language processing technology to obtain corresponding language text information includes: The speech recognition network is used to transcribe the received speech signal into language text information.
4. The method according to claim 1, characterized in that: In step 3), extracting modal features of the environmental information and the language text information includes: The image feature extraction network is used to extract the environmental visual features of the environmental information; the pre-trained language model is used to extract the text feature sequence of the language text information.
5. The method according to claim 4, characterized in that In step 3), the input cross-modal information fusion module obtains the service intention representation R with context information, including: 3.1) Based on the input environmental visual features, linear transformation is used to perform feature dimension reduction processing; 3.2) For the input text feature sequence, first use 1D-CNN to perform convolution operation, enhance the local features of the text feature sequence through the local correlation between adjacent positions of the text feature sequence, then use the maximum pooling operation to select the maximum value in the text feature sequence as the text feature of the language text information, and finally use linear transformation to perform feature dimensionality reduction processing on this value; 3.3) The feature splicing method is used to fuse the reduced-dimensional environmental visual features and text feature sequences, so that the same semantic concept can achieve information complementary enhancement through multimodal fusion, and the fused low-dimensional features are upgraded to a feature space with a fixed-size dimension using linear transformation to obtain the service intent representation R with contextual information.
6. The method according to claim 1, characterized in that In step 5), the adaptive fusion method is used to obtain the service intention representation R′ with item semantic priors, including: 5.1) Obtain the semantic similarity coefficient between the service intention representation with contextual information and the text features corresponding to various types of corpus information in the semantic knowledge representation library of the item 5.2) Normalize the semantic similarity system to eliminate the inductive bias caused by the imbalance in the quantity of knowledge of different categories of corpus. The calculation formula is: Where α i is the semantic similarity coefficient of the text features corresponding to the i-th type of corpus information in the service intention representation and the semantic prior knowledge representation library of the item; 5.3) Obtain the service intention representation R′ with item semantic priors, and the calculation formula is:
7. The method according to claim 6, characterized in that In step 6), the service intent representation with the item semantics prior is input into the service intent decoding module to obtain the service intent corresponding to the user service request, including: 6.1) Based on the service intent representation with item semantic prior, regress and output the confidence score of the action category corresponding to the service request; 6.2) The service intent representation with object semantics prior and the action category confidence score obtained by regression jointly determine the object category that the service request needs to interact with. The calculation formula is: Object=max(obj r +obj a ) Where obj r represents the probability of the required interactive object category obtained by regression based on the service intent representation with item semantic priors; obj a Represents the probability of the object category required for interaction obtained by regressing the action category predicted in the previous step; 6.3) The predicted action category corresponding to the service request and the object category that the action category needs to interact with are output as the service intent corresponding to the service request.
8. The method according to claim 7, characterized in that In step 6), the service intent is composed of the action type required to perform the service task and the category of items interacted with to perform the service task.
9. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction implements the steps of the method according to any one of claims 1 to 8 when executed by the processor.
Citation Information
Patent Citations
Multi-modal semantic recognition service access method based on artificial intelligence
CN112201228A
Service robot interaction method and system based on multiple modes and storage medium
CN113299287A
Multi-modal emotion recognition method and device and computer readable storage medium
CN115374854A
Automated assistant interaction prediction using fusion of visual and audio input
US20220310094A1
Cloud robot system, cloud server, robot control module, and robot
WO2022116716A1
Cited By
Task execution method and device, equipment, computer storage medium and product
CN122116886A
