Command response method, wearable device, terminal, server and storage medium

By establishing a command response method between wearable devices, smart terminals and servers, and using AI models to assist in processing user commands, the problem of limited functionality of wearable devices is solved, and various user needs are met and performance improved.

CN118502819BActive Publication Date: 2024-10-22BEIJING SUPERHEXA CENTURY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410971783.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-10-22
Estimated Expiration
2044-07-19

AI Technical Summary

Technical Problem

The small and lightweight design of wearable devices limits the number and functions of internal hardware components, making it difficult to meet users' diverse needs for functionality and performance.

Method used

By establishing an instruction response method between wearable devices, smart terminals and servers, AI models are used to assist in processing user instructions, and distribution and response to instructions that cannot be executed locally are achieved to meet a variety of user needs.

Benefits of technology

It effectively expands the functions of wearable devices, can respond to a variety of user instructions, meet users' diverse needs, and improves device performance and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118502819B_ABST
    Figure CN118502819B_ABST
Patent Text Reader

Abstract

The present disclosure provides a command response method, a wearable device, a terminal, a server and a storage medium, which belongs to the technical field of electronic equipment. The method includes: a first device sends a first user command to a second device; when the first user command includes a first type of command, the second device sends a second user command to a third device; when the second user command includes a second type of command, the third device generates a first request message, requests a reply message from an AI model based on the first request message, and generates a first response message based on the reply message of the AI ​​model; the third device sends the first response message to the second device, and when the second device receives the first response message, the second device sends the first response message to the first device, so that the first device provides the first response message to the target user. The command response method, wearable device, terminal, server and storage medium provided by the present disclosure can meet the various needs of users for wearable devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure belongs to the technical field of electronic devices, and more specifically, relates to a command response method, a wearable device, a terminal, a server and a storage medium. Background Art

[0002] Wearable devices refer to smart devices that can be worn directly on the body, such as the head, chest, wrist, etc., to interact with the user. Wearable devices are small, lightweight, intelligent, highly interactive and real-time, and play an important role in health management, life assistance, entertainment experience, etc., providing users with a more intelligent, convenient and personalized life experience.

[0003] Wearable devices need to be small and light so that users can wear them comfortably for long periods of time. However, this small size limits the number and size of hardware components that can be accommodated inside the device, thereby limiting its functionality and performance. With the rapid development of technology and the improvement of people's living standards, people have higher and higher requirements for wearable devices. Therefore, it is urgent to improve the functions of wearable devices to meet more user needs. Summary of the invention

[0004] The purpose of the present disclosure is to provide a command response method, a wearable device, a terminal, a server and a storage medium to meet various needs of users for wearable devices.

[0005] According to a first aspect of an embodiment of the present disclosure, a command response method is provided, including:

[0006] The first device sends a first user instruction of the target user to the second device;

[0007] The second device sends the second user instruction to the third device when the first user instruction includes the first category instruction; the second user instruction is the first category instruction included in the first user instruction, and the first category instruction is an instruction that cannot be executed by the second device;

[0008] When the second user instruction includes the second type of instruction, the third device generates first request information corresponding to the third user instruction, requests reply information from the external AI model based on the first request information, and generates first response information based on the reply information of the AI ​​model;

[0009] The third user instruction is a second type of instruction included in the second user instruction; the second type of instruction is an instruction to which the third device cannot respond;

[0010] The third device sends the first response information to the second device, and when receiving the first response information, the second device sends the first response information to the first device, so that the first device provides the first response information to the target user.

[0011] According to a second aspect of an embodiment of the present disclosure, a wearable device is provided, comprising a first memory, a first processor, and a computer program stored in the first memory and running on the first processor, wherein the first processor implements the steps of the first device in the above-mentioned instruction response method when executing the computer program.

