Summary of the invention
The present invention is based on above-mentioned technical problem, propose a kind of home equipment control method, device, storage medium andSmart home system is intended to the home equipment control method and one identified to user to provide a kind of more acurrate can obtainKind home equipment control device, storage medium and smart home system, fundamentally solving existing smart home product can onlyInput control instructs by way of rule match, and otherwise will lead to can not accurately identify that the technology of the intention of user is askedTopic.
In a first aspect, the embodiment of the invention provides a kind of home equipment control methods, comprising:
Determination can reflect each keyword that user is intended to from the control intention that user inputs;
The keyword is matched with the knowledge mapping of setting, to determine the keyword from the knowledge mappingCorresponding node;
According to incidence relation of the node in the knowledge mapping, control instruction is generated;
Corresponding equipment entity is controlled according to the control instruction, executes corresponding operation.
Second aspect, the embodiment of the invention provides a kind of home equipment control devices, comprising:
Module is obtained, can reflect each keyword that user is intended to for determination in being intended to from the control that user inputs;
Matching module, for matching the keyword with the knowledge mapping of setting, from the knowledge mappingDetermine the corresponding node of the keyword;
Order generation module generates control instruction for the incidence relation according to the node in the knowledge mapping;
Control module executes corresponding operation for controlling corresponding equipment entity according to the control instruction.
The third aspect, the embodiment of the invention provides a kind of smart home systems, control dress including above-mentioned home equipmentIt sets.
Fourth aspect is stored with a plurality of instruction the embodiment of the invention provides a kind of storage medium in the storage medium,The a plurality of instruction is for being loaded by processor and being executed above-mentioned home equipment control method.
5th aspect, the embodiment of the invention provides a kind of smart home systems, comprising:
Processor, for executing a plurality of instruction;
Memory, for storing a plurality of instruction;
Wherein, a plurality of instruction is stored by the memory, and is loaded by the processor and executed above-mentioned household and setStandby control method.
In a kind of home equipment control method provided in an embodiment of the present invention, device, storage medium and smart home systemIn, by introducing knowledge mapping technology, when user's input control is intended to, determination can reflect from the control intention that user inputsEach keyword that user is intended to;The keyword is matched with the knowledge mapping of setting, from the knowledge mappingDetermine the corresponding node of the keyword;According to incidence relation of the node in the knowledge mapping, control instruction is generated;Corresponding equipment entity is controlled according to the control instruction later, executes corresponding operation.
As it can be seen that a kind of home equipment control method of knowledge based map provided in an embodiment of the present invention, device, storage JieMatter and smart home system, by by user control be intended to identification combined with knowledge mapping technology so that user notIt must be intended to again with specific regular input control, and the control intention of user's input can be accurately identified, and corresponding lifeAt control instruction, accurately to realize the intention of user.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, come below with reference to accompanying drawings and embodiments detailedIllustrate implementation method of the invention, whereby to how the invention applies technical means to solve technical problems, and reaches technology effectThe realization process of fruit can be fully understood and implemented.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, still, the present invention may be used alsoTo be implemented using other than the one described here other modes, therefore, protection scope of the present invention is not by described belowSpecific embodiment limitation.
According to an embodiment of the invention, providing a kind of home equipment control method, Fig. 1 shows the embodiment of the present invention and mentionsThe flow diagram of a kind of home equipment control method out, as shown in Figure 1, the home equipment control method may include: stepRapid S110 to step S140.
In step s 110, determination can reflect each keyword that user is intended to from the control intention that user inputs.ItsIn, the control is intended to can be a friendship for controlling any home equipment in smart home system for user's sendingMutually order.
Optionally, a kind of control for home equipment control method that the embodiment of the present invention as shown in connection with fig. 2 proposes is intended toAcquisition flow diagram;It can also include: step S101 to step S102 before step S110.
In step s101, the voice data of user's input is obtained.Wherein, the voice data can be set by voice collectingStandby to be acquired, which can be the microphone array being separately provided, and be also possible in smart home systemThe voice capture device being arranged on any appliance.
In step s 102, speech recognition is carried out to the voice data, is intended to obtaining the control.Wherein, voiceIt is identified by and the voice data is converted into corresponding text information, be intended to obtaining the control.
As a result, by carrying out speech recognition to the voice data, it is intended to obtaining the control, so as to voice dataSemantic information determination it is accurate and reliable.
Specifically, in conjunction with Fig. 3, in step S110, from the control be intended in determination can reflect each pass that user is intended toKeyword may include: step S111 to step S112.
In step S111, the control is intended to carry out word segmentation processing, to obtain word segmentation result.Wherein it is possible to pass throughThe segmenting method of natural language is intended to carry out word segmentation processing to the control that user inputs, and obtains the word segmentation result.
In step S112, each keyword that can reflect user and be intended to is determined from the word segmentation result.Wherein,Due to not only including keyword that reflection user is intended in the word segmentation result after participle, it can be by semantic understanding from instituteState the keyword for extracting in word segmentation result and capable of directly reflecting that user is intended to.
For example, the control of user's input is intended that " setting refrigeration mode for air-conditioning, temperature is 26 degree ", by participleAfterwards, the word segmentation result obtained includes [" air-conditioning ", " being set as ", " refrigeration ", " mode ", " temperature is ", " 26 degree "].Therefore, rootAccording to semantic understanding, extracting and being able to reflect each keyword of user's intention is then [" air-conditioning ", " refrigeration ", " 26 degree "].
It is intended to carry out word segmentation processing by the control for inputting user as a result, and extracts and be able to reflect from word segmentation resultEach keyword that user is intended to enables the keyword extracted succinctly, precisely and directly to reflect that user is intended to, canImprove the recognition accuracy being intended to the control that user inputs.
It can also include: the step of constructing the knowledge mapping in advance in an optional embodiment.
Further include the steps that constructing the knowledge mapping in advance, specifically include: by each function category of the equipment entityProperty each node as the equipment entity in the knowledge mapping, and the node and the equipment entity are established and closedConnection relationship, to construct the knowledge mapping of the setting.
Wherein, it may include an equipment entity in the knowledge mapping, also may include multiple equipment entity, it will be describedEach functional attributes of equipment entity and the equipment entity are as the entity in knowledge mapping, the node and the equipmentEntity establishes incidence relation, knowledge mapping is carried out, to obtain the knowledge mapping of the setting.Wherein, the knowledge mappingIt include: at least one of the representation of knowledge, knowledge fusion, knowledge reasoning processing.
For example, Fig. 4 shows a kind of knowledge mapping of the home equipment control method proposed according to embodiments of the present inventionSchematic diagram.As shown in figure 4, using air-conditioning as the equipment entity in the knowledge mapping, and by each functional attributes of air-conditioningIt decomposites as the node in the knowledge mapping, is used as air-conditioning for example including function, mode, wind speed, opening and closing etc.The functional attributes node and the equipment entity are established incidence relation by the node of this equipment entity, and in this section of modeIt again include that dehumidifying, refrigeration, ventilation and heating etc. extend node in point, in the subdivision section of functional attributes node and the functional attributesPoint establishes incidence relation.
It is worth noting that using each functional attributes of the equipment entity as the equipment entity in the knowledgeIn each node in map, each functional attributes of the equipment entity may include the synonym of semantic similarity, " function "It is really identical with semantic understanding of " mode " the two nodes in the functional attributes of air-conditioning, therefore, the section in " function "It also may include the node present in " mode " in point.
The functional attributes of equipment entity are decomposed as a result, to construct the knowledge mapping, so that the life of control instructionAt need not be preset instruction database limitation, by the knowledge mapping, that is, produce corresponding control instruction so that its toAny intention in family unanimously but expresses different control and is intended to input mode, can be carried out accurate identification.
In the step s 120, the keyword is matched with the knowledge mapping of setting, from the knowledge mappingDetermine the corresponding node of the keyword.
Wherein, the keyword is matched with the knowledge mapping of setting, is to search to obtain in the knowledge mappingThe corresponding node of the keyword is obtained, it also may include the rule of semantic similarity which, which may include the consistent principle of word,Then.
For example, each keyword obtained is [" air-conditioning ", " refrigeration ", " 26 degree "], then the keyword is set with describedFixed knowledge mapping is matched, then the section of [" air-conditioning ", " refrigeration ", " 26 degree "] can be found in the knowledge mappingPoint.
In step s 130, the incidence relation according to the node in the knowledge mapping generates control instruction.
Specifically, the incidence relation according to the node in the knowledge mapping generates control instruction, comprising:
The service path formed according to incidence relation of the node in the knowledge mapping generates the control and refers toIt enables, wherein the service path includes the functional attributes that equipment entity and the equipment entity execute.
In the present embodiment, the service path formed in the knowledge mapping according to the node determined generates instituteState control instruction.For example, the node determined is [" air-conditioning ", " refrigeration ", " 26 degree "], then the node is in the knowledge mappingThe service path that can be obtained is " air-conditioning-mode-refrigeration -26 is spent ", therefore, according to the service path " air-conditioning-mode-refrigeration -26 degree " control instruction of " setting refrigeration mode for air-conditioning, temperature is 26 degree " can be generated, to control air-conditioning equipment execution pairThe operation answered.
It is worth noting that due to may include more than one equipment in knowledge mapping, the service path of formation does not haveIndicate equipment body, then the control instruction generated can not find corresponding subject of implementation.For example, the control of user's input is intended toIn, it is only capable of extracting the keyword of [" dehumidifying " " mode "], then the executing subject in its path formed can be air-conditioning,It can be dehumidifier, it is clear that the path is to cannot function as service path use.Therefore, in the present embodiment, the business roadDiameter includes the functional attributes that equipment entity and the equipment entity execute, i.e., the service path includes equipment body and this setsThe movement that standby entity executes.
Incidence relation according to the node in the knowledge mapping and the service path that is formed as a result, described in generationControl instruction, wherein the service path includes the functional attributes that equipment entity and the equipment entity execute.Make it possible toAccurately it is intended to according to the control of user's input, generates corresponding control instruction, realizes that user is intended to.
In step S140, corresponding equipment entity is controlled according to the control instruction, executes corresponding operation.Wherein,Control equipment receives the control instruction,
In an optional embodiment, the method also includes:
When the node determined does not have equipment entity and can not form service path, node on behalf that the determination is arrivedFunctional attributes be compared with last control instruction, to judge to execute the equipment entity of the control instruction of the last timeWhether the functional attributes of node on behalf that the determination arrive are able to carry out;
If so, according to the determination to node and execute the equipment entity of control instruction of last time and formedService path generate control instruction, if it is not, then prompt user re-enter control be intended to.
Wherein it is determined that node there is no equipment entity, being user does not have clear table in control of its input is intended toThe bright equipment body for executing the control and being intended to, therefore, will lead to can not form service path.In the present embodiment, then by instituteThe functional attributes for stating the node on behalf determined are compared with last control instruction, to judge to execute the last timeWhether the equipment entity of control instruction is able to carry out the functional attributes for the node on behalf that the determination is arrived.
For example, last control instruction is " setting refrigeration mode for air-conditioning, temperature is 26 degree ", work as according to userThe node that the keyword extracted in the control intention of preceding input determines only includes " dehumidifying ", then the function of " dehumidifying " is somebody's turn to do in judgementAttribute, the equipment body " air-conditioning " that can be performed last control instruction execute.Therefore, can according to " air-conditioning " andThe service path " air-conditioning-function-dehumidifying " that " dehumidifying " is formed generates corresponding control instruction, otherwise user is prompted to re-enterControl is intended to.
As a result, by there is no equipment entity in the node determined, and when can not generate control instruction, the section that will determinePoint is matched with the equipment entity of the control instruction of execution last time, with judge equipment body that user is implied whether beThe equipment entity of the control instruction of the last time is executed, intelligent completion can not only be carried out to the intention of user, and can alsoGreatly improve user experience.
According to an embodiment of the invention, additionally providing a kind of home equipment control corresponding to a kind of home equipment control methodDevice processed.A kind of structural schematic diagram for home equipment control device that the embodiment of the present invention shown in Figure 5 proposes.A kind of familyOccupy plant control unit, comprising:
Module is obtained, can reflect each keyword that user is intended to for determination in being intended to from the control that user inputs;
Matching module, for matching the keyword with the knowledge mapping of setting, from the knowledge mappingDetermine the corresponding node of the keyword;
Order generation module generates control instruction for the incidence relation according to the node in the knowledge mapping;
Control module executes corresponding operation for controlling corresponding equipment entity according to the control instruction.
Optionally, further includes:
Identification module carries out speech recognition for obtaining the voice data of user's input, and to the voice data, withIt is intended to the control.
Specifically, the acquisition module includes:
Participle unit carries out word segmentation processing for being intended to the control, to obtain word segmentation result;
Extraction unit, for determining each keyword that can reflect user and be intended to from the word segmentation result.
Optionally, further includes:
Knowledge mapping construct module, for using each functional attributes of the equipment entity as the equipment entity in instituteEach node in knowledge mapping is stated, and the node and the equipment entity are established into incidence relation, to construct the settingKnowledge mapping.
Specifically, the order generation module be also used to the incidence relation according to the node in the knowledge mapping andThe service path of formation generates the control instruction, wherein the service path includes equipment entity and the equipment entityThe functional attributes of execution.
Optionally, order generation module is also used to: can not form business road when the node determined does not have equipment entityWhen diameter, by the determination to the functional attributes of node on behalf be compared with last control instruction, to judge to execute instituteWhether the equipment entity for stating last control instruction is able to carry out the functional attributes for the node on behalf that the determination is arrived;
If so, according to the determination to node and execute the equipment entity of control instruction of last time and formedService path generate control instruction, if it is not, then prompt user re-enter control be intended to.
Meanwhile according to an embodiment of the invention, additionally provide a kind of smart home system, including above-described household is setStandby control device.
According to an embodiment of the invention, additionally providing a kind of storage medium, a plurality of instruction is stored in the storage medium,The a plurality of instruction is for being loaded by processor and being executed above-described home equipment control method.
According to an embodiment of the invention, additionally providing a kind of smart home system, comprising:
Processor, for executing a plurality of instruction;
Memory, for storing a plurality of instruction;
Wherein, a plurality of instruction is stored by the memory, and is loaded by the processor and executed above-describedHome equipment control method.
The technical scheme of the present invention has been explained in detail above with reference to the attached drawings, it is contemplated that in the related technology, smart home deviceControl method define user and input control can only be gone to instruct according to specific requirement, cause user by other semanteme phasesWhen closely regular different mode input control instructs, smart home product can not accurately identify the intention of user.This hairIt is bright that a kind of home equipment control method, device, storage medium and smart home system are provided, by being intended to from user's input controlMiddle extraction keyword, and being matched by keyword with knowledge mapping, to generate control instruction according to matching result, from basicOn solve the problems, such as that existing smart home product is not high to user's intention assessment accuracy.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through itIts mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of unit, onlyA kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine orPerson is desirably integrated into another system, or some features can be ignored or not executed.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unitComponent may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networksOn unit.It can select some or all of unit therein according to the actual needs to realize the mesh of the embodiment of the present invention's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unitIt is that each unit physically exists alone, is also possible to two or more units and is integrated in one unit.It is above-mentioned integratedUnit both can take the form of hardware realization, can also realize in the form of software functional units.
It, can if integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent productTo be stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention substantially orSay that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software productsOut, which is stored in a storage medium, including some instructions are used so that a computer equipment(can be personal computer, server or the network equipment etc.) executes all or part of each embodiment method of the present inventionStep.And storage medium above-mentioned include: USB flash disk, it is mobile hard disk, read-only memory (ROM, Read-Only Memory), randomAccess various Jie that can store program code such as memory (RAM, Random Access Memory), magnetic or diskMatter.
While it is disclosed that embodiment content as above but described only to facilitate understanding the present invention and adoptingEmbodiment is not intended to limit the invention.Any those skilled in the art to which this invention pertains are not departing from thisUnder the premise of the disclosed spirit and scope of invention, any modification and change can be made in the implementing form and in details,But protection scope of the present invention still should be subject to the scope of the claims as defined in the appended claims.