CN115373283A - Control instruction determination method and device, storage medium and electronic device - Google Patents

Control instruction determination method and device, storage medium and electronic device Download PDF

Info

Publication number
CN115373283A
CN115373283A CN202210908427.6A CN202210908427A CN115373283A CN 115373283 A CN115373283 A CN 115373283A CN 202210908427 A CN202210908427 A CN 202210908427A CN 115373283 A CN115373283 A CN 115373283A
Authority
CN
China
Prior art keywords
control instruction
executed
command
equipment
control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210908427.6A
Other languages
Chinese (zh)
Inventor
梁雁美
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202210908427.6A priority Critical patent/CN115373283A/en
Publication of CN115373283A publication Critical patent/CN115373283A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The application discloses a method and a device for determining a control instruction, a storage medium and an electronic device, which relate to the technical field of smart homes, and the method for determining the control instruction comprises the following steps: acquiring a first control instruction to be executed, and identifying the first control instruction, wherein the first control instruction at least carries an attribute name of equipment and an intention command to be executed by the equipment; determining an estimated attribute value of the to-be-executed intention command through a preset field model under the condition that the recognition processing result indicates that the to-be-executed intention command does not accord with a preset condition; replacing the intention command to be executed corresponding to the equipment carried in the first control command by using the pre-estimated attribute value to obtain a second control command; and sending the second control instruction to the device. By adopting the technical scheme, the problem that the control instruction carrying the intention command which does not contain specific operation content cannot be effectively issued to the equipment for execution in the traditional method is solved.

Description

