Household appliance control method, device and system and computer readable storage medium
By obtaining and updating the physical attributes and relationships of family portraits, the problem of low intelligence of home appliances is solved, proactive services of home appliances and linkage of whole-house equipment are realized, improving user experience.
Patent Information
- Application Number
- CN202410841582.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-01
AI Technical Summary
Existing home appliances have low intelligence and cannot proactively provide smart services. Users need to manually select modes, resulting in poor user experience.
By obtaining the initial family portrait of the family, including family, room, home appliances, home, air and user information, entity attributes and relationships are updated based on environmental information. If changes occur, target events are triggered to control the operation of associated home appliances to achieve full-house equipment control. Precise control and linkage.
Home appliances can proactively provide services without the need for manual operation by users, improving intelligence and user experience, and enabling precise control and linkage between devices.
Smart Images

Figure CN118732572A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of electrical equipment, and in particular, relates to a household appliance control method, device, system and computer-readable storage medium. Background Art
[0002] With the continuous development of science and technology, the intelligence of household appliances is getting higher and higher. Many household appliances will be set with multiple functions. Taking air conditioners as an example, they can include cooling mode, heating mode, comfort mode, energy-saving mode, sleep mode, etc. Users can choose according to their needs. In the prior art, the use process of household appliances mostly depends on the manual selection of users, and active intelligent services cannot be provided. The intelligence is low and the user's physical examination is poor. Summary of the invention
[0003] In view of the above-mentioned technical problems in the related art, the embodiments of the present invention provide a method, device, system and computer-readable storage medium for controlling a home appliance.
[0004] In a first aspect, an embodiment of the present invention provides a method for controlling a home appliance, comprising:
[0005] Obtaining an initial family portrait of the target family, wherein the initial family portrait includes multiple entities under a preset knowledge graph ontology, wherein the preset knowledge graph ontology includes a family ontology, a room ontology, a home appliance ontology, a home ontology, an air ontology, and a user ontology;
[0006] Acquire current environmental information of the target family, and determine whether the initial family portrait has changed based on the current environmental information, wherein the current environmental information includes current home appliance information, current home information, current air information, and current user information;
[0007] If the initial family portrait changes, determine the target event triggered by the family portrait change;
[0008] Based on the target event, the operation of the home appliances associated with the target event is controlled.
[0009] In some embodiments, the initial family portrait is constructed by the following steps:
[0010] In the process of configuring the target home appliance in the target home, a home entity of the target home, room entities of N rooms contained in the target home, a user entity of a user in each room, and an appliance entity of the target home appliance are created, where N is a positive integer;
[0011] During the operation of the target home appliance, the home appliance information, home information, user information and / or air information of the target room are obtained through the target home appliance, and the corresponding home appliance entity, home entity, user entity and / or air entity are updated based on the home appliance information, home information, the user information and / or the air information, wherein the target room is the room where the target home appliance is located.
[0012] In some implementations, in the process of configuring the target home appliance in the target home, creating a home entity of the target home, room entities of N rooms included in the target home, a user entity of a user in each room, and an appliance entity of the target home appliance, including:
[0013] In the process of configuring the target home appliance in the target home, creating a home entity of the target home under the home ontology;
[0014] Based on the room information of the N rooms included in the target family, a room entity of each room is created under the room entity, and a relationship between the room entity of each room and the family entity of the target family, as well as a relationship between different room entities, is established;
[0015] For each room, based on the user of the room, a user entity of the user of the room is created under the user ontology, and a relationship between the room entity of the room and the corresponding user entity is established;
[0016] An appliance entity of the target appliance is created under the appliance entity, and a relationship between the appliance entity of the target appliance and the room entity of the target room is established.
[0017] In some embodiments, if the target home appliance is provided with a first sensor for performing space scanning, the acquiring of home information, user information and / or air information of the target room through the target home appliance, and updating of the corresponding home entity, user entity and / or air entity based on the home information, the user information and / or the air information includes:
[0018] Performing a spatial scan of the target room by using the first sensor to obtain target environment information;
[0019] Performing target recognition based on the target environment information to obtain M home appliances and / or K furniture items contained in the target room, where M and K are both positive integers;
[0020] Create home appliance entities of the M home appliances under the home appliance entity, and / or create home entities of the K homes under the home entity.
[0021] In some embodiments, if the target home appliance is provided with a second sensor for detecting air quality, obtaining home information, user information and / or air information of the target room through the target home appliance, and updating the corresponding home entity, user entity and / or air entity based on the home information, the user information and / or the air information includes:
[0022] The air quality of P areas in the target room is detected by the second sensor to obtain air information of each area, where P is a positive integer;
[0023] Based on the air information of each area, an air entity of the corresponding area is created under the air body.
[0024] In some embodiments, if the target home appliance is provided with a third sensor for detecting user characteristics, the acquiring of home information, user information and / or air information of the target room through the target home appliance, and updating of the corresponding home entity, user entity and / or air entity based on the home information, the user information and / or the air information includes:
[0025] Detecting the features of Q users in the target room by the third sensor to obtain user information of each user, where Q is a positive integer;
[0026] For each user among the Q users, if the user is a user of the target room, the user information of the user is used as the entity attribute of the user entity of the user.
[0027] In some implementations, obtaining current environment information of the target family and determining whether the initial family portrait has changed based on the current environment information includes:
[0028] Determine the home appliance entity, home entity, air entity and user entity included in the initial family portrait;
[0029] If the home appliance entity does not include a target home appliance entity that matches the current home appliance information, the home entity does not include a target home entity that matches the current home information, the air entity does not include a target air entity that matches the current air information, and / or the user entity does not include a target user entity that matches the current user information, it indicates that the initial family portrait has changed.
[0030] In some implementations, each entity in the initial family portrait corresponds to an entity attribute, and the method further includes:
[0031] If the initial family portrait includes the target home appliance entity, the target home entity, the target air entity, and the target user entity, and the entity attributes of the target home appliance entity are different from the current home appliance information, the entity attributes of the target home entity are different from the current home information, the entity attributes of the target air entity are different from the current air information, and / or the entity attributes of the target user entity are different from the current home information, it is determined that the initial family portrait has changed.
[0032] In some implementations, each entity in the initial family portrait corresponds to an entity relationship with other entities, and the method further includes:
[0033] If the initial family portrait includes the target home appliance entity, the target home entity, the target air entity, and the target user entity, and the entity relationship of the target home appliance entity changes, the entity relationship of the target home entity changes, the entity relationship of the target air entity changes, and / or the entity relationship of the target user entity changes, it is determined that the initial family portrait has changed.
[0034] In some implementations, if the initial family portrait changes, determining a target event triggered by the change in the family portrait includes:
[0035] If the initial family portrait is changed, a target change message of the family portrait is generated based on a preset topic message type;
[0036] Based on the target change message, the target event is determined.
[0037] In a second aspect, an embodiment of the present invention provides a home appliance control device, including:
[0038] A first acquisition module is used to acquire an initial family portrait of a target family, wherein the initial family portrait includes multiple entities under a preset knowledge graph ontology, wherein the preset knowledge graph ontology includes a family ontology, a room ontology, a home appliance ontology, a home ontology, an air ontology, and a user ontology;
[0039] A second acquisition module is used to acquire current environmental information of the target family, and determine whether the initial family portrait has changed based on the current environmental information, wherein the current environmental information includes current home appliance information, current home information, current air information and current user information;
[0040] A target event determination module, used to determine a target event triggered by a change in the family portrait if the initial family portrait changes;
[0041] A control module is used to control the operation of the home appliances associated with the target event based on the target event.
[0042] In a third aspect, an embodiment of the present invention provides a home appliance control system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the home appliance control method when executing the program.
[0043] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the above-mentioned home appliance control method when executed by a processor.
[0044] One or more technical solutions provided by the embodiments of the present invention achieve at least the following technical effects or advantages:
[0045] In the home appliance control method provided in the embodiment of this specification, the initial family portrait of the target family is obtained, and the initial family portrait includes multiple entities under the preset knowledge graph ontology, and the preset knowledge graph ontology includes family ontology, room ontology, home appliance ontology, home ontology, air ontology and user ontology; the current environment information of the target family is obtained, and whether the initial family portrait has changed is determined based on the current environment information, wherein the current environment information includes current home appliance information, current home information, current air information and current user information; if the initial family portrait has changed, the target event triggered by the change of the family portrait is determined, and based on the target event, the operation of the associated home appliances of the target event is controlled. In this scheme, the information of the family, room, home appliance, home, air and user and the relationship between them are characterized by the family portrait based on the knowledge graph. If the family portrait changes, the target event triggered by the change of the family portrait is perceived, and the associated devices of the target event are controlled to actively provide services. Without the user's own operation, active provision of services to users can be achieved, and precise control of the whole house equipment and linkage between devices are achieved, and the intelligence of autonomously providing services to users is improved, thereby effectively improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0047] Figure 1 A flowchart of a household appliance control method provided in an embodiment of this specification;
[0048] Figure 2A schematic diagram of the structure of a family portrait provided in an embodiment of this specification;
[0049] Figure 3 A schematic diagram of a home appliance control device provided in an embodiment of this specification
[0050] Figure 4 A schematic diagram of a home appliance control system provided in an embodiment of this specification. DETAILED DESCRIPTION
[0051] An embodiment of the present specification provides a method for controlling home appliances, including: obtaining an initial family portrait of a target family, the initial family portrait including multiple entities under a preset knowledge graph ontology, the preset knowledge graph ontology including a family ontology, a room ontology, a home appliance ontology, a home ontology, an air ontology, and a user ontology; obtaining current environmental information of the target family, and determining whether the initial family portrait has changed based on the current environmental information, wherein the current environmental information includes current home appliance information, current home information, current air information, and current user information; if the initial family portrait has changed, determining a target event triggered by the change in the family portrait; and based on the target event, controlling the operation of home appliances associated with the target event.
[0052] The solution in the embodiments of this specification represents the information of the family, room, home appliances, home furnishings, air and users, as well as the relationships between them, through a family portrait based on a knowledge graph. If the family portrait changes, it perceives the target event triggered by the change in the family portrait, and controls the associated devices of the target event to actively provide services. Services can be actively provided to users without the need for user operation, thereby achieving precise control of all-house equipment and linkage between devices, improving the intelligence of autonomous service provision to users, and effectively improving the user experience.
[0053] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all the embodiments. Based on the embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0054] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0055] The present invention provides a method for controlling a household appliance. Figure 1 FIG. 1 is a flow chart of a method for controlling a home appliance provided in an embodiment of the present specification, and the method comprises the following steps:
[0056] Step S101: obtaining an initial family portrait of a target family, wherein the initial family portrait includes multiple entities under a preset knowledge graph ontology, wherein the preset knowledge graph ontology includes a family ontology, a room ontology, a home appliance ontology, a home ontology, an air ontology, and a user ontology;
[0057] Step S102: obtaining the current environment information of the target family, and determining whether the initial family portrait has changed based on the current environment information, wherein the current environment information includes current home appliance information, current home information, current air information, and current user information;
[0058] Step S103: if the initial family portrait changes, determining a target event triggered by the family portrait change;
[0059] Step S104: Based on the target event, control the operation of the home appliances associated with the target event.
[0060] The methods of the embodiments of this specification can be applied to device terminals, such as household appliances and central control devices, and can also be applied to servers, or to systems composed of device terminals and servers, without limitation here.
[0061] It should be noted that the family portrait can be a portrait built based on the knowledge graph, and the family portrait can include but is not limited to the family ontology, room ontology, home appliance ontology, home ontology, air ontology, etc. Each ontology can correspond to one or more entities, and the entity is an instance of the ontology. Each entity can correspond to its own attributes, and the entities can be associated based on relationships.
[0062] In order to better understand the family portrait, the attributes of several entities in the family portrait (family entity, room entity, home appliance entity, home entity, air entity, and user entity) are explained below.
[0063] The family entity corresponds to the family of the user. The attributes of the family entity may include, but are not limited to, family ID, the city, district, community address, community name, house number, etc. where the family is located. The family ID may be manually set by the user or automatically generated. In some embodiments, the family ID is a required attribute of the family entity.
[0064] Room entity, corresponding to the room contained in the home, the attributes of the room entity may include but are not limited to: room ID, room type, room area, room location, etc. The room ID may be manually set by the user or automatically generated. Room types may include master bedroom, second bedroom, living room, bathroom, dining room, kitchen, balcony, etc.
[0065] In some embodiments, the room area can be obtained from a floor plan or a whole-house semantic map generated by scanning the house based on a smart device. For example, by loading the floor plan, the size information of each room in the floor plan is determined, and the house area is calculated based on the size information. For another example, taking the whole-house semantic map as an example, the room outline is determined from the whole-house semantic map, and then the room outline is fitted into a rectangular outline, and the house area is calculated by obtaining the size information of the rectangular outline.
[0066] In some embodiments, when determining the room position, a home coordinate system may be constructed based on the floor plan or the whole house semantic map, and the position of the room vertex in the home coordinate system may be used as the room position. For example, the coordinates of the four vertices of the room may be used as the room position.
[0067] In some embodiments, in order to facilitate subsequent accurate intelligent services for users, the room ID and room type may be mandatory attributes of the room entity.
[0068] The home appliance entity corresponds to the home appliances included in the home. The attributes of the home appliance entity include the home appliance ID, home appliance brand, home appliance model, home appliance location, etc. The home appliance ID can be manually set by the user or automatically generated. In some embodiments, the home appliance ID can be a unique device identifier generated by the home appliance manufacturer. Home appliance types can include air conditioners, refrigerators, washing machines, televisions, smart speakers, etc.
[0069] In some embodiments, the location of the home appliance can be the location of the home appliance in the room where it is located, or it can be the location of the home appliance in the home coordinate system, which is not limited here.
[0070] In some embodiments, the attributes of the home appliance entity may also include home appliance functions. Taking the home appliance entity as an air conditioner as an example, the home appliance functions in the entity attributes may include cooling function, heating function, energy saving function, comfort function, etc.
[0071] In some embodiments, the appliance ID and the appliance type may be mandatory attributes of the appliance entity.
[0072] The home entity corresponds to the home contained in the family. The attributes of the home entity include home ID, home brand, home model, home location, purchase time, etc. The home ID can be set manually by the user or automatically generated. The home types can include sofas, dining tables, chairs, coffee tables, cabinets, etc.
[0073] In some embodiments, the home location may be the location of the home in the room where the home is located, or the location of the home in the family coordinate system, which is not limited here.
[0074] In some embodiments, the attributes of the home entity may also include home functions, such as sleeping, resting, storage, dining, etc.
[0075] In some embodiments, home ID and home type may be mandatory attributes of the home entity.
[0076] The air entity corresponds to the air in the home area. The attributes of the air entity include air ID, temperature, humidity, TVOC (Total Volatile Organic Compounds) concentration, CO2 concentration, formaldehyde concentration, etc.
[0077] In some embodiments, the air entity may correspond to the air in a room. In other embodiments, the whole house or room may be divided into multiple spatial regions, and the air entity may correspond to the air in a certain spatial region. The air ID may be an identifier used to distinguish different rooms or spatial regions. The air ID may be manually set by the user or automatically generated.
[0078] In some embodiments, air ID and temperature may be mandatory attributes of the air entity.
[0079] It should be noted that the properties of the air entity can be obtained through an air sensor set on the home appliance or a separately set air sensor. When there are multiple air sensors in a certain spatial area that can collect air information, the priority of the air sensor can be set, and the air information collected by the air sensor with the highest priority can be used to extract the properties of the air entity. Alternatively, the air information collected by multiple air sensors can be fused, and the properties of the air entity can be extracted based on the fused air information.
[0080] The user entity corresponds to the user in the family. The attributes of the user entity include basic attributes such as user ID, name, gender, age group, height, location, posture, etc. It can also include physiological attributes such as breathing, heartbeat, body temperature, etc. It can also include user preference attributes such as hot and cold preference, exercise preference, etc.
[0081] In some embodiments, in order to facilitate the determination of the user's identity, the user ID may be a fused voiceprint feature code generated by voiceprint fusion. Specifically, a family may include multiple devices that support voice services, each of which may generate a corresponding voiceprint feature code for each user. The different voiceprint feature codes generated by multiple devices for the same user are fused to obtain a fused voiceprint feature code. In the embodiments of this specification, the family portrait may also be associated with the user portrait through the user ID to obtain more preferred attributes of the user.
[0082] In some embodiments, the user location may be the location of the user in the room where the user is located, or the location of the user in the home coordinate system, which is not limited here.
[0083] The following is an example of the relationship between family portrait entities:
[0084] The relationship between the family ontology and the user ontology includes but is not limited to members, administrators, etc.;
[0085] The relationship between the home ontology and the room ontology includes, but is not limited to, subordination;
[0086] The relationship between the user ontology and the room ontology includes but is not limited to living, living, dining, resting, being located, etc.;
[0087] The relationship between the user ontology and the home ontology includes but is not limited to being located at;
[0088] The relationship between the user ontology and the appliance ontology includes, but is not limited to, usage;
[0089] The relationship between user ontologies and user ontologies includes but is not limited to father, mother, son, daughter, elder brother, elder sister, younger brother, younger sister, etc.;
[0090] The relationship between room entities includes, but is not limited to, being adjacent;
[0091] The relationship between the home ontology and the room ontology includes, but is not limited to, subordination;
[0092] The relationship between the appliance ontology and the room ontology includes, but is not limited to, subordination;
[0093] The relationship between the air ontology and the room ontology includes, but is not limited to, belongs to.
[0094] like Figure 2As shown, it is a schematic diagram of a family portrait provided by an embodiment of this specification, wherein: Figure 2 The home node, user node, home appliance node, room node, air node, and home node contained in correspond to the main body node, and the washing machine node, refrigerator node, air conditioner node, sofa node, and bed node correspond to the entity node. The relationship between nodes can be represented by the direction of the arrow.
[0095] In step S101, the target family may be the family of the user, and the initial family portrait may be the latest family portrait of the target family obtained at the current moment, that is, the family portrait whose update time is closest to the current moment. It should be understood that, as described above, the attributes of each entity in the family portrait may change in real time, such as temperature, user location, user posture, etc., so the family portrait may also be updated in real time. Of course, the family portrait may also be updated according to a preset time interval, which is not limited here.
[0096] In order to better understand the initial family portrait in the embodiments of this specification, the construction process of the initial family portrait is described below. The construction of the initial family portrait can be achieved through the following steps: in the process of configuring the target home appliances in the target home, create a home entity of the target home, room entities of the N rooms contained in the target home, user entities of users in each room, and appliance entities of the target home appliances; during the operation of the target home appliances, obtain the home appliance information, home information, user information and / or air information of the target room through the target home appliances, and update the corresponding home appliance entity, home entity, user entity and / or air entity based on the home appliance information, home information, the user information and / or the air information, wherein the target room is the room where the target home appliance is located.
[0097] In order to facilitate understanding of the entire construction and update process of the family portrait, here we take the target device as the first home appliance installed in the target family as an example to illustrate the process of forming the initial family portrait from scratch.
[0098] Before the target home appliance is put into use, the target home appliance needs to enter the configuration process, for example, first register the target home appliance, and then configure the network for the target home appliance. During the registration process, you can create a home entity, a room entity, a user entity, and an appliance entity of the target home appliance. During the configuration process, you can create and update a home entity, a home appliance entity, a user entity, and an air entity.
[0099] In some embodiments, during the home appliance registration process, the following steps can be performed to achieve the creation of a home entity, a room entity, a user entity, and an appliance entity of a target appliance: in the process of configuring the target appliance in the target home, a home entity of the target home is created under the home entity; based on the room information of the N rooms contained in the target home, a room entity of each room is created under the room entity, and a relationship between the room entity of each room and the home entity of the target home, as well as a relationship between different room entities are established, where N is a positive integer; for each room, based on the user of the room, a user entity of the user of the room is created under the user entity, and a relationship between the room entity of the room and the corresponding user entity is established; an appliance entity of the target appliance is created under the appliance entity, and a relationship between the appliance entity of the target appliance and the room entity of the target room is established.
[0100] Specifically, during the registration process, you can create a new family entity of the target family under the family entity according to the guidance of the APP or mini program. After creating the family entity, you can add room entities based on the user's manual input or importing the target family's floor plan, whole-house semantic map, etc. If the target family includes N rooms, create N room entities corresponding to the N rooms one by one. In the process of creating N room entities, the relationship between each room entity and the family entity can be established, such as the room entity is subordinate to the family entity, and the relationship between room entities can also be established, such as adjacent, non-adjacent, etc.
[0101] It should be noted that since the users of each room may be different, such as the children's room is often used by the daughter, and the elders' room is often used by the grandfather and grandmother, therefore, user entities can be added according to the users of each room, and the relationship between the user entity and the room entity, as well as the relationship between the user entity and the family entity can be established.
[0102] In addition, a corresponding home appliance entity is created for the target home appliance under the home appliance entity. Furthermore, when the target home appliance is networked through an APP or mini program, a relationship between the home appliance entity of the target home appliance and the room entity of the target room can be established.
[0103] In the embodiments of this specification, during the process of creating each entity, the entity attributes may be automatically extracted from the acquired environment information, or may be manually input by the user, which is not limited here.
[0104] It should be noted that if the target home appliance is equipped with a sensor capable of collecting environmental information, the environmental information of the target room where the target home appliance is located can be collected during the operation of the target home appliance, including but not limited to home appliance information, home furnishing information, user information and air information. The corresponding data is extracted from the environmental information collected by the target home appliance to construct or update each entity.
[0105] The construction or update of the home entity, the home appliance entity, the user entity and the air entity are described below respectively.
[0106] In some embodiments, the target home appliance is provided with a first sensor for spatial scanning, and the first sensor may be an image acquisition device, a millimeter wave radar, an infrared sensor, etc., which is not limited here. For the target room where the target home appliance is located, the home appliance entity and / or home furnishing entity included in the target room may be created in the following manner: perform spatial scanning of the target room by the first sensor to obtain target environment information; perform target recognition based on the target environment information to obtain M home appliances and / or K home furnishings contained in the target room, where M and K are both positive integers; create home appliance entities of the M home appliances under the home appliance entity, and / or create home furnishing entities of the K home furnishings under the home furnishing entity.
[0107] For ease of explanation, taking the first sensor as an image acquisition device as an example, an image of the target room is acquired through the image acquisition device as target environment information, and target recognition is performed on the image acquired by the first sensor. For example, the acquired image is processed by a preset target recognition model, or by a preset target recognition algorithm, such as the YOLO (You Only Look Once) algorithm, the acquired image is processed to identify M home appliances and / or K furniture contained in the target room from the image, and the types of home appliances and furniture can be output through the target recognition algorithm.
[0108] After identifying the M home appliances and / or K furniture, it can be determined whether the M home appliances and / or K furniture already exist in the family portrait, for example, by comparing the names or IDs of the M home appliances and / or K furniture with the attributes of the home appliances and / or furniture entities already existing in the family portrait. If the family portrait does not contain the identified M home appliances and / or K furniture, corresponding entities are created for the M home appliances and / or K furniture.
[0109] When creating home appliance and / or home entity, it is necessary to obtain the entity attributes of each home appliance and / or each home entity, and build nodes corresponding to each home appliance entity and / or each home entity in the family portrait, and associate each node with the corresponding attributes.
[0110] If there are already identified home appliances and / or home entities in the family portrait, the current attributes of these home appliances and / or home entities can be compared with the attributes of the corresponding entities in the family portrait. If the attributes have changed, the current attributes are used as the latest attributes to update the attributes of these entities in the family portrait.
[0111] In some embodiments, the target home appliance is provided with a second sensor for detecting air quality, such as a CO2 sensor, a PM2.5 sensor, a TVOC sensor, a formaldehyde sensor, etc., which are not limited here. For the target room where the target home appliance is located, the air entity corresponding to the target room can be created in the following manner: the air quality of P areas in the target room is detected by the second sensor to obtain air information of each area, where P is a positive integer; based on the air information of each area, an air entity of the corresponding area is created under the air body.
[0112] It should be understood that the value of P can be set according to actual needs. For example, if each room corresponds to an air entity, the value of P is 1. If each room is divided into regions according to a preset division method, the value of P can be determined according to the actual divided regions. For each region, each region is assigned its own ID. The ID of the region can be used to first determine whether there are air entities corresponding to P regions in the family portrait. If the family portrait does not contain air entities for P regions, an air entity is created for each region, that is, a node corresponding to each air entity is constructed in the family portrait, and the temperature, humidity, TVOC concentration, CO2 concentration, and formaldehyde concentration detected in each region are used as attributes of the air entity in the region.
[0113] If there are already air entities corresponding to all or part of the P areas in the family portrait, the attributes of the existing air entities can be compared with the attributes of the air entities in the current environmental information obtained. If the attributes change, the current attributes are used as the latest attributes of the corresponding air entities, and the attributes of these air entities in the family portrait are updated.
[0114] In some embodiments, the target home appliance is provided with a third sensor for detecting user characteristics, such as an image acquisition device, an infrared sensing sensor, a millimeter wave radar, etc., which is not limited here. The target home appliance may also be provided with a sensor for detecting user physiological characteristics, or a transceiver capable of communicating with the user's wearable device. The wearable device can send the detected user's physiological characteristics, such as heartbeat, body temperature, etc. to the transceiver.
[0115] For users in the target room, the user entity can be updated in the following manner: the features of Q users in the target room are detected by the third sensor to obtain user information of each user, where Q is a positive integer; for each of the Q users, if the user is a user of the target room, the user information of the user is used as the entity attribute of the user entity of the user.
[0116] For example, if the target home appliance is equipped with an image acquisition device, the image of the target room is acquired through the image acquisition device, and the Q users contained in the image and the user information of each user are determined by identifying the acquired image. The user information includes but is not limited to features such as posture, behavior, breathing, heartbeat, and body temperature. Based on the user information, the current entity attributes corresponding to each user entity are determined, and the current entity attributes of each user entity are compared with the corresponding user entity in the family portrait. If the attributes change, the current attributes are used as the latest attributes, and the user entity attributes of the Q users in the family portrait are updated.
[0117] In the embodiments of this specification, when the target home appliance has a voice interaction function, the target home appliance can also detect the user's voiceprint. Since different home appliances have different voice services, the voiceprints generated by different home appliances for the same user will also be different. Therefore, a voiceprint library can be constructed and the voiceprints of different voice service providers can be fused to generate a fused voiceprint feature code for representing the same user. During the voice interaction process, big data analysis can also be performed on the generated semantic information, and the user preference attributes obtained from the analysis can be updated to the family portrait.
[0118] It should be understood that for each home appliance in the target home, the family portrait can be updated during the configuration process. If during the configuration process of the home appliance, if the home appliance is not the first home appliance to be configured in the target home, then there is no need to build the home portrait again. The existing family portrait can be directly loaded and updated according to the environmental information collected during the operation of the home appliance.
[0119] Since the entity attributes of each entity in the family portrait may change, such as the user entity and the air entity, the user's activities or movement in the target family will cause the user entity attributes to change, and the air quality of the target family will also change in real time. Therefore, the environmental information of the target family can be collected in real time, and the family portrait of the target family can be updated in real time based on the collected environmental information. Therefore, the family portrait in the embodiment of this specification is not fixed, but will change in real time. In step S101, the initial family portrait can be the most recently updated family portrait before the current moment.
[0120] In step S102, the current environmental information of the target home is obtained, which may be environmental information collected based on sensors installed on various home appliances in the target home at the current moment. The environmental information may include home appliance information, home furnishing information, user information, and air information in the target home.
[0121] Determining whether the initial family portrait has changed based on the current environmental information can be achieved in a variety of ways. In some embodiments, step S102 can be achieved through the following steps: determining the home appliance entity, home entity, air entity and user entity included in the initial family portrait; if the home appliance entity does not include a target home appliance entity that matches the current home appliance information, the home entity does not include a target home entity that matches the current home information, the air entity does not include a target air entity that matches the current air information, and / or the user entity does not include a target user entity that matches the current user information, it indicates that the initial family portrait has changed.
[0122] Specifically, based on the current environmental information, the target home appliance entity, target home entity, target air entity, and target user entity under the target family can be determined. In order to determine whether there are new entities in the target family, the home appliance entity, home entity, air entity, and user entity in the initial family portrait can be compared with the target home appliance entity, target home entity, target air entity, and target user entity determined in the current environment. If the comparison result shows that there are new entities in the current environment, it means that the family portrait has changed and the initial family portrait needs to be updated.
[0123] It should be noted that for newly added entities, for example, if a new home appliance is installed, a new home appliance entity will be added; if new furniture is placed, a new home furniture entity will be added; if a room did not have any sensor that could collect air information before, and now a new device that can collect air information is added, a new air entity will be added; if a new family member appears, a new user entity will be added.
[0124] In some embodiments, step S102 can also be implemented by the following steps: if the initial family portrait includes the target home appliance entity, the target home entity, the target air entity, and the target user entity, and the entity attributes of the target home appliance entity are different from the current home appliance information, the entity attributes of the target home entity are different from the current home information, the entity attributes of the target air entity are different from the current air information, and / or the entity attributes of the target user entity are different from the current home information, it is determined that the initial family portrait has changed.
[0125] Specifically, if there is no newly added entity in the current environment information, it is possible to further determine whether the attributes of each entity in the initial family portrait match the current environment information. For example, taking the home appliance entity as an example, the location of each home appliance, the currently executed function and other attributes can be extracted from the current environment information. For each home appliance entity, if the attributes of the home appliance entity are different from the attributes of the home appliance extracted from the current environment, it indicates that the attributes of the home appliance entity have changed, that is, the initial family portrait has changed.
[0126] In some embodiments, step S102 can also be implemented by the following steps: if the initial family portrait includes the target home appliance entity, the target home entity, the target air entity, and the target user entity, and the entity relationship of the target home appliance entity changes, the entity relationship of the target home entity changes, the entity relationship of the target air entity changes, and / or the entity relationship of the target user entity changes, it is determined that the initial family portrait has changed.
[0127] Specifically, if there is no new entity in the current environmental information, it is also possible to determine whether the relationship between the entities has changed. For example, if the target family includes a movable air purifier, if the air purifier is located in the living room in the initial family portrait, that is, the home appliance entity corresponding to the air purifier and the room entity corresponding to the living room are in a subordinate relationship, and the air purifier is moved to the bedroom in the current environmental information, that is, the home appliance entity corresponding to the air purifier and the room entity corresponding to the living room are released from the subordinate relationship, and a subordinate relationship is established between the home appliance entity corresponding to the air purifier and the room entity corresponding to the bedroom, which also indicates that the family portrait has changed.
[0128] As can be seen from the above, in the embodiments of this specification, changes in entities in the family portrait, changes in entity attributes, and changes in the relationship between entities will all result in changes in the family portrait.
[0129] In the embodiment of the present specification, if the initial family portrait changes, the initial family portrait can be updated based on the current environment information.
[0130] In step S103, if the initial family portrait changes, the target event triggered by the family portrait change can be determined. Specifically, the target event can be determined in a variety of ways. In some embodiments, an event library of the target family can be pre-set, and the event library can include multiple events, each of which corresponds to its own entity and entity attribute. For example, the sleep event corresponds to the user lying on the bed in the bedroom. If the relationship between the entities and the entity attributes in the changed family portrait represent that the user is lying on the bed in the bedroom, then the sleep event is hit.
[0131] In some embodiments, step S103 can be implemented by the following steps: if the initial family portrait changes, generating a target change message for the family portrait based on a preset topic message type; and determining the target event with the target change message.
[0132] Specifically, when the initial family portrait changes, a target change message can be generated in the form of a topic according to a preset topic message type, wherein the preset topic message type can be set according to actual needs. Further, the target change message can be processed by calling an active service, for example, the target change message is analyzed and processed according to a preset algorithm to obtain a target event.
[0133] In step S104, after the target event is determined, the associated home appliances of the target event can be further determined, and the operation of the associated home appliances can be controlled. It should be noted that the correspondence between the target event and the associated home appliances can be preset. Taking the above-mentioned sleep event as an example, the associated home appliances corresponding to the sleep event can be the air conditioner and air purifier in the bedroom. After the associated home appliances are determined, the associated home appliances can be operated based on the target event. For example, when the target event is a sleep event, the air conditioner can turn on the sleep mode and start the air purifier.
[0134] In the embodiments of this specification, the operating parameters of the associated home appliances can be determined by finding the correspondence between the pre-set target event and the operating parameters of the associated home appliances, or the operating parameters of the associated home appliances can be adjusted based on the various entity attributes corresponding to the target event, as well as the user's usage habits and user portraits. Using the above example where the target event is a sleep event, in the target event, the air entity attributes corresponding to the bedroom include temperature. Then, when the sleep mode of the air conditioner is turned on, the set temperature of the air conditioner can be adjusted based on the temperature.
[0135] In summary, through the family portrait based on the knowledge graph, the information of the family, home appliances, home furnishings, air and users and the relationship between them are represented, so that the family portrait is structured, flexible and extensible. If any of the entities, entity attributes, and relationships in the family portrait changes, the target event can be triggered by sensing the change in the family portrait. The event triggering mechanism is simple and has low coupling. In addition, after the target event is triggered, the associated devices of the target event are controlled to actively provide services. Without the user's own operation, active provision of services to users can be achieved, which realizes the precise control of the whole house equipment and the linkage between the devices, and improves the intelligence of autonomous service to users, thereby effectively improving the user experience.
[0136] Based on the same inventive concept, an embodiment of the present invention provides a home appliance control device, such as Figure 3 As shown, the home appliance control device includes:
[0137] A first acquisition module 301 is used to acquire an initial family portrait of a target family, wherein the initial family portrait includes multiple entities under a preset knowledge graph ontology, wherein the preset knowledge graph ontology includes a family ontology, a room ontology, a home appliance ontology, a home ontology, an air ontology, and a user ontology;
[0138] The second acquisition module 302 is used to acquire the current environment information of the target family, and determine whether the initial family portrait has changed based on the current environment information, wherein the current environment information includes current home appliance information, current home information, current air information and current user information;
[0139] A target event determination module 303 is used to determine a target event triggered by a change in the family portrait if the initial family portrait changes;
[0140] The control module 304 is used to control the operation of the home appliances associated with the target event based on the target event.
[0141] In some embodiments, the device also includes a portrait construction module, which is used to create a home entity of the target home, room entities of N rooms contained in the target home, user entities of users of each room, and an appliance entity of the target appliance in the process of configuring the target home appliance in the target home, where N is a positive integer; during the operation of the target home appliance, the home appliance information, home information, user information and / or air information of the target room is obtained through the target home appliance, and the corresponding home appliance entity, home entity, user entity and / or air entity are updated based on the home appliance information, home information, the user information and / or the air information, wherein the target room is the room where the target home appliance is located.
[0142] In some implementations, the portrait building module is used to:
[0143] In the process of configuring the target home appliance in the target home, creating a home entity of the target home under the home ontology;
[0144] Based on the room information of the N rooms included in the target family, a room entity of each room is created under the room entity, and a relationship between the room entity of each room and the family entity of the target family, as well as a relationship between different room entities, is established;
[0145] For each room, based on the user of the room, a user entity of the user of the room is created under the user ontology, and a relationship between the room entity of the room and the corresponding user entity is established;
[0146] An appliance entity of the target appliance is created under the appliance entity, and a relationship between the appliance entity of the target appliance and the room entity of the target room is established.
[0147] In some implementations, if the target home appliance is provided with a first sensor for performing space scanning, the portrait building module is used to:
[0148] Performing a spatial scan of the target room by using the first sensor to obtain target environment information;
[0149] Performing target recognition based on the target environment information to obtain M home appliances and / or K furniture items contained in the target room, where M and K are both positive integers;
[0150] Create home appliance entities of the M home appliances under the home appliance entity, and / or create home entities of the K homes under the home entity.
[0151] In some implementations, if the target home appliance is provided with a second sensor for detecting air quality, the portrait building module is used to:
[0152] The air quality of P areas in the target room is detected by the second sensor to obtain air information of each area, where P is a positive integer;
[0153] Based on the air information of each area, an air entity of the corresponding area is created under the air body.
[0154] In some implementations, if the target home appliance is provided with a third sensor for detecting user characteristics, the portrait building module is used to:
[0155] Detecting the features of Q users in the target room by the third sensor to obtain user information of each user, where Q is a positive integer;
[0156] For each user among the Q users, if the user is a user of the target room, the user information of the user is used as the entity attribute of the user entity of the user.
[0157] In some implementations, the second acquisition module 302 is configured to:
[0158] Determine the home appliance entity, home entity, air entity and user entity included in the initial family portrait;
[0159] If the home appliance entity does not include a target home appliance entity that matches the current home appliance information, the home entity does not include a target home entity that matches the current home information, the air entity does not include a target air entity that matches the current air information, and / or the user entity does not include a target user entity that matches the current user information, it indicates that the initial family portrait has changed.
[0160] In some implementations, each entity in the initial family portrait corresponds to an entity attribute, and the apparatus further includes:
[0161] A first processing module is used to determine that the initial family portrait has changed if the initial family portrait includes the target home appliance entity, the target home entity, the target air entity, and the target user entity, and the entity attributes of the target home appliance entity are different from the current home appliance information, the entity attributes of the target home entity are different from the current home information, the entity attributes of the target air entity are different from the current air information, and / or the entity attributes of the target user entity are different from the current home information.
[0162] In some implementations, each entity in the initial family portrait corresponds to an entity relationship with other entities, and the apparatus further includes:
[0163] A second processing module is used to determine that the initial family portrait has changed if the initial family portrait includes the target home appliance entity, the target home entity, the target air entity, and the target user entity, and the entity relationship of the target home appliance entity has changed, the entity relationship of the target home entity has changed, the entity relationship of the target air entity has changed, and / or the entity relationship of the target user entity has changed.
[0164] In some implementations, the target event determination module 303 is configured to:
[0165] If the initial family portrait is changed, a target change message of the family portrait is generated based on a preset topic message type;
[0166] Based on the target change message, the target event is determined.
[0167] Regarding the above-mentioned device, the specific functions of each module therein have been described in detail in the embodiment of the home appliance control method provided in the embodiment of this specification, and will not be elaborated here.
[0168] Based on the same inventive concept, the embodiment of the present invention provides a home appliance control system, referring to Figure 4As shown, it includes a memory 404, a processor 402, and a computer program stored in the memory 404 and executable on the processor 402. When the processor 402 executes the program, any implementation of the home appliance control method embodiment is implemented.
[0169] Among them, Figure 4 In the embodiment of the present invention, a bus architecture (represented by bus 400) is shown, which may include any number of interconnected buses and bridges, and bus 400 links various circuits including one or more processors represented by processor 402 and memory represented by memory 404. Bus 400 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 405 provides an interface between bus 400 and receiver 401 and transmitter 403. Receiver 401 and transmitter 403 may be the same element, namely a transceiver, providing a unit for communicating with various other devices over a transmission medium. Processor 402 is responsible for managing bus 400 and general processing, while memory 404 may be used to store data used by processor 402 when performing operations.
[0170] The functions described herein may be implemented in hardware, software executed by a processor, firmware, or any combination thereof. If implemented in software executed by a processor, the functions may be stored as one or more instructions or codes on a computer-readable medium or transmitted via a computer-readable medium. Other examples and implementations are within the scope and spirit of the present invention and the appended claims. For example, due to the nature of software, the functions described above may be implemented using software executed by a processor, hardware, firmware, hard wiring, or a combination of any of these. In addition, each functional unit may be integrated into a processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit.
[0171] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0172] The units described as separate components may or may not be physically separated, and the components of the control device may or may not be physical units, that is, they may be located in one place or distributed in multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0173] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0174] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention shall be included in the scope of the claims of the present invention.
Claims
1. A household appliance control method, characterized in that: include: Obtaining an initial family portrait of the target family, wherein the initial family portrait includes multiple entities under a preset knowledge graph ontology, wherein the preset knowledge graph ontology includes a family ontology, a room ontology, a home appliance ontology, a home ontology, an air ontology, and a user ontology; Acquire current environmental information of the target family, and determine whether the initial family portrait has changed based on the current environmental information, wherein the current environmental information includes current home appliance information, current home information, current air information, and current user information; If the initial family portrait changes, determine the target event triggered by the family portrait change; Based on the target event, the operation of the home appliances associated with the target event is controlled.
2. The method according to claim 1, characterized in that The initial family portrait is constructed by the following steps: In the process of configuring the target home appliance in the target home, a home entity of the target home, room entities of N rooms contained in the target home, a user entity of a user in each room, and an appliance entity of the target home appliance are created, where N is a positive integer; During the operation of the target home appliance, the home appliance information, home information, user information and / or air information of the target room are obtained through the target home appliance, and the corresponding home appliance entity, home entity, user entity and / or air entity are updated based on the home appliance information, home information, the user information and / or the air information, wherein the target room is the room where the target home appliance is located.
3. The method according to claim 2, characterized in that In the process of configuring the target home appliance in the target home, creating a home entity of the target home, room entities of N rooms included in the target home, a user entity of a user in each room, and a home appliance entity of the target home appliance, including: In the process of configuring the target home appliance in the target home, creating a home entity of the target home under the home ontology; Based on the room information of the N rooms included in the target family, a room entity of each room is created under the room entity, and a relationship between the room entity of each room and the family entity of the target family, as well as a relationship between different room entities, is established; For each room, based on the user of the room, a user entity of the user of the room is created under the user ontology, and a relationship between the room entity of the room and the corresponding user entity is established; An appliance entity of the target appliance is created under the appliance entity, and a relationship between the appliance entity of the target appliance and the room entity of the target room is established.
4. The method according to claim 2, characterized in that If the target home appliance is provided with a first sensor for performing space scanning, acquiring home information, user information and / or air information of the target room through the target home appliance, and updating corresponding home entities, user entities and / or air entities based on the home information, the user information and / or the air information, includes: Performing a spatial scan of the target room by using the first sensor to obtain target environment information; Performing target recognition based on the target environment information to obtain M home appliances and / or K furniture items contained in the target room, where M and K are both positive integers; Create home appliance entities of the M home appliances under the home appliance entity, and / or create home entities of the K homes under the home entity.
5. The method according to claim 2, characterized in that If the target home appliance is provided with a second sensor for detecting air quality, obtaining home information, user information and / or air information of the target room through the target home appliance, and updating corresponding home entities, user entities and / or air entities based on the home information, the user information and / or the air information, includes: The air quality of P areas in the target room is detected by the second sensor to obtain air information of each area, where P is a positive integer; Based on the air information of each area, an air entity of the corresponding area is created under the air body.
6. The method according to claim 2, characterized in that If the target home appliance is provided with a third sensor for detecting user characteristics, the acquiring of home information, user information and / or air information of the target room through the target home appliance, and updating of corresponding home entities, user entities and / or air entities based on the home information, the user information and / or the air information includes: Detecting the features of Q users in the target room by the third sensor to obtain user information of each user, where Q is a positive integer; For each user among the Q users, if the user is a user of the target room, the user information of the user is used as the entity attribute of the user entity of the user.
7. The method according to claim 1, characterized in that The obtaining of current environment information of the target family and determining whether the initial family portrait has changed based on the current environment information includes: Determine the home appliance entity, home entity, air entity and user entity included in the initial family portrait; If the home appliance entity does not include a target home appliance entity that matches the current home appliance information, the home entity does not include a target home entity that matches the current home information, the air entity does not include a target air entity that matches the current air information, and / or the user entity does not include a target user entity that matches the current user information, it indicates that the initial family portrait has changed.
8. The method according to claim 7, characterized in that Each entity in the initial family portrait corresponds to an entity attribute, and the method further includes: If the initial family portrait includes the target home appliance entity, the target home entity, the target air entity, and the target user entity, and the entity attributes of the target home appliance entity are different from the current home appliance information, the entity attributes of the target home entity are different from the current home information, the entity attributes of the target air entity are different from the current air information, and / or the entity attributes of the target user entity are different from the current home information, it is determined that the initial family portrait has changed.
9. The method according to claim 7, characterized in that Each entity in the initial family portrait corresponds to an entity relationship with other entities, and the method further includes: If the initial family portrait includes the target home appliance entity, the target home entity, the target air entity, and the target user entity, and the entity relationship of the target home appliance entity changes, the entity relationship of the target home entity changes, the entity relationship of the target air entity changes, and / or the entity relationship of the target user entity changes, it is determined that the initial family portrait has changed.
10. The method according to claim 1, characterized in that If the initial family portrait changes, determining a target event triggered by the family portrait change includes: If the initial family portrait is changed, a target change message of the family portrait is generated based on a preset topic message type; Based on the target change message, the target event is determined.
11. A home appliance control device, characterized in that: include: A first acquisition module is used to acquire an initial family portrait of a target family, wherein the initial family portrait includes multiple entities under a preset knowledge graph ontology, wherein the preset knowledge graph ontology includes a family ontology, a room ontology, a home appliance ontology, a home ontology, an air ontology, and a user ontology; A second acquisition module is used to acquire current environmental information of the target family, and determine whether the initial family portrait has changed based on the current environmental information, wherein the current environmental information includes current home appliance information, current home information, current air information and current user information; A target event determination module, used to determine a target event triggered by a change in the family portrait if the initial family portrait changes; A control module is used to control the operation of the home appliances associated with the target event based on the target event.
12. A household appliance control system, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 10 when executing the program.
13. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
