[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2024001196A1 - Household appliance control method and apparatus, storage medium, and electronic apparatus - Google Patents

Household appliance control method and apparatus, storage medium, and electronic apparatus Download PDF

Info

Publication number
WO2024001196A1
WO2024001196A1 PCT/CN2023/075053 CN2023075053W WO2024001196A1 WO 2024001196 A1 WO2024001196 A1 WO 2024001196A1 CN 2023075053 W CN2023075053 W CN 2023075053W WO 2024001196 A1 WO2024001196 A1 WO 2024001196A1
Authority
WO
WIPO (PCT)
Prior art keywords
jump
mentioned
node
target
nodes
Prior art date
Application number
PCT/CN2023/075053
Other languages
French (fr)
Chinese (zh)
Inventor
邓邱伟
申钊
张旭
翟建光
Original Assignee
青岛海尔科技有限公司
青岛海尔智能家电科技有限公司
海尔智家股份有限公司
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 青岛海尔科技有限公司, 青岛海尔智能家电科技有限公司, 海尔智家股份有限公司 filed Critical 青岛海尔科技有限公司
Publication of WO2024001196A1 publication Critical patent/WO2024001196A1/en

Links

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
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9024Graphs; Linked lists
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • 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

Definitions

  • the present disclosure relates to the field of equipment, and specifically, to a control method, device, storage medium and electronic device for home appliances.
  • Scenario generation is a difficult point, involving permutations and combinations of multiple network devices and multiple functions.
  • the possible order of magnitude is hundreds of millions.
  • not all permutations and combinations are meaningful, and it is basically impossible to achieve it by manual screening.
  • Manually predefined scenarios are relatively monotonous, and it is difficult to take into account the personalized needs of users.
  • the control of home appliances is still based on "single point intelligence", that is, focusing on the intelligence of a single network device. Generate control instructions based on isomorphic graphs, ignoring the attributes of nodes and edges in the graph. It cannot accurately generate control instructions for interconnection between home appliances.
  • Embodiments of the present disclosure provide a method, device, storage medium, and electronic device for controlling home appliances, so as to at least solve the problem in the related art that control instructions for interconnection between home appliances cannot be accurately generated.
  • a method for controlling home appliances including: obtaining N device operation logs, wherein each of the above device operation logs includes multiple operation jump instructions executed on M home appliances.
  • the above-mentioned operation jump instruction is used to represent jumping from the first operation control of the above-mentioned home appliance to other operation control, the above-mentioned M and the above-mentioned N are both natural numbers greater than or equal to 1; generate heterogeneous based on N above-mentioned device operation logs Figure, wherein the above-mentioned heterogeneous graph includes multiple operation jump nodes between the M above-mentioned home appliances and connection relationships between the multiple above-mentioned operation jump nodes; it is determined in the above-mentioned heterogeneous graph Determine the jump probability distribution between the target operation jump node and other above-mentioned operation jump nodes to determine the jump node associated with the above-mentioned target operation jump node; determine according to the jump node associated with the
  • a control device for home appliances including: a first acquisition module configured to acquire N device operation logs, wherein each of the above device operation logs includes information on M home appliances. Multiple operation jump instructions are executed. The above-mentioned operation jump instructions are used to indicate jumping from the first operation control of the above-mentioned home appliance to other operation controls.
  • the above-mentioned M and the above-mentioned N are both natural numbers greater than or equal to 1;
  • the first The generation module is configured to generate a heterogeneous graph based on the N above-mentioned device operation logs, wherein the above-mentioned heterogeneous graph includes a plurality of operation jump nodes between the M above-mentioned home appliances and a plurality of the above-mentioned operation jump nodes.
  • the connection relationship; the first determination module is configured to determine the jump probability distribution between the target operation jump node and other above-mentioned operation jump nodes in the above-mentioned heterogeneous graph to determine the jump probability distribution associated with the above-mentioned target operation jump node.
  • the second determination module is configured to determine the target operation instruction of the target home appliance device according to the jump node associated with the above-mentioned target operation jump node.
  • a computer-readable storage medium is also provided.
  • a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute any of the above methods when running. Steps in Examples.
  • an electronic device including a memory and a processor.
  • a computer program is stored in the memory, and the processor is configured to run the computer program to perform any of the above. Steps in method embodiments.
  • N device operation logs are obtained, wherein each device operation log includes a plurality of operation jump instructions executed on M home appliances, and the operation jump instructions are used to represent the first operation on the home appliances. Control jumps to other operation controls.
  • M and N are natural numbers greater than or equal to 1;
  • a heterogeneous graph is generated based on N device operation logs.
  • the heterogeneous graph includes multiple operation jumps between M home appliances. The connection relationship between a node and multiple operation jump nodes; determine the jump probability distribution between the target operation jump node and other operation jump nodes in the heterogeneous graph to determine the jump associated with the target operation jump node Jump node; determine the target operation instruction of the target home appliance according to the jump node associated with the target operation jump node. Therefore, it can solve the problem that the related technology cannot accurately generate the control of the interconnection between home appliances. A question of instructions.
  • Figure 1 is a schematic diagram of the hardware environment of a method for controlling home appliances according to an embodiment of the present disclosure
  • Figure 2 is a control method of a home appliance according to an embodiment of the present disclosure
  • Figure 3 is a schematic diagram of nodes and edges according to an embodiment of the present disclosure.
  • Figure 4 is a schematic diagram of a probability distribution according to an embodiment of the present disclosure.
  • FIG. 5 is a structural block diagram of a control device for home appliances according to an embodiment of the present disclosure
  • FIG. 6 is a structural block diagram of an electronic device according to an embodiment of the present disclosure.
  • a method for controlling a home appliance is provided.
  • the control method of this home appliance device is widely used in whole-house intelligent digital control application scenarios such as smart home, smart home, smart home equipment ecology, and smart residence (Intelligence House) ecology.
  • the above method for controlling home appliances can be applied to a hardware environment composed of a terminal device 102 and a server 104 as shown in FIG. 1 .
  • the server 104 is connected to the terminal device 102 through the network and can be used to provide services (such as application services, etc.) for the terminal or the client installed on the terminal.
  • the database can be set on the server or independently of the server.
  • cloud computing and/or edge computing services may be configured on the server or independently of the server, and are configured to provide data computing services for the server 104.
  • the above-mentioned network may include but is not limited to at least one of the following: wired network, wireless network.
  • the above-mentioned wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, and local area network.
  • the above-mentioned wireless network may include at least one of the following: WIFI (Wireless Fidelity, Wireless Fidelity), Bluetooth.
  • the terminal device 102 may be, but is not limited to, a PC, a mobile phone, a tablet, a smart air conditioner, a smart hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing equipment, a smart dishwasher, or a smart projection device.
  • smart TV smart clothes drying rack, smart curtains, smart audio and video, smart sockets, smart audio, smart speakers, 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 steamers, smart microwave ovens, smart kitchen appliances, smart purifiers, smart water dispensers, smart door locks, etc.
  • Figure 2 is a control method for home appliances according to an embodiment of the present disclosure. As shown in Figure 2, the process includes the following steps:
  • Step S202 Obtain N device operation logs, where each device operation log includes multiple operation jump instructions executed on M home appliances.
  • the operation jump instructions are used to indicate a jump from the first operation control on the home appliances.
  • M and N are both natural numbers greater than or equal to 1;
  • Step S204 generate a heterogeneous graph based on N device operation logs, where the heterogeneous graph includes multiple operation jump nodes and connection relationships between multiple operation jump nodes between M home appliances;
  • Step S206 determine the jump probability distribution between the target operation jump node and other operation jump nodes in the heterogeneous graph to determine the jump node associated with the target operation jump node;
  • Step S208 Determine the target operation instruction of the target home appliance according to the jump node associated with the target operation jump node.
  • the values of N and M can be flexibly set based on the actual reference scene or composition requirements. For example, more than 5 million device operation logs are obtained, and each device operation log represents an operation of a home appliance in a family. transfer. For example, take a household as a unit and record the control operations from turning on the air conditioner to turning off the air conditioner.
  • a device operation log includes contextual features such as time, location, weather, and some family portrait features from the from operation to the to operation.
  • the execution subject of the above steps may be a terminal, a server, a specific processor provided in the terminal or server, or a processor or processing device provided relatively independently from the terminal or server, but is not limited thereto.
  • N device operation logs are obtained, wherein each device operation log includes multiple operation jump instructions executed on M home appliance devices, and the operation jump instructions are used to represent the first operation on the home appliance device. Control jumps to other operation controls.
  • M and N are natural numbers greater than or equal to 1;
  • a heterogeneous graph is generated based on N device operation logs.
  • the heterogeneous graph includes multiple operation jumps between M home appliances. The connection relationship between a node and multiple operation jump nodes; determine the jump probability distribution between the target operation jump node and other operation jump nodes in the heterogeneous graph to determine the jump associated with the target operation jump node Jump node; determine the target operation instruction of the target home appliance according to the jump node associated with the target operation jump node.
  • N device operation logs are obtained, including:
  • At least one of the following information is determined as a device operation log: multiple operation instructions, time information corresponding to the multiple operation instructions, location information corresponding to the multiple operation instructions, and environment information corresponding to the multiple operation instructions.
  • the preset area can be a local area network.
  • operations such as "turn on the air conditioner - turn off the air conditioner” that occur in a family are obtained, and each operation issued in the "turn on the air conditioner - turn off the air conditioner” is recorded.
  • the time of the command, the location of the air conditioner, and weather information for example, sunny or rainy day), etc.
  • weather information for example, sunny or rainy day
  • a heterogeneous graph is generated based on N device operation logs, including:
  • S5 generates a heterogeneous graph based on operation categories, multiple operation jump nodes, and multiple connecting edges.
  • the value of K can be flexibly set based on actual reference scenarios or composition requirements. For example, removing duplicate logs from 5 million device operation logs results in 3 million device operation logs.
  • the deduplicated device operation logs can be set in a collection.
  • the log information corresponding to the device operation log in the collection for example, the type of log, the time and location of acquisition, etc.
  • the method after generating the heterogeneous graph based on N device operation logs, the method also includes include:
  • S2 based on the operation category corresponding to each operation jump node, uses the heterogeneous graph to respond to the operation instructions acting on the home appliance.
  • the operation categories corresponding to different operation jump nodes may be the same or different.
  • the operation category of the instruction to turn on the air conditioner is "turn on”. Adjusting the temperature of the refrigerator to 4 degrees falls under the "temperature adjustment” category.
  • the operation jump node corresponding to the air conditioner can be ⁇ turn on the air conditioner, lower the air conditioner temperature, and increase the air conditioner wind speed>.
  • determining the jump probability distribution between the target operation jump node and other operation jump nodes in the heterogeneous graph to determine the jump node associated with the target operation jump node includes:
  • S1 receives the operation instruction acting on the target home appliance, where the operation instruction includes the target operation jump node;
  • S3 use the heterogeneous graph to determine the jump probability distribution between the target operation jump node and the adjacent operation jump nodes, where the adjacent operation jump nodes are included in other operation jump nodes;
  • S4 Determine the jump node associated with the target operation jump node based on the jump probability distribution, environmental information and feature information.
  • the operation instructions may be in the form of voice or touch screen.
  • the user issues an instruction to "turn on the water heater” and searches for the operation jump nodes adjacent to "turn on the water heater” in the heterogeneous graph, such as “adjust the air conditioner temperature to 28 degrees", “turn on the ventilation equipment”, etc. And calculate the jump probability between “Adjust the air conditioner temperature to 28 degrees” and “Turn on the ventilation equipment”.
  • the associated jump node controls the opening of the air conditioner and ventilation equipment according to the control instructions corresponding to the associated jump node.
  • using a heterogeneous graph to determine the jump probability distribution between a target operation jump node and adjacent operation jump nodes includes:
  • connection relationships may be connections between operation jump nodes in the heterogeneous graph.
  • all edge weights belonging to node i to node j can be added together and then normalized to determine the probability distribution.
  • using a heterogeneous graph to determine the jump probability distribution between a target operation jump node and adjacent operation jump nodes includes:
  • S3 use the sample data to establish a network model to use the network model to output a jump probability distribution.
  • each connecting edge in the heterogeneous graph can be used as a sample.
  • node i to node j can produce T samples.
  • xgboost or LSTM time series modeling can be used to learn the probability from node i to any of its adjacent nodes.
  • the method further includes:
  • the revised rules include but are not limited to: the sub-function of the home appliance must be turned on after the home appliance itself is turned on; the time difference between turning on and off the same home appliance must be greater than the established threshold; the output operation instructions do not include pause operations. instruction.
  • This embodiment takes the control of home appliances as an example.
  • the operation (action) of the home appliances is a specific operation on the network device function, such as "turn on the air conditioner", “increase the wind speed of the air conditioner”. ”, “TV pause”, the network controller function is used to express control instructions for home appliances.
  • the network appliance function can generate usage scenarios for home appliances. For example, when taking a bath, a bathing scene is recommended to the user (the scene is the linked operation of several network appliances. The bathing scene here can be ⁇ turn on the water heater, set Set the temperature to 39°C, turn on the bathroom heater, and turn on the ventilation fan>).
  • Scene is set to represent an operation sequence (that is, associated operation instructions), for example, ⁇ turn on the air conditioner, lower the air conditioner temperature, increase the air conditioner fan speed>.
  • , E is used to represent the set of edges E ⁇ e 1 , e 2 ,..., e j ,... ⁇ , 1 ⁇ j ⁇
  • Step 1 collect and clean the historical operation logs of all users
  • Step2 build a heterogeneous graph based on the operation log
  • Step 3 Based on the heterogeneous graph, use the beamsearch strategy to search and produce several scenarios (operating instructions associated with home appliances);
  • Step 4 Modify the output scenario according to the established rules.
  • collecting and cleaning the historical operation logs of all users specifically includes: obtaining more than 5 million records, each record is an operation transfer of a family, for example, from turning on the air conditioner to turning off the air conditioner, here the family is taken as a unit.
  • a record will include contextual features such as time, location, weather, and some family portrait features from the from operation to the to operation.
  • building a heterogeneous graph specifically includes:
  • Step 1 Define nodes (corresponding to the operation jump nodes in the above): Based on the full data obtained in Step 1, the action set can be obtained by deduplicating all actions, which constitutes all the nodes v i ⁇ V of the heterogeneous graph, and defines each The category c i to which node vi belongs, c i ⁇ C, for example, "turn on the air conditioner” belongs to the "cooling” category, and "turn on the oven” belongs to the “cooking” category.
  • edge (corresponding to the connecting edge above): the transfer from operation i to operation j is an edge, represented by e ij (here is a directed graph). If there are multiple transfer operations between node i and node j, then there will be multiple edges, and there will be homogeneous edges among the multiple edges. You can aggregate them according to the edge attributes, and aggregate the edges with the same attributes together.
  • FIG. 3 The schematic diagram of nodes and edges is shown in Figure 3.
  • use represents the set of edges from i to j, where, is the t-th edge from node i to j, using a vector
  • To represent the attributes of the t-th edge of E ij use a scalar to represent the weight of the t-th edge of E ij .
  • the actual meaning of the weight is the number of times operation i is transferred to operation j within the statistical range.
  • the probability distribution can be determined in the following two ways:
  • the probability distribution is obtained by adding all the edge weights belonging to node i to node j and then normalizing them, that is function.
  • Each edge of the heterogeneous graph in Step 2 can be used as a sample.
  • the action corresponding to node i and the attributes of the edge from i to j are used as independent variables x, and the action corresponding to node j is used as dependent variable y.
  • xgboost or LSTM time series modeling can be used to learn the probability P(node j
  • node i , p) model(node i , p) from node i to any of its adjacent nodes.
  • the weight is w(t, v)+w(v, x 3 );
  • the weight is w(t, v)+w(v, x 1 )+ ⁇ w(t, x 1 ). Because t->x1 also has a path, the weight of this part is also considered Come in, controlled by a coefficient ⁇ , ⁇ >0, the larger the value, the more likely it is to wander locally.
  • the walking can be performed based on the defined metapath, and nodes that do not meet the metapath requirements will not be selected as the next node.
  • the output scene is modified according to established rules.
  • Specific revised rules include: the device sub-function must be turned on after the device itself is turned on; the time difference between turning on and off the same device must be greater than the established threshold; the output scene does not contain pause-type operations.
  • module may be a combination of software and/or hardware that implements a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 5 is a structural block diagram of a control device for home appliances according to an embodiment of the present disclosure. As shown in Figure 5, the device includes:
  • the first acquisition module 52 is configured to acquire N device operation logs, wherein each device operation log includes multiple operation jump instructions executed on M home appliances, and the operation jump instructions are used to represent the operation jump instructions from the pair of M home appliances.
  • the first operation control of the home appliance jumps to other operation controls, and M and N are both natural numbers greater than or equal to 1;
  • the first generation module 54 is configured to generate a heterogeneous graph based on N device operation logs, where the heterogeneous graph includes multiple operation jump nodes between M home appliances and multiple operation jump nodes between them. connection relationship;
  • the first determination module 56 is configured to determine the jump probability distribution between the target operation jump node and other operation jump nodes in the heterogeneous graph to determine the jump node associated with the target operation jump node;
  • the second determination module 58 is configured to determine the target operation instruction of the target home appliance according to the jump node associated with the target operation jump node.
  • the above-mentioned first acquisition module includes:
  • the first acquisition unit is configured to acquire each of the above-mentioned device operation logs and obtain N above-mentioned device operation logs, wherein obtaining each of the above-mentioned device operation logs performs the following operations: acquiring the operation instructions for controlling the above-mentioned home appliances in the preset area , obtain multiple operation instructions; determine at least one of the following information as the above-mentioned device operation log: multiple above-mentioned operation instructions, time information corresponding to the multiple above-mentioned operation instructions, location information corresponding to multiple above-mentioned operation instructions, multiple above-mentioned operations The environment information corresponding to the instruction.
  • the above-mentioned first generation module includes:
  • the first processing unit is configured to perform deduplication processing on N of the above-mentioned device operation logs to obtain K of the above-mentioned device operation logs, where the above-mentioned K is a natural number less than or equal to the above-mentioned M;
  • the first determination unit is configured to determine the operation category of each of the K above-mentioned device operation logs
  • the second determination unit is configured to determine the operation jump node corresponding to each of the above-mentioned operation jump instructions in the K above-mentioned device operation logs, and obtain a plurality of the above-mentioned operation jump nodes;
  • the third determination unit is configured to determine the connection relationship between multiple above-mentioned operation jump nodes and obtain multiple connection edges;
  • the first generation unit is configured to be based on the above-mentioned operation category, a plurality of the above-mentioned operation jump nodes and the above The multiple connecting edges generate the above heterogeneous graph.
  • the above device further includes:
  • the third determination module is configured to determine the operation category corresponding to each of the above operation jump nodes after generating a heterogeneous graph based on the N above-mentioned device operation logs;
  • the first response module is configured to use the above-mentioned heterogeneous graph to respond to the operation instructions acting on the above-mentioned home appliance based on the operation category corresponding to each of the above-mentioned operation jump nodes.
  • the above-mentioned first determination module includes:
  • the first receiving unit is configured to receive an operation instruction acting on the above-mentioned target home appliance, wherein the above-mentioned operation instruction includes the above-mentioned target operation jump node;
  • the fourth determination unit is configured to determine the environmental information in the preset area corresponding to the above-mentioned operation instruction, and the characteristic information that triggers the above-mentioned operation instruction, wherein the above-mentioned target home appliance is arranged in the above-mentioned preset area;
  • the fifth determination unit is configured to determine the jump probability distribution between the above-mentioned target operation jump node and the above-mentioned adjacent operation jump node using the above-mentioned heterogeneous graph, wherein the adjacent above-mentioned operation jump node is included in other In the jump node of the above operation;
  • the sixth determination unit is configured to determine the jump node associated with the target operation jump node based on the jump probability distribution, the environment information and the characteristic information.
  • the fifth determination unit mentioned above includes:
  • the first determining subunit is configured to determine multiple operation jump nodes associated with the above-mentioned target operation jump node
  • the second determination subunit is configured to determine connection relationships between multiple associated operation jump nodes and the target operation jump node in the heterogeneous graph, and determine multiple connection relationships;
  • the third determination subunit is configured to determine the sum of weights of multiple above-mentioned connection relationships
  • the first processing subunit is configured to normalize the sum of the above weights to determine the above jump probability distribution.
  • the fifth determination unit mentioned above includes:
  • the fourth determination subunit is configured to determine multiple operation jump nodes associated with the above-mentioned target operation jump node
  • the fifth determination subunit is configured to determine multiple connecting edges between the above-mentioned target operation jump node and multiple associated above-mentioned operation jump nodes as sample data;
  • the first establishment subunit is configured to establish a network model using the above-mentioned sample data, so as to use the above-mentioned network model to output the above-mentioned jump probability distribution.
  • the above device further includes:
  • the first correction module is configured to modify the target operation instruction according to the device information of the target home appliance after determining the target operation instruction of the target home appliance according to the jump node associated with the target operation jump node.
  • each of the above modules can be implemented through software or hardware.
  • it can be implemented in the following ways, but is not limited to this: the above modules are all located in the same processor; or the above modules can be implemented in any combination.
  • the forms are located in different processors.
  • Embodiments of the present disclosure also provide a storage medium in which a computer program is stored, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.
  • the above-mentioned storage medium may be configured to store a computer program for performing the following steps:
  • each device operation log includes multiple operation jump instructions executed on M home appliances, and the operation jump instructions are used to represent the operation jump instructions from the M home appliances.
  • the first operation control jumps to other operation controls, and the M and N are both natural numbers greater than or equal to 1;
  • S3 Determine the relationship between the target operation jump node and other operation jump nodes in the heterogeneous graph. a jump probability distribution to determine a jump node associated with the target operation jump node;
  • S4 Determine the target operation instruction of the target home appliance according to the jump node associated with the target operation jump node.
  • the above-mentioned storage medium may include but is not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as Various media that can store computer programs such as RAM), removable hard drives, magnetic disks or optical disks.
  • ROM read-only memory
  • RAM random access memory
  • removable hard drives magnetic disks or optical disks.
  • Embodiments of the present disclosure also provide an electronic device, including a memory and a processor.
  • a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
  • the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
  • the above-mentioned processor may be configured to perform the following steps through a computer program:
  • each device operation log includes multiple operation jump instructions executed on M home appliances, and the operation jump instructions are used to represent the operation jump instructions from the M home appliances.
  • the first operation control jumps to other operation controls, and the M and N are both natural numbers greater than or equal to 1;
  • S3 Determine the jump probability distribution between the target operation jump node and other operation jump nodes in the heterogeneous graph to determine the jump node associated with the target operation jump node;
  • S4 Determine the target operation instruction of the target home appliance according to the jump node associated with the target operation jump node.
  • the structure shown in Figure 6 is only illustrative, and the electronic device can also be a smart phone (such as an Android phone, iOS phone, etc.), a tablet computer, a handheld computer, and a Mobile Internet Devices (MID), PAD and other terminal equipment.
  • FIG. 6 does not limit the structure of the above-mentioned electronic device.
  • the electronic device may also include more or fewer components (such as network interfaces, etc.) than shown in FIG. 6 , or have a different configuration than that shown in FIG. 6 .
  • the memory 702 can be used to store software programs and modules, such as program instructions/modules corresponding to the communication connection methods and devices in the embodiments of the present disclosure.
  • the processor 704 executes various software programs and modules by running the software programs and modules stored in the memory 702. Function application and data processing, that is, realizing the above communication connection method.
  • Memory 702 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • the memory 702 may further include memory located remotely relative to the processor 704, and these remote memories may be connected to the terminal through a network.
  • the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.
  • the memory 702 may include, but is not limited to, the first acquisition module 52 , the first generation module 54 , the first determination module 56 , and the second determination module 58 in the communication connection device.
  • it may also include but is not limited to other modular units in the above-mentioned communication connection device, which will not be described again in this example.
  • the above-mentioned transmission device 706 is used to receive or send data via a network.
  • Specific examples of the above-mentioned network may include wired networks and wireless networks.
  • the transmission device 706 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers through network cables to communicate with the Internet or a local area network.
  • the transmission device 1106 is a radio frequency (Radio Frequency, RF) module, which is used to communicate with the Internet wirelessly.
  • RF Radio Frequency
  • the above-mentioned electronic device also includes: a display 708 configured to display the above-mentioned task knowledge graph; and a connection bus 710 configured to connect various module components in the above-mentioned electronic device.
  • modules or steps of the present disclosure can be implemented using general-purpose computing devices, and they can be concentrated on a single computing device, or distributed across a network composed of multiple computing devices. , in one exemplary embodiment, they may be implemented using a computing device executable Program code is implemented so that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in a different order than herein, or may be made separately. into individual integrated circuit modules, or multiple modules or steps among them are made into a single integrated circuit module. As such, the present disclosure is not limited to any specific combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Automation & Control Theory (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Medical Informatics (AREA)
  • Computational Linguistics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Selective Calling Equipment (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A household appliance control method and apparatus, a storage medium, and an electronic apparatus, which relate to the technical field of smart homes. The household appliance control method comprises: acquiring N device operation logs (S202); generating a heterogeneous graph on the basis of the N device operation logs (S204), wherein the heterogeneous graph comprises a plurality of operation jump nodes amongst M household appliances and a connection relationship amongst the plurality of operation jump nodes; determining in the heterogeneous graph jump probability distribution between a target operation jump node and other operation jump nodes so as to determine a jump node associated with the target operation jump node (S206); and, according to the jump node associated with the target operation jump node, determining a target operation instruction of a target household appliance (S208).

Description

家电设备的控制方法、装置、存储介质及电子装置Control method, device, storage medium and electronic device for home appliances
本公开要求于2022年06月29日提交中国专利局、申请号为202210751813.9、发明名称“家电设备的控制方法、装置、存储介质及电子装置”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。This disclosure claims priority to the Chinese patent application filed with the China Patent Office on June 29, 2022, with application number 202210751813.9 and the invention title "Control method, device, storage medium and electronic device for home appliances", the entire content of which is incorporated by reference. incorporated in this disclosure.
技术领域Technical field
本公开涉及设备领域,具体而言,涉及一种家电设备的控制方法、装置、存储介质及电子装置。The present disclosure relates to the field of equipment, and specifically, to a control method, device, storage medium and electronic device for home appliances.
背景技术Background technique
场景生成是一个难点,涉及多种网器多种功能的排列组合,可能的数量级为亿级,但是并非所有的排列组合都有意义,若以人工方式来筛选基本不可能实现。人工事先预定义的场景比较单调,也难以考虑到用户个性化的需求。目前对家电设备的控制还在“单点智能”上,即关注网器单机的智能化。基于同构图生成控制指令,忽略图中节点及边的属性。并不能准确的生成家电设备之间互联的控制指令。Scenario generation is a difficult point, involving permutations and combinations of multiple network devices and multiple functions. The possible order of magnitude is hundreds of millions. However, not all permutations and combinations are meaningful, and it is basically impossible to achieve it by manual screening. Manually predefined scenarios are relatively monotonous, and it is difficult to take into account the personalized needs of users. At present, the control of home appliances is still based on "single point intelligence", that is, focusing on the intelligence of a single network device. Generate control instructions based on isomorphic graphs, ignoring the attributes of nodes and edges in the graph. It cannot accurately generate control instructions for interconnection between home appliances.
发明内容Contents of the invention
本公开实施例提供了一种家电设备的控制方法、装置、存储介质及电子装置,以至少解决相关技术中不能准确的生成家电设备之间互联的控制指令的问题。Embodiments of the present disclosure provide a method, device, storage medium, and electronic device for controlling home appliances, so as to at least solve the problem in the related art that control instructions for interconnection between home appliances cannot be accurately generated.
根据本公开的一个实施例,提供了一种家电设备的控制方法,包括:获取N个设备操作日志,其中,每个上述设备操作日志中包括对M个家电设备执行的多个操作跳转指令,上述操作跳转指令用于表示从对上述家电设备的第一操作控制跳转至其他操作控制,上述M和上述N均是大于或等于1的自然数;基于N个上述设备操作日志生成异构图,其中,上述异构图中包括M个上述家电设备之间的多个操作跳转节点和多个上述操作跳转节点之间的连接关系;在上述异构图中确 定目标操作跳转节点与其他上述操作跳转节点之间的跳转概率分布,以确定与上述目标操作跳转节点关联的跳转节点;按照与上述目标操作跳转节点关联的跳转节点确定目标家电设备的目标操作指令。According to an embodiment of the present disclosure, a method for controlling home appliances is provided, including: obtaining N device operation logs, wherein each of the above device operation logs includes multiple operation jump instructions executed on M home appliances. , the above-mentioned operation jump instruction is used to represent jumping from the first operation control of the above-mentioned home appliance to other operation control, the above-mentioned M and the above-mentioned N are both natural numbers greater than or equal to 1; generate heterogeneous based on N above-mentioned device operation logs Figure, wherein the above-mentioned heterogeneous graph includes multiple operation jump nodes between the M above-mentioned home appliances and connection relationships between the multiple above-mentioned operation jump nodes; it is determined in the above-mentioned heterogeneous graph Determine the jump probability distribution between the target operation jump node and other above-mentioned operation jump nodes to determine the jump node associated with the above-mentioned target operation jump node; determine according to the jump node associated with the above-mentioned target operation jump node Target operating instructions for the target home appliance.
根据本公开的一个实施例,提供了一种家电设备的控制装置,包括:第一获取模块,被设置为获取N个设备操作日志,其中,每个上述设备操作日志中包括对M个家电设备执行的多个操作跳转指令,上述操作跳转指令用于表示从对上述家电设备的第一操作控制跳转至其他操作控制,上述M和上述N均是大于或等于1的自然数;第一生成模块,被设置为基于N个上述设备操作日志生成异构图,其中,上述异构图中包括M个上述家电设备之间的多个操作跳转节点和多个上述操作跳转节点之间的连接关系;第一确定模块,被设置为在上述异构图中确定目标操作跳转节点与其他上述操作跳转节点之间的跳转概率分布,以确定与上述目标操作跳转节点关联的跳转节点;第二确定模块,被设置为按照与上述目标操作跳转节点关联的跳转节点确定目标家电设备的目标操作指令。According to an embodiment of the present disclosure, a control device for home appliances is provided, including: a first acquisition module configured to acquire N device operation logs, wherein each of the above device operation logs includes information on M home appliances. Multiple operation jump instructions are executed. The above-mentioned operation jump instructions are used to indicate jumping from the first operation control of the above-mentioned home appliance to other operation controls. The above-mentioned M and the above-mentioned N are both natural numbers greater than or equal to 1; the first The generation module is configured to generate a heterogeneous graph based on the N above-mentioned device operation logs, wherein the above-mentioned heterogeneous graph includes a plurality of operation jump nodes between the M above-mentioned home appliances and a plurality of the above-mentioned operation jump nodes. The connection relationship; the first determination module is configured to determine the jump probability distribution between the target operation jump node and other above-mentioned operation jump nodes in the above-mentioned heterogeneous graph to determine the jump probability distribution associated with the above-mentioned target operation jump node. Jump node; the second determination module is configured to determine the target operation instruction of the target home appliance device according to the jump node associated with the above-mentioned target operation jump node.
根据本公开的又一个实施例,还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present disclosure, a computer-readable storage medium is also provided. A computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute any of the above methods when running. Steps in Examples.
根据本公开的又一个实施例,还提供了一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present disclosure, an electronic device is also provided, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to perform any of the above. Steps in method embodiments.
通过本公开,通过获取N个设备操作日志,其中,每个设备操作日志中包括对M个家电设备执行的多个操作跳转指令,操作跳转指令用于表示从对家电设备的第一操作控制跳转至其他操作控制,M和N均是大于或等于1的自然数;基于N个设备操作日志生成异构图,其中,异构图中包括M个家电设备之间的多个操作跳转节点和多个操作跳转节点之间的连接关系;在异构图中确定目标操作跳转节点与其他操作跳转节点之间的跳转概率分布,以确定与目标操作跳转节点关联的跳转节点;按照与目标操作跳转节点关联的跳转节点确定目标家电设备的目标操作指令。因此,可以解决相关技术中不能准确的生成家电设备之间互联的控制 指令的问题。Through the present disclosure, N device operation logs are obtained, wherein each device operation log includes a plurality of operation jump instructions executed on M home appliances, and the operation jump instructions are used to represent the first operation on the home appliances. Control jumps to other operation controls. Both M and N are natural numbers greater than or equal to 1; a heterogeneous graph is generated based on N device operation logs. The heterogeneous graph includes multiple operation jumps between M home appliances. The connection relationship between a node and multiple operation jump nodes; determine the jump probability distribution between the target operation jump node and other operation jump nodes in the heterogeneous graph to determine the jump associated with the target operation jump node Jump node; determine the target operation instruction of the target home appliance according to the jump node associated with the target operation jump node. Therefore, it can solve the problem that the related technology cannot accurately generate the control of the interconnection between home appliances. A question of instructions.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those of ordinary skill in the art, It is said that other drawings can be obtained based on these drawings without exerting creative labor.
图1是根据本公开实施例的一种家电设备的控制方法的硬件环境示意图;Figure 1 is a schematic diagram of the hardware environment of a method for controlling home appliances according to an embodiment of the present disclosure;
图2是根据本公开实施例的家电设备的控制方法;Figure 2 is a control method of a home appliance according to an embodiment of the present disclosure;
图3是根据本公开实施例的节点和边的示意图;Figure 3 is a schematic diagram of nodes and edges according to an embodiment of the present disclosure;
图4是根据本公开实施例的概率分布的示意图;Figure 4 is a schematic diagram of a probability distribution according to an embodiment of the present disclosure;
图5是根据本公开实施例的家电设备的控制装置的结构框图;Figure 5 is a structural block diagram of a control device for home appliances according to an embodiment of the present disclosure;
图6是根据本公开实施例的一种电子装置的结构框图。FIG. 6 is a structural block diagram of an electronic device according to an embodiment of the present disclosure.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本公开方案,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分的实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本公开保护的范围。In order to enable those skilled in the art to better understand the present disclosure, the following will clearly and completely describe the technical solutions in the present disclosure embodiments in conjunction with the accompanying drawings. Obviously, the described embodiments are only These are part of the embodiments of this disclosure, not all of them. Based on the embodiments in this disclosure, all other embodiments obtained by those of ordinary skill in the art without creative efforts should fall within the scope of protection of this disclosure.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具 有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", etc. in the description and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the disclosure described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "include" and "have "have" and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus that consists of a series of steps or units need not be limited to those steps or units expressly listed, but may Includes other steps or units that are not expressly listed or that are inherent to these processes, methods, products, or devices.
根据本公开实施例的一个方面,提供了一种家电设备的控制方法。该家电设备的控制方法广泛应用于智慧家庭(Smart Home)、智能家居、智能家用设备生态、智慧住宅(Intelligence House)生态等全屋智能数字化控制应用场景。可选地,在本实施例中,上述家电设备的控制方法可以应用于如图1所示的由终端设备102和服务器104所构成的硬件环境中。如图1所示,服务器104通过网络与终端设备102进行连接,可用于为终端或终端上安装的客户端提供服务(如应用服务等),可在服务器上或独立于服务器设置数据库,被设置为为服务器104提供数据存储服务,可在服务器上或独立于服务器配置云计算和/或边缘计算服务,被设置为为服务器104提供数据运算服务。According to an aspect of an embodiment of the present disclosure, a method for controlling a home appliance is provided. The control method of this home appliance device is widely used in whole-house intelligent digital control application scenarios such as smart home, smart home, smart home equipment ecology, and smart residence (Intelligence House) ecology. Optionally, in this embodiment, the above method for controlling home appliances can be applied to a hardware environment composed of a terminal device 102 and a server 104 as shown in FIG. 1 . As shown in Figure 1, the server 104 is connected to the terminal device 102 through the network and can be used to provide services (such as application services, etc.) for the terminal or the client installed on the terminal. The database can be set on the server or independently of the server. To provide data storage services for the server 104, cloud computing and/or edge computing services may be configured on the server or independently of the server, and are configured to provide data computing services for the server 104.
上述网络可以包括但不限于以下至少之一:有线网络,无线网络。上述有线网络可以包括但不限于以下至少之一:广域网,城域网,局域网,上述无线网络可以包括但不限于以下至少之一:WIFI(Wireless Fidelity,无线保真),蓝牙。终端设备102可以并不限定于为PC、手机、平板电脑、智能空调、智能烟机、智能冰箱、智能烤箱、智能炉灶、智能洗衣机、智能热水器、智能洗涤设备、智能洗碗机、智能投影设备、智能电视、智能晾衣架、智能窗帘、智能影音、智能插座、智能音响、智能音箱、智能新风设备、智能厨卫设备、智能卫浴设备、智能扫地机器人、智能擦窗机器人、智能拖地机器人、智能空气净化设备、智能蒸箱、智能微波炉、智能厨宝、智能净化器、智能饮水机、智能门锁等。The above-mentioned network may include but is not limited to at least one of the following: wired network, wireless network. The above-mentioned wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, and local area network. The above-mentioned wireless network may include at least one of the following: WIFI (Wireless Fidelity, Wireless Fidelity), Bluetooth. The terminal device 102 may be, but is not limited to, a PC, a mobile phone, a tablet, a smart air conditioner, a smart hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing equipment, a smart dishwasher, or a smart projection device. , smart TV, smart clothes drying rack, smart curtains, smart audio and video, smart sockets, smart audio, smart speakers, 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 steamers, smart microwave ovens, smart kitchen appliances, smart purifiers, smart water dispensers, smart door locks, etc.
本实施例中提供了一种家电设备的控制方法,图2是根据本公开实施例的家电设备的控制方法,如图2所示,该流程包括如下步骤:This embodiment provides a control method for home appliances. Figure 2 is a control method for home appliances according to an embodiment of the present disclosure. As shown in Figure 2, the process includes the following steps:
步骤S202,获取N个设备操作日志,其中,每个设备操作日志中包括对M个家电设备执行的多个操作跳转指令,操作跳转指令用于表示从对家电设备的第一操作控制跳转至其他操作控制,M和N均是大于或等于1的自然数; Step S202: Obtain N device operation logs, where each device operation log includes multiple operation jump instructions executed on M home appliances. The operation jump instructions are used to indicate a jump from the first operation control on the home appliances. Moving to other operational controls, M and N are both natural numbers greater than or equal to 1;
步骤S204,基于N个设备操作日志生成异构图,其中,异构图中包括M个家电设备之间的多个操作跳转节点和多个操作跳转节点之间的连接关系;Step S204, generate a heterogeneous graph based on N device operation logs, where the heterogeneous graph includes multiple operation jump nodes and connection relationships between multiple operation jump nodes between M home appliances;
步骤S206,在异构图中确定目标操作跳转节点与其他操作跳转节点之间的跳转概率分布,以确定与目标操作跳转节点关联的跳转节点;Step S206, determine the jump probability distribution between the target operation jump node and other operation jump nodes in the heterogeneous graph to determine the jump node associated with the target operation jump node;
步骤S208,按照与目标操作跳转节点关联的跳转节点确定目标家电设备的目标操作指令。Step S208: Determine the target operation instruction of the target home appliance according to the jump node associated with the target operation jump node.
可选地,N、M的取值是可以基于实际引用场景或者构图要求来灵活设置的,例如,获取500多万条设备操作日志,每条设备操作日志为一个家庭中对家电设备的一次操作转移。例如,以家庭为单位,记录从打开空调到关闭空调之间的控制操作。此外,一条设备操作日志中包括from操作到to操作发生的时间、地点、天气等上下文特征以及一部分家庭画像特征。Optionally, the values of N and M can be flexibly set based on the actual reference scene or composition requirements. For example, more than 5 million device operation logs are obtained, and each device operation log represents an operation of a home appliance in a family. transfer. For example, take a household as a unit and record the control operations from turning on the air conditioner to turning off the air conditioner. In addition, a device operation log includes contextual features such as time, location, weather, and some family portrait features from the from operation to the to operation.
其中,上述步骤的执行主体可以为终端、服务器、终端或服务器中设置的具体处理器,或者与终端或者服务器相对独立设置的处理器或者处理设备等,但不限于此。The execution subject of the above steps may be a terminal, a server, a specific processor provided in the terminal or server, or a processor or processing device provided relatively independently from the terminal or server, but is not limited thereto.
通过上述步骤,通过获取N个设备操作日志,其中,每个设备操作日志中包括对M个家电设备执行的多个操作跳转指令,操作跳转指令用于表示从对家电设备的第一操作控制跳转至其他操作控制,M和N均是大于或等于1的自然数;基于N个设备操作日志生成异构图,其中,异构图中包括M个家电设备之间的多个操作跳转节点和多个操作跳转节点之间的连接关系;在异构图中确定目标操作跳转节点与其他操作跳转节点之间的跳转概率分布,以确定与目标操作跳转节点关联的跳转节点;按照与目标操作跳转节点关联的跳转节点确定目标家电设备的目标操作指令。由于上述方法中,构建的是操作日志的异构图,可以获取到多个操作跳转节点之间的边的属性以及多个操作跳转节点的属性。综合边和节点的属性以及目标操作跳转节点与其他操作跳转节点之间的跳转概率分布,可以更加贴合实际的生成家电设备的控制指令。在保证搜索速度的同时,也提高了搜索控制指令的准确性和多样性。因此,可以解决相关技术中不能准确的生成家电设备之间互联的控制指令的问题。 Through the above steps, N device operation logs are obtained, wherein each device operation log includes multiple operation jump instructions executed on M home appliance devices, and the operation jump instructions are used to represent the first operation on the home appliance device. Control jumps to other operation controls. Both M and N are natural numbers greater than or equal to 1; a heterogeneous graph is generated based on N device operation logs. The heterogeneous graph includes multiple operation jumps between M home appliances. The connection relationship between a node and multiple operation jump nodes; determine the jump probability distribution between the target operation jump node and other operation jump nodes in the heterogeneous graph to determine the jump associated with the target operation jump node Jump node; determine the target operation instruction of the target home appliance according to the jump node associated with the target operation jump node. Since in the above method, a heterogeneous graph of operation logs is constructed, the attributes of the edges between multiple operation jump nodes and the attributes of multiple operation jump nodes can be obtained. By integrating the attributes of edges and nodes and the jump probability distribution between the target operation jump node and other operation jump nodes, control instructions for home appliances can be generated more closely to the actual situation. While ensuring the search speed, it also improves the accuracy and diversity of search control instructions. Therefore, the problem in related technologies that the control instructions for interconnection between home appliances cannot be accurately generated can be solved.
在一个示例性实施例中,获取N个设备操作日志,包括:In an exemplary embodiment, N device operation logs are obtained, including:
S1,获取每个设备操作日志,得到N个设备操作日志,其中,获取每个设备操作日志均执行以下操作:S1, obtain each device operation log and obtain N device operation logs. To obtain each device operation log, perform the following operations:
获取预设区域中控制家电设备的操作指令,得到多个操作指令;Obtain operating instructions for controlling home appliances in a preset area and obtain multiple operating instructions;
将以下信息至少之一确定为设备操作日志:多个操作指令、多个操作指令对应的时间信息、多个操作指令对应的位置信息、多个操作指令对应的环境信息。At least one of the following information is determined as a device operation log: multiple operation instructions, time information corresponding to the multiple operation instructions, location information corresponding to the multiple operation instructions, and environment information corresponding to the multiple operation instructions.
可选地,预设区域可以是一个局域网,例如,以家庭为单位,获取到一个家庭中发生的“打开空调-关闭空调”等操作,记录“打开空调-关闭空调”中下发每一个操作指令的时间,空调所在的位置,以及天气信息(例如,晴天或者是下雨天)等等。通过以家庭为单位获取每个设备操作日志,可以结合设备操作日志的上下文特征准确的生成异构图。Optionally, the preset area can be a local area network. For example, with a family as a unit, operations such as "turn on the air conditioner - turn off the air conditioner" that occur in a family are obtained, and each operation issued in the "turn on the air conditioner - turn off the air conditioner" is recorded. The time of the command, the location of the air conditioner, and weather information (for example, sunny or rainy day), etc. By obtaining each device operation log on a household basis, heterogeneous graphs can be accurately generated based on the contextual features of the device operation logs.
在一个示例性实施例中,基于N个设备操作日志生成异构图,包括:In an exemplary embodiment, a heterogeneous graph is generated based on N device operation logs, including:
S1,对N个设备操作日志进行去重处理,得到K个设备操作日志,其中,K是小于或等于M的自然数;S1, perform deduplication processing on N device operation logs to obtain K device operation logs, where K is a natural number less than or equal to M;
S2,确定K个设备操作日志中每个设备操作日志的操作类别;S2, determine the operation category of each device operation log in the K device operation logs;
S3,确定K个设备操作日志中每个操作跳转指令对应的操作跳转节点,得到多个操作跳转节点;S3, determine the operation jump node corresponding to each operation jump instruction in the K device operation logs, and obtain multiple operation jump nodes;
S4,确定多个操作跳转节点之间的连接关系,得到多条连接边;S4, determine the connection relationship between multiple operation jump nodes and obtain multiple connection edges;
S5,基于操作类别、多个操作跳转节点以及多条连接边生成异构图。S5 generates a heterogeneous graph based on operation categories, multiple operation jump nodes, and multiple connecting edges.
可选地,K的取值是可以基于实际引用场景或者构图要求来灵活设置的,例如,去除500万条设备操作日志中重复的日志,得到300万条设备操作日志。Optionally, the value of K can be flexibly set based on actual reference scenarios or composition requirements. For example, removing duplicate logs from 5 million device operation logs results in 3 million device operation logs.
可选地,可以将去重后的设备操作日志设置在一个集合中。以在集合中记录设备操作日志对应的日志信息(例如,日志的类别、获取的时间、地点等)。Optionally, the deduplicated device operation logs can be set in a collection. To record the log information corresponding to the device operation log in the collection (for example, the type of log, the time and location of acquisition, etc.).
在一个示例性实施例中,基于N个设备操作日志生成异构图之后,方法还包 括:In an exemplary embodiment, after generating the heterogeneous graph based on N device operation logs, the method also includes include:
S1,确定每个操作跳转节点对应的操作类别;S1, determine the operation category corresponding to each operation jump node;
S2,基于每个操作跳转节点对应的操作类别,利用异构图响应作用于家电设备的操作指令。S2, based on the operation category corresponding to each operation jump node, uses the heterogeneous graph to respond to the operation instructions acting on the home appliance.
可选地,不同的操作跳转节点对应的操作类别可以相同,也可以不相同。例如,打开空调的指令的操作类别是“打开”。将冰箱的温度调整至4度,属于“温度调整”类别。从异构图中选择与用户的操作指令对应的操作跳转节点,例如,在空调对应的操作跳转节点可以是<打开空调,空调温度调低,空调风速调高>。Optionally, the operation categories corresponding to different operation jump nodes may be the same or different. For example, the operation category of the instruction to turn on the air conditioner is "turn on". Adjusting the temperature of the refrigerator to 4 degrees falls under the "temperature adjustment" category. Select the operation jump node corresponding to the user's operation instruction from the heterogeneous graph. For example, the operation jump node corresponding to the air conditioner can be <turn on the air conditioner, lower the air conditioner temperature, and increase the air conditioner wind speed>.
在一个示例性实施例中,在异构图中确定目标操作跳转节点与其他操作跳转节点之间的跳转概率分布,以确定与目标操作跳转节点关联的跳转节点,包括:In an exemplary embodiment, determining the jump probability distribution between the target operation jump node and other operation jump nodes in the heterogeneous graph to determine the jump node associated with the target operation jump node includes:
S1,接收作用于目标家电设备的操作指令,其中,操作指令中包括目标操作跳转节点;S1, receives the operation instruction acting on the target home appliance, where the operation instruction includes the target operation jump node;
S2,确定操作指令所对应的预设区域中的环境信息,以及触发操作指令的特征信息,其中,目标家电设备设置在预设区域中;S2, determine the environmental information in the preset area corresponding to the operation instruction, and the characteristic information that triggers the operation instruction, where the target home appliance is set in the preset area;
S3,利用异构图确定目标操作跳转节点与相邻的操作跳转节点之间的跳转概率分布,其中,相邻的操作跳转节点包括在其他操作跳转节点中;S3, use the heterogeneous graph to determine the jump probability distribution between the target operation jump node and the adjacent operation jump nodes, where the adjacent operation jump nodes are included in other operation jump nodes;
S4,基于跳转概率分布、环境信息和特征信息,确定与目标操作跳转节点关联的跳转节点。S4: Determine the jump node associated with the target operation jump node based on the jump probability distribution, environmental information and feature information.
可选地,操作指令可以是语音的方式,也可以是触屏的方式。例如,用户发出“打开热水器”的指令,在异构图中查找与“打开热水器”相邻的操作跳转节点,“空调温度调制28度”、“打开换气设备”等。并计算与“空调温度调制28度”、“打开换气设备”之间的跳转概率。在与“空调温度调制28度”、“打开换气设备”之间的跳转概率大于70%的情况下,确定“空调温度调制28度”、“打开换气设备”是与“打开热水器”相关联的跳转节点,则按照相关联的跳转节点对应的控制指令控制空调和换气设备的打开。 Optionally, the operation instructions may be in the form of voice or touch screen. For example, the user issues an instruction to "turn on the water heater" and searches for the operation jump nodes adjacent to "turn on the water heater" in the heterogeneous graph, such as "adjust the air conditioner temperature to 28 degrees", "turn on the ventilation equipment", etc. And calculate the jump probability between "Adjust the air conditioner temperature to 28 degrees" and "Turn on the ventilation equipment". When the probability of jump between "Adjust the air conditioner temperature to 28 degrees" and "Turn on the ventilation equipment" is greater than 70%, determine whether "Adjust the air conditioner temperature to 28 degrees" and "Turn on the ventilation equipment" are the same as "Turn on the water heater" The associated jump node controls the opening of the air conditioner and ventilation equipment according to the control instructions corresponding to the associated jump node.
在一个示例性实施例中,利用异构图确定目标操作跳转节点与相邻的操作跳转节点之间的跳转概率分布,包括:In an exemplary embodiment, using a heterogeneous graph to determine the jump probability distribution between a target operation jump node and adjacent operation jump nodes includes:
S1,确定与目标操作跳转节点关联的多个操作跳转节点;S1, determine multiple operation jump nodes associated with the target operation jump node;
S2,在异构图中确定关联的多个操作跳转节点与目标操作跳转节点之间的连接关系,确定多个连接关系;S2, determine the connection relationships between multiple associated operation jump nodes and the target operation jump node in the heterogeneous graph, and determine multiple connection relationships;
S3,确定多个连接关系的权重之和;S3, determine the sum of weights of multiple connection relationships;
S4,归一化权重之和,以确定跳转概率分布。S4, the sum of normalized weights to determine the jump probability distribution.
可选地,多个连接关系可以是操作跳转节点在异构图中的连线。构成了异构图的边。例如,一次操作i到操作j的转移即为一条边,边是有向图。若节点i到节点j之间有多次转移操作,那么会存在多条边,多条边中会存在同质的边,可以根据边属性进行聚合,把同属性的边聚合在一起。Optionally, multiple connection relationships may be connections between operation jump nodes in the heterogeneous graph. Constitutes the edges of a heterogeneous graph. For example, the transition from operation i to operation j is an edge, and the edge is a directed graph. If there are multiple transfer operations between node i and node j, then there will be multiple edges, and there will be homogeneous edges among the multiple edges. You can aggregate them according to the edge attributes, and aggregate the edges with the same attributes together.
可选地,本实施例在不考虑用户或家庭特征信息以及上下文特征的情况下,可以把属于节点i到节点j的全部边权重相加后再做归一化,确定出概率分布。Optionally, in this embodiment, without considering user or family characteristic information and contextual characteristics, all edge weights belonging to node i to node j can be added together and then normalized to determine the probability distribution.
在一个示例性实施例中,利用异构图确定目标操作跳转节点与相邻的操作跳转节点之间的跳转概率分布,包括:In an exemplary embodiment, using a heterogeneous graph to determine the jump probability distribution between a target operation jump node and adjacent operation jump nodes includes:
S1,确定与目标操作跳转节点关联的多个操作跳转节点;S1, determine multiple operation jump nodes associated with the target operation jump node;
S2,将目标操作跳转节点与关联的多个操作跳转节点之间的多条连接边确定为样本数据;S2, determine multiple connecting edges between the target operation jump node and the associated multiple operation jump nodes as sample data;
S3,利用样本数据建立网络模型,以利用网络模型输出跳转概率分布。S3, use the sample data to establish a network model to use the network model to output a jump probability distribution.
可选地,异构图中的每一条连接边都可以作为一个样本。例如,在异构图中,节点i到节点j可以产出T个样本。得到训练样本后可以采用xgboost或LSTM时序建模学习节点i到其任意邻接节点的概率。Optionally, each connecting edge in the heterogeneous graph can be used as a sample. For example, in a heterogeneous graph, node i to node j can produce T samples. After obtaining the training samples, xgboost or LSTM time series modeling can be used to learn the probability from node i to any of its adjacent nodes.
在一个示例性实施例中,按照与目标操作跳转节点关联的跳转节点确定目标家电设备的目标操作指令之后,方法还包括: In an exemplary embodiment, after determining the target operation instruction of the target home appliance according to the jump node associated with the target operation jump node, the method further includes:
S1,按照目标家电设备的设备信息修正目标操作指令。S1. Modify the target operation instruction according to the device information of the target home appliance.
可选地,修正的规则包括但不限于是:家电设备子功能的开启要在家电设备本机开启之后;同一家电设备开启关闭时间差需大于既定阈值;输出的操作指令中不包括暂停类的操作指令。Optionally, the revised rules include but are not limited to: the sub-function of the home appliance must be turned on after the home appliance itself is turned on; the time difference between turning on and off the same home appliance must be greater than the established threshold; the output operation instructions do not include pause operations. instruction.
下面结合具体实施例对本公开进行说明:The present disclosure is described below with reference to specific embodiments:
本实施例对对家电设备的控制为例进行说明,在本实施例中,对家电设备的操作(action),为对网器功能的一个具体操作,例如“打开空调”,“空调风速调高”,“电视机暂停”,网器功能用于表示对家电设备控制指令。在本实施例中,网器功能可以生成家电设备的使用场景,例如,洗澡时,给用户推荐一个洗澡的场景(场景为若干网器的联动操作,在这里洗澡场景可以是<打开热水器,设定温度到39℃,打开浴霸,打开换气扇>)。This embodiment takes the control of home appliances as an example. In this embodiment, the operation (action) of the home appliances is a specific operation on the network device function, such as "turn on the air conditioner", "increase the wind speed of the air conditioner". ”, “TV pause”, the network controller function is used to express control instructions for home appliances. In this embodiment, the network appliance function can generate usage scenarios for home appliances. For example, when taking a bath, a bathing scene is recommended to the user (the scene is the linked operation of several network appliances. The bathing scene here can be <turn on the water heater, set Set the temperature to 39°C, turn on the bathroom heater, and turn on the ventilation fan>).
场景(scene),被设置为表示一个操作序列(即相关联的操作指令),例如,<打开空调,空调温度调低,空调风速调高>。Scene is set to represent an operation sequence (that is, associated operation instructions), for example, <turn on the air conditioner, lower the air conditioner temperature, increase the air conditioner fan speed>.
本实施例利用多个操作日志生成异构图,其中,异构图G=(V,E),V用于表示节点的集合,V={v1,v2,...,vi,...},1≤i≤|V|,E用于表示边的集合E={e1,e2,...,ej,...},1≤j≤|E|。若有映射Φ:V→O和映射Ψ:E→R,O和R分别用于表示节点和边的类型集合,若|O|+|R|>2,图G即为异构图。在本实施例中,action用于表示异构图中的节点,action之间的转移关系为异构图的边。This embodiment uses multiple operation logs to generate a heterogeneous graph, where the heterogeneous graph G=(V, E), V is used to represent a set of nodes, V={v 1 , v 2 ,..., vi , ...}, 1≤i≤|V|, E is used to represent the set of edges E={e 1 , e 2 ,..., e j ,...}, 1≤j≤|E|. If there is a mapping Φ: V→O and a mapping Ψ: E→R, O and R are used to represent the type set of nodes and edges respectively. If |O|+|R|>2, the graph G is a heterogeneous graph. In this embodiment, action is used to represent nodes in the heterogeneous graph, and the transfer relationship between actions is the edge of the heterogeneous graph.
本实施例的主要实现流程包括:The main implementation process of this embodiment includes:
Step1,收集清洗全量用户的历史操作日志;Step 1, collect and clean the historical operation logs of all users;
Step2,基于操作日志,构建异构图;Step2, build a heterogeneous graph based on the operation log;
Step3,基于异构图,用beamsearch策略进行搜索,产出若干场景(家电设备关联的操作指令);Step 3. Based on the heterogeneous graph, use the beamsearch strategy to search and produce several scenarios (operating instructions associated with home appliances);
Step4,根据既定规则,对产出的场景进行修正。 Step 4: Modify the output scenario according to the established rules.
在本实施例中,收集清洗全量用户的历史操作日志具体包括:获取500多万条记录,每条记录为一个家庭的一次操作转移,例如,从打开空调到关闭空调,这里以家庭为单位。另外,一条记录会包含from操作到to操作发生的时间、地点、天气等上下文特征以及一部分家庭画像特征。In this embodiment, collecting and cleaning the historical operation logs of all users specifically includes: obtaining more than 5 million records, each record is an operation transfer of a family, for example, from turning on the air conditioner to turning off the air conditioner, here the family is taken as a unit. In addition, a record will include contextual features such as time, location, weather, and some family portrait features from the from operation to the to operation.
在本实施例中,构建异构图具体包括:In this embodiment, building a heterogeneous graph specifically includes:
1)定义节点(对应于上述中的操作跳转节点):基于Step1获取的全量数据,对所有action去重可得到action集合,其构成了异构图全部的节点vi∈V,并定义每个节点vi所属的类别ci,ci∈C,例如“打开空调”属于“制冷”类别,“打开烤箱”属于“做饭”类别。1) Define nodes (corresponding to the operation jump nodes in the above): Based on the full data obtained in Step 1, the action set can be obtained by deduplicating all actions, which constitutes all the nodes v i ∈ V of the heterogeneous graph, and defines each The category c i to which node vi belongs, c i ∈C, for example, "turn on the air conditioner" belongs to the "cooling" category, and "turn on the oven" belongs to the "cooking" category.
2)定义边(对应于上述中的连接边):一次操作i到操作j的转移即为一条边,用eij来表示(这里是有向图)。若节点i到节点j之间有多次转移操作,那么会存在多条边,多条边中会存在同质的边,可以根据边属性进行聚合,把同属性的边聚合在一起。2) Define the edge (corresponding to the connecting edge above): the transfer from operation i to operation j is an edge, represented by e ij (here is a directed graph). If there are multiple transfer operations between node i and node j, then there will be multiple edges, and there will be homogeneous edges among the multiple edges. You can aggregate them according to the edge attributes, and aggregate the edges with the same attributes together.
节点和边的示意图如图3所示。可选地,用表示i到j的边集合,其中,为节点i到j的第t条边,用向量来表示Eij的第t条边的属性,用标量来表示Eij的第t条边的权重,权重其实际意义为在统计范围内操作i转移到操作j的次数。The schematic diagram of nodes and edges is shown in Figure 3. Optionally, use represents the set of edges from i to j, where, is the t-th edge from node i to j, using a vector To represent the attributes of the t-th edge of E ij , use a scalar to represent the weight of the t-th edge of E ij . The actual meaning of the weight is the number of times operation i is transferred to operation j within the statistical range.
3)定义异构图:在获取全部的节点和边后即可构建异构图G=(V,E);3) Define the heterogeneous graph: After obtaining all nodes and edges, the heterogeneous graph G=(V, E) can be constructed;
4)定义metapath:metapath是人为设计的一个游走规则,被设置为约束游走时选取节点的类型,M=[m1,m2,...,mm],m来源于节点类型集合C,例如若有M=[制冷,制冷,光线],则产出的场景操作序列中前两个位置必须为“制冷”类的节点,第三个必须为“光线”类的节点。这里类似metapath2vec的思路,但是不要求metapath必须对称。4) Define metapath: metapath is a human-designed walking rule, which is set to constrain the type of node selected when walking, M=[m 1 , m 2 ,..., m m ], m comes from the node type set C. For example, if M = [Cooling, Refrigeration, Light], the first two positions in the output scene operation sequence must be nodes of the "Cooling" class, and the third must be a node of the "Light" class. This is similar to the idea of metapath2vec, but metapath is not required to be symmetrical.
在本实施例中,基于异构图,用beamsearch策略(beamsearch策略用于选择较优的结果)进行搜索,产出若干场景;基于beamsearch进行搜索是一种对 搜索复杂度和搜索速度的权衡。若不做搜索的beam约束,每往后拓展一阶,复杂度都会呈指数级上升,相当于做了全排列,若设depth为深度,n为节点个数,k为搜索带宽,复杂度为O(ndepth),采用beamseach约束搜索带宽的话可以使得复杂度降到O(depth·k·n)。若采用贪心策略进行搜索的话,相当于是beam=1,即搜索只产出一条序列。In this embodiment, based on the heterogeneous graph, the beamsearch strategy (beamsearch strategy is used to select better results) is used to search, and several scenarios are generated; searching based on beamsearch is a kind of Trade-off between search complexity and search speed. If there is no beam constraint on the search, the complexity will increase exponentially every time it is expanded to one level, which is equivalent to a full arrangement. If depth is the depth, n is the number of nodes, k is the search bandwidth, the complexity is O(n depth ), using beamseach to constrain the search bandwidth can reduce the complexity to O(depth·k·n). If a greedy strategy is used to search, it is equivalent to beam=1, that is, the search only produces one sequence.
在做beamsearch搜索时,每往后拓展一阶需要参考当前节点到其领接节点的概率分布,P(nodej|nodei),表示节点i的领域。这里还需考虑触发场景生成的用户或家庭特征以及上下文特征,这里用q表示,q和aij都是n阶的向量,所以要学习的概率分布为P(nodej|nodei,q)。When doing beamsearch search, each time you expand to one level, you need to refer to the probability distribution from the current node to its leading node, P(node j |node i ), Represents the domain of node i. It is also necessary to consider the user or family characteristics and contextual characteristics that trigger scene generation, which are represented by q. Both q and a ij are n-order vectors, so the probability distribution to be learned is P(node j |node i , q).
在本实施例中,概率分布可以由如下两种方式确定:In this embodiment, the probability distribution can be determined in the following two ways:
1)采用生成模型generative-mode1:1) Use the generative model generative-mode1:
基于Step2的异构图,若不考虑用户或家庭特征以及上下文特征,把属于节点i到节点j的全部边权重相加后再做归一化即为概率分布,即 函数。Based on the heterogeneous graph of Step 2, if user or family characteristics and context characteristics are not considered, the probability distribution is obtained by adding all the edge weights belonging to node i to node j and then normalizing them, that is function.
2)采用判别模型discriminative-mode1:2) Use the discriminative model discriminative-mode1:
Step2中的异构图每条边都可以作为一个样本,节点i对应的action以及i到j边的属性作为自变量x,节点j对于的action作为因变量y。更形式化的来说:在异构图中,节点i到节点j可以产出T个样本,每一个样本s(t)={x(t),y(t)},y(t)=actionj,其中,t∈[1,T]。得到训练样本后可以采用xgboost或LSTM时序建模学习节点i到其任意邻接节点的概率P(nodej|nodei,p)=model(nodei,p)。Each edge of the heterogeneous graph in Step 2 can be used as a sample. The action corresponding to node i and the attributes of the edge from i to j are used as independent variables x, and the action corresponding to node j is used as dependent variable y. More formally: In a heterogeneous graph, node i to node j can produce T samples, each sample s (t) = {x (t) , y (t) }, y (t) = action j , where t∈[1, T]. After obtaining the training samples, xgboost or LSTM time series modeling can be used to learn the probability P(node j |node i , p)=model(node i , p) from node i to any of its adjacent nodes.
在实际应用中发现异构图是高度稀疏的,采用判别式的方法更符合实际。In practical applications, it is found that heterogeneous graphs are highly sparse, and the discriminant method is more practical.
此外,在选择下一步节点时,不仅考虑当前节点到其邻接节点的概率分布,也考虑前一步的节点,例如如图4所示: In addition, when selecting the next node, not only the probability distribution from the current node to its adjacent nodes is considered, but also the node of the previous step is considered, for example, as shown in Figure 4:
t->v->z,权为0因为vz没通路;t->v->z, the weight is 0 because vz has no path;
t->v->t,权为0因为不允许往回找;t->v->t, the weight is 0 because looking back is not allowed;
t->v->x3,权为w(t,v)+w(v,x3);t->v->x3, the weight is w(t, v)+w(v, x 3 );
t->v->x1,权为w(t,v)+w(v,x1)+α·w(t,x1),这里因为t->x1也有通路,这部分的权重也考虑进来,通过一个系数α控制,α>0,该值越大,越倾向在局部游走。t->v->x1, the weight is w(t, v)+w(v, x 1 )+α·w(t, x 1 ). Because t->x1 also has a path, the weight of this part is also considered Come in, controlled by a coefficient α, α>0, the larger the value, the more likely it is to wander locally.
本实施例在进行游走时,可以基于定义好的metapath进行游走,不符合metapath要求的节点不会被选做下一个节点。When performing walking in this embodiment, the walking can be performed based on the defined metapath, and nodes that do not meet the metapath requirements will not be selected as the next node.
在本实施例中,根据既定规则,对产出的场景进行修正。具体修订规则包括:设备子功能的开启要在设备本机开启之后;同一设备开启关闭时间差需大于既定阈值;输出的场景中不含暂停类的操作。In this embodiment, the output scene is modified according to established rules. Specific revised rules include: the device sub-function must be turned on after the device itself is turned on; the time difference between turning on and off the same device must be greater than the established threshold; the output scene does not contain pause-type operations.
综上所述,本实施例在网器联动智能化这个领域,提出将实际的网器联动问题抽象成异构图来建模,定义每个网器和每次转移操作的属性,在推理时结合用户特征和上下文特征,更贴合实际;可以实现beamsearch在场景生成上的应有,在保证搜索速度的同时,提高搜索结果的准确性和多样性;基于机器学习的方法,考虑用户特征和上下文特征预测用户接下来的动作。更贴合实际,使得输出的结果更具个性化,能提高用户体验;更好的算法性能,即使是做深度优先搜索,保证结果同时控制复杂度,使得工程性更好,易用性更高。To sum up, in this embodiment, in the field of intelligent network device linkage, it is proposed to abstract the actual network device linkage problem into a heterogeneous graph for modeling, and define the attributes of each network device and each transfer operation. During reasoning, Combining user characteristics and contextual characteristics is more realistic; it can realize beamsearch's performance in scene generation and improve the accuracy and diversity of search results while ensuring search speed; based on machine learning methods, it considers user characteristics and Contextual features predict the user’s next actions. It is more realistic, making the output results more personalized, and improving the user experience; better algorithm performance, even for depth-first search, ensures that the results are controlled at the same time, making the engineering better and easier to use. .
在本实施例中还提供了一种图像处理装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。This embodiment also provides an image processing device, which is used to implement the above embodiments and preferred implementations. What has been described will not be described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
图5是根据本公开实施例的家电设备的控制装置的结构框图,如图5所示,该装置包括:Figure 5 is a structural block diagram of a control device for home appliances according to an embodiment of the present disclosure. As shown in Figure 5, the device includes:
第一获取模块52,被设置为获取N个设备操作日志,其中,每个设备操作日志中包括对M个家电设备执行的多个操作跳转指令,操作跳转指令用于表示从对 家电设备的第一操作控制跳转至其他操作控制,M和N均是大于或等于1的自然数;The first acquisition module 52 is configured to acquire N device operation logs, wherein each device operation log includes multiple operation jump instructions executed on M home appliances, and the operation jump instructions are used to represent the operation jump instructions from the pair of M home appliances. The first operation control of the home appliance jumps to other operation controls, and M and N are both natural numbers greater than or equal to 1;
第一生成模块54,被设置为基于N个设备操作日志生成异构图,其中,异构图中包括M个家电设备之间的多个操作跳转节点和多个操作跳转节点之间的连接关系;The first generation module 54 is configured to generate a heterogeneous graph based on N device operation logs, where the heterogeneous graph includes multiple operation jump nodes between M home appliances and multiple operation jump nodes between them. connection relationship;
第一确定模块56,被设置为在异构图中确定目标操作跳转节点与其他操作跳转节点之间的跳转概率分布,以确定与目标操作跳转节点关联的跳转节点;The first determination module 56 is configured to determine the jump probability distribution between the target operation jump node and other operation jump nodes in the heterogeneous graph to determine the jump node associated with the target operation jump node;
第二确定模块58,被设置为按照与目标操作跳转节点关联的跳转节点确定目标家电设备的目标操作指令。The second determination module 58 is configured to determine the target operation instruction of the target home appliance according to the jump node associated with the target operation jump node.
在一个示例性实施例中,上述第一获取模块,包括:In an exemplary embodiment, the above-mentioned first acquisition module includes:
第一获取单元,被设置为获取每个上述设备操作日志,得到N个上述设备操作日志,其中,获取每个上述设备操作日志均执行以下操作:获取预设区域中控制上述家电设备的操作指令,得到多个操作指令;将以下信息至少之一确定为上述设备操作日志:多个上述操作指令、多个上述操作指令对应的时间信息、多个上述操作指令对应的位置信息、多个上述操作指令对应的环境信息。The first acquisition unit is configured to acquire each of the above-mentioned device operation logs and obtain N above-mentioned device operation logs, wherein obtaining each of the above-mentioned device operation logs performs the following operations: acquiring the operation instructions for controlling the above-mentioned home appliances in the preset area , obtain multiple operation instructions; determine at least one of the following information as the above-mentioned device operation log: multiple above-mentioned operation instructions, time information corresponding to the multiple above-mentioned operation instructions, location information corresponding to multiple above-mentioned operation instructions, multiple above-mentioned operations The environment information corresponding to the instruction.
在一个示例性实施例中,上述第一生成模块,包括:In an exemplary embodiment, the above-mentioned first generation module includes:
第一处理单元,被设置为对N个上述设备操作日志进行去重处理,得到K个上述设备操作日志,其中,上述K是小于或等于上述M的自然数;The first processing unit is configured to perform deduplication processing on N of the above-mentioned device operation logs to obtain K of the above-mentioned device operation logs, where the above-mentioned K is a natural number less than or equal to the above-mentioned M;
第一确定单元,被设置为确定K个上述设备操作日志中每个上述设备操作日志的操作类别;The first determination unit is configured to determine the operation category of each of the K above-mentioned device operation logs;
第二确定单元,被设置为确定K个上述设备操作日志中每个上述操作跳转指令对应的操作跳转节点,得到多个上述操作跳转节点;The second determination unit is configured to determine the operation jump node corresponding to each of the above-mentioned operation jump instructions in the K above-mentioned device operation logs, and obtain a plurality of the above-mentioned operation jump nodes;
第三确定单元,被设置为确定多个上述操作跳转节点之间的连接关系,得到多条连接边;The third determination unit is configured to determine the connection relationship between multiple above-mentioned operation jump nodes and obtain multiple connection edges;
第一生成单元,被设置为基于上述操作类别、多个上述操作跳转节点以及上 述多条连接边生成上述异构图。The first generation unit is configured to be based on the above-mentioned operation category, a plurality of the above-mentioned operation jump nodes and the above The multiple connecting edges generate the above heterogeneous graph.
在一个示例性实施例中,上述装置还包括:In an exemplary embodiment, the above device further includes:
第三确定模块,被设置为基于N个上述设备操作日志生成异构图之后,确定每个上述操作跳转节点对应的操作类别;The third determination module is configured to determine the operation category corresponding to each of the above operation jump nodes after generating a heterogeneous graph based on the N above-mentioned device operation logs;
第一响应模块,被设置为基于每个上述操作跳转节点对应的操作类别,利用上述异构图响应作用于上述家电设备的操作指令。The first response module is configured to use the above-mentioned heterogeneous graph to respond to the operation instructions acting on the above-mentioned home appliance based on the operation category corresponding to each of the above-mentioned operation jump nodes.
在一个示例性实施例中,上述第一确定模块,包括:In an exemplary embodiment, the above-mentioned first determination module includes:
第一接收单元,被设置为接收作用于上述目标家电设备的操作指令,其中,上述操作指令中包括上述目标操作跳转节点;The first receiving unit is configured to receive an operation instruction acting on the above-mentioned target home appliance, wherein the above-mentioned operation instruction includes the above-mentioned target operation jump node;
第四确定单元,被设置为确定上述操作指令所对应的预设区域中的环境信息,以及触发上述操作指令的特征信息,其中,上述目标家电设备设置在上述预设区域中;The fourth determination unit is configured to determine the environmental information in the preset area corresponding to the above-mentioned operation instruction, and the characteristic information that triggers the above-mentioned operation instruction, wherein the above-mentioned target home appliance is arranged in the above-mentioned preset area;
第五确定单元,被设置为利用上述异构图确定上述目标操作跳转节点与相邻的上述操作跳转节点之间的跳转概率分布,其中,相邻的上述操作跳转节点包括在其他上述操作跳转节点中;The fifth determination unit is configured to determine the jump probability distribution between the above-mentioned target operation jump node and the above-mentioned adjacent operation jump node using the above-mentioned heterogeneous graph, wherein the adjacent above-mentioned operation jump node is included in other In the jump node of the above operation;
第六确定单元,被设置为基于上述跳转概率分布、上述环境信息和上述特征信息,确定与上述目标操作跳转节点关联的跳转节点。The sixth determination unit is configured to determine the jump node associated with the target operation jump node based on the jump probability distribution, the environment information and the characteristic information.
在一个示例性实施例中,上述第五确定单元,包括:In an exemplary embodiment, the fifth determination unit mentioned above includes:
第一确定子单元,被设置为确定与上述目标操作跳转节点关联的多个操作跳转节点;The first determining subunit is configured to determine multiple operation jump nodes associated with the above-mentioned target operation jump node;
第二确定子单元,被设置为在上述异构图中确定关联的多个上述操作跳转节点与上述目标操作跳转节点之间的连接关系,确定多个连接关系;The second determination subunit is configured to determine connection relationships between multiple associated operation jump nodes and the target operation jump node in the heterogeneous graph, and determine multiple connection relationships;
第三确定子单元,被设置为确定多个上述连接关系的权重之和;The third determination subunit is configured to determine the sum of weights of multiple above-mentioned connection relationships;
第一处理子单元,被设置为归一化上述权重之和,以确定上述跳转概率分布。 The first processing subunit is configured to normalize the sum of the above weights to determine the above jump probability distribution.
在一个示例性实施例中,上述第五确定单元,包括:In an exemplary embodiment, the fifth determination unit mentioned above includes:
第四确定子单元,被设置为确定与上述目标操作跳转节点关联的多个操作跳转节点;The fourth determination subunit is configured to determine multiple operation jump nodes associated with the above-mentioned target operation jump node;
第五确定子单元,被设置为将上述目标操作跳转节点与关联的多个上述操作跳转节点之间的多条连接边确定为样本数据;The fifth determination subunit is configured to determine multiple connecting edges between the above-mentioned target operation jump node and multiple associated above-mentioned operation jump nodes as sample data;
第一建立子单元,被设置为利用上述样本数据建立网络模型,以利用上述网络模型输出上述跳转概率分布。The first establishment subunit is configured to establish a network model using the above-mentioned sample data, so as to use the above-mentioned network model to output the above-mentioned jump probability distribution.
在一个示例性实施例中,上述装置还包括:In an exemplary embodiment, the above device further includes:
第一修正模块,被设置为按照与上述目标操作跳转节点关联的跳转节点确定目标家电设备的目标操作指令之后,按照上述目标家电设备的设备信息修正上述目标操作指令。The first correction module is configured to modify the target operation instruction according to the device information of the target home appliance after determining the target operation instruction of the target home appliance according to the jump node associated with the target operation jump node.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that each of the above modules can be implemented through software or hardware. For the latter, it can be implemented in the following ways, but is not limited to this: the above modules are all located in the same processor; or the above modules can be implemented in any combination. The forms are located in different processors.
本公开的实施例还提供了一种存储介质,该存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。Embodiments of the present disclosure also provide a storage medium in which a computer program is stored, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.
在一个示例性实施例中,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的计算机程序:In an exemplary embodiment, in this embodiment, the above-mentioned storage medium may be configured to store a computer program for performing the following steps:
S1,获取N个设备操作日志,其中,每个所述设备操作日志中包括对M个家电设备执行的多个操作跳转指令,所述操作跳转指令用于表示从对所述家电设备的第一操作控制跳转至其他操作控制,所述M和所述N均是大于或等于1的自然数;S1, obtain N device operation logs, wherein each device operation log includes multiple operation jump instructions executed on M home appliances, and the operation jump instructions are used to represent the operation jump instructions from the M home appliances. The first operation control jumps to other operation controls, and the M and N are both natural numbers greater than or equal to 1;
S2,基于N个所述设备操作日志生成异构图,其中,所述异构图中包括M个所述家电设备之间的多个操作跳转节点和多个所述操作跳转节点之间的连接关系;S2. Generate a heterogeneous graph based on N device operation logs, wherein the heterogeneous graph includes multiple operation jump nodes between the M home appliance devices and between multiple operation jump nodes. connection relationship;
S3,在所述异构图中确定目标操作跳转节点与其他所述操作跳转节点之间的 跳转概率分布,以确定与所述目标操作跳转节点关联的跳转节点;S3: Determine the relationship between the target operation jump node and other operation jump nodes in the heterogeneous graph. a jump probability distribution to determine a jump node associated with the target operation jump node;
S4,按照与所述目标操作跳转节点关联的跳转节点确定目标家电设备的目标操作指令。S4: Determine the target operation instruction of the target home appliance according to the jump node associated with the target operation jump node.
在一个示例性实施例中,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。In an exemplary embodiment, in this embodiment, the above-mentioned storage medium may include but is not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as Various media that can store computer programs such as RAM), removable hard drives, magnetic disks or optical disks.
本公开的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。Embodiments of the present disclosure also provide an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
在一个示例性实施例中,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。In an exemplary embodiment, the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
在一个示例性实施例中,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:In an exemplary embodiment, in this embodiment, the above-mentioned processor may be configured to perform the following steps through a computer program:
S1,获取N个设备操作日志,其中,每个所述设备操作日志中包括对M个家电设备执行的多个操作跳转指令,所述操作跳转指令用于表示从对所述家电设备的第一操作控制跳转至其他操作控制,所述M和所述N均是大于或等于1的自然数;S1, obtain N device operation logs, wherein each device operation log includes multiple operation jump instructions executed on M home appliances, and the operation jump instructions are used to represent the operation jump instructions from the M home appliances. The first operation control jumps to other operation controls, and the M and N are both natural numbers greater than or equal to 1;
S2,基于N个所述设备操作日志生成异构图,其中,所述异构图中包括M个所述家电设备之间的多个操作跳转节点和多个所述操作跳转节点之间的连接关系;S2. Generate a heterogeneous graph based on N device operation logs, wherein the heterogeneous graph includes multiple operation jump nodes between the M home appliance devices and between multiple operation jump nodes. connection relationship;
S3,在所述异构图中确定目标操作跳转节点与其他所述操作跳转节点之间的跳转概率分布,以确定与所述目标操作跳转节点关联的跳转节点;S3: Determine the jump probability distribution between the target operation jump node and other operation jump nodes in the heterogeneous graph to determine the jump node associated with the target operation jump node;
S4,按照与所述目标操作跳转节点关联的跳转节点确定目标家电设备的目标操作指令。S4: Determine the target operation instruction of the target home appliance according to the jump node associated with the target operation jump node.
可选地,本领域普通技术人员可以理解,图6所示的结构仅为示意,电子装置也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌上电脑以及 移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。图6其并不对上述电子装置的结构造成限定。例如,电子装置还可包括比图6中所示更多或者更少的组件(如网络接口等),或者具有与图6所示不同的配置。Optionally, those of ordinary skill in the art can understand that the structure shown in Figure 6 is only illustrative, and the electronic device can also be a smart phone (such as an Android phone, iOS phone, etc.), a tablet computer, a handheld computer, and a Mobile Internet Devices (MID), PAD and other terminal equipment. FIG. 6 does not limit the structure of the above-mentioned electronic device. For example, the electronic device may also include more or fewer components (such as network interfaces, etc.) than shown in FIG. 6 , or have a different configuration than that shown in FIG. 6 .
其中,存储器702可用于存储软件程序以及模块,如本公开实施例中的通信连接方法和装置对应的程序指令/模块,处理器704通过运行存储在存储器702内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的通信连接方法。存储器702可包括高速随机存储器,还可以包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器702可进一步包括相对于处理器704远程设置的存储器,这些远程存储器可以通过网络连接至终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。作为一种示例,如图6所示,上述存储器702中可以但不限于包括上述通信连接装置中的第一获取模块52、第一生成模块54、第一确定模块56、第二确定模块58。此外,还可以包括但不限于上述通信连接装置中的其他模块单元,本示例中不再赘述。The memory 702 can be used to store software programs and modules, such as program instructions/modules corresponding to the communication connection methods and devices in the embodiments of the present disclosure. The processor 704 executes various software programs and modules by running the software programs and modules stored in the memory 702. Function application and data processing, that is, realizing the above communication connection method. Memory 702 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 702 may further include memory located remotely relative to the processor 704, and these remote memories may be connected to the terminal through a network. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof. As an example, as shown in FIG. 6 , the memory 702 may include, but is not limited to, the first acquisition module 52 , the first generation module 54 , the first determination module 56 , and the second determination module 58 in the communication connection device. In addition, it may also include but is not limited to other modular units in the above-mentioned communication connection device, which will not be described again in this example.
可选地,上述的传输装置706用于经由一个网络接收或者发送数据。上述的网络具体实例可包括有线网络及无线网络。在一个实例中,传输装置706包括一个网络适配器(Network Interface Controller,NIC),其可通过网线与其他网络设备与路由器相连从而可与互联网或局域网进行通讯。在一个实例中,传输装置1106为射频(Radio Frequency,RF)模块,其用于通过无线方式与互联网进行通讯。Optionally, the above-mentioned transmission device 706 is used to receive or send data via a network. Specific examples of the above-mentioned network may include wired networks and wireless networks. In one example, the transmission device 706 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers through network cables to communicate with the Internet or a local area network. In one example, the transmission device 1106 is a radio frequency (Radio Frequency, RF) module, which is used to communicate with the Internet wirelessly.
此外,上述电子装置还包括:显示器708,设置为显示上述任务知识图谱;和连接总线710,设置为连接上述电子装置中的各个模块部件。In addition, the above-mentioned electronic device also includes: a display 708 configured to display the above-mentioned task knowledge graph; and a connection bus 710 configured to connect various module components in the above-mentioned electronic device.
在一个示例性实施例中,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。In an exemplary embodiment, for specific examples in this embodiment, reference may be made to the examples described in the above-mentioned embodiments and optional implementations, and details will not be described again in this embodiment.
显然,本领域的技术人员应该明白,上述的本公开的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,在一个示例性实施例中,它们可以用计算装置可执行的 程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本公开不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present disclosure can be implemented using general-purpose computing devices, and they can be concentrated on a single computing device, or distributed across a network composed of multiple computing devices. , in one exemplary embodiment, they may be implemented using a computing device executable Program code is implemented so that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in a different order than herein, or may be made separately. into individual integrated circuit modules, or multiple modules or steps among them are made into a single integrated circuit module. As such, the present disclosure is not limited to any specific combination of hardware and software.
本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。For specific examples in this embodiment, reference may be made to the examples described in the above-mentioned embodiments and exemplary implementations, and details will not be described again in this embodiment.
以上所述仅是本公开的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本公开原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本公开的保护范围。 The above are only preferred embodiments of the present disclosure. It should be pointed out that for those of ordinary skill in the art, several improvements and modifications can be made without departing from the principles of the present disclosure. These improvements and modifications can also be made. should be regarded as the scope of protection of this disclosure.