Control instruction determination method and device, storage medium and electronic device
Technical Field
The application relates to the technical field of smart homes, in particular to a method and a device for determining a control instruction, a storage medium and an electronic device.
Background
Along with the rapid development of society, intelligent devices are more and more popular, and currently, an AI (Artificial intelligence, AI for short) has been introduced into thousands of households, so that a user can determine a corresponding device control instruction for a household appliance with an AI function through voice communication and actively issue the device control instruction to the household appliance to realize the control of the household appliance, but currently, the AI is not intelligent enough to analyze user semantics, and when the user voice content has no specific value, a user command cannot be analyzed, so that the control instruction issued to the household appliance fails.
In the related art, an effective solution is not provided at present for the problem that a control instruction carrying an intention command not containing specific operation content cannot be effectively issued to a device for execution.
Therefore, there is a need for improvement of the related art to overcome the drawbacks of the related art.
Disclosure of Invention
The embodiment of the invention provides a method and a device for determining a control instruction, a storage medium and an electronic device, which are used for at least solving the problem that the control instruction carrying an intention command which does not contain specific operation content cannot be effectively issued to equipment for execution in the traditional method.
According to an aspect of the embodiments of the present invention, there is provided a method for determining a control instruction, including: acquiring a first control instruction to be executed, and identifying the first control instruction, wherein the first control instruction at least carries an attribute name of equipment and an intention command to be executed by the equipment; determining an estimated attribute value of the to-be-executed intention command through a preset domain model under the condition that the recognition processing result indicates that the to-be-executed intention command does not accord with a preset condition; replacing the intention command to be executed corresponding to the equipment carried in the first control command by using the pre-estimated attribute value to obtain a second control command; and sending the second control instruction to the device.
In an exemplary embodiment, obtaining a first control instruction to be executed includes: acquiring a control corpus issued by a target object through a voice interaction process; analyzing the control corpus, and determining a control intention of the target object and control data corresponding to the control intention and used for controlling equipment to operate; determining a first control instruction to be executed by the device based on the control intent and the control data.
In an exemplary embodiment, before performing the identification processing on the first control instruction, the method further includes: acquiring equipment information of a plurality of pieces of equipment bound by a target object; determining a target attribute name corresponding to each device and a plurality of attribute values of functions of each device based on the device information; and processing the target attribute names and the attribute values corresponding to the plurality of devices to obtain an instruction parameter set for comparing the first control instruction.
In an exemplary embodiment, the identification processing of the first control instruction includes: matching the first control instruction with an instruction parameter set corresponding to a target object; under the condition that the attribute name of the equipment carried in the first control instruction cannot determine a target attribute name matched with the attribute name from the instruction parameter set, confirming that the equipment to be controlled corresponding to the first control instruction is not bound with the target object, and sending first prompt information to the target object; and under the condition that the attribute name of the equipment carried in the first control instruction determines a target attribute name matched with the attribute name from the instruction parameter set, determining whether a matched target attribute value exists in the instruction parameter set corresponding to the intention command to be executed by the first control instruction.
In an exemplary embodiment, confirming whether there is a matching target attribute value in the instruction parameter set for the intention command to be executed corresponding to the first control instruction comprises: sending second prompt information to the target object under the condition that a matched target attribute value corresponding to an intention command to be executed corresponding to equipment carried in the first control instruction does not exist in the instruction parameter set, wherein the second prompt information is used for indicating that the intention command to be executed currently does not accord with a preset condition; and under the condition that the instruction parameter set has a matched target attribute value corresponding to an intention command to be executed and corresponding to the equipment carried in the first control instruction, determining that the intention command to be executed and corresponding to the equipment carried in the first control instruction is allowed to be directly issued to the equipment for execution.
In an exemplary embodiment, in a case that a result of the recognition processing indicates that the intended command to be executed does not meet a preset condition, determining a pre-estimated attribute value of the intended command to be executed through a preset domain model includes: determining a preset adjustment rule corresponding to the preset field model, wherein the preset adjustment rule is used for acquiring an operation attribute value corresponding to equipment currently, and adding an adjustment parameter in the operation attribute value to determine an estimated attribute value of the to-be-executed intention command; and performing pre-estimation adjustment on the to-be-executed intention command by using the preset adjustment rule to obtain a current pre-estimation attribute value of equipment corresponding to the to-be-executed intention command.
In an exemplary embodiment, the method further includes: receiving an execution feedback result of the equipment on the second control instruction; feeding back the execution feedback result to a target object through third prompt information, and receiving answer information of the target object; determining whether the first control instruction has been validly executed based on the answer information.
According to another aspect of the embodiments of the present invention, there is also provided a control instruction determining apparatus, including: the device comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring a first control instruction to be executed and identifying the first control instruction, and the first control instruction at least carries an attribute name of equipment and an intention command to be executed by the equipment; the determining module is used for determining the estimated attribute value of the to-be-executed intention command through a preset domain model under the condition that the recognition processing result indicates that the to-be-executed intention command does not accord with the preset condition; the replacing module is used for replacing the intention command to be executed corresponding to the equipment carried in the first control instruction by using the estimated attribute value to obtain a second control instruction; and sending the second control instruction to the device.
In an exemplary embodiment, the obtaining module is further configured to obtain a control corpus issued by the target object through a voice interaction process; analyzing the control corpus, and determining a control intention of the target object and control data corresponding to the control intention and used for controlling equipment to operate; determining a first control instruction to be executed by the device based on the control intent and the control data.
In an exemplary embodiment, the obtaining module further includes: the collecting unit is used for acquiring the equipment information of the plurality of equipment bound by the target object; determining a target attribute name corresponding to each device and a plurality of attribute values of functions of each device based on the device information; and processing the target attribute names and the attribute values corresponding to the plurality of devices to obtain an instruction parameter set for comparing the first control instruction.
In an exemplary embodiment, the obtaining module is further configured to match the first control instruction with an instruction parameter set corresponding to a target object; under the condition that the attribute name of the equipment carried in the first control instruction cannot determine a target attribute name matched with the attribute name from the instruction parameter set, confirming that the equipment to be controlled corresponding to the first control instruction is not bound with the target object, and sending first prompt information to the target object; and under the condition that the attribute name of the equipment carried in the first control instruction determines a target attribute name matched with the attribute name from the instruction parameter set, determining whether a matched target attribute value exists in the instruction parameter set corresponding to the intention command to be executed by the first control instruction.
In an exemplary embodiment, the obtaining module is further configured to send second prompt information to the target object when a matching target attribute value corresponding to an intention command to be executed and corresponding to a device carried in the first control instruction does not exist in the instruction parameter set, where the second prompt information is used to indicate that the intention command to be executed currently does not meet a preset condition; and under the condition that the instruction parameter set has a matched target attribute value corresponding to an intention command to be executed and corresponding to the equipment carried in the first control instruction, determining that the intention command to be executed and corresponding to the equipment carried in the first control instruction is allowed to be directly issued to the equipment for execution.
In an exemplary embodiment, the determining module is further configured to determine a preset adjusting rule corresponding to the preset domain model, where the preset adjusting rule is used to obtain an operation attribute value currently corresponding to a device, and add an adjusting parameter to the operation attribute value to determine an estimated attribute value of the to-be-executed intention command; and performing pre-estimation adjustment on the to-be-executed intention command by using the preset adjustment rule to obtain a current pre-estimation attribute value of equipment corresponding to the to-be-executed intention command.
In an exemplary embodiment, the apparatus further comprises: the feedback module is used for receiving the execution feedback result of the second control instruction by the equipment; feeding back the execution feedback result to a target object through third prompt information, and receiving answer information of the target object; determining whether the first control instruction has been validly executed based on the answer information.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned method for determining a control instruction when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for determining the control instruction through the computer program.
According to the invention, a first control instruction to be executed is obtained, and the first control instruction is identified, wherein the first control instruction at least carries an attribute name of the equipment and an intention command to be executed by the equipment; determining the estimated attribute value of the to-be-executed intention command through a preset field model under the condition that the recognition processing result indicates that the to-be-executed intention command does not accord with the preset condition; replacing the intention command to be executed corresponding to the equipment carried in the first control command by using the pre-estimated attribute value to obtain a second control command; and sending the second control instruction to the device, that is, by identifying the first control instruction, the intended command to be executed in the first control instruction is converted into a specific pre-estimated attribute value which can be executed by the device, that is, the first control instruction is converted into the second control instruction which can be smoothly issued to the device for execution, so that the problem that the control instruction carrying the intended command without specific operation content in the conventional method cannot be effectively issued to the device for execution is solved, the success rate of device control on the voice corresponding to the intended command without the specific operation command is improved, and the user experience is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive labor.
FIG. 1 is a diagram illustrating a hardware environment for a method for determining control instructions according to an embodiment of the present application;
FIG. 2 is a flow chart of a method of control instruction determination according to an embodiment of the present invention;
FIG. 3 is a flow chart of a method of determining control instructions according to an embodiment of the present invention;
FIG. 4 is a flow chart of a method of determining control instructions according to an embodiment of the present invention (two);
fig. 5 is a block diagram of a control instruction determination apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present application better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of an embodiment of the present application, a method for determining a control instruction is provided. The method for determining the control instruction is widely applied to full-house intelligent digital control application scenes such as Smart Home (Smart Home), smart Home equipment ecology, smart Home (Intelligent House) ecology and the like. Alternatively, in the present embodiment, the method for determining the control instruction may be applied to a hardware environment formed by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be configured to provide a service (e.g., an application service) for the terminal or a client installed on the terminal, provide a database on or independent of the server for providing a data storage service for the server 104, and configure a cloud computing and/or edge computing service on or independent of the server for providing a data operation service for the server 104.
The network may include, but is not limited to, at least one of: wired networks, wireless networks. The wired network may include, but is not limited to, at least one of: wide area networks, metropolitan area networks, local area networks, which may include, but are not limited to, at least one of the following: WIFI (Wireless Fidelity), bluetooth. Terminal equipment 102 can be but not limited to be PC, the cell-phone, the panel computer, intelligent air conditioner, intelligent cigarette machine, intelligent refrigerator, intelligent oven, intelligent kitchen range, intelligent washing machine, intelligent water heater, intelligent washing equipment, intelligent dish washer, intelligent projection equipment, intelligent TV, intelligent clothes hanger, intelligent (window) curtain, intelligence audio-visual, smart jack, intelligent stereo set, intelligent audio amplifier, intelligent new trend equipment, intelligent kitchen guarding equipment, intelligent bathroom equipment, intelligence robot of sweeping the floor, intelligence robot of wiping the window, intelligence robot of mopping the ground, intelligent air purification equipment, intelligent steam ager, intelligent microwave oven, intelligent kitchen is precious, intelligent clarifier, intelligent water dispenser, intelligent lock etc..
In order to solve the above problem, in this embodiment, a method for determining a control instruction is provided, including but not limited to being applied in an edge device, and fig. 2 is a flowchart of a method for determining a control instruction according to an embodiment of the present invention, where the flowchart includes the following steps:
step S202: acquiring a first control instruction to be executed, and identifying the first control instruction, wherein the first control instruction at least carries an attribute name of equipment and an intention command to be executed by the equipment;
in an exemplary embodiment, the first control instruction may be understood as being determined by AI voice parsing according to the received corpus data of the target object, and includes: the attribute name is used for indicating the operation attribute corresponding to the equipment executing the control instruction, for example, when the equipment is an air conditioner, the corresponding attribute name may be temperature, humidity, and the like, and the intention command to be implemented by the control equipment may be that the air conditioner temperature is adjusted to be up to 25 degrees celsius or the air conditioner humidity is adjusted to be lower by a little.
Step S204: determining an estimated attribute value of the to-be-executed intention command through a preset domain model under the condition that the recognition processing result indicates that the to-be-executed intention command does not accord with a preset condition;
step S206: replacing the intention command to be executed corresponding to the equipment carried in the first control command by using the pre-estimated attribute value to obtain a second control command; and sending the second control instruction to the device.
It can be understood that, when the above-mentioned intention command to be executed does not meet the preset condition, it may be understood that the specific content corresponding to the intention command is not clear enough, and the specific attribute value to which the device is to be adjusted cannot be determined, where the attribute value may be understood as a value to which the current attribute name of the device corresponds to the value to be adjusted, for example, when the intention command is to adjust the temperature of the air conditioner to 25 degrees celsius, the attribute name is temperature, and the attribute value is 25, and when the intention command is to adjust the humidity of the air conditioner to a point, the attribute name may be determined to be humidity, and the attribute value is an undeterminable specific finger, at this time, the preset domain model may be used to obtain the humidity value of the current air conditioner, and the specific attribute value corresponding to the intention command may be estimated based on the humidity value of the current air conditioner by using a calculation method set in the domain model as a default, if the current humidity value is 70%, the default setting in the domain model is humidity minus 5%, the estimated attribute value is 65%, then the intended command may be estimated to be 65%, and the intention command may be accurately controlled by the adjusted control command.
Through the steps, a first control instruction to be executed is obtained, and the first control instruction is identified, wherein the first control instruction at least carries an attribute name of the equipment and an intention command to be executed by the equipment; determining the estimated attribute value of the to-be-executed intention command through a preset field model under the condition that the recognition processing result indicates that the to-be-executed intention command does not accord with the preset condition; the pre-estimated attribute value is used for replacing an intention command to be executed corresponding to equipment carried in the first control command to obtain a second control command, namely, the first control command is identified and processed to convert the intention command to be executed in the first control command into a specific pre-estimated attribute value which can be executed by the equipment, namely, the first control command is converted into the second control command which can be smoothly issued to the equipment for execution, so that the problem that the control command carrying the intention command without specific operation content in the traditional method cannot be effectively issued to the equipment for execution is solved, the success rate of equipment control on voice corresponding to the intention command without the specific operation command is improved, and the user experience is improved.
In an exemplary embodiment, obtaining the first control instruction to be executed may be implemented by performing the following steps S11-S12:
step S11: acquiring a control corpus issued by a target object through a voice interaction process;
it should be noted that after the voice interaction process between the target object and the device is determined, the voice data in the voice interaction process is collected, and the control corpus of the voice data is preliminarily determined based on the set screening condition, so that the voice influence of the non-control corpus on the device control is avoided.
Step S12: and analyzing the control corpus, and determining the control intention of the target object and control data corresponding to the control intention and used for controlling the operation of equipment.
The control linguistic data are analyzed through AI semantic analysis, the control intention of the target object is determined, control data which can be used for forming the control instruction are determined, and therefore the determined first control instruction can be well recognized by the equipment.
Step S13: determining a first control instruction to be executed by the device based on the control intent and the control data.
For example, the user speech: the air conditioner temperature is adjusted to 25 degrees, and AI semantic analysis is as follows: and 25, the control is intended to adjust the temperature of the air conditioner, the control data is that the temperature is changed into 25 degrees, and then a control instruction for adjusting the temperature value to 25 degrees can be obtained and sent to the equipment.
In an exemplary embodiment, before performing the identification processing on the first control instruction, the method further includes: acquiring equipment information of a plurality of pieces of equipment bound by a target object; determining a target attribute name corresponding to each device and a plurality of attribute values of functions of each device based on the device information; and processing the target attribute names and the attribute values corresponding to the plurality of devices to obtain an instruction parameter set for comparing the first control instruction.
That is, in order to make the identified first control instruction coincide with the voice of the target object, and correlate with the target object, and avoid the occurrence of control instructions that cannot be realized, by determining the device information bound by the target object before the determination, and further determining the target property name and property value that each device may have, it is determined that the target object can adjust the property name and property value range of the device, so that the control instruction can be determined in the valid range subsequently.
In an exemplary embodiment, the identification processing of the first control instruction includes: matching the first control instruction with an instruction parameter set corresponding to a target object; under the condition that the attribute name of the equipment carried in the first control instruction cannot determine a target attribute name matched with the attribute name from the instruction parameter set, confirming that the equipment to be controlled corresponding to the first control instruction is not bound with the target object, and sending first prompt information to the target object; and under the condition that the attribute name of the equipment carried in the first control instruction determines a target attribute name matched with the attribute name from the instruction parameter set, determining whether a matched target attribute value exists in the instruction parameter set corresponding to the intention command to be executed by the first control instruction.
In an exemplary embodiment, confirming whether there is a matching target attribute value in the instruction parameter set corresponding to the intended command to be executed by the first control instruction comprises: sending second prompt information to the target object under the condition that a matched target attribute value corresponding to an intention command to be executed corresponding to equipment carried in the first control instruction does not exist in the instruction parameter set, wherein the second prompt information is used for indicating that the intention command to be executed currently does not accord with a preset condition; and under the condition that the instruction parameter set has a matched target attribute value corresponding to the intention command to be executed corresponding to the equipment carried in the first control instruction, determining that the intention command to be executed corresponding to the equipment carried in the first control instruction is allowed to be directly issued to the equipment for execution.
In an exemplary embodiment, in a case that a result of the recognition processing indicates that the intended command to be executed does not meet a preset condition, determining a pre-estimated attribute value of the intended command to be executed through a preset domain model includes: determining a preset adjustment rule corresponding to the preset field model, wherein the preset adjustment rule is used for acquiring an operation attribute value corresponding to equipment currently, and adding an adjustment parameter in the operation attribute value to determine an estimated attribute value of the to-be-executed intention command; and performing pre-estimation adjustment on the to-be-executed intention command by using the preset adjustment rule to obtain a current pre-estimation attribute value of equipment corresponding to the to-be-executed intention command.
In an exemplary embodiment, the method further includes: receiving an execution feedback result of the equipment on the second control instruction; feeding back the execution feedback result to a target object through third prompt information, and receiving answer information of the target object; determining whether the first control instruction has been validly executed based on the answer information.
Through the embodiment, the experience of the target object after the first control instruction is executed is determined through the generation of the third prompt information and the answer information, the requirement of the target object can be met after the first control instruction is executed, and the execution accuracy of the control instruction is ensured.
It is to be understood that the above-described embodiments are only a few, but not all, embodiments of the present invention. For better understanding of the above method, the following describes the above process with reference to an embodiment, but the method is not limited to the technical solution of the embodiment of the present invention, and specifically:
in an exemplary embodiment, fig. 3 is a flowchart (a) of a method for determining a control instruction according to an embodiment of the present invention, which relates to a case that an intention command to be executed in a first control instruction meets a preset condition, where after a voice of a user is analyzed, the voice issues the command to a domain model for processing, and if the semantics are clear, the following command is issued: the attribute name-attribute value specifically comprises the following steps:
s1: collecting user (corresponding to the target object in the above embodiment) corpora;
s2: the AI semantics are resolved into a specific command (corresponding to the first control instruction in the above-described embodiment).
S3: the domain model receives the specific command, and sends the following command to the device under the condition that the semantics in the specific command are clear enough: attribute name-attribute value.
S4: the device receives the command.
It should be noted that fig. 4 is a flowchart (ii) of a method for determining a control instruction according to an embodiment of the present invention, which relates to a case that an intention command to be executed in a first control instruction does not meet a preset condition, and if a voice is not clear enough, and if an air conditioner temperature is a little higher, issuing a command is: and adding 2 degrees to the attribute name, acquiring the current attribute value of the equipment after the field model acquires the command, performing value operation of adding 2 degrees, and then issuing the operated command to the equipment. The method comprises the following specific steps:
s4-1: collecting user (corresponding to the target object in the above embodiment) corpora;
s4-2: the AI semantic is resolved into an attribute name + intention command (equivalent to the first control instruction in the above-described embodiment).
S4-3: the domain model accepts intent commands;
s4-4: the domain model calculates an intention value (corresponding to the estimated attribute value in the above embodiment);
s4-5: the device receives the command.
It should be noted that the intention command may be an operation command that is not specifically designated, such as add-subtract, percentage, maximum and minimum.
According to the technical scheme, the user experience is increased, the user command is analyzed by guessing the intention of the user, the success rate of voice control of the user can be provided after the technology is applied, and the success rate of voice intention analysis prompts the user experience. The method avoids the situation that the command cannot be issued possibly due to the fact that the generated control intention is greatly different from the actual equipment capable of being issued, and reduces the failure rate of the user voice control.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may 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 instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a device for determining a control instruction is further provided, where the device is used to implement the foregoing embodiments and preferred embodiments, and details are not repeated for what has been described. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware or a combination of software and hardware are also possible and contemplated.
Fig. 5 is a block diagram of a control instruction determination apparatus according to an embodiment of the present invention, the apparatus including:
an obtaining module 52, configured to obtain a first control instruction to be executed, and perform identification processing on the first control instruction, where the first control instruction at least carries an attribute name of a device and an intention command to be executed by the device;
a determining module 54, configured to determine, through a preset domain model, an estimated attribute value of the to-be-executed intent command when the result of the recognition processing indicates that the to-be-executed intent command does not meet a preset condition;
a replacing module 56, configured to replace, by using the estimated attribute value, an intention command to be executed, corresponding to the device and carried in the first control instruction, to obtain a second control instruction; and sending the second control instruction to the device.
Through the device, a first control instruction to be executed is obtained, and the first control instruction is identified, wherein the first control instruction at least carries an attribute name of the equipment and an intention command to be executed by the equipment; determining the estimated attribute value of the to-be-executed intention command through a preset field model under the condition that the recognition processing result indicates that the to-be-executed intention command does not accord with the preset condition; replacing the intention command to be executed corresponding to the equipment carried in the first control command by using the pre-estimated attribute value to obtain a second control command; and sending the second control instruction to the device, that is, by identifying the first control instruction, the intended command to be executed in the first control instruction is converted into a specific pre-estimated attribute value which can be executed by the device, that is, the first control instruction is converted into the second control instruction which can be successfully issued to the device for execution, so that the problem that the control instruction carrying the intended command without specific operation content in the conventional method cannot be effectively issued to the device for execution is solved, the success rate of device control on the voice corresponding to the intended command without the specific operation command is improved, and the user experience is improved.
In an exemplary embodiment, the obtaining module is further configured to obtain a control corpus issued by the target object through a voice interaction process; analyzing the control corpus, and determining a control intention of the target object and control data corresponding to the control intention and used for controlling equipment to operate; determining a first control instruction to be executed by the device based on the control intent and the control data.
In an exemplary embodiment, the obtaining module further includes: the collecting unit is used for acquiring the equipment information of the plurality of equipment bound by the target object; determining a target attribute name corresponding to each device and a plurality of attribute values of functions of each device based on the device information; and processing the target attribute names and the attribute values corresponding to the devices to obtain an instruction parameter set for comparing the first control instruction.
In an exemplary embodiment, the obtaining module is further configured to match the first control instruction with an instruction parameter set corresponding to a target object; under the condition that the attribute name of the equipment carried in the first control instruction cannot determine a target attribute name matched with the attribute name from the instruction parameter set, confirming that the equipment to be controlled corresponding to the first control instruction is not bound with the target object, and sending first prompt information to the target object; and under the condition that the attribute name of the equipment carried in the first control instruction determines a target attribute name matched with the attribute name from the instruction parameter set, determining whether a matched target attribute value exists in the instruction parameter set corresponding to the intention command to be executed by the first control instruction.
In an exemplary embodiment, the obtaining module is further configured to send second prompt information to the target object when a matched target attribute value corresponding to an intention command to be executed and corresponding to a device carried in the first control instruction does not exist in the instruction parameter set, where the second prompt information is used to indicate that the intention command to be executed currently does not meet a preset condition; and under the condition that the instruction parameter set has a matched target attribute value corresponding to the intention command to be executed corresponding to the equipment carried in the first control instruction, determining that the intention command to be executed corresponding to the equipment carried in the first control instruction is allowed to be directly issued to the equipment for execution.
In an exemplary embodiment, the determining module is further configured to determine a preset adjusting rule corresponding to the preset domain model, where the preset adjusting rule is used to obtain an operation attribute value currently corresponding to a device, and add an adjusting parameter to the operation attribute value to determine an estimated attribute value of the to-be-executed intention command; and performing pre-estimation adjustment on the to-be-executed intention command by using the preset adjustment rule to obtain a current pre-estimation attribute value of equipment corresponding to the to-be-executed intention command.
In an exemplary embodiment, the apparatus further comprises: the feedback module is used for receiving the execution feedback result of the second control instruction by the equipment; feeding back the execution feedback result to a target object through third prompt information, and receiving answer information of the target object; determining whether the first control instruction has been validly executed based on the answer information.
An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring a first control instruction to be executed, and identifying the first control instruction, wherein the first control instruction at least carries an attribute name of equipment and an intention command to be executed by the equipment;
s2, determining an estimated attribute value of the to-be-executed intention command through a preset field model under the condition that the recognition processing result indicates that the to-be-executed intention command does not accord with a preset condition;
s3, replacing the intention command to be executed corresponding to the equipment carried in the first control command by using the estimated attribute value to obtain a second control command; and sending the second control instruction to the device.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
For specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and exemplary implementations, and details of this embodiment are not repeated herein.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
the method comprises the steps of S1, obtaining a first control instruction to be executed, and identifying the first control instruction, wherein the first control instruction at least carries an attribute name of equipment and an intention command to be executed by the equipment;
s2, determining the estimated attribute value of the to-be-executed intention command through a preset domain model under the condition that the recognition processing result indicates that the to-be-executed intention command does not accord with a preset condition;
s3, replacing the intention command to be executed corresponding to the equipment carried in the first control command by the pre-estimated attribute value to obtain a second control command; and sending the second control instruction to the device.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The foregoing is only a preferred embodiment of the present application and it should be noted that, as will be apparent to those skilled in the art, numerous modifications and adaptations can be made without departing from the principles of the present application and such modifications and adaptations are intended to be considered within the scope of the present application.