[0012] According to a third aspect of an embodiment of the present disclosure, a terminal is provided, comprising a second memory, a second processor, and a computer program stored in the second memory and running on the second processor, wherein the second processor implements the steps of the second device in the above-mentioned instruction response method when executing the computer program.

[0013] According to a fourth aspect of an embodiment of the present disclosure, a server is provided, comprising a third memory, a third processor, and a computer program stored in the third memory and running on the third processor, wherein the third processor implements the steps of the third device in the above-mentioned instruction response method when executing the computer program.

[0014] According to a fifth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned instruction response method are implemented.

[0015] The command response method, wearable device, terminal, server and storage medium provided by the embodiments of the present disclosure have the following beneficial effects:

[0016] In the disclosed embodiment, the first device is a wearable device, the second device can be a smart terminal such as a mobile phone or a tablet computer, and the third device can be a server. When the target user sends a first user instruction to the first device, the first device can forward the first user instruction to the second device. After the second device receives the first user instruction, the second device can directly execute other first user instructions other than the first type of instructions (instructions that the second device cannot execute); for the first type of instructions, the second device can send it to the third device as a second user instruction. After the second device sends the second user instruction to the third device, the third device can directly respond to other second user instructions other than the second type of instructions (instructions that the third device cannot execute); for the second type of instructions, the third device can use it as a third user instruction, and generate a first request message based on the third user instruction, and request a reply message from the external AI model. When the AI ​​model returns the reply message to the third device, the third device can generate a first response message based on the reply message, and forward the first response message to the first device via the second device, and then the first device provides the first response message to the target user.

[0017] In the disclosed embodiment, through the interaction between the first device, the second device, the third device and the AI ​​model, various user instructions can be responded to and various user demands for wearable devices can be met. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 A schematic diagram of an application scenario of a command response method provided in an embodiment of the present disclosure;

[0020] Figure 2 A flowchart of a command response method provided by an embodiment of the present disclosure;

[0021] Figure 3 A structural block diagram of a wearable device provided in one embodiment of the present disclosure;

[0022] Figure 4 A structural block diagram of a terminal provided in an embodiment of the present disclosure;

[0023] Figure 5 A structural block diagram of a server provided in one embodiment of the present disclosure. DETAILED DESCRIPTION

[0024] In the following description, specific details such as specific system structures and technologies are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present disclosure. However, it should be clear to those skilled in the art that the present disclosure may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obstructing the description of the present disclosure with unnecessary details.

[0025] In order to make the purpose, technical solutions and advantages of the present disclosure more clear, specific embodiments will be described below in conjunction with the accompanying drawings.

[0026] Please refer to Figure 1 , Figure 1 This is a schematic diagram of an application scenario of a command response method provided in an embodiment of the present disclosure. The method of this embodiment can be implemented by the interaction of applications in the wearable device 120, the terminal 130, and the server 140. The wearable device 120 can be smart glasses or a smart bracelet, etc. The wearable device 120 receives the user command issued by the user 110. At the same time, the wearable device 120 can communicate with the server 130 through the app in the terminal 130. The smart terminal can be a mobile phone or a tablet computer, etc. After receiving the user command issued by the user 110, the wearable device 120 can forward the user command to the app in the terminal 130, and the app in the terminal 130 forwards the user command to the server 140. The server 140 calls the AI ​​model 150 to assist in responding to the user command.

[0027] in, Figure 1 The wearable device 120 and the terminal 130 are only some of the devices cited as examples. In the present disclosure, the terminal 120 is not limited to the Figure 1 The server 140 mentioned above can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, vehicle-road collaboration, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0028] Please refer to Figure 2 , Figure 2 A flowchart of a command response method provided in an embodiment of the present disclosure, the method comprising:

[0029] S201: The first device sends a first user instruction of a target user to the second device.

[0030] In this embodiment, the first device is a wearable device, the second device can be a smart terminal such as a mobile phone or a tablet computer, and the target user is a user who uses the wearable device.