Claims (18)

  1. 一种家电设备的控制方法,包括:A control method for home appliances, including:
    获取N个设备操作日志,其中,每个所述设备操作日志中包括对M个家电设备执行的多个操作跳转指令,所述操作跳转指令用于表示从对所述家电设备的第一操作控制跳转至其他操作控制,所述M和所述N均是大于或等于1的自然数;Obtain N device operation logs, wherein each device operation log includes a plurality of operation jump instructions executed on M home appliances, and the operation jump instructions are used to represent the first step from the first operation to the home appliances. The operation control jumps to other operation control, and the M and N are both natural numbers greater than or equal to 1;
    基于N个所述设备操作日志生成异构图,其中,所述异构图中包括M个所述家电设备之间的多个操作跳转节点和多个所述操作跳转节点之间的连接关系;A heterogeneous graph is generated based on N device operation logs, wherein the heterogeneous graph includes multiple operation jump nodes between M home appliance devices and connections between multiple operation jump nodes. relation;
    在所述异构图中确定目标操作跳转节点与其他所述操作跳转节点之间的跳转概率分布,以确定与所述目标操作跳转节点关联的跳转节点;Determine a jump probability distribution between a target operation jump node and other operation jump nodes in the heterogeneous graph to determine a jump node associated with the target operation jump node;
    按照与所述目标操作跳转节点关联的跳转节点确定目标家电设备的目标操作指令。The target operation instruction of the target home appliance is determined according to the jump node associated with the target operation jump node.
  2. 根据权利要求1所述的方法,其中,获取N个设备操作日志,包括:The method according to claim 1, wherein obtaining N device operation logs includes:
    获取每个所述设备操作日志,得到N个所述设备操作日志,其中,获取每个所述设备操作日志均执行以下操作:Obtain each of the device operation logs and obtain N device operation logs. The following operations are performed to obtain each of the device operation logs:
    获取预设区域中控制所述家电设备的操作指令,得到多个操作指令;Obtain operating instructions for controlling the home appliance in the preset area, and obtain multiple operating instructions;
    将以下信息至少之一确定为所述设备操作日志:多个所述操作指令、多个所述操作指令对应的时间信息、多个所述操作指令对应的位置信息、多个所述操作指令对应的环境信息。Determine at least one of the following information as the device operation log: a plurality of operation instructions, time information corresponding to a plurality of operation instructions, location information corresponding to a plurality of operation instructions, location information corresponding to a plurality of operation instructions, environmental information.
  3. 根据权利要求1所述的方法,其中,基于N个所述设备操作日志生成异构图,包括:The method according to claim 1, wherein generating a heterogeneous graph based on N device operation logs includes:
    对N个所述设备操作日志进行去重处理,得到K个所述设备操作日志,其中,所述K是小于或等于所述M的自然数;Perform deduplication processing on N equipment operation logs to obtain K equipment operation logs, where K is a natural number less than or equal to M;
    确定K个所述设备操作日志中每个所述设备操作日志的操作类别; Determine the operation category of each of the K device operation logs;
    确定K个所述设备操作日志中每个所述操作跳转指令对应的操作跳转节点,得到多个所述操作跳转节点;Determine the operation jump nodes corresponding to each of the operation jump instructions in the K device operation logs, and obtain a plurality of the operation jump nodes;
    确定多个所述操作跳转节点之间的连接关系,得到多条连接边;Determine the connection relationship between multiple operation jump nodes and obtain multiple connection edges;
    基于所述操作类别、多个所述操作跳转节点以及所述多条连接边生成所述异构图。The heterogeneous graph is generated based on the operation category, the plurality of operation jump nodes, and the plurality of connecting edges.
  4. 根据权利要求3所述的方法,其中,基于N个所述设备操作日志生成异构图之后,所述方法还包括:The method according to claim 3, wherein after generating the heterogeneous graph based on N device operation logs, the method further includes:
    确定每个所述操作跳转节点对应的操作类别;Determine the operation category corresponding to each operation jump node;
    基于每个所述操作跳转节点对应的操作类别,利用所述异构图响应作用于所述家电设备的操作指令。Based on the operation category corresponding to each operation jump node, the heterogeneous graph is used to respond to the operation instructions acting on the home appliance.
  5. 根据权利要求1所述的方法,其中,在所述异构图中确定目标操作跳转节点与其他所述操作跳转节点之间的跳转概率分布,以确定与所述目标操作跳转节点关联的跳转节点,包括:The method according to claim 1, wherein a jump probability distribution between a target operation jump node and other operation jump nodes is determined in the heterogeneous graph to determine the relationship between the target operation jump node and the target operation jump node. Associated jump nodes include:
    接收作用于所述目标家电设备的操作指令,其中,所述操作指令中包括所述目标操作跳转节点;Receive an operation instruction acting on the target home appliance, wherein the operation instruction includes the target operation jump node;
    确定所述操作指令所对应的预设区域中的环境信息,以及触发所述操作指令的特征信息,其中,所述目标家电设备设置在所述预设区域中;Determine the environmental information in the preset area corresponding to the operation instruction, and the characteristic information that triggers the operation instruction, wherein the target home appliance is set in the preset area;
    利用所述异构图确定所述目标操作跳转节点与相邻的所述操作跳转节点之间的跳转概率分布,其中,相邻的所述操作跳转节点包括在其他所述操作跳转节点中;The heterogeneous graph is used to determine the jump probability distribution between the target operation jump node and the adjacent operation jump nodes, wherein the adjacent operation jump nodes are included in other operation jump nodes. in transfer node;
    基于所述跳转概率分布、所述环境信息和所述特征信息,确定与所述目标操作跳转节点关联的跳转节点。Based on the jump probability distribution, the environment information and the characteristic information, a jump node associated with the target operation jump node is determined.
  6. 根据权利要求5所述的方法,其中,利用所述异构图确定所述目标操作跳转节点与相邻的所述操作跳转节点之间的跳转概率分布,包括: The method according to claim 5, wherein using the heterogeneous graph to determine the jump probability distribution between the target operation jump node and the adjacent operation jump nodes includes:
    确定与所述目标操作跳转节点关联的多个操作跳转节点;Determine a plurality of operation jump nodes associated with the target operation jump node;
    在所述异构图中确定关联的多个所述操作跳转节点与所述目标操作跳转节点之间的连接关系,确定多个连接关系;Determine connection relationships between multiple associated operation jump nodes and the target operation jump node in the heterogeneous graph, and determine multiple connection relationships;
    确定多个所述连接关系的权重之和;Determine the sum of the weights of multiple connection relationships;
    归一化所述权重之和,以确定所述跳转概率分布。The sum of weights is normalized to determine the jump probability distribution.
  7. 根据权利要求5所述的方法,其中,利用所述异构图确定所述目标操作跳转节点与相邻的所述操作跳转节点之间的跳转概率分布,包括:The method according to claim 5, wherein using the heterogeneous graph to determine the jump probability distribution between the target operation jump node and the adjacent operation jump nodes includes:
    确定与所述目标操作跳转节点关联的多个操作跳转节点;Determine a plurality of operation jump nodes associated with the target operation jump node;
    将所述目标操作跳转节点与关联的多个所述操作跳转节点之间的多条连接边确定为样本数据;Determine multiple connecting edges between the target operation jump node and multiple associated operation jump nodes as sample data;
    利用所述样本数据建立网络模型,以利用所述网络模型输出所述跳转概率分布。A network model is established using the sample data to output the jump probability distribution using the network model.
  8. 根据权利要求1所述的方法,其中,按照与所述目标操作跳转节点关联的跳转节点确定目标家电设备的目标操作指令之后,所述方法还包括:The method according to claim 1, wherein after determining the target operation instruction of the target home appliance according to the jump node associated with the target operation jump node, the method further includes:
    按照所述目标家电设备的设备信息修正所述目标操作指令。The target operation instruction is modified according to the device information of the target home appliance.
  9. 一种家电设备的控制装置,其中,包括:A control device for home appliances, which includes:
    第一获取模块,被设置为获取N个设备操作日志,其中,每个所述设备操作日志中包括对M个家电设备执行的多个操作跳转指令,所述操作跳转指令用于表示从对所述家电设备的第一操作控制跳转至其他操作控制,所述M和所述N均是大于或等于1的自然数;The first acquisition module is configured to acquire N device operation logs, wherein each of the device operation logs includes multiple operation jump instructions executed on M home appliances, and the operation jump instructions are used to represent the slave operation logs. The first operation control of the home appliance jumps to other operation controls, and the M and N are both natural numbers greater than or equal to 1;
    第一生成模块,被设置为基于N个所述设备操作日志生成异构图,其中,所述异构图中包括M个所述家电设备之间的多个操作跳转节点和多个所述操作跳转节点之间的连接关系;The first generation module is configured to generate a heterogeneous graph based on N device operation logs, wherein the heterogeneous graph includes a plurality of operation jump nodes between the M home appliances and a plurality of the Operate the connection relationship between jump nodes;
    第一确定模块,被设置为在所述异构图中确定目标操作跳转节点与其他所述操作跳转节点之间的跳转概率分布,以确定与所述目标操作跳转节点关联的跳转节点; The first determination module is configured to determine the jump probability distribution between the target operation jump node and other operation jump nodes in the heterogeneous graph to determine the jump associated with the target operation jump node. transfer node;
    第二确定模块,被设置为按照与所述目标操作跳转节点关联的跳转节点确定目标家电设备的目标操作指令。The second determination module is configured to determine the target operation instruction of the target home appliance according to the jump node associated with the target operation jump node.
  10. 根据权利要求9所述的装置,其中,所述第一获取模块,包括:The device according to claim 9, wherein the first acquisition module includes:
    第一获取单元,被设置为获取每个上述设备操作日志,得到N个上述设备操作日志,其中,获取每个上述设备操作日志均执行以下操作:获取预设区域中控制上述家电设备的操作指令,得到多个操作指令;将以下信息至少之一确定为上述设备操作日志:多个上述操作指令、多个上述操作指令对应的时间信息、多个上述操作指令对应的位置信息、多个上述操作指令对应的环境信息。The first acquisition unit is configured to acquire each of the above-mentioned device operation logs and obtain N above-mentioned device operation logs, wherein obtaining each of the above-mentioned device operation logs performs the following operations: acquiring the operation instructions for controlling the above-mentioned home appliances in the preset area , obtain multiple operation instructions; determine at least one of the following information as the above-mentioned device operation log: multiple above-mentioned operation instructions, time information corresponding to the multiple above-mentioned operation instructions, location information corresponding to multiple above-mentioned operation instructions, multiple above-mentioned operations The environment information corresponding to the instruction.
  11. 根据权利要求9所述的装置,其中,所述第一生成模块,包括:The device according to claim 9, wherein the first generating module includes:
    第一处理单元,被设置为对N个上述设备操作日志进行去重处理,得到K个上述设备操作日志,其中,上述K是小于或等于上述M的自然数;The first processing unit is configured to perform deduplication processing on N of the above-mentioned device operation logs to obtain K of the above-mentioned device operation logs, where the above-mentioned K is a natural number less than or equal to the above-mentioned M;
    第一确定单元,被设置为确定K个上述设备操作日志中每个上述设备操作日志的操作类别;The first determination unit is configured to determine the operation category of each of the K above-mentioned device operation logs;
    第二确定单元,被设置为确定K个上述设备操作日志中每个上述操作跳转指令对应的操作跳转节点,得到多个上述操作跳转节点;The second determination unit is configured to determine the operation jump node corresponding to each of the above-mentioned operation jump instructions in the K above-mentioned device operation logs, and obtain a plurality of the above-mentioned operation jump nodes;
    第三确定单元,被设置为确定多个上述操作跳转节点之间的连接关系,得到多条连接边;第一生成单元,被设置为基于上述操作类别、多个上述操作跳转节点以及上述多条连接边生成上述异构图。The third determination unit is configured to determine the connection relationship between multiple above-mentioned operation jump nodes and obtain multiple connection edges; the first generation unit is configured to determine the connection relationship between the above-mentioned operation jump nodes and the above-mentioned operation jump nodes based on the above-mentioned operation category, and the above-mentioned operation jump nodes. Multiple connecting edges generate the above heterogeneous graph.
  12. 根据权利要求9所述的装置,其中,所述装置还包括:The device of claim 9, further comprising:
    第三确定模块,被设置为基于N个上述设备操作日志生成异构图之后,确定每个上述操作跳转节点对应的操作类别;第一响应模块,被设置为基于每个上述操作跳转节点对应的操作类别,利用上述异构图响应作用于上述家电设备的操作指令。The third determination module is configured to determine the operation category corresponding to each of the above-mentioned operation jump nodes after generating a heterogeneous graph based on the N above-mentioned device operation logs; the first response module is configured to determine the operation category corresponding to each of the above-mentioned operation jump nodes. The corresponding operation category uses the above-mentioned heterogeneous graph to respond to the operation instructions acting on the above-mentioned household appliances.
  13. 根据权利要求9所述的装置,其中,所述第一确定模块,包括:The device according to claim 9, wherein the first determining module includes:
    第一接收单元,被设置为接收作用于上述目标家电设备的操作指令,其中, 上述操作指令中包括上述目标操作跳转节点;The first receiving unit is configured to receive operating instructions acting on the above-mentioned target home appliance, wherein, The above operation instructions include the above target operation jump node;
    第四确定单元,被设置为确定上述操作指令所对应的预设区域中的环境信息,以及触发上述操作指令的特征信息,其中,上述目标家电设备设置在上述预设区域中;The fourth determination unit is configured to determine the environmental information in the preset area corresponding to the above-mentioned operation instruction, and the characteristic information that triggers the above-mentioned operation instruction, wherein the above-mentioned target home appliance is arranged in the above-mentioned preset area;
    第五确定单元,被设置为利用上述异构图确定上述目标操作跳转节点与相邻的上述操作跳转节点之间的跳转概率分布,其中,相邻的上述操作跳转节点包括在其他上述操作跳转节点中;第六确定单元,被设置为基于上述跳转概率分布、上述环境信息和上述特征信息,确定与上述目标操作跳转节点关联的跳转节点。The fifth determination unit is configured to determine the jump probability distribution between the above-mentioned target operation jump node and the above-mentioned adjacent operation jump node using the above-mentioned heterogeneous graph, wherein the adjacent above-mentioned operation jump node is included in other Among the above-mentioned operation jump nodes, the sixth determination unit is configured to determine the jump node associated with the above-mentioned target operation jump node based on the above-mentioned jump probability distribution, the above-mentioned environment information and the above-mentioned characteristic information.
  14. 根据权利要求13所述的装置,其中,所述第五确定单元,包括:The device according to claim 13, wherein the fifth determining unit includes:
    第一确定子单元,被设置为确定与上述目标操作跳转节点关联的多个操作跳转节点;The first determining subunit is configured to determine multiple operation jump nodes associated with the above-mentioned target operation jump node;
    第二确定子单元,被设置为在上述异构图中确定关联的多个上述操作跳转节点与上述目标操作跳转节点之间的连接关系,确定多个连接关系;The second determination subunit is configured to determine connection relationships between multiple associated operation jump nodes and the target operation jump node in the heterogeneous graph, and determine multiple connection relationships;
    第三确定子单元,被设置为确定多个上述连接关系的权重之和;第一处理子单元,被设置为归一化上述权重之和,以确定上述跳转概率分布。The third determination sub-unit is configured to determine the sum of weights of a plurality of the above-mentioned connection relationships; the first processing sub-unit is configured to normalize the sum of the above-mentioned weights to determine the above-mentioned jump probability distribution.
  15. 根据权利要求13所述的装置,其中,所述第五确定单元,包括:The device according to claim 13, wherein the fifth determining unit includes:
    第四确定子单元,被设置为确定与上述目标操作跳转节点关联的多个操作跳转节点;The fourth determination subunit is configured to determine multiple operation jump nodes associated with the above-mentioned target operation jump node;
    第五确定子单元,被设置为将上述目标操作跳转节点与关联的多个上述操作跳转节点之间的多条连接边确定为样本数据;The fifth determination subunit is configured to determine multiple connecting edges between the above-mentioned target operation jump node and multiple associated above-mentioned operation jump nodes as sample data;
    第一建立子单元,被设置为利用上述样本数据建立网络模型,以利用上述网络模型输出上述跳转概率分布。The first establishment subunit is configured to establish a network model using the above-mentioned sample data, so as to use the above-mentioned network model to output the above-mentioned jump probability distribution.
  16. 根据权利要求9所述的装置,其中,所述装置还包括:The device of claim 9, further comprising:
    第一修正模块,被设置为按照与上述目标操作跳转节点关联的跳转节点确定目标家电设备的目标操作指令之后,按照上述目标家电设备的设备信息修正上述 目标操作指令。The first correction module is configured to, after determining the target operation instruction of the target home appliance device according to the jump node associated with the target operation jump node, correct the above-mentioned device information according to the device information of the target home appliance device. Target operation instructions.
  17. 一种计算机可读的存储介质,所述计算机可读的存储介质包括存储的程序,其中,所述程序运行时执行权利要求1至8中任一项所述的方法。A computer-readable storage medium includes a stored program, wherein the method of any one of claims 1 to 8 is executed when the program is run.
  18. 一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为通过所述计算机程序执行权利要求1至8中任一项所述的方法。 An electronic device includes a memory and a processor, a computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 8 through the computer program.