Claims (10)

1. A method for determining a control command, comprising:
acquiring a first control instruction to be executed, and identifying the first control instruction, wherein the first control instruction at least carries an attribute name of equipment and an intention command to be executed by the equipment;
determining an estimated attribute value of the to-be-executed intention command through a preset domain model under the condition that the recognition processing result indicates that the to-be-executed intention command does not accord with a preset condition;
replacing the intention command to be executed corresponding to the equipment carried in the first control command by using the pre-estimated attribute value to obtain a second control command; and sending the second control instruction to the device.
2. The method of claim 1, wherein obtaining the first control instruction to be executed comprises:
acquiring a control corpus issued by a target object through a voice interaction process;
analyzing the control corpus, and determining a control intention of the target object and control data corresponding to the control intention and used for controlling equipment to operate;
determining a first control instruction to be executed by the device based on the control intent and the control data.
3. The method of claim 1, wherein prior to performing the identification process on the first control instruction, the method further comprises:
acquiring equipment information of a plurality of pieces of equipment bound by a target object;
determining a target attribute name corresponding to each device and a plurality of attribute values of functions of each device based on the device information;
and processing the target attribute names and the attribute values corresponding to the devices to obtain an instruction parameter set for comparing the first control instruction.
4. The method according to any one of claims 1 to 3, wherein the identification processing of the first control instruction includes:
matching the first control instruction with an instruction parameter set corresponding to a target object;
under the condition that the attribute name of the equipment carried in the first control instruction cannot determine a target attribute name matched with the attribute name from the instruction parameter set, confirming that the equipment to be controlled corresponding to the first control instruction is not bound with the target object, and sending first prompt information to the target object;
and under the condition that the attribute name of the equipment carried in the first control instruction determines a target attribute name matched with the attribute name from the instruction parameter set, determining whether a matched target attribute value exists in the instruction parameter set corresponding to the intention command to be executed by the first control instruction.
5. The method of claim 4, wherein confirming whether the first control instruction has a matching target attribute value in the instruction parameter set corresponding to the intended command to be executed comprises:
sending second prompt information to the target object under the condition that a matched target attribute value corresponding to an intention command to be executed corresponding to equipment carried in the first control instruction does not exist in the instruction parameter set, wherein the second prompt information is used for indicating that the intention command to be executed currently does not accord with a preset condition;
and under the condition that the instruction parameter set has a matched target attribute value corresponding to the intention command to be executed corresponding to the equipment carried in the first control instruction, determining that the intention command to be executed corresponding to the equipment carried in the first control instruction is allowed to be directly issued to the equipment for execution.
6. The method according to any one of claims 1 to 4, wherein in a case that the result of the recognition processing indicates that the intended command to be executed does not meet a preset condition, determining the estimated attribute value of the intended command to be executed through a preset domain model comprises:
determining a preset adjustment rule corresponding to the preset field model, wherein the preset adjustment rule is used for acquiring an operation attribute value corresponding to equipment currently, and adding an adjustment parameter in the operation attribute value to determine an estimated attribute value of the to-be-executed intention command;
and performing pre-estimation adjustment on the to-be-executed intention command by using the preset adjustment rule to obtain a current pre-estimation attribute value of equipment corresponding to the to-be-executed intention command.
7. The method according to any one of claims 1-4, further comprising:
receiving an execution feedback result of the equipment on the second control instruction;
feeding back the execution feedback result to a target object through third prompt information, and receiving answer information of the target object;
determining whether the first control instruction has been validly executed based on the answer information.
8. An apparatus for determining a control command, comprising:
the device comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring a first control instruction to be executed and identifying the first control instruction, and the first control instruction at least carries an attribute name of equipment and an intention command to be executed by the equipment;
the determining module is used for determining the estimated attribute value of the to-be-executed intention command through a preset domain model under the condition that the recognition processing result indicates that the to-be-executed intention command does not accord with the preset condition;
the replacing module is used for replacing the intention command to be executed corresponding to the equipment carried in the first control instruction by using the estimated attribute value to obtain a second control instruction; and sending the second control instruction to the device.
9. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202210908427.6A 2022-07-29 2022-07-29 Control instruction determination method and device, storage medium and electronic device Pending CN115373283A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210908427.6A CN115373283A (en) 2022-07-29 2022-07-29 Control instruction determination method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210908427.6A CN115373283A (en) 2022-07-29 2022-07-29 Control instruction determination method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN115373283A true CN115373283A (en) 2022-11-22