[0031] The user can input a first user instruction to the first device through voice control, touch control, gesture control, etc. The first user instruction can be audio playback, making or receiving calls, data backup, product recommendation, etc. The second device has an app installed, and the first device can forward the first user instruction to the app in the second device, and the app assists in responding to the first user instruction.

[0032] S202: When the first user instruction includes the first category instruction, the second device sends the second user instruction to the third device; the second user instruction is the first category instruction included in the first user instruction, and the first category instruction is an instruction that cannot be executed by the second device.

[0033] In this embodiment, the third device may be a server, and the instructions that the second device may execute include opening or closing an application, opening or closing a device (such as a smart home, etc.), executing a control action, etc. The first type of instructions in the first user instructions are instructions that the second device cannot execute, such as data backup, product recommendation, etc. After the second device receives the first user instructions, for other first user instructions other than the first type of instructions (such as making a phone call, opening a device, etc.), the second device may directly execute; for the first type of instructions, the second device may send it as a second user instruction to the third device, and the third device may assist in executing the second user instruction.

[0034] S203: When the second user instruction includes the second type of instruction, the third device generates first request information corresponding to the third user instruction, requests reply information from the external AI model based on the first request information, and generates first response information based on the reply information of the AI ​​model.

[0035] The third user instruction is a second-category instruction included in the second user instruction; the second-category instruction is an instruction to which the third device cannot respond.

[0036] In this embodiment, the instructions that the third device can respond to include data request, data backup, etc., wherein when the second device sends a data request instruction to the third device, the third device can return the corresponding data, and when the second device sends a data backup instruction to the third device, the third device can store the corresponding data. The second type of instructions in the second user instructions are instructions that the third device cannot respond to, such as product recommendations, etc. After the third device receives the second user instructions, the third device can directly respond to other second user instructions other than the second type of instructions (such as data request, data backup, etc.); for the second type of instructions, the third device can treat it as a third user instruction, and generate a first request message based on the third user instruction, request a reply message from the external AI model, and the external AI model assists in responding to the third user instruction.

[0037] After the AI ​​model returns reply information to the third device, the third device can generate first response information based on the reply information to respond to the first user instruction.

[0038] Exemplarily, when the first user instruction sent by the first device to the second device includes audio playback, making and receiving calls, data backup instructions, and product recommendation instructions, the second device can execute the audio playback instructions and the making and receiving calls instructions, but cannot execute the data backup instructions and the product recommendation instructions. At this time, the second device can send the data backup instructions and the product recommendation instructions as the second user instructions to the third device. The third device can execute the data backup instructions, but cannot execute the product recommendation instructions. Therefore, the third device can use the product recommendation instructions as the third user instructions, and generate the first request information based on the third user instructions, requesting reply information from the external AI model, and the external AI model analyzes the product purchase big data to recommend suitable products to the user.

[0039] The generation of the first request information corresponding to the third user instruction may be described in detail as follows:

[0040] A second prompt word is generated based on the third user instruction, and a first request information corresponding to the third user instruction is generated based on the second prompt word. The second prompt word can indicate the direction and focus of the reply for the AI ​​model to generate accurate reply information.

[0041] The second prompt word can be obtained by extracting keywords from the third user instruction. For example, the third user instruction is "recommend a mobile phone priced between 3,000 and 5,000 yuan," where the keywords may be "mobile phone" and "3,000 to 5,000 yuan." The keyword can be used as the second prompt word, and the first request information is generated based on the second prompt word and the communication protocol between the third device and the AI ​​model.

[0042] S204: The third device sends the first response information to the second device. When receiving the first response information, the second device sends the first response information to the first device, so that the first device provides the first response information to the target user.

[0043] In this embodiment, after the third device generates the first response information, it can forward the first response information to the first device via the second device, and then the first device provides the first response information to the target user, thereby completing the response to the first user's instruction.