PCT/CN2023/075053 2022-06-29 2023-02-08 Household appliance control method and apparatus, storage medium, and electronic apparatus WO2024001196A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210751813.9 2022-06-29
CN202210751813.9A CN115268282A (en) 2022-06-29 2022-06-29 Control method and device of household appliance, storage medium and electronic device

Publications (1)

Publication Number Publication Date
WO2024001196A1 true WO2024001196A1 (en) 2024-01-04

Family

ID=83764787

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/075053 WO2024001196A1 (en) 2022-06-29 2023-02-08 Household appliance control method and apparatus, storage medium, and electronic apparatus

Country Status (2)

Country Link
CN (1) CN115268282A (en)
WO (1) WO2024001196A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115268282A (en) * 2022-06-29 2022-11-01 青岛海尔科技有限公司 Control method and device of household appliance, storage medium and electronic device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190138925A1 (en) * 2017-11-09 2019-05-09 Foundation Of Soongsil University Industry Cooperation Terminal device for generating user behavior data, method for generating user behavior data and recording medium
CN111077786A (en) * 2019-12-10 2020-04-28 上海雷盎云智能技术有限公司 Intelligent household equipment control method and device based on big data analysis
CN112288599A (en) * 2020-10-29 2021-01-29 四川长虹电器股份有限公司 Scene service implementation method for smart home, computer device and storage medium
CN112782996A (en) * 2020-12-31 2021-05-11 青岛海尔科技有限公司 Equipment linkage method and device, storage medium and electronic device
CN113341743A (en) * 2021-06-07 2021-09-03 深圳市欧瑞博科技股份有限公司 Intelligent household equipment control method and device, electronic equipment and storage medium
CN114023304A (en) * 2021-11-25 2022-02-08 珠海格力电器股份有限公司 Control method of intelligent equipment, intelligent household equipment, nonvolatile storage medium and processor
CN114329455A (en) * 2022-03-08 2022-04-12 北京大学 User abnormal behavior detection method and device based on heterogeneous graph embedding
CN114500139A (en) * 2022-01-27 2022-05-13 青岛海尔科技有限公司 Instruction group sending method and device, storage medium and electronic device
CN114546486A (en) * 2022-01-28 2022-05-27 青岛海尔科技有限公司 Method and device for recommending instruction to user, storage medium and electronic device
CN115268282A (en) * 2022-06-29 2022-11-01 青岛海尔科技有限公司 Control method and device of household appliance, storage medium and electronic device

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018009833A1 (en) * 2016-07-08 2018-01-11 Charlton Erik Allen Intelligent lighting control system lighting alarm apparatuses, systems, and methods
CN107665230B (en) * 2017-06-21 2021-06-01 海信集团有限公司 Training method and device of user behavior prediction model for intelligent home control
CN112349283B (en) * 2019-08-09 2024-03-12 杭州九阳小家电有限公司 Household appliance control method based on user intention and intelligent household appliance
CN111736479B (en) * 2020-06-28 2022-12-13 佛山市顺德区美的饮水机制造有限公司 Control method, home appliance device, and computer-readable storage medium
CN113761529B (en) * 2020-12-01 2024-04-26 北京卫达信息技术有限公司 Android malicious software detection system and method based on heterogram learning
CN112559721B (en) * 2020-12-25 2023-10-20 北京百度网讯科技有限公司 Method, device, equipment, medium and program product for adjusting man-machine dialogue system
CN113256347A (en) * 2021-06-22 2021-08-13 腾讯科技(深圳)有限公司 Discount information determining method and discount information display method
CN113609345B (en) * 2021-09-30 2021-12-10 腾讯科技(深圳)有限公司 Target object association method and device, computing equipment and storage medium
CN114445151A (en) * 2022-02-11 2022-05-06 腾讯科技(深圳)有限公司 Method, device and equipment for detecting flow cheating object and storage medium
CN114625917B (en) * 2022-03-11 2024-11-26 腾讯科技(深圳)有限公司 Video search error correction method, device, equipment and storage medium
CN114679378A (en) * 2022-04-21 2022-06-28 青岛海尔科技有限公司 Log monitoring and analyzing method and system, storage medium and electronic device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190138925A1 (en) * 2017-11-09 2019-05-09 Foundation Of Soongsil University Industry Cooperation Terminal device for generating user behavior data, method for generating user behavior data and recording medium
CN111077786A (en) * 2019-12-10 2020-04-28 上海雷盎云智能技术有限公司 Intelligent household equipment control method and device based on big data analysis
CN112288599A (en) * 2020-10-29 2021-01-29 四川长虹电器股份有限公司 Scene service implementation method for smart home, computer device and storage medium
CN112782996A (en) * 2020-12-31 2021-05-11 青岛海尔科技有限公司 Equipment linkage method and device, storage medium and electronic device
CN113341743A (en) * 2021-06-07 2021-09-03 深圳市欧瑞博科技股份有限公司 Intelligent household equipment control method and device, electronic equipment and storage medium
CN114023304A (en) * 2021-11-25 2022-02-08 珠海格力电器股份有限公司 Control method of intelligent equipment, intelligent household equipment, nonvolatile storage medium and processor
CN114500139A (en) * 2022-01-27 2022-05-13 青岛海尔科技有限公司 Instruction group sending method and device, storage medium and electronic device
CN114546486A (en) * 2022-01-28 2022-05-27 青岛海尔科技有限公司 Method and device for recommending instruction to user, storage medium and electronic device
CN114329455A (en) * 2022-03-08 2022-04-12 北京大学 User abnormal behavior detection method and device based on heterogeneous graph embedding
CN115268282A (en) * 2022-06-29 2022-11-01 青岛海尔科技有限公司 Control method and device of household appliance, storage medium and electronic device