Family

ID=84063458

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210908427.6A Pending CN115373283A (en) 2022-07-29 2022-07-29 Control instruction determination method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115373283A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105487663A (en) * 2015-11-30 2016-04-13 北京光年无限科技有限公司 Intelligent robot oriented intention identification method and system
CN106845624A (en) * 2016-12-16 2017-06-13 北京光年无限科技有限公司 The multi-modal exchange method relevant with the application program of intelligent robot and system
JP2018097029A (en) * 2016-12-08 2018-06-21 三菱電機株式会社 Voice recognition device and voice recognition method
CN108337139A (en) * 2018-01-29 2018-07-27 广州索答信息科技有限公司 Home appliance voice control method, electronic equipment, storage medium and system
CN108646580A (en) * 2018-05-14 2018-10-12 中兴通讯股份有限公司 The determination method and device of control object, storage medium, electronic device
US20190156825A1 (en) * 2017-11-20 2019-05-23 Canon Kabushiki Kaisha Voice control system, control method, and non-transitory computer-readable storage medium storing program
US20200251101A1 (en) * 2019-01-31 2020-08-06 Beijing Xiaomi Intelligent Technology Co., Ltd. Method and apparatus for controlling device
CN111880446A (en) * 2020-07-20 2020-11-03 海尔优家智能科技(北京)有限公司 Control instruction sending method and control instruction receiving method
CN114120996A (en) * 2021-10-21 2022-03-01 青岛海尔科技有限公司 Voice interaction method and device
CN114755931A (en) * 2022-03-10 2022-07-15 青岛海尔科技有限公司 Control instruction prediction method and device, storage medium and electronic device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105487663A (en) * 2015-11-30 2016-04-13 北京光年无限科技有限公司 Intelligent robot oriented intention identification method and system
JP2018097029A (en) * 2016-12-08 2018-06-21 三菱電機株式会社 Voice recognition device and voice recognition method
CN106845624A (en) * 2016-12-16 2017-06-13 北京光年无限科技有限公司 The multi-modal exchange method relevant with the application program of intelligent robot and system
US20190156825A1 (en) * 2017-11-20 2019-05-23 Canon Kabushiki Kaisha Voice control system, control method, and non-transitory computer-readable storage medium storing program
CN108337139A (en) * 2018-01-29 2018-07-27 广州索答信息科技有限公司 Home appliance voice control method, electronic equipment, storage medium and system
CN108646580A (en) * 2018-05-14 2018-10-12 中兴通讯股份有限公司 The determination method and device of control object, storage medium, electronic device
US20200251101A1 (en) * 2019-01-31 2020-08-06 Beijing Xiaomi Intelligent Technology Co., Ltd. Method and apparatus for controlling device
CN111880446A (en) * 2020-07-20 2020-11-03 海尔优家智能科技(北京)有限公司 Control instruction sending method and control instruction receiving method
CN114120996A (en) * 2021-10-21 2022-03-01 青岛海尔科技有限公司 Voice interaction method and device
CN114755931A (en) * 2022-03-10 2022-07-15 青岛海尔科技有限公司 Control instruction prediction method and device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN108932947B (en) Voice control method and household appliance
CN114755931A (en) Control instruction prediction method and device, storage medium and electronic device
CN115167164A (en) Method and device for determining equipment scene, storage medium and electronic device
CN114697150B (en) Command issuing method and device, storage medium and electronic device
CN116165931A (en) Control method and system of intelligent equipment, device, storage medium and electronic device
CN115373283A (en) Control instruction determination method and device, storage medium and electronic device
CN116546106A (en) Gray release rule adjusting method and device, storage medium and electronic device
CN115482820A (en) Device control method and apparatus, storage medium, and electronic apparatus
CN116107975A (en) Control method and device of equipment, storage medium and electronic device
CN115309062A (en) Device control method, device, storage medium, and electronic apparatus
CN115345225A (en) Method and device for determining recommended scene, storage medium and electronic device
CN115631832A (en) Cooking plan determination method and device, storage medium and electronic device
CN115200146A (en) Method and device for sending closing command, storage medium and electronic device
CN115167160A (en) Device control method and apparatus, device control system, and storage medium
CN114861678A (en) Method and apparatus for determining time information, storage medium, and electronic apparatus
CN115473805B (en) Updating method and device of equipment, storage medium and electronic device
CN115001885B (en) Equipment control method and device, storage medium and electronic device
CN115453897A (en) Method and device for determining intention instruction, storage medium and electronic device
CN116339850A (en) Method and device for starting target application, storage medium and electronic device
CN118158012A (en) Method and device for determining combined command, storage medium and electronic device
CN116246624A (en) Voice control method and device of intelligent equipment, storage medium and electronic device
CN115174297A (en) Attribute information updating method and device, storage medium and electronic device
CN118447832A (en) Voice instruction analysis method and device, storage medium and electronic device
CN116301511A (en) Equipment interaction method and device, storage medium and electronic device
CN116980866A (en) Binding method and device of data tag, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination