CN118170038A - A smart home control method, control model, storage medium and electronic device - Google Patents
A smart home control method, control model, storage medium and electronic device Download PDFInfo
- Publication number
- CN118170038A CN118170038A CN202410348676.3A CN202410348676A CN118170038A CN 118170038 A CN118170038 A CN 118170038A CN 202410348676 A CN202410348676 A CN 202410348676A CN 118170038 A CN118170038 A CN 118170038A
- Authority
- CN
- China
- Prior art keywords
- information
- user
- operated
- equipment
- speech
- 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
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B15/00—Systems controlled by a computer
- G05B15/02—Systems controlled by a computer electric
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/418—Total 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]
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/26—Pc applications
- G05B2219/2642—Domotique, 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 present application relates to the field of smart home, and more specifically, to a smart home control method, storage medium and electronic device. The smart home control method of the present application includes: obtaining user's speech information; judging whether the device to be operated can be determined based on the speech information; if so, controlling the device to be operated to perform an operation adapted to the speech information; if not, obtaining the user's context information, and determining the device to be operated based on the speech information and the user's context information. The present application greatly reduces the misoperation of home device control and improves the user's experience in the process of using smart home.
Description
技术领域Technical Field
本申请涉及智能家居领域,具体而言,涉及一种智能家居控制方法、存储介质及电子装置。The present application relates to the field of smart home, and more specifically, to a smart home control method, storage medium and electronic device.
背景技术Background technique
智能家居是一种以住宅为平台,利用综合布线技术、网络通信技术、安全防范技术、自动控制技术、音视频技术将家居生活有关的设施集成,构建高效的住宅设施与家庭日程事务的管理系统。它可以通过物联网技术将家中的各种设备(如音视频设备、照明系统、窗帘控制、空调控制、安防系统、数字影院系统、影音服务器、影柜系统、网络家电等)连接到一起,提供家电控制、照明控制、电话远程控制、室内外遥控、防盗报警、环境监测、暖通控制、红外转发以及可编程定时控制等多种功能和手段。Smart home is a system that uses residential housing as a platform and integrates facilities related to home life using integrated wiring technology, network communication technology, security technology, automatic control technology, and audio and video technology to build an efficient management system for residential facilities and family schedule affairs. It can connect various devices in the home (such as audio and video equipment, lighting systems, curtain control, air conditioning control, security systems, digital cinema systems, audio and video servers, video cabinet systems, network appliances, etc.) through the Internet of Things technology, and provide a variety of functions and means such as home appliance control, lighting control, telephone remote control, indoor and outdoor remote control, anti-theft alarm, environmental monitoring, HVAC control, infrared forwarding, and programmable timing control.
智能家居的应用范围广泛,可以根据不同场景和需求进行智能化的控制和管理。例如,可以通过智能家居系统实现远程操控家电,例如打开或关闭空调、电视等设备。此外,智能家居还可以实现智能照明、智能安防等功能,例如根据光线和时间自动调节室内照明亮度,以及通过安防系统实现实时监控和报警。Smart homes have a wide range of applications and can be intelligently controlled and managed according to different scenarios and needs. For example, smart home systems can be used to remotely control home appliances, such as turning on or off air conditioners, televisions and other devices. In addition, smart homes can also realize functions such as smart lighting and smart security, such as automatically adjusting indoor lighting brightness according to light and time, and realizing real-time monitoring and alarms through security systems.
智能家居的出现,不仅提升了家居的安全性、便利性、舒适性、艺术性,还实现了环保节能的居住环境。它不仅可以为各种能源费用节约资金,还提供了全方位的信息交互功能,使人们的生活更加智能化和便捷化。The emergence of smart home not only improves the safety, convenience, comfort and artistry of home, but also realizes an environmentally friendly and energy-saving living environment. It can not only save money for various energy costs, but also provides a full range of information interaction functions, making people's lives more intelligent and convenient.
现有的智能家居系统中,当用户尝试使用语音助手控制家电设备时,如果用户的指令中涉及多个设备,系统往往无法确定用户要操作的具体设备。这直接导致了用户操作的不便,降低了用户体验。In existing smart home systems, when users try to use voice assistants to control home appliances, if the user's instructions involve multiple devices, the system often cannot determine the specific device the user wants to operate. This directly leads to inconvenience in user operation and reduces user experience.
传统的智能家居控制系统大多基于特定指令进行操作,例如“打开卧室灯”,这种方式在指令明确的情况下可以正常工作,然而一旦用户的发话涉及的设备过多,或者发话内容中并没有明确要操作的设备,这种系统就无法正确执行用户的命令,比如在家居环境中,有多个卧室,每个卧室都有灯,用户仅发布指令“打开卧室灯”,无法清楚具体指的打开哪个灯。Traditional smart home control systems mostly operate based on specific instructions, such as "turn on the bedroom light". This method can work normally when the instructions are clear. However, once the user's instructions involve too many devices, or the instructions do not clearly specify the device to be operated, this system will not be able to correctly execute the user's commands. For example, in a home environment, there are multiple bedrooms, each with a light. The user only issues the command "turn on the bedroom light", but it is unclear which specific light is being turned on.
当前的技术无法在多家电设备的控制指令中,准确地判断出用户期望操作的设备。一旦指令中涉及多个设备,系统通常需要通过多轮询问方能确定用户的意图,这对用户的体验造成了严重影响,比如用户发布指令“打开卧室灯”,在不清楚具体指哪个灯时,需要询问诸如“打开的是主卧的灯吗”、“打开的是主卧书桌上的灯吗”等,多轮询问,大大降低了智能控制的效率。另一方面,这种解决方案不仅复杂,需要反复向用户澄清,导致交互设备,而且容易造成用户的困扰。Current technology cannot accurately determine which device the user wants to operate in the control instructions of multiple electrical appliances. Once the instruction involves multiple devices, the system usually needs to go through multiple rounds of inquiries to determine the user's intention, which has a serious impact on the user experience. For example, when a user issues the instruction "turn on the bedroom light", when it is not clear which specific light is being referred to, it is necessary to ask questions such as "Is it the light in the master bedroom that is turned on?", "Is it the light on the desk in the master bedroom that is turned on?", etc. Multiple rounds of inquiries greatly reduce the efficiency of intelligent control. On the other hand, this solution is not only complicated and requires repeated clarification to the user, resulting in interactive devices, but also easily causes trouble to the user.
申请内容Application Contents
为了克服上述缺陷,本申请提出了一种智能家居控制方法、控制模型、存储介质及电子装置,大大降低家居设备控制的误操作,提升用户在使用智能家居过程中的体验。In order to overcome the above-mentioned defects, the present application proposes a smart home control method, control model, storage medium and electronic device, which greatly reduce the misoperation of home appliance control and enhance the user experience in the process of using smart home.
在第一方面,本申请提供一种智能家居控制方法,包括:In a first aspect, the present application provides a smart home control method, comprising:
获取用户的发话信息;Get the user's speaking information;
判断是否可以根据所述发话信息确定待操作设备;Determining whether a device to be operated can be determined according to the speech information;
若是,则控制所述待操作设备执行适配于所述发话信息的操作;If yes, controlling the device to be operated to perform an operation adapted to the speaking information;
若否,则获取用户的情景信息,根据所述发话信息和用户的情景信息确定待操作设备。If not, the user's context information is obtained, and the device to be operated is determined according to the speech information and the user's context information.
在上述智能家居控制方法的一个技术方案中,所述获取用户的情景信息,根据所述发话信息和用户的情景信息确定待操作设备包括:In a technical solution of the above-mentioned smart home control method, the acquiring of the user's context information and determining the device to be operated according to the speech information and the user's context information comprises:
获取用户在所述发话信息前的语言信息;Acquire the language information of the user before the utterance information;
判断是否可以根据所述发话信息和所述语言信息确定待操作设备;Determining whether a device to be operated can be determined according to the speech information and the language information;
若是,则控制所述待操作设备执行适配于所述发话信息的操作。If yes, the device to be operated is controlled to perform an operation adapted to the speaking information.
在上述智能家居控制方法的一个技术方案中,所述判断是否可以根据所述发话信息和所述语言信息确定待操作设备步骤之后,所述方法还包括:In a technical solution of the above-mentioned smart home control method, after the step of determining whether the device to be operated can be determined according to the speech information and the language information, the method further includes:
若不可以根据所述发话信息和所述语言信息确定待操作设备,则获取所有设备的信息,其中所有设备包括待操作设备;If the device to be operated cannot be determined according to the speech information and the language information, obtaining information of all devices, wherein all devices include the device to be operated;
判断是否可以根据所述发话信息、语言信息和所有设备的信息确定待操作设备;Determine whether the device to be operated can be determined based on the speech information, language information and information of all devices;
若是,则控制所述待操作设备执行适配于所述发话信息的操作。If yes, the device to be operated is controlled to perform an operation adapted to the speaking information.
在上述智能家居控制方法的一个技术方案中,所述判断是否可以根据所述发话信In a technical solution of the above-mentioned smart home control method, the judgment whether it is possible to
息、语言信息和所有设备的信息确定待操作设备步骤之后,所述方法还包括:After the step of determining the device to be operated based on the information, language information and information of all devices, the method further includes:
若不可以根据所述发话信息、语言信息和所有设备的信息确定待操作设备,则获取用户使用习惯;If the device to be operated cannot be determined based on the speech information, language information and information of all devices, obtaining the user's usage habits;
判断是否可以根据发话信息、语言信息、所有设备的信息和用户使用习惯确定待操作设备;Determine whether the device to be operated can be determined based on the speech information, language information, information of all devices and user usage habits;
若是,则控制所述待操作设备执行适配于所述发话信息的动作。If yes, the device to be operated is controlled to execute an action adapted to the speaking information.
在上述智能家居控制方法的一个技术方案中,所述判断是否可以根据发话信息、In a technical solution of the above-mentioned smart home control method, the judgment whether it is possible to
语言信息、所有设备的信息和用户使用习惯确定待操作设备步骤之后,所述方法还包括:After the language information, the information of all devices and the user's usage habits determine the device steps to be operated, the method further includes:
若不可以根据发话信息、语言信息、所有设备的信息和用户使用习惯确定待操作设备,则获取用户所处环境信息;If the device to be operated cannot be determined based on the speech information, language information, information of all devices and the user's usage habits, then the user's environment information is obtained;
根据所述发话信息、语言信息、所有设备的信息、用户使用习惯以及用户所处环境信息确定待操作设备。The device to be operated is determined according to the speech information, language information, information of all devices, user usage habits and user environment information.
在上述智能家居控制方法的一个技术方案中,所述获取用户的情景信息,根据所述发话信息和用户的情景确定待操作设备步骤之后,所述方法还包括:In a technical solution of the above-mentioned smart home control method, after the step of obtaining the user's context information and determining the device to be operated according to the speech information and the user's context, the method further includes:
获取用户的反馈。Get feedback from users.
在第二方面,本申请提供一种智能家居控制模型的训练方法,包括:In a second aspect, the present application provides a training method for a smart home control model, comprising:
获取用户的发话信息、情景信息以及待操作设备;Obtain the user's speech information, context information, and the device to be operated;
根据所述用户的发话信息、情景信息以及待操作设备对待训练的控制模型进行训练。The control model to be trained is trained according to the speech information, situation information and the device to be operated of the user.
在上述训练方法的一个技术方案中,所述根据所述用户的发话信息、情景信息以及操作设备对待训练的控制模型进行训练包括:In a technical solution of the above training method, the training of the control model to be trained according to the user's speech information, situation information and operating device includes:
将所述用户的发话信息、情景信息以及待操作设备输入待训练的控制模型;Inputting the user's speech information, situation information, and the device to be operated into the control model to be trained;
将所述发话信息和情景信息分别通过编码转化为特征向量;Converting the speech information and the situation information into feature vectors respectively by encoding;
通过循环神经网络对所述特征向量解码后得到待操作设备;The device to be operated is obtained by decoding the feature vector through a recurrent neural network;
将所述待操作设备作为真值,通过预设损失函数对所述待操作设备计算损失;Taking the device to be operated as a true value, calculating the loss of the device to be operated by using a preset loss function;
基于所述损失进行反向传播以对所述控制模型的参数进行更新,完成当前轮迭代。Back propagation is performed based on the loss to update the parameters of the control model to complete the current round of iteration.
在第三方面,本申请提供一种利用训练好的控制模型进行待操作设备预测的方法,包括:In a third aspect, the present application provides a method for predicting a device to be operated using a trained control model, comprising:
获取用户的发话信息和用户的情景;Obtain the user's speech information and user context;
根据训练好的控制模型输入发话信息和用户的情景信息,输出预测的待操作设备。According to the trained control model, the speech information and the user's context information are input, and the predicted device to be operated is output.
在第四方面,本申请提供一种智能家居控制装置,包括处理器和存储装置,所述存储装置适于存储多条程序代码,所述程序代码适于由所述处理器加载并运行以执行所述的智能家居控制方法或执行所述的智能家居控制方法的训练方法或所述的待操作设备预测的方法。In a fourth aspect, the present application provides a smart home control device, comprising a processor and a storage device, wherein the storage device is suitable for storing multiple program codes, and the program codes are suitable for being loaded and run by the processor to execute the smart home control method or the training method of the smart home control method or the method of predicting the device to be operated.
在第五方面,本申请提供一种计算机可读的存储介质,所述计算机可读的存储介质包括存储的程序,其中,所述程序运行时执行所述的智能家居控制方法。In a fifth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein the smart home control method is executed when the program is run.
在第六方面,本申请提供一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为通过所述计算机程序执行智能家居控制方法。In a sixth aspect, the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute a smart home control method through the computer program.
本申请上述一个或多个技术方案,至少具有如下一种或多种有益效果:The above one or more technical solutions of the present application have at least one or more of the following beneficial effects:
在实施本申请的技术方案中,本申请将用户发话信息与用户的情景信息结合,综合判断确定待操作设备,本申请能够提升用户在使用智能家居过程中的体验,准确确定待操作设备实现设备消歧,大大降低家居设备的误操作。In the technical solution for implementing the present application, the present application combines the user's speech information with the user's situational information to comprehensively judge and determine the device to be operated. The present application can enhance the user's experience in the process of using the smart home, accurately determine the device to be operated to achieve device disambiguation, and greatly reduce the misoperation of home devices.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
图1是根据本申请实施例的一种智能家居控制方法的主要步骤流程示意图;FIG1 is a schematic flow chart of main steps of a smart home control method according to an embodiment of the present application;
图2是根据本申请实施例的获取用户的情景信息,根据所述发话信息和用户的情景信息确定待操作设备的主要步骤流程示意图;2 is a schematic flow chart of the main steps of obtaining context information of a user and determining a device to be operated according to the speech information and the context information of the user according to an embodiment of the present application;
图3是根据本申请实施例包括根据所述发话信息、语言信息和所有设备的信息确定待操作设备步骤的流程示意图;3 is a flow chart showing a step of determining a device to be operated according to the speech information, language information and information of all devices according to an embodiment of the present application;
图4是根据本申请实施例包括根据发话信息、语言信息、所有设备的信息和用户使用习惯确定待操作设备步骤的流程示意图;4 is a flowchart of a step of determining a device to be operated according to speech information, language information, information of all devices and user usage habits according to an embodiment of the present application;
图5是根据本申请实施例包括根据所述发话信息、语言信息、所有设备的信息、用户使用习惯以及用户所处环境信息确定待操作设备步骤的流程示意图;5 is a flowchart of a step of determining a device to be operated according to the speech information, language information, information of all devices, user usage habits, and user environment information according to an embodiment of the present application;
图6是根据本申请实施例包括获取用户的反馈步骤的流程示意图;FIG6 is a flow chart showing a step of obtaining user feedback according to an embodiment of the present application;
图7是根据本申请实施例智能家居控制模型的训练方法的主要步骤流程示意图;FIG7 is a flow chart showing the main steps of a method for training a smart home control model according to an embodiment of the present application;
图8是根据本申请实施例根据所述用户的发话信息、情景信息以及操作设备对待训练的控制模型进行训练的主要步骤流程示意图;8 is a schematic flow chart of the main steps of training a control model to be trained according to the user's speech information, context information and operating device according to an embodiment of the present application;
图9是根据本申请实施例的一种智能设备的交互方法的硬件环境示意图。FIG. 9 is a schematic diagram of a hardware environment of an interaction method of a smart device according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or apparatuses.
本申请提供了一种智能家居控制方法,参照图1,包括:The present application provides a smart home control method, referring to FIG1 , including:
S1,获取用户的发话信息;S1, obtain the user's speaking information;
S2,判断是否可以根据所述发话信息确定待操作设备;S2, determining whether the device to be operated can be determined according to the voice information;
若是,则控制所述待操作设备执行适配于所述发话信息的操作;If yes, controlling the device to be operated to perform an operation adapted to the speaking information;
若否,则获取用户的情景信息,根据所述发话信息和用户的情景信息确定待操作设备。If not, the user's context information is obtained, and the device to be operated is determined according to the speech information and the user's context information.
智能家居是指将家庭中的各种设备通过网络连接起来,通过智能终端设备的应用程序或语音控制来实现家庭设备的自动化控制,包括智能照明、智能音响、智能电视、智能冰箱、智能空调、智能安全系统等。随着技术的不断发展,智能家居市场也在不断进步,各种智能家居设备越来越普及。Smart home refers to connecting various devices in the home through the Internet, and realizing the automatic control of home devices through the application or voice control of smart terminal devices, including smart lighting, smart speakers, smart TVs, smart refrigerators, smart air conditioners, smart security systems, etc. With the continuous development of technology, the smart home market is also constantly improving, and various smart home devices are becoming more and more popular.
如果用户的指令(发话信息)中涉及多个设备,系统往往无法确定用户要操作的具体设备,比如用户说“开灯”,因为居室内有多个灯,不知道应该开具体哪个灯,如果智能家居系统通过多轮询问方能确定用户的意图,这对用户的体验造成了严重影响,所以本申请中,获取用户的发话信息后,不再继续询问,而是当获取的用户发话信息不能确定待操作设备时,则采用将所述发话信息和用户的情景信息结合,分析后确定待操作设备。If the user's command (speech information) involves multiple devices, the system often cannot determine the specific device the user wants to operate. For example, if the user says "turn on the light", because there are multiple lights in the room, it does not know which specific light should be turned on. If the smart home system can only determine the user's intention through multiple rounds of inquiries, this will have a serious impact on the user's experience. Therefore, in this application, after obtaining the user's speech information, no further inquiries are made. Instead, when the obtained user speech information cannot determine the device to be operated, the speech information is combined with the user's context information, and the device to be operated is determined after analysis.
本申请摒弃了多轮询问用户的过程,采用将用户的情景信息结合用户的发话信息总和分析判断后,得出待操作设备的结论。The present application abandons the process of multiple rounds of questioning of the user, and adopts the method of analyzing and judging the user's context information in combination with the user's spoken information to draw a conclusion on the device to be operated.
所述情景包括(具体场合的)情形,景象,本申请中为家居环境中,用户发指令的上文语言环境、用户对设备的偏好和使用习惯、家居设备状态、居室内外环境等。The scenario includes (specific occasion) situations and scenes. In this application, it refers to the contextual language environment in which the user issues instructions in a home environment, the user's preferences and usage habits for the device, the status of home appliances, and the indoor and outdoor environment of the room.
通过加入用户的情景信息,可以更精准的分析出用户发话信息中对应的待操作设备。By adding the user's context information, the corresponding device to be operated in the user's speaking information can be analyzed more accurately.
一个实施例中,所述获取用户的发话信息包括:获取用户的控制指令和/或识别用户的期望。In one embodiment, obtaining the user's speech information includes: obtaining the user's control instructions and/or identifying the user's expectations.
用户发出控制请求,例如“打开空调”。用户发话信息获取装置比如语音助手收到请求后,通过语音识别技术将语音命令转化为文本,并解析语义,实现指令接收。The user issues a control request, such as "turn on the air conditioner". After the user's voice information acquisition device, such as a voice assistant, receives the request, it converts the voice command into text through voice recognition technology and analyzes the semantics to realize command reception.
一个应用场景中,获取用户的控制指令,比如用户发话:“打开空调”、“打开卧室灯”等。“打开空调”说明用户要求对空调执行打开的控制命令,“打开卧室灯”说明用户要求对卧室灯执行打开的命令。In an application scenario, a user's control command is obtained, such as the user saying "turn on the air conditioner", "turn on the bedroom light", etc. "Turn on the air conditioner" means that the user requires the air conditioner to be turned on, and "turn on the bedroom light" means that the user requires the bedroom light to be turned on.
这种情况下,若仅根据用户的发话信息不清楚针对哪个具体的设备,比如不知道打开哪个空调或打开哪个灯,则结合用户的情景信息进一步分析判断。In this case, if it is not clear which specific device is being targeted based only on the user's spoken information, such as not knowing which air conditioner or light to turn on, further analysis and judgment is performed in combination with the user's context information.
一个应用场景中,识别用户的期望,比如用户发话:“光线调亮点”、“屋里太冷了”等。“光线调亮点”说明用户要要求实现居室光线亮度增加的效果,“屋里太冷了”说明用户要求实现居室内温度提高的效果。In an application scenario, the user's expectations are identified, such as when the user says: "Adjust the light" or "The room is too cold". "Adjust the light" means that the user wants to increase the brightness of the room, and "The room is too cold" means that the user wants to increase the temperature of the room.
这种情况下,若仅根据用户的发话信息不清楚针对哪个具体的设备操作,比如实现光线调亮点,不知道是要控制灯打开还是要控制窗帘拉开等,则需要结合用户的情景信息进一步分析判断。In this case, if it is unclear which specific device operation is being performed based solely on the user's spoken information, such as dimming the light and not knowing whether to turn on the light or open the curtains, further analysis and judgment will be required based on the user's situational information.
或者,用户发话“屋里太冷了”,仅根据用户的发话信息不清楚针对哪个具体的设备操作,则需要根据结合用户的情景信息进一步分析判断,是打开空调还是打开暖风机。Or, when a user says "it's too cold in the room", it is not clear which specific device is being operated based on the user's spoken information. Therefore, further analysis and judgment based on the user's situational information is needed to determine whether to turn on the air conditioner or the heater.
一个实施例中,参照图2,所述获取用户的情景信息,根据所述发话信息和用户的情景信息确定待操作设备包括:In one embodiment, referring to FIG. 2 , the acquiring of the user's context information and determining the device to be operated according to the speech information and the user's context information includes:
S2-1,获取用户在所述发话信息前的语言信息;S2-1, obtaining the language information of the user before the speaking information;
具体地,通过语音识别和自然语言处理获取用户的发话内容,并从中提取Specifically, the user's speech content is obtained through speech recognition and natural language processing, and the
出对应设备的关键信息;Output the key information of the corresponding device;
S2-2,判断是否可以根据所述发话信息和所述语言信息确定待操作设备;S2-2, determining whether the device to be operated can be determined based on the speech information and the language information;
若是,则控制所述待操作设备执行适配于所述发话信息的操作。If yes, the device to be operated is controlled to perform an operation adapted to the speaking information.
本实施例中,不仅采集本次用户的发话信息,还采集发话信息前的发话信息,这样结合上下文,尤其是上文的发话信息,就能分析出本次发话信息所对应的待操作设备。In this embodiment, not only the user's speech information is collected this time, but also the speech information before the speech information is collected. In this way, combined with the context, especially the previous speech information, the device to be operated corresponding to the current speech information can be analyzed.
一个应用场景中,用户的发话信息为“打开灯”,智能家居设备听到这个指令后,无法确定是打开哪个灯,于是就结合用户在本次“打开灯”发话之前的信息,获取的发话信息前的语言信息为“7点了,该做晚饭了,先准备切菜”,根据上文的语言信息可知,用户是在厨房做饭,所以很有可能是打开厨房的灯,所以控制厨房的灯打开,而不用按照现有技术的内容询问用户“您想打开哪个灯光?”。In an application scenario, the user's voice message is "turn on the light". After hearing this command, the smart home device cannot determine which light to turn on, so it combines the information before the user speaks "turn on the light" and obtains the language information before the voice message, which is "It's 7 o'clock, time to cook dinner, prepare to cut vegetables first." According to the above language information, it can be known that the user is cooking in the kitchen, so it is very likely that the kitchen light is turned on, so the kitchen light is controlled to turn on, without asking the user "Which light do you want to turn on?" according to the content of the prior art.
本实施例通过收集用户当前发话前的一系列发话历史,以更准确地理解用户的当前需求。This embodiment collects a series of speech histories before the user's current speech to more accurately understand the user's current needs.
一个实施例中,参照图3,所述S2-2,判断是否可以根据所述发话信息In one embodiment, referring to FIG. 3, the step S2-2 determines whether the calling information can be used.
和所述语言信息确定待操作设备步骤之后,所述方法还包括:After determining the device to be operated according to the language information, the method further includes:
S2-3,若不可以根据所述发话信息和所述语言信息确定待操作设备,则获S2-3, if the device to be operated cannot be determined based on the speech information and the language information, then
取所有设备的信息,其中所有设备包括待操作设备;Get the information of all devices, including the devices to be operated;
S2-4,判断是否可以根据所述发话信息、语言信息和所有设备的信息确定待操作设备;S2-4, determining whether the device to be operated can be determined based on the speech information, language information and information of all devices;
若是,则控制所述待操作设备执行适配于所述发话信息的操作。If yes, the device to be operated is controlled to perform an operation adapted to the speaking information.
所述获取所有设备的信息包括:The acquisition of information of all devices includes:
获取所有设备的功能、运行状态和位置。Get the capabilities, operating status, and location of all devices.
采集所有这些所有设备的信息,待操作设备为这些设备中的一个或几个。The information of all these devices is collected, and the device to be operated is one or more of these devices.
具体地,采集这些设备的功能、运行状态和位置。具体地,家电设备信息包括每个设备的名称、状态(离线/在线、开机/关机)、功能状态(开启/关闭)、位置(通过设备的绑定位置或Wi-Fi信号获取)以及支持的功能等信息。Specifically, the functions, operating status and location of these devices are collected. Specifically, the home appliance information includes the name, status (offline/online, on/off), function status (on/off), location (obtained through the device's binding location or Wi-Fi signal), and supported functions of each device.
一个应用场景中,用户家里面的智能家居有智能空调、智能电灯、智能冰箱、智能采暖炉。In one application scenario, the user’s smart home includes smart air conditioners, smart lights, smart refrigerators, and smart heating stoves.
用户家里的智能空调包括:主卧空调、客厅空调和次卧空调。The smart air conditioners in the user's home include: master bedroom air conditioner, living room air conditioner and second bedroom air conditioner.
首先进行S1,获取用户的发话信息,用户发话内容为“打开空调”;First, S1 is performed to obtain the user's speech information, and the user's speech content is "turn on the air conditioner";
然而并不明确打开哪个空调。However, it is not clear which air conditioner to turn on.
然后判断是否可以根据所述发话信息和所述语言信息确定待操作设备,用户在当次发话内容之前,没有其他有效语言信息,所以仍然无法确定待操作设备。Then, it is determined whether the device to be operated can be determined based on the speech information and the language information. Before the user speaks the content, there is no other valid language information, so the device to be operated still cannot be determined.
于是继续判断,所述获取所有设备的信息,具体判断用户家里所有空调的使用状态和位置信息,得到的结果为:主卧空调已开启,次卧空调已开启,客厅空调为开启。So continue to judge, the information of all devices is obtained, and specifically the usage status and location information of all air conditioners in the user's home are judged, and the result is: the air conditioner in the master bedroom is turned on, the air conditioner in the second bedroom is turned on, and the air conditioner in the living room is turned on.
根据三个空调的位置和开启状态,可以推断出,用户发出的指令“打开空调”对应的待操作空调为客厅空调。Based on the positions and on states of the three air conditioners, it can be inferred that the air conditioner to be operated corresponding to the user's command “turn on the air conditioner” is the air conditioner in the living room.
一个应用场景中,用户家里面的智能家居有智能冰箱、智能电灯、智能风扇、智能暖风机。In one application scenario, the user's smart home includes a smart refrigerator, smart lights, smart fans, and smart heaters.
首先进行S1,获取用户的发话信息,用户发话内容为“启动加热”;然而并不明确打开设备,然后判断是否可以根据所述发话信息和所述语言信息确定待操作设备,用户在当次发话内容之前,没有其他有效语言信息,所以仍然无法确定待操作设备。First, S1 is performed to obtain the user's spoken information. The user's spoken content is "start heating"; however, it does not explicitly turn on the device. Then, it is determined whether the device to be operated can be determined based on the spoken information and the language information. Before the user's spoken content, there is no other valid language information, so the device to be operated cannot be determined.
于是继续判断,所述获取所有设备的信息,得到的结果为:So continue to judge, the information of all devices is obtained, and the result is:
只有暖风机才具有加热这个功能,所以可以推断出,用户发出的指令“启动加热”对应的待操作设备为智能暖风机。Only a heater has the function of heating, so it can be inferred that the device to be operated corresponding to the user's command "start heating" is the smart heater.
一个应用场景中,用户家里面的智能家居有智能冰箱、智能电灯、智能风扇、智能暖风机。首先进行S1,获取用户的发话信息,用户发话内容为“启动自清洁”;然而并不明确打开设备,然后判断是否可以根据所述发话信息和所述语言信息确定待操作设备,用户在当次发话内容之前,没有其他有效语言信息,所以仍然无法确定待操作设备。In an application scenario, the user's smart home has a smart refrigerator, smart light, smart fan, and smart heater. First, S1 is performed to obtain the user's speech information. The user's speech content is "start self-cleaning"; however, it does not explicitly turn on the device. Then, it is determined whether the device to be operated can be determined based on the speech information and the language information. Before the user's speech content, there is no other valid language information, so the device to be operated cannot be determined.
于是继续判断,所述获取所有设备的信息,得到的结果为:So continue to judge, the information of all devices is obtained, and the result is:
只有空调才具有自清洁这个功能,所以可以推断出,用户发出的指令“启动自清洁”对应的待操作设备为空调。Only air conditioners have the self-cleaning function, so it can be inferred that the device to be operated corresponding to the user's command "start self-cleaning" is the air conditioner.
一个实施例中,参照图4,所述S2-4,判断是否可以根据所述发话信息、语言信息和所有设备的信息确定待操作设备步骤之后,所述方法还包括:In one embodiment, referring to FIG. 4 , after the step S2-4 of determining whether the device to be operated can be determined based on the speech information, language information and information of all devices, the method further includes:
S2-5,若不可以根据所述发话信息、语言信息和所有设备的信息确定待操作设备,则获取用户使用习惯;S2-5, if the device to be operated cannot be determined based on the speech information, language information and information of all devices, obtaining the user's usage habits;
S2-6,判断是否可以根据发话信息、语言信息、所有设备的信息和用户使用习惯确定待操作设备;S2-6, determining whether the device to be operated can be determined based on the speech information, language information, information of all devices and user usage habits;
若是,则控制所述待操作设备执行适配于所述发话信息的动作。If yes, the device to be operated is controlled to execute an action adapted to the speaking information.
用户使用习惯的获取具体地为根据用户过去操作家庭设备的历史数据,提取用户的使用习惯。The acquisition of user usage habits specifically involves extracting the user usage habits based on historical data of the user's past operations on home devices.
具体地,所述获取用户使用习惯包括:Specifically, obtaining the user's usage habits includes:
分别获取用户对所有设备的使用频率。某个设备使用频率越高则说明该设备被用户发话提出控制的几率越高。可以根据设备的使用频率,优先控制使用频率高的设备。Get the user's usage frequency of all devices respectively. The higher the usage frequency of a device, the higher the probability that the device will be controlled by the user. Based on the usage frequency of the device, the device with high usage frequency can be controlled preferentially.
本申请给出了层层递进的判断方式,倘若根据发话信息、语言信息和所有设备的信息都无法确定待操作设备,则获取用户使用习惯,帮助推导确定待操作设备。This application provides a step-by-step judgment method. If the device to be operated cannot be determined based on the speech information, language information and information of all devices, the user's usage habits are obtained to help deduce and determine the device to be operated.
一个应用场景中,用户晚上回到家后,想打开灯,照亮,跟智能家居系统发布指令,“开灯”。In an application scenario, when the user returns home at night, he wants to turn on the lights to illuminate the home, so he issues a command to the smart home system, "Turn on the lights."
首先进行S1,获取用户的发话信息,用户发话内容为“开灯”;First, S1 is performed to obtain the user's speech information, and the user's speech content is "turn on the light";
然而并不明确打开设备,然后判断是否可以根据所述发话信息和所述语言信息确定待操作设备,用户在当次发话内容之前,没有其他有效语言信息,所以仍然无法确定待操作设备。However, it is not clear to turn on the device and then determine whether the device to be operated can be determined based on the speaking information and the language information. Before the user speaks the content, there is no other valid language information, so the device to be operated still cannot be determined.
继续判断,获取所有设备的信息,其中所有设备包括待操作设备,本步骤中,获取家里所有灯的开启状态信息,结果是都没有开启,所以到此,仍然无法确定待操作设备。Continue to judge and obtain information of all devices, including all devices to be operated. In this step, the on status information of all lights in the home is obtained. The result is that none of the lights are turned on, so at this point, it is still impossible to determine the device to be operated.
继续判断,获取用户使用习惯。Continue to judge and obtain user usage habits.
本应用场景中,获取用户使用习惯为:控制玄关处照明灯的频率最高,所以推断,该用户的发话信息命令,很可能是对玄关处照明灯的开启控制。In this application scenario, the user's usage habit is obtained as follows: the frequency of controlling the lighting at the entrance is the highest, so it is inferred that the user's voice information command is likely to be the control of turning on the lighting at the entrance.
一个实施例中,参照图5,所述S2-6,判断是否可以根据发话信息、语言信息、所有设备的信息和用户使用习惯确定待操作设备步骤之后,所述方法还In one embodiment, referring to FIG. 5, in step S2-6, after determining whether the device to be operated can be determined based on the speech information, language information, information of all devices and user usage habits, the method further
包括:include:
S2-7,若不可以根据发话信息、语言信息、所有设备的信息和用户使用习惯确定待操作设备,则获取用户所处环境信息;S2-7, if the device to be operated cannot be determined based on the speech information, language information, information of all devices and the user's usage habits, then obtaining the user's environment information;
S2-8,根据所述发话信息、语言信息、所有设备的信息、用户使用习惯以及用户所处环境信息确定待操作设备。S2-8, determining the device to be operated according to the speech information, language information, information of all devices, user usage habits and user environment information.
一个实施例中,所述S2-7中,获取用户所处环境信息包括:In one embodiment, in S2-7, obtaining the user's environment information includes:
获取用户所在室内和/或室外环境信息。Obtain the user's indoor and/or outdoor environment information.
所述S2-8,根据所述发话信息、语言信息、所有设备的信息、用户使用习惯以及用户所处环境信息确定待操作设备包括:The step S2-8, determining the device to be operated according to the speech information, language information, information of all devices, user usage habits and user environment information, includes:
根据所述发话信息、语言信息、所有设备的信息、用户使用习惯以及用户所在室内和/或室外环境信息确定待操作设备。The device to be operated is determined according to the speech information, language information, information of all devices, user usage habits, and indoor and/or outdoor environment information where the user is located.
一个实施例中,所述获取用户所在室内和/或室外环境信息包括:In one embodiment, obtaining the indoor and/or outdoor environment information of the user includes:
获取用户所在室内的温度、湿度、光照强度、空气质量、天气和所处季节,和/或Obtain the user's indoor temperature, humidity, light intensity, air quality, weather and season, and/or
获取用户所在室外的温度、湿度、光照强度、空气质量、天气和所处季节。室内环境信息:比如温度、湿度、空气质量等,可以由室内传感器获取。Get the user's outdoor temperature, humidity, light intensity, air quality, weather and season. Indoor environment information: such as temperature, humidity, air quality, etc., can be obtained by indoor sensors.
室外环境信息:比如地理位置、季节、天气、温度、湿度等,可以由互联网天气服务获取。Outdoor environmental information: such as geographic location, season, weather, temperature, humidity, etc., can be obtained from Internet weather services.
一个应用场景中,用户发话信息为“屋里太暗了”。In one application scenario, the user sends a message saying "The room is too dark".
识别用户的期望为将屋里的光线调高,这样依次经过语言信息、所有设备的信息和用户使用习惯都没能确定待操作设备,这样进行环境判断,天气为晴天,季节是春天,结合设备信息,窗帘处于覆盖窗户状态,灯处于关闭状态,室内的光照强度弱,室外的光照强度强,这样综合判断后,分析得出,控制窗帘拉开,让室外光照照进室内,可以提高室内光线,还能节能环保,则本应用场景中,最终确定待操作设备为智能窗帘,控制智能窗帘打开。The user's expectation is to turn up the light in the room. So the language information, the information of all devices and the user's usage habits are not able to determine the device to be operated. So the environment is judged. The weather is sunny and the season is spring. Combined with the device information, the curtains are in the state of covering the windows, the lights are in the state of off, the indoor light intensity is weak, and the outdoor light intensity is strong. After comprehensive judgment, it is analyzed that controlling the curtains to open and letting the outdoor light shine into the room can increase the indoor light and save energy and protect the environment. In this application scenario, it is finally determined that the device to be operated is the smart curtain, and the smart curtain is controlled to open.
上述应用场景中,如果天气为降雨,季节是秋天,结合设备信息,窗帘处于覆盖窗户状态,灯处于关闭状态,室内的光照强度弱,室外的光照强度也弱,In the above application scenario, if the weather is rainy and the season is autumn, combined with the device information, the curtains are in the state of covering the windows, the lights are in the state of being off, the indoor light intensity is weak, and the outdoor light intensity is also weak.
这样综合判断后,分析得出,本应用场景中,最终确定待操作设备智能点灯,After comprehensive judgment, it is concluded that in this application scenario, the intelligent lighting of the device to be operated is finally determined.
控制智能点灯打开。Control the smart lighting to turn on.
一个实施例中,参照图6,S2,判断是否可以根据所述发话信息确定待操作设备步骤之后,所述方法还包括:In one embodiment, referring to FIG. 6 , in S2, after determining whether the device to be operated can be determined based on the speech information, the method further includes:
S3,获取用户的反馈。S3, obtain user feedback.
一个应用场景中,用户晚上回到家后,想打开灯,照亮,跟智能家居系统发布指令,“开灯”。In an application scenario, when the user returns home at night, he wants to turn on the lights to illuminate the home, so he issues a command to the smart home system, "Turn on the lights."
首先进行S1,获取用户的发话信息,用户发话内容为“开灯”;First, S1 is performed to obtain the user's speech information, and the user's speech content is "turn on the light";
然而并不明确打开设备,然后判断是否可以根据所述发话信息和所述语言信息确定待操作设备,用户在当次发话内容之前,没有其他有效语言信息,所以仍然无法确定待操作设备。However, it is not clear to turn on the device and then determine whether the device to be operated can be determined based on the speaking information and the language information. Before the user speaks the content, there is no other valid language information, so the device to be operated cannot be determined.
继续判断,获取所有设备的信息,其中所有设备包括待操作设备,本步骤中,获取家里所有灯的开启状态信息,结果是都没有开启,所以到此,仍然无法确定待操作设备。Continue to judge and obtain information of all devices, including the device to be operated. In this step, the on status information of all lights in the home is obtained. The result is that none of the lights are turned on, so at this point, it is still impossible to determine the device to be operated.
继续判断,获取用户使用习惯。Continue to judge and obtain user usage habits.
本应用场景中,获取用户使用习惯为:控制玄关处照明灯的频率最高,所以推断,该用户的发话信息命令,很可能是对玄关处照明灯的开启控制。In this application scenario, the user's usage habit is obtained as follows: the frequency of controlling the lighting at the entrance is the highest, so it is inferred that the user's voice information command is likely to be the control of turning on the lighting at the entrance.
控制玄关处照明灯的开启后,用户反馈“不是这个灯”,则根据用户反馈调整用户习惯。After controlling the lighting at the entrance, if the user feedback is "not this light", the user habit will be adjusted based on the feedback.
本申请还提供了一种智能家居控制模型的训练方法,参照图7,包括:The present application also provides a training method for a smart home control model, referring to FIG. 7 , comprising:
获取用户的发话信息、情景信息以及待操作设备;Obtain the user's speech information, context information, and the device to be operated;
根据所述用户的发话信息、情景信息以及待操作设备对待训练的控制模型进行训练。The control model to be trained is trained according to the speech information, situation information and the device to be operated of the user.
将已知的数据:发话信息、情景信息以及所述发话信息和情景信息对应的待操作设备为样本数据,对待训练的控制模型进行训练。The known data: speech information, situation information and the to-be-operated devices corresponding to the speech information and situation information are used as sample data to train the control model to be trained.
一个实施例中,参照图8,所述根据所述用户的发话信息、情景信息以及操作设备对待训练的控制模型进行训练包括:In one embodiment, referring to FIG. 8 , the training of the control model to be trained according to the user's speech information, context information, and operation device includes:
将所述用户的发话信息、情景信息以及待操作设备输入待训练的控制模型;Inputting the user's speech information, situation information, and the device to be operated into the control model to be trained;
将所述发话信息和情景信息转化为适合模型处理的格式,比如分别通过编码转化为特征向量然后将转化后的数据进行归一化处理;Converting the speech information and the situation information into a format suitable for model processing, such as converting them into feature vectors by encoding and then normalizing the converted data;
通过循环神经网络对所述特征向量解码后得到待操作设备,一个应用场景中,循环神经网络为循环神经网络(RNN),RNN的特点是可以处理序列数据,所以特别适合处理具有时间序列的数据,如用户的发话历史和使用习惯。The device to be operated is obtained by decoding the feature vector through a recurrent neural network. In one application scenario, the recurrent neural network is a recurrent neural network (RNN). The characteristic of RNN is that it can process sequence data, so it is particularly suitable for processing data with time series, such as the user's speech history and usage habits.
将所述待操作设备作为真值,通过预设损失函数对所述待操作设备计算损失;Taking the device to be operated as a true value, calculating the loss of the device to be operated by using a preset loss function;
基于所述损失进行反向传播以对所述控制模型的参数进行更新,完成当前轮迭代。Back propagation is performed based on the loss to update the parameters of the control model to complete the current round of iteration.
本申请还提出了一种利用上述训练好的控制模型进行待操作设备预测的方法,包括:The present application also proposes a method for predicting a device to be operated using the above-mentioned trained control model, including:
获取用户的发话信息和用户的情景;Obtain the user's speech information and user context;
根据训练好的控制模型输入发话信息和用户的情景信息,输出预测的待操作设备。According to the trained control model, the speech information and the user's context information are input, and the predicted device to be operated is output.
模型输出概率最大的设备。The model outputs the device with the highest probability.
模型也可以输出对应每个可能设备的概率,概率最大的设备被认为是用户期望操作的设备。The model can also output the probability corresponding to each possible device, and the device with the highest probability is considered to be the device that the user expects to operate.
本申请建立的控制模型可以认为是一种设备消歧模型,因为该模型应用后,可以确定待操作设备,避免理解歧义。The control model established in the present application can be considered as a device disambiguation model, because after the model is applied, the device to be operated can be determined to avoid misunderstanding.
模型确定了用户期望操作的设备后,生成对应的控制命令,并通过无线网络(如Wi-Fi、蓝牙、5G等)发送到设备,让设备执行相应的操作。After the model determines the device that the user expects to operate, it generates the corresponding control command and sends it to the device via a wireless network (such as Wi-Fi, Bluetooth, 5G, etc.) to allow the device to perform the corresponding operation.
用户如果对系统的操作有反馈,例如,“我说的不是这个空调”,可以利用这种反馈,重新调整模型权重,进行在线学习。If the user has feedback on the operation of the system, for example, "I'm not talking about this air conditioner", this feedback can be used to readjust the model weights and perform online learning.
1、本申请将用户发话信息与用户的情景信息结合,综合判断确定待操作设备。1. This application combines the user's speech information with the user's context information to comprehensively determine the device to be operated.
2.本申请利用深度学习模型或规则引擎进行待操作设备预测;2. This application uses deep learning models or rule engines to predict the equipment to be operated;
3.本申请根据预测结果生成设备控制命令,能有效避免因设备消歧未能解决所带来的困扰,减少无效交互,提升用户在使用智能家居过程中的体验,准确的设备消歧能大大降低家居的误操作。3. This application generates device control commands based on the prediction results, which can effectively avoid the troubles caused by the failure of device disambiguation, reduce invalid interactions, and enhance the user experience in the process of using smart homes. Accurate device disambiguation can greatly reduce misoperation of the home.
本申请还提出了一种智能家居控制装置,包括处理器和存储装置,所述存储装置适于存储多条程序代码,所述程序代码适于由所述处理器加载并运行以执行所述的智能家居控制方法或执行项所述的智能家居控制方法的训练方法或所述的待操作设备预测的方法。The present application also proposes a smart home control device, including a processor and a storage device, wherein the storage device is suitable for storing multiple program codes, and the program codes are suitable for being loaded and run by the processor to execute the smart home control method or the training method of the smart home control method described in the execution item or the method for predicting the device to be operated.
在根据本申请的一个控制装置实施例中,控制装置包括处理器和存储装置,存储装置可以被配置成存储执行上述方法实施例的智能家居控制方法的训练方法或所述的待操作设备预测的方法的程序,处理器可以被配置成用于执行存储装置中的程序,该程序包括但不限于执行上述方法实施例的智能家居控制方法的训练方法或所述的待操作设备预测的方法的程序。为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该控制装置可以是包括各种电子设备形成的控制装置设备。In an embodiment of a control device according to the present application, the control device includes a processor and a storage device, the storage device can be configured to store a program for executing the training method of the smart home control method of the above method embodiment or the method for predicting the device to be operated, and the processor can be configured to execute the program in the storage device, which includes but is not limited to executing the training method of the smart home control method of the above method embodiment or the method for predicting the device to be operated. For ease of explanation, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present application. The control device can be a control device device formed by various electronic devices.
本领域技术人员能够理解的是,本申请实现上述一实施例的方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读存储介质可以包括:能够携带所述计算机程序代码的任何实体或装置、介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器、随机存取存储器、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读存储介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读存储介质不包括电载波信号和电信信号。It is understood by those skilled in the art that all or part of the processes in the method for implementing the above-mentioned embodiment of the present application can also be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. 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. The computer-readable storage medium may include: any entity or device, medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium that can carry the computer program code. It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electric carrier signals and telecommunication signals.
进一步,本申请还提供了一种计算机可读存储介质。在根据本申请的一个计算机可读存储介质实施例中,计算机可读存储介质可以被配置成存储执行上述方法实施例的样本数据获取方法或所述的海报生成模型的训练方法或所述的海报生成的方法的程序,该程序可以由处理器加载并运行以实现上述智能家居控制方法的训练方法或所述的待操作设备预测的方法。为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该计算机可读存储介质可以是包括各种电子设备形成的存储装置设备,可选的,本申请实施例中计算机可读存储介质是非暂时性的计算机可读存储介质。Furthermore, the present application also provides a computer-readable storage medium. In a computer-readable storage medium embodiment according to the present application, the computer-readable storage medium can be configured to store a program for executing the sample data acquisition method of the above-mentioned method embodiment or the training method of the poster generation model or the poster generation method, and the program can be loaded and run by the processor to implement the training method of the above-mentioned smart home control method or the method of predicting the device to be operated. For ease of explanation, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present application. The computer-readable storage medium may be a storage device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present application is a non-temporary computer-readable storage medium.
进一步,应该理解的是,由于各个模块的设定仅仅是为了说明本申请的装置的功能单元,这些模块对应的物理器件可以是处理器本身,或者处理器中软件的一部分,硬件的一部分,或者软件和硬件结合的一部分。因此,图中的各个模块的数量仅仅是示意性的。Further, it should be understood that since the setting of each module is only for illustrating the functional units of the device of the present application, the physical devices corresponding to these modules may be the processor itself, or a part of the software in the processor, a part of the hardware, or a part of the combination of software and hardware. Therefore, the number of each module in the figure is only schematic.
本领域技术人员能够理解的是,可以对装置中的各个模块进行适应性地拆分或合并。对具体模块的这种拆分或合并并不会导致技术方案偏离本申请的原理,因此,拆分或合并之后的技术方案都将落入本申请的保护范围内。It is understood by those skilled in the art that each module in the device can be adaptively split or merged. Such splitting or merging of specific modules will not cause the technical solution to deviate from the principle of this application, and therefore, the technical solutions after splitting or merging will fall within the protection scope of this application.
至此,已经结合附图所示的优选实施方式描述了本申请的技术方案,但是,本领域技术人员容易理解的是,本申请的保护范围显然不局限于这些具体实施方式。在不偏离本申请的原理的前提下,本领域技术人员可以对相关技术特征作出等同的更改或替换,这些更改或替换之后的技术方案都将落入本申请的保护范围之内。So far, the technical solutions of the present application have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific embodiments. Without departing from the principles of the present application, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present application.
根据本申请实施例的一个方面,提供了一种智能家居设备的交互方法。该智能家居设备的交互方法广泛应用于智慧家庭(Smart Home)、智能家居、智能家用设备生态、智慧住宅(Intelligence House)生态等全屋智能数字化控制应用场景。According to one aspect of an embodiment of the present application, a method for interacting with a smart home device is provided. The method for interacting with a smart home device is widely used in whole-house intelligent digital control application scenarios such as smart home, smart home, smart home device ecology, and smart house ecology.
本申请提供了一种智能家居设备的交互系统,包括:The present application provides an interactive system for smart home devices, including:
用户发话信息获取装置,用于获取用户的发话信息,比如音响、移动终端的语音助手等;A user speech information acquisition device, used to acquire the user's speech information, such as a speaker, a voice assistant of a mobile terminal, etc.;
服务器,用于根据接收所述用户的发话信息,并根据所述发话信息和用户的情景信息确定待操作设备。The server is used to receive the speaking information of the user and determine the device to be operated according to the speaking information and the context information of the user.
终端设备,用于根据服务器确定的待操作设备执行适配于所述发话信息的操作。The terminal device is used to perform an operation adapted to the speaking information according to the device to be operated determined by the server.
所述服务器也成为云端,终端设备通过网络与云端(服务器)连接。用户发话信息获取装置通过网络与云端(服务器)连接。上述网络可以包括但不限于以下至少之一:有线网络,无线网络。上述有线网络可以包括但不限于以下至少之一:广域网,城域网,局域网,上述无线网络可以包括但不限于以下至少之一:WIFI(Wireless Fidelity,无线保真),蓝牙。The server is also called the cloud, and the terminal device is connected to the cloud (server) through the network. The user speech information acquisition device is connected to the cloud (server) through the network. The above network may include but is not limited to at least one of the following: wired network, wireless network. The above wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the above wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth.
云端确定了待操作设备后,控制相应的设备执行适配于所述发话信息的操作。After the cloud determines the device to be operated, it controls the corresponding device to perform the operation adapted to the speech information.
在本实施例中,上述智能家居设备的交互方法可以应用于如图9所示的由终端设备102和服务器104所构成的硬件环境中。如图9所示,服务器104通过网络与终端设备102进行连接,可用于为终端或终端上安装的客户端提供服务(如应用服务等),可在服务器上或独立于服务器设置数据库或云端,用于为服务器104提供数据存储服务或数据分析服务,可在服务器上或独立于服务器配置云计算和/或边缘计算服务,用于为服务器104提供数据运算服务或数据分析服务。In this embodiment, the above-mentioned interaction method of smart home devices can be applied to the hardware environment composed of the terminal device 102 and the server 104 as shown in FIG9. As shown in FIG9, the server 104 is connected to the terminal device 102 through a network, and can be used to provide services (such as application services, etc.) for the terminal or the client installed on the terminal, and a database or cloud can be set on the server or independently of the server to provide data storage services or data analysis services for the server 104, and cloud computing and/or edge computing services can be configured on the server or independently of the server to provide data computing services or data analysis services for the server 104.
终端设备102可以并不限定于为PC、手机、平板电脑、智能空调、智能烟机、智能冰箱、智能烤箱、智能炉灶、智能洗衣机、智能热水器、智能洗涤设备、智能洗碗机、智能投影设备、智能电视、智能晾衣架、智能窗帘、智能影音、智能插座、智能音响、智能音箱、智能新风设备、智能厨卫设备、智能卫浴设备、智能扫地机器人、智能擦窗机器人、智能拖地机器人、智能空气净化设备、智能蒸箱、智能微波炉、智能厨宝、智能净化器、智能饮水机、智能门锁等。The terminal device 102 may be but is not limited to a PC, mobile phone, tablet computer, smart air conditioner, smart range hood, smart refrigerator, smart oven, smart stove, smart washing machine, smart water heater, smart washing equipment, smart dishwasher, smart projection equipment, smart TV, smart clothes drying rack, smart curtains, smart audio and video, smart socket, smart audio, smart speaker, smart fresh air equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart sweeping robot, smart window cleaning robot, smart mopping robot, smart air purification equipment, smart steamer, smart microwave oven, smart kitchen treasure, smart purifier, smart water dispenser, smart door lock, etc.
以上所述仅是本申请的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410348676.3A CN118170038A (en) | 2024-03-26 | 2024-03-26 | A smart home control method, control model, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410348676.3A CN118170038A (en) | 2024-03-26 | 2024-03-26 | A smart home control method, control model, storage medium and electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118170038A true CN118170038A (en) | 2024-06-11 |
Family
ID=91356336
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410348676.3A Pending CN118170038A (en) | 2024-03-26 | 2024-03-26 | A smart home control method, control model, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118170038A (en) |
-
2024
- 2024-03-26 CN CN202410348676.3A patent/CN118170038A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108091331B (en) | Intelligent household system based on voice control and control method thereof | |
US11243502B2 (en) | Interactive environmental controller | |
CN110853619B (en) | Man-machine interaction method, control device, controlled device and storage medium | |
WO2019205134A1 (en) | Smart home voice control method, apparatus, device and system | |
CN112051743A (en) | Device control method, conflict processing method, corresponding devices and electronic device | |
CN106842968B (en) | Control method, device and system | |
CN108259280B (en) | Method and system for realizing indoor intelligent control | |
CN111970180B (en) | Networking configuration method and device for intelligent household equipment, electronic equipment and storage medium | |
CN105700389A (en) | Smart home natural language control method | |
CN109218145B (en) | IOT equipment control interface display method, system, equipment and storage medium | |
US10605470B1 (en) | Controlling connected devices using an optimization function | |
CN107562023A (en) | Smart home managing and control system based on user behavior custom | |
CN111754997B (en) | Control device and operation method thereof, and voice interaction device and operation method thereof | |
CN115327934B (en) | Smart home scene recommendation method, system, storage medium and electronic device | |
CN115167161A (en) | Method and device for determining association relationship of lamps, storage medium and electronic device | |
CN118170038A (en) | A smart home control method, control model, storage medium and electronic device | |
CN113031458A (en) | Household control system based on artificial intelligence | |
CN106297783A (en) | A kind of interactive voice identification intelligent terminal | |
CN106128458A (en) | A kind of home voice control system based on speech recognition technology and method | |
CN115309062B (en) | Control method and device of equipment, storage medium and electronic device | |
CN115001885A (en) | Device control method and apparatus, storage medium, and electronic apparatus | |
CN115494737A (en) | Control method, storage medium and electronic device of smart home appliance | |
CN112509577A (en) | Voice control method of intelligent household equipment and intelligent household gateway | |
CN115171699B (en) | Wake-up parameter adjustment method and device, storage medium and electronic device | |
Sutar et al. | A Review on IoT-Enabled Smart Homes Using AI |
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 |