[0044] It can be concluded from the above that in the embodiments of the present disclosure, through the interaction of the first device, the second device, the third device and the AI ​​model, various user instructions can be responded to and various user demands for wearable devices can be met.

[0045] In one embodiment of the present disclosure, the reply information of the AI ​​model includes: first reply information to the third user instruction and derivative instruction information to the third user instruction.

[0046] Requesting reply information from an external AI model based on the first request information, and generating first response information based on the reply information of the AI ​​model, including:

[0047] The third device executes the request step multiple times until the correlation between the derived instruction information returned by the AI ​​model and the first request information is less than the first correlation; the request step includes: the third device requests second reply information from the AI ​​model based on the derived instruction information returned by the AI ​​model.

[0048] The third device generates second request information based on the first reply information and all second reply information returned by the AI ​​model; the second request information is used to instruct the AI ​​model to summarize and analyze the first reply information and all second reply information returned by the AI ​​model.

[0049] The third device determines the reply information of the AI ​​model to the second request information as the first response information.

[0050] In this embodiment, a specific implementation method for generating a first response message based on the reply information of the AI ​​model is given. Among them, the derived instruction information is a new instruction given by the AI ​​model based on the analysis of the third user instruction. The new instruction can further clarify the user's needs and concerns, so as to provide a more accurate and useful reply. For example, when the third user instruction includes "the resolution of the display screen", in addition to returning the specific interpretation of the resolution of the display screen, the AI ​​model may give new questions (derivative instruction information): "How to improve the resolution of the display screen", "Recommend several brands with higher resolutions" to clarify the specific needs of the user.

[0051] On this basis, after receiving the first reply information returned by the AI ​​model for the third user's instruction, the third device will also perform multiple request steps. In each request step, the third device requests new second reply information from the AI ​​model for the derived instruction information returned by the AI ​​model. For example, in the first request step, the third device can select a derivative instruction information (such as "how to improve the resolution of the display screen") from multiple derivative instruction information such as "how to improve the resolution of the display screen" and "recommend several brands with higher resolutions", and ask the AI ​​model based on the derivative instruction information, that is, request the second reply information from the AI ​​model. The second reply information returned by the AI ​​model may include new derivative instruction information. In the second request step, the third device requests new second reply information from the AI ​​model for the new derivative instruction information, and repeats this process until the correlation between the derivative instruction information contained in the second reply information and the first request information is less than the first correlation. Multiple second reply information can be obtained through the above process. Among them, the correlation between the derivative instruction information and the first request information is used to characterize the similarity between the derivative instruction information and the first request information. Specifically, the derivative instruction information and the first request information can be converted into vectors respectively, and then the similarity between the two vectors is calculated, and the similarity is used as the correlation between the two vectors. The first correlation degree is a preset constant and can be set according to actual needs.

[0052] After executing multiple request steps, the third device sends a second request message to the AI ​​model, requesting the AI ​​model to summarize and analyze the first reply message and all second reply messages. After obtaining the summary analysis result returned by the AI ​​model, the third device returns the summary analysis result as the first response message to the second device.

[0053] The process of the AI ​​model summarizing and analyzing the first reply information and all the second reply information can be described in detail as follows:

[0054] Use natural language processing technology to perform lexical analysis, syntactic analysis and semantic analysis on the text in the first reply information and all the second reply information to understand the meaning of each sentence; extract the main topics in the first reply information and all the second reply information through algorithms such as Dirichlet allocation (LDA) or methods based on deep learning; identify and extract important information in the first reply information and all the second reply information, such as time, place, people, events, etc.; classify the first reply information and all the second reply information into different categories according to their topics and contents, such as work, life, entertainment, etc.; integrate the extracted key information and classification results to form a preliminary inductive framework; based on the integrated information, use a generative model to generate a concise and clear summary to summarize the main contents of the first reply information and all the second reply information.

[0055] From the above, it can be concluded that this embodiment can expand and extend the third user instructions through multiple rounds of interaction between the third device and the AI ​​model, deeply explore the user's potential needs, and promote more effective communication and information acquisition.