Also Published As

Publication number Publication date
CN115268282A (en) 2022-11-01

Similar Documents

Publication Publication Date Title
CN113485144B (en) Intelligent home control method and system based on Internet of things
WO2024230736A1 (en) Interaction intention information determination method based on generative pre-trained (gpt) model
WO2024001101A1 (en) Text intention recognition method and apparatus, storage medium, and electronic apparatus
WO2023000945A1 (en) Device linkage scheme recommendation method, and device and medium
WO2024021407A1 (en) Knowledge graph updating method and apparatus, and storage medium and electronic apparatus
WO2024001196A1 (en) Household appliance control method and apparatus, storage medium, and electronic apparatus
WO2024036694A1 (en) Control instruction sending method, control apparatus, storage medium and electronic apparatus
CN114697150B (en) Command issuing method and device, storage medium and electronic device
WO2023207170A1 (en) Washing program recommendation method and apparatus, storage medium, and electronic apparatus
CN116364079A (en) Equipment control method, device, storage medium and electronic device
WO2024001189A1 (en) Food storage information determination method and apparatus, storage medium, and electronic apparatus
CN114815645B (en) Control method and device of Internet of things equipment, storage medium and electronic device
WO2024021546A1 (en) Behavior preference table generation method and apparatus, storage medium and electronic apparatus
WO2024066089A1 (en) Cooking plan determination method and apparatus, storage medium, and electronic apparatus
CN114925158A (en) Sentence text intention recognition method and device, storage medium and electronic device
CN116540556A (en) Equipment control method and device based on user habit
CN116382107A (en) Equipment instruction acquisition method and device, storage medium and electronic device
CN109870919A (en) A kind of intelligent home furnishing control method and system
CN116107975A (en) Control method and device of equipment, storage medium and electronic device
WO2024036804A1 (en) Intent instruction determining method and apparatus, storage medium, and electronic device
CN118795789A (en) Method, device and electronic device for constructing scene model of smart home system
CN114694650B (en) Intelligent device control method and device, storage medium and electronic device
WO2023206723A1 (en) Semantic transformation method and apparatus, and storage medium and electronic apparatus
CN117726908B (en) Training method and device for picture generation model, storage medium and electronic device
CN118502258A (en) Method and device for generating intelligent home system control strategy and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23829389

Country of ref document: EP

Kind code of ref document: A1