[0056] In one embodiment of the present disclosure, the third device requests the AI ​​model for second reply information based on the derived instruction information returned by the AI ​​model, including:

[0057] The third device filters the first derived instruction information from the multiple derived instruction information returned by the AI ​​model; the first derived instruction information is the instruction information with the greatest correlation with the first request information among the multiple derived instruction information.

[0058] A first prompt word is generated based on the first derived instruction information, and second reply information is requested from the AI ​​model based on the first prompt word.

[0059] In this embodiment, during each round of interaction between the third device and the AI ​​model, the third device may select the first derived instruction information with the greatest correlation with the first request information from the multiple derived instruction information returned by the AI ​​model, generate the first prompt word based on the first derived instruction information, and request the second reply information from the AI ​​model. The process of generating the first prompt word based on the first derived instruction information is the same as the process of generating the second prompt word, which will not be described in detail here.

[0060] In this embodiment, the third device generates request information based on the first derivative instruction information that has the greatest correlation with the first request information, and requests second reply information from the AI ​​model. This can ensure the correlation between multiple derivative instruction information and the first request information, avoid introducing irrelevant issues and causing the generated reply information to be inconsistent with the user's intention.

[0061] In one embodiment of the present disclosure, the instruction response method further includes:

[0062] The third device extracts the first intent information in the derived instruction information returned by the AI ​​model and the second intent information in the second request information; and determines the similarity between the first intent information and the second intent information as the correlation between the derived instruction information returned by the AI ​​model and the first request information.

[0063] In this embodiment, a specific implementation method for calculating the correlation between the derived instruction information returned by the AI ​​model and the first request information is given. The first intention information in the derived instruction information and the second intention information in the second request information can be first extracted, and then the similarity between the first intention information and the second intention information can be calculated, and the similarity can be used as the correlation between the derived instruction information and the first request information.

[0064] Among them, the intention information extraction can be implemented using the existing naive Bayes, support vector machine (SVM), and deep learning models, and the similarity calculation can be implemented using the existing Euclidean distance, cosine similarity and other methods, without specific limitations here.

[0065] In this embodiment, by calculating the similarity between the first intent information and the second intent information to obtain the correlation between the derived instruction information and the first request information, the user's real needs can be understood more accurately to avoid misunderstandings caused by subtle differences in instruction expressions.

[0066] In one embodiment of the present disclosure, generating first request information corresponding to a third user instruction, requesting reply information from an external AI model based on the first request information, and generating first response information based on the reply information of the AI ​​model include:

[0067] The third device generates a first request message based on a third user instruction and a specified first request template, requests third reply information from the AI ​​model based on the first request message, and generates multiple third request messages based on the third reply information and the specified second request template.

[0068] Request fourth reply information from the AI ​​model based on the multiple third request information.

[0069] The third device generates fourth request information based on all fourth reply information returned by the AI ​​model; the fourth request information is used to instruct the AI ​​model to summarize and analyze the fourth reply information.

[0070] The third device determines the reply information of the AI ​​model to the fourth request information as the first response information.

[0071] In this embodiment, another specific implementation method of generating first response information based on reply information of an AI model is provided.

[0072] Among them, the specified first request template and the second request template can be pre-set templates. Taking the process of generating the first request information based on the third user instruction and the specified first request template as an example, the third device extracts keywords from the third user instruction, and then fills the keywords into the pre-set template to generate a prompt word corresponding to the third user instruction, and uses the above prompt word as the first request information.

[0073] For example, when the third user instruction contains the question "how to improve writing skills", the third device obtains the keyword "improve writing skills" based on the question, and the first request template is "...what methods are there?". The keyword corresponding to the third user instruction is filled into the first request template to obtain the first request information "What methods are there to improve writing skills?". The third device sends the first request information to the AI ​​model to request the third reply information of the AI ​​model. The third reply information returned by the AI ​​model contains multiple methods such as "read widely", "write more and practice more", and "collect materials". The second request template is "How to implement the first method specifically? How to implement the second method specifically? ..., How to implement the Nth method specifically?". The third device can generate a fourth request information (for example, how to implement the first method specifically?) based on the third reply information and the second request template to ask questions about the above multiple methods and obtain multiple fourth reply information; after obtaining the fourth reply information returned by the AI ​​model, the third device can generate a fourth request information based on all the fourth reply information returned by the AI ​​model, requesting the AI ​​model to summarize and analyze all the fourth reply information, and after obtaining the summary analysis result returned by the AI ​​model, the third device returns the summary analysis result as the first response information to the second device.

[0074] Through the above process, when the third user instruction includes the question “how to improve writing skills”, the first response information returned by the third device is as follows:

[0075] Here are some effective ways to improve your writing skills:

[0076] (1) Read extensively:

[0077] Read excellent works of various types and styles, including novels, essays, poems, academic articles, etc. Through reading, you can learn different writing skills, vocabulary usage, sentence structure and narrative methods. For example, reading XX's novels can help you appreciate his concise and powerful narrative style, and reading XX's "XX" can help you learn exquisite metaphors and humorous language.

[0078] (2) Write more and practice more:

[0079] Practice writing regularly, whether it is a diary, a short essay or a story. Only through constant practice can you gradually improve your writing proficiency and expression skills. For example, set yourself a weekly writing task and stick to it.

[0080] (3) Collect materials:

[0081] Develop the habit of observing life, recording inspiration and collecting information. The little details in life, other people's stories, news events, etc. can all become materials for writing. For example, carry a small notebook with you and record interesting ideas at any time.

[0082] In this embodiment, through multiple rounds of interaction between the third device and the AI ​​model, the user instructions are gradually refined, which can provide the user with a practical solution.

[0083] In one embodiment of the present disclosure, the instruction response method further includes:

[0084] The third device extracts intent information of the third user instruction, and selects a first request template and a second request template from multiple request templates based on intent classification of the intent information.

[0085] In this embodiment, considering that different user intentions require different questioning methods, multiple templates can be pre-set, and the corresponding template is selected as the designated request template based on the intention classification of the third user instruction, thereby improving the accuracy of the questioning.

[0086] Among them, the extraction and classification process of intent information can be implemented using existing naive Bayes, support vector machine (SVM), and deep learning models, without specific limitations here.

[0087] Common intent classifications can be summarized as query and communication. The query type is mainly used for information query. For this type of question, the first request template may include "...what methods / approaches / methods are there?", and the second request template may include "How to implement the first method / approach / method specifically?", "How to implement the second method / approach / method specifically?..., How to implement the Nth method / approach / method specifically?". Follow-up questions according to the above templates can provide users with practical solutions.

[0088] The communication type is mainly used to solve confusion. For this type of problem, the first request template may include "What are the reasons?" The second request template may include "What should be done for the first reason?", "What should be done for the second reason?"..., "What should be done for the Mth reason?" Follow up questions according to the above templates and finally provide users with practical solutions.

[0089] See also Figure 3 , Figure 3 A schematic block diagram of a wearable device provided by an embodiment of the present disclosure. Figure 3The wearable device 300 in the embodiment shown may include: one or more first processors 301, one or more first input devices 302, one or more first output devices 303 and one or more first memories 304. The first processor 301, the first input device 302, the first output device 303 and the first memory 304 communicate with each other through the first communication bus 305. The first memory 304 is used to store computer programs, and the computer program includes program instructions. The first processor 301 is used to execute the program instructions stored in the first memory 304. Among them, the first processor 301 is configured to call the program instructions to execute the function of the first device in the above-mentioned instruction response method.

[0090] It should be understood that in the embodiment of the present disclosure, the so-called first processor 301 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0091] The first input device 302 may include a touch panel, a fingerprint collection sensor (for collecting fingerprint information of the user and fingerprint direction information), a microphone, etc. The first output device 303 may include a display (LCD, etc.), a speaker, etc.

[0092] The first memory 304 may include a read-only memory and a random access memory, and provide instructions and data to the first processor 301. A portion of the first memory 304 may also include a non-volatile random access memory. For example, the first memory 304 may also store information about the device type.

[0093] In a specific implementation, the first processor 301, the first input device 302, and the first output device 303 described in the embodiments of the present disclosure can execute the implementation methods described in the first and second embodiments of the instruction response method provided in the embodiments of the present disclosure, and can also execute the implementation methods of the wearable device described in the embodiments of the present disclosure, which will not be repeated here.

[0094] See also Figure 4 , Figure 4 A schematic block diagram of a terminal provided by an embodiment of the present disclosure. Figure 4 The terminal 400 in the embodiment shown may include: one or more second processors 401, one or more second input devices 402, one or more second output devices 404 and one or more second memories 404. The second processor 401, the second input device 402, the second output device 404 and the second memory 404 communicate with each other through the second communication bus 405. The second memory 404 is used to store computer programs, and the computer programs include program instructions. The second processor 401 is used to execute the program instructions stored in the second memory 404. Among them, the second processor 401 is configured to call the program instructions to execute the function of the second device in the above-mentioned instruction response method.

[0095] It should be understood that in the embodiment of the present disclosure, the so-called second processor 401 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0096] The second input device 402 may include a touch panel, a fingerprint collection sensor (for collecting fingerprint information of the user and fingerprint direction information), a microphone, etc., and the second output device 404 may include a display (LCD, etc.), a speaker, etc.

[0097] The second memory 404 may include a read-only memory and a random access memory, and provide instructions and data to the second processor 401. A portion of the second memory 404 may also include a non-volatile random access memory. For example, the second memory 404 may also store information about the device type.

[0098] In a specific implementation, the second processor 401, the second input device 402, and the second output device 404 described in the embodiment of the present disclosure can execute the second embodiment of the instruction response method provided in the embodiment of the present disclosure and the implementation method described in the second embodiment, and can also execute the implementation method of the terminal described in the embodiment of the present disclosure, which will not be repeated here.

[0099] See also Figure 5 , Figure 5 A schematic block diagram of a server provided in an embodiment of the present disclosure. Figure 5 The server 500 in the embodiment shown may include: one or more third processors 501, one or more third input devices 502, one or more third output devices 505 and one or more third memories 505. The third processor 501, the third input device 502, the third output device 505 and the third memory 505 communicate with each other through the third communication bus 505. The third memory 505 is used to store computer programs, and the computer programs include program instructions. The third processor 501 is used to execute the program instructions stored in the third memory 505. Among them, the third processor 501 is configured to call the program instructions to execute the function of the third device in the above-mentioned instruction response method.

[0100] It should be understood that in the embodiment of the present disclosure, the third processor 501 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0101] The third input device 502 may include a touch panel, a fingerprint collection sensor (for collecting fingerprint information of the user and fingerprint direction information), a microphone, etc. The third output device 505 may include a display (LCD, etc.), a speaker, etc.

[0102] The third memory 505 may include a read-only memory and a random access memory, and provide instructions and data to the third processor 501. A portion of the third memory 505 may also include a non-volatile random access memory. For example, the third memory 505 may also store information about the device type.

[0103] In a specific implementation, the third processor 501, the third input device 502, and the third output device 505 described in the embodiment of the present disclosure can execute the third embodiment of the instruction response method provided by the embodiment of the present disclosure and the implementation method described in the third embodiment, and can also execute the implementation method of the server described in the embodiment of the present disclosure, which will not be repeated here.

[0104] In another embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by the processor, all or part of the processes in the above-mentioned embodiment method are implemented, and the computer program can also be completed by instructing the relevant hardware through the computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0105] The computer-readable storage medium may be an internal storage unit of the electronic device of any of the aforementioned embodiments, such as a hard disk or memory of the electronic device. The computer-readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Furthermore, the computer-readable storage medium may also include both an internal storage unit of the electronic device and an external storage device. The computer-readable storage medium is used to store computer programs and other programs and data required by the electronic device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.

[0106] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this disclosure.

[0107] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the electronic devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0108] In the several embodiments provided in the present application, it should be understood that the disclosed electronic devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces or units, or it can be an electrical, mechanical or other form of connection.

[0109] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present disclosure.

[0110] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0111] The above are only specific embodiments of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present disclosure, and these modifications or replacements should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A command response method, characterized in that: include: The first device sends a first user instruction of the target user to the second device; When the first user instruction includes a first-category instruction, the second device sends the second user instruction to the third device; the second user instruction is a first-category instruction included in the first user instruction, and the first-category instruction is an instruction that cannot be executed by the second device; When the second user instruction includes a second type of instruction, the third device generates first request information corresponding to the third user instruction, requests reply information from the external AI model based on the first request information, and generates first response information based on the reply information of the AI ​​model; The third user instruction is a second type of instruction included in the second user instruction; the second type of instruction is an instruction to which the third device cannot respond; The third device sends the first response information to the second device, and when the second device receives the first response information, the second device sends the first response information to the first device, so that the first device provides the first response information to the target user; The reply information of the AI ​​model includes: first reply information for the third user instruction and derivative instruction information for the third user instruction; The requesting reply information from the external AI model based on the first request information, and generating first response information based on the reply information of the AI ​​model, includes: The third device performs the requesting step multiple times until the correlation between the derived instruction information returned by the AI ​​model and the first request information is less than the first correlation; the requesting step includes: the third device requests the AI ​​model for second reply information based on the derived instruction information returned by the AI ​​model; The third device generates second request information based on the first reply information and all second reply information returned by the AI ​​model; the second request information is used to instruct the AI ​​model to summarize and analyze the first reply information and all second reply information returned by the AI ​​model; The third device determines the reply information of the AI ​​model to the second request information as the first response information.

2. The instruction response method according to claim 1, characterized in that: The third device requests second reply information from the AI ​​model based on the derived instruction information returned by the AI ​​model, including: The third device selects first derived instruction information from the multiple derived instruction information returned by the AI ​​model; the first derived instruction information is the instruction information with the greatest correlation with the first request information among the multiple derived instruction information; A first prompt word is generated based on the first derived instruction information, and second reply information is requested from the AI ​​model based on the first prompt word.

3. The instruction response method according to claim 1, characterized in that: Also includes: The third device extracts the first intent information in the derived instruction information returned by the AI ​​model and the second intent information in the second request information; The similarity between the first intent information and the second intent information is determined as the correlation between the derived instruction information returned by the AI ​​model and the first request information.

4. The instruction response method according to claim 1, characterized in that: The generating of the first request information corresponding to the third user instruction, requesting reply information from the external AI model based on the first request information, and generating the first response information based on the reply information of the AI ​​model includes: The third device generates a first request message based on the third user instruction and the specified first request template, requests third reply information from the AI ​​model based on the first request message, and generates a plurality of third request messages based on the third reply information and the specified second request template; Requesting fourth reply information from the AI ​​model based on the multiple third request information; The third device generates fourth request information based on all fourth reply information returned by the AI ​​model; the fourth request information is used to instruct the AI ​​model to summarize and analyze the fourth reply information; The third device determines the reply information of the AI ​​model to the fourth request information as the first response information.

5. The instruction response method according to claim 4, characterized in that: Also includes: The third device extracts intent information of the third user instruction, and selects the first request template and the second request template from a plurality of request templates based on intent classification of the intent information.

6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.