Device control method, apparatus and system

By analyzing format and natural language text information, and utilizing large language models and text similarity algorithms, we have achieved automatic and flexible control of smart home devices, solving the problems of insufficient intelligence and flexibility in existing technologies and improving the user experience.

CN116700032BActive Publication Date: 2026-11-24联想诺谛(北京)智能科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310805329.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-30
Publication Date
2026-11-24
Estimated Expiration
2043-06-30

AI Technical Summary

Technical Problem

Existing smart home control methods lack sufficient intelligence through human intervention and flexibility in automatic control based on user habits.

Method used

By acquiring and analyzing textual information from formatted text and natural language descriptions, contextual information is determined to control home appliances. Large language models and text similarity algorithms are used to achieve automatic and flexible control of home appliances.

Benefits of technology

It enables automatic and flexible control of smart homes, avoiding the problem of inflexible control when user habits change, and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116700032B_ABST
    Figure CN116700032B_ABST
Patent Text Reader

Abstract

This application discloses a device control method, apparatus, and device control system. The method includes: obtaining at least one first text information, wherein the at least one first text information is used to describe, in formatted text, at least one behavior generated by a target object within a target time period and the state of at least one first home appliance corresponding to the at least one behavior; obtaining second text information based on the at least one first text information, wherein the second text information is used to describe, in natural language, the association between at least one behavior of the target object and the state of at least one first home appliance within the target time period; analyzing and processing the second text information to determine control commands for at least one second home appliance corresponding to matching scenario information, so as to control the state of at least one second home appliance within the target time period; the first home appliance and the second home appliance have a scenario association relationship.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of control, and more particularly to a device control method, apparatus and device control system. Background Technology

[0002] In related technologies, there are generally two methods for controlling smart homes: The first is to achieve automatic control of the smart home through fixed trigger conditions, such as manually pressing buttons or issuing voice control commands. The second is to summarize the user's behavioral habits over a period of time and then automatically control the smart home based on these summarized habits. The first method requires human intervention and lacks intelligence. The second method lacks flexibility. Summary of the Invention

[0003] This application provides a device control method, apparatus, and device control system to at least solve the above-mentioned technical problems existing in the prior art.

[0004] According to a first aspect of this application, a device control method is provided, comprising:

[0005] Obtain at least one first text information, wherein the at least one first text information is used to describe, in the form of formatted text, at least one behavior generated by the target object during the target time period and the state of at least one first home appliance corresponding to the at least one behavior;

[0006] Based on at least one first text information, second text information is obtained, which is used to describe the association between at least one behavior of the target object and the state of at least one first home appliance during the target time period using natural language description.

[0007] The second text information is analyzed and processed to determine the control command of at least one second home device corresponding to the matching scenario information, so as to control the status of the at least one second home device within the target time period;

[0008] The first home appliance and the second home appliance have a contextual relationship.

[0009] According to a second aspect of this application, a device control apparatus is provided, comprising:

[0010] The first obtaining unit is configured to obtain at least one first text information, wherein the at least one first text information is used to describe, in the form of formatted text, at least one behavior generated by the target object within the target time period and the state of at least one first home appliance corresponding to the at least one behavior;

[0011] The second obtaining unit is configured to obtain second text information based on at least one first text information, wherein the second text information is used to describe, in a natural language manner, the association between at least one behavior of the target object and the state of at least one first home appliance during the target time period;

[0012] The third obtaining unit is used to analyze and process the second text information to determine the control command of at least one second home device corresponding to the matching scenario information, so as to control the status of the at least one second home device within the target time period.

[0013] The first home appliance and the second home appliance have a contextual relationship.

[0014] According to a third aspect of this application, a device control system is provided, comprising:

[0015] A processor is configured to obtain at least one first text information, the at least one first text information being configured to describe, in formatted text form, at least one behavior generated by a target object within a target time period and the state of at least one first home appliance corresponding to the at least one behavior;

[0016] The processor is further configured to obtain second text information based on at least one first text information, wherein the second text information is used to describe, in a natural language manner, the association between at least one behavior of the target object and the state of the at least one first home appliance during the target time period;

[0017] The processor is further configured to analyze and process the second text information to determine the control command of at least one second home device corresponding to the matching scenario information, so as to control the state of the at least one second home device within a target time period; wherein the first home device and the second home device have a scenario association relationship.

[0018] According to a fourth aspect of this application, an electronic device is provided, comprising:

[0019] At least one processor; and

[0020] A memory communicatively connected to the at least one processor; wherein,

[0021] The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method described in this application.

[0022] According to a fifth aspect of this application, a non-transitory computer-readable storage medium is provided storing computer instructions for causing the computer to perform the methods described in this application.

[0023] This application's technical solution records user behavior and the status of corresponding first home appliances using two text messages (first text message and second text message) in different ways, and analyzes and processes the second text message to determine matching scenario information, thereby obtaining automatic control commands for the second home appliance corresponding to the matching scenario information. Controlling the home appliance based on scenario information enables automatic and flexible home control.

[0024] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this application, nor is it intended to limit the scope of this application. Other features of this application will become readily apparent from the following description. Attached Figure Description

[0025] The above and other objects, features, and advantages of exemplary embodiments of this application will become readily apparent from the following detailed description taken in conjunction with the accompanying drawings. Several embodiments of this application are illustrated in the drawings by way of example and not limitation, in which:

[0026] In the accompanying drawings, the same or corresponding reference numerals indicate the same or corresponding parts.

[0027] Figure 1 This application illustrates a schematic diagram of the implementation flow of the device control method in an embodiment of the present application. Figure 1 ;

[0028] Figure 2 This application illustrates a schematic diagram of the implementation flow of the device control method in an embodiment of the present application. Figure 2 ;

[0029] Figure 3 This application illustrates a schematic diagram of the implementation flow of the device control method in an embodiment of the present application. Figure 3 ;

[0030] Figure 4 A schematic diagram illustrating the implementation flow of the device control method in the prediction stage in an embodiment of this application is shown;

[0031] Figure 5 This application illustrates a schematic diagram of the implementation flow of the device control method in an embodiment of the present application. Figure 4 ;

[0032] Figure 6 A schematic diagram illustrating the implementation process of the device control method in the self-learning phase in an embodiment of this application is shown.

[0033] Figure 7A schematic diagram illustrating the implementation flow of the device control method in the update phase in an embodiment of this application is shown;

[0034] Figure 8 A schematic diagram of the composition structure of the device control device in an embodiment of this application is shown;

[0035] Figure 9 A schematic diagram of the composition structure of the electronic device in an embodiment of this application is shown. Detailed Implementation

[0036] To make the objectives, features, and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0037] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0038] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0039] In the following description, the terms "first" and "second" are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that "first" and "second" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.

[0040] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0041] It should be understood that in the various embodiments of this application, the sequence number of each implementation process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0042] Schematic diagram of the implementation process of the device control method in this application embodiment Figure 1 .like Figure 1 As shown, the method includes:

[0043] S101: Obtain at least one first text information, the at least one first text information being used to describe, in formatted text form, at least one behavior generated by the target object within the target time period and the state of at least one first home appliance corresponding to the at least one behavior.

[0044] This application involves first home furnishing equipment and second home furnishing equipment. The first home furnishing equipment (first home furnishing) and the second home furnishing equipment (second home furnishing) can be different pieces of furniture that may exist indoors, such as in a home or office area. In a specific scenario (living, studying, or working), the first home furnishing and the second home furnishing are related.

[0045] For example, opening the toilet door means you want to use the toilet, and you need to turn on the toilet light. In this scenario, the first piece of furniture is the toilet door, and the furniture related to it in this scenario is the toilet light. The toilet light can be used as the second piece of furniture in this scenario. Similarly, opening the study door means you want to read or turn on the computer, and you need to turn on the light or the computer. In this scenario, the first piece of furniture could be the study door, and the furniture related to it in this scenario is the study light or the computer. The study light or the computer can be used as the second piece of furniture in this scenario. It can be understood that the first and second pieces of furniture with a scenario-related relationship can be furniture that has an interconnected relationship in scenarios such as living, working, and studying.

[0046] In this step, the target time period can be any time period within the home control cycle. For example, the home control cycle is measured in days. The target time period can be a specific time period within a day or multiple days. This time period is typically measured in minutes, such as 3 minutes or 5 minutes. The target object can be the user. The user can perform one or more actions within the target time period, which may cause the first home appliance to be in a certain state.

[0047] For example, combining Figure 4 As shown, at 8:00 AM on June 30, 2023 (the target time period could be 8:00 AM to 8:03 AM), the user pushed open the toilet door and entered the toilet. The toilet door of First Home Furnishings was in an open state due to the user's push.

[0048] It is understandable that in smart home systems, whether a user opens the toilet door is typically detected by door and window sensors. Whether a user enters the toilet is typically detected by human body sensors. If these sensors are considered as devices, they usually determine whether a door or a person has been detected only upon detecting a certain device signal. For example, a device signal of 1 means someone has opened the door; a device signal of 0 means no one has opened the door. Device signals can be digital or analog signals, and are signals that a device can recognize or acknowledge. In this application, these device signals can be converted into a formatted text to describe the meaning of the device signals.

[0049] For example, if the device signal of a door / window sensor is 1, the meaning of the device signal in text format can be described as: the door / window sensor is open (someone pushes the door). If the device signal of a door / window sensor is 0, the meaning of the device signal in text format can be described as: the door / window sensor is closed (the door is closed). Similarly, if the device signal of a human body sensor is 1, the meaning of the device signal in text format can be described as: the human body sensor reports that someone has entered.

[0050] In this application, one device signal can be translated into one formatted text. Multiple device signals can be translated into multiple formatted texts. According to the aforementioned scheme, each device signal detected within the target time period is converted into its corresponding formatted text. In this way, each first text information can be obtained. Alternatively, all device signals can be translated into the same formatted text to obtain the first text information. The scheme of converting these device signals into text format to describe the meaning represented by the device signals is considered a text translation (converting device signals into text format) scheme. The first text information is obtained by performing text translation on each device signal. S102: Based on at least one first text information, second text information is obtained, which is used to describe the association between the at least one behavior of the target object and the state of the at least one first home device within the target time period using natural language description.

[0051] In this step, the first text information obtained through text translation is analyzed and reasoned to achieve the association between describing at least one behavior of the target object and the state of the first home appliance within the target time period using natural language. For example, for... Figure 4 The first textual information in the data includes: door and window sensors open, human body sensor reporting, and toilet illuminance of 15 Lux. Analyzing and reasoning about each piece of first textual information can be seen as using natural language to describe a segment or scenario of life (work or study) within the target time period. For example, after analysis and reasoning, the second textual information obtained is: "At 8 a.m., someone opened the toilet door, and the illuminance inside the toilet without the lights on was 15 Lux."

[0052] S103: Analyze and process the second text information to determine the control command of at least one second home device corresponding to the matching scenario information, so as to control the state of the at least one second home device within the target time period; wherein, the first home device and the second home device have a scenario association relationship.

[0053] In this step, after analyzing and processing the second text information, it is determined which home appliance requires which control command within a specific life (work or study) segment or scenario occurring during the target time period. Figure 4 In the scenario shown, analysis indicates that a command to turn on the toilet light is needed to control the toilet light to be on during the target time period of 8:00-8:03.

[0054] This application involves two types of text information (first text information and second text information). Each piece of first text information can be considered to record an event that occurs within the target time period. Examples include opening a toilet door, entering the toilet, and the toilet's illuminance being 15 Lux. The second text information describes all events that occur within the target time period using natural language.

[0055] In steps S101 to S103, by analyzing and processing the second text information of events within the target time period described in natural language, control commands for the second home appliances corresponding to the matching context information are determined, so as to control the state of the second home appliances within the target time period. In other words, this technical solution can control home appliances based on context information.

[0056] Compared to related technologies that rely on manual voice control commands, this application achieves automated control of smart homes. Furthermore, by using two text messages (first and second text messages) in different ways to record user behavior and the corresponding status of the first home appliance, and by analyzing and processing the second text message, matching scenario information is determined. This results in automated control commands for the second home appliance corresponding to the matching scenario information, providing flexible control. This avoids the problem in related technologies where flexible home control is not possible when user habits change.

[0057] This application provides a natural language processing model. This model possesses powerful language understanding, analysis, and reasoning capabilities. Specifically, the natural language processing model can be a Large Language Model (LLM). In an LLM model, there is an input prompt, which serves as a cue to indicate the direction of the LLM's output.

[0058] In some embodiments, such as Figure 2As shown, the aforementioned scheme for obtaining second text information based on at least one first text information can be implemented by S102':

[0059] S102': Input the first text information and the first prompt information into the natural language processing model to obtain the second text information; wherein, the first prompt information is used to prompt that the association between at least one behavior of the target object and the state of the at least one first home device within the target time period will be output in a natural language description manner.

[0060] In the aforementioned steps, the first prompt is the prompt in the LLM model, which prompts the LLM to describe the various events generated in the target time period using natural language.

[0061] For example, combined Figure 4 As shown, the first text information and prompt representing events such as opening the toilet door, entering the toilet, and the illuminance of the toilet light being 15 Lux are input into the LLM model. The LLM model uses natural language to describe these events, such as "At 8 a.m., someone opened the toilet door, and the illuminance inside the toilet was 15 Lux when the lights were off."

[0062] Understandably, natural language processing (NLP) models possess powerful language processing capabilities, ensuring the accuracy of the second text information. This, in turn, guarantees the accuracy of home appliance control. Furthermore, using NLP models to obtain second text information is practical and easy to implement in engineering.

[0063] In some embodiments, the aforementioned scheme of analyzing and processing the second text information to determine the control command for at least one second home appliance corresponding to the matching context information can be achieved through... Figure 3 The steps shown are to be followed to achieve this.

[0064] S301: Based on the target scenario database, the second text information is analyzed to obtain scenario information that matches the second text information; wherein, the target scenario database includes multiple scenario information, and the scenario information represents the association between one or more behaviors of the target object described in natural language and the state of the at least one first home appliance and the at least one second home appliance.

[0065] In this application, the scenario information included in the target scenario database is derived from life and work scenarios through the self-learning stage or process of a natural language processing model. For details of the process, please refer to the subsequent related explanations, which will not be elaborated here.

[0066] In this step, the second text information is analyzed to obtain the (first) scenario corresponding to the event occurring within the target time period described by the second text information. From the target scenario database, scenarios that are the same as or similar to the first scenario are searched as scenario information that matches the second text information.

[0067] In implementation, the target scenario database records scenarios in text form, and the second text information is also recorded in text form as the (first) scenario corresponding to an event occurring within the target time period. The second text information is input into a text information retrieval model (RM model). The RM model uses a text similarity algorithm to find text information in the target scenario database that has a similarity to the first text information greater than or equal to a preset threshold, and outputs it. The scenario described by the text information output by the RM model can then be considered as the scenario information that matches the second text information.

[0068] like Figure 4 As shown, the scenario described by the text information output by the RM model could be: the toilet's illuminance is below 20 Lux, the light is dim and people cannot see clearly, and the toilet light needs to be turned on when someone enters to use the toilet. After quickly opening and closing the toilet door, the toilet light should be turned off to save electricity.

[0069] Among them, the RM model is used to obtain context information that matches the second text information. This method is simple to implement and can ensure the accuracy of the obtained context information, thereby enabling accurate control of smart homes.

[0070] S302: Based on the scenario information and the second text information, obtain control commands for the at least one second home appliance during the target time period, so as to control the state of the at least one second home appliance during the target time period.

[0071] In implementing the above steps, contextual information, second text information, and second prompt information can be input into a natural language processing model to obtain control commands for the at least one second home appliance within a target time period; wherein, the second prompt information is used to prompt the intent command corresponding to the second text information in the context represented by the contextual information.

[0072] like Figure 4As shown, scenario information such as "The toilet illuminance is below 20 Lux, the light is dim and people cannot see clearly, the toilet light needs to be turned on when someone enters to use the toilet. After quickly opening and closing the toilet door, the toilet light is turned off to save electricity," second text information such as "At 8:00 AM, someone opened the toilet door, the illuminance inside the toilet without the light on is 15 Lux," and a prompt indicating that the natural language processing model needs to output home control commands for this scenario are input into the natural language processing model. The natural language processing model analyzes and processes the data, outputting control commands for at least one second home appliance within the target time period, such as the command to turn on the toilet light. This achieves automatic control of the second home appliance and flexible control of home appliances.

[0073] In steps S301-S302, by analyzing the second text information, contextual information matching the second text information is obtained, thus yielding accurate contextual information. Based on the accurate contextual information and the second text information, accurate control commands can be obtained, thereby achieving accurate control of at least one second home appliance within a target time period. This significantly enhances the user experience of smart homes.

[0074] The aforementioned solution employs a target scenario database containing multiple contextual information to control home appliances. The existence of this database takes into account practical applications where different scenarios may involve controlling different or the same home appliances, and vice versa. The richer and more comprehensive the scenario information recorded in the target scenario database, the more comprehensive, precise, and refined the control over home appliances. This allows users to experience a more complete home experience.

[0075] As can be seen from the foregoing solution, this application involves LLM and RM models. Utilizing LLM and RM models, based on user behavior within a target time period and the corresponding status of the primary home furnishing, and grounded in the second text information output by the LLM model and the contextual information output by the RM model, automatic and flexible control of one or more other homes—the secondary home furnishings—within the target time period can be achieved.

[0076] This application includes three stages: a prediction stage utilizing LLM and RM models, a self-learning stage of the LLM model, and an update stage for the first scenario database. The prediction stage utilizes the LLM and RM models to achieve automatic and flexible control of the second home. As mentioned above... Figures 1-4 The scheme is shown. The self-learning phase is used to learn and summarize the contextual information. The (target) contextual database update phase is used to update the contextual information recorded in the contextual database, such as adding or modifying it. See subsequent related explanations for the self-learning and update phases.

[0077] The target scenario database in this application can be obtained in two ways.

[0078] The first approach involves obtaining a first scenario database based on first historical text information and second historical text information within each historical time period corresponding to the target time period; and using the first scenario database as the target scenario database.

[0079] The first historical text information is used to describe, in the form of formatted text, at least one historical behavior of the target object within each historical period and the historical state of the at least one first home appliance and the at least one second home appliance corresponding to each historical behavior; the second historical text information is used to describe, in the form of natural language, the association between the historical behavior of the target object and the historical state of the at least one first home appliance and the at least one second home appliance within each historical period.

[0080] It is understood that, on a timeline, a target time period is a present or future period. The historical time periods corresponding to the target time period can be periods that have passed relative to the target time period, and the times shown in these historical time periods are the same as or close to the times shown in the target time period. For example, if the target time period is 8:00 AM to 8:05 AM on June 30, 2023, then the historical time periods corresponding to the target time period can be any one or more days prior to June 30, 2023, from 8:00 AM to 8:05 AM.

[0081] Combination Figure 6 As shown, during several historical time periods from 8:00 AM to 8:05 AM, users exhibited a series of behaviors, including pushing the toilet door (door / window sensor opens), entering the toilet (human body sensor reports), turning on the toilet light (toilet light turns on), closing the toilet door (door / window sensor closes), opening the toilet door (door / window sensor opens), and turning off the light (brightness changes from above 15 Lux to 15 Lux). These behaviors were detected by devices such as door / window sensors and human body sensors. These device signals were then converted into a text format to describe their meaning. The specific conversion process can be found in the aforementioned explanation.

[0082] For each historical day, the device signals generated during the period from 8:00 AM to 8:05 AM are converted into a formatted text describing the meaning of the device signals.

[0083] That is, the formatted text obtained through the aforementioned text translation scheme can be used as the first historical text information. For the historical period from 8:00 AM to 8:05 AM on June 15, 2023, the first historical text information records various (historical) actions such as pushing the toilet door, turning on the toilet light, closing the toilet door, opening the toilet door, and turning off the toilet light, as well as the (historical) states of the corresponding home appliances. For example, pushing the toilet door (the toilet door is used as the primary home appliance) results in the toilet door being open; turning on the toilet light (the toilet light is used as the secondary home appliance) results in the toilet's brightness meeting the user's needs.

[0084] The first historical text information obtained through text translation is analyzed and reasoned to obtain the second historical text information, so as to realize the association between the historical behavior of the target object and the historical state of at least one first home appliance and at least one second home appliance in each historical period using natural language.

[0085] For example, device signals generated during a historical period, such as 8:00 AM to 8:05 AM on June 29, 2023, are converted into a first historical text information. Device signals generated during the same historical period, such as 8:00 AM to 8:05 AM on June 28, 2023, are also converted into a first historical text information, resulting in multiple first historical text information sets. The first historical text information obtained for the 8:00 AM to 8:05 AM historical period on June 29, 2023, is analyzed and inferred to obtain second historical text information for that historical period. The first historical text information obtained for the 8:00 AM to 8:05 AM historical period on June 28, 2023, is also analyzed and inferred to obtain second historical text information for that historical period.

[0086] It can be understood that the first historical text information records multiple events that occurred within a historical period in text form. The second historical text information describes all events that occurred within this historical period using natural language. Based on these two types of historical text information (first and second historical text information), a first scenario database containing multiple contextual information is obtained. In simpler terms, based on these two types of historical text information, the scenarios or situations corresponding to a series of user behaviors within a historical period, such as life, study, and work, are summarized. By using the scenarios or situations summarized from these two types of historical text information, automatic and flexible control of home appliances within a target period can be achieved. This summary of scenarios or situations comes from the user's historical behavior, respecting the user's lifestyle habits, thus providing a good intelligent experience for the user within the target period.

[0087] like Figure 5As shown, in some embodiments, the aforementioned scheme for obtaining the first scenario database based on each first historical text information and each second historical text information within each historical time period corresponding to the target time period can be implemented in the following way:

[0088] S501: Based on each first historical text information, obtain each second historical text information.

[0089] During implementation, each first historical text information and each first historical prompt information are input into a natural language processing model to obtain each second historical text information. The first historical prompt information will output the association between the historical behavior of the target object and the historical state of the at least one first home device and the at least one second home device in each historical period using a natural language description.

[0090] In this application, each first historical text message corresponds to a Prompt (used as a first historical prompt message) to indicate the direction of output for the natural language processing model. For example, if the input to the natural language processing model is the first historical text message within the historical time period of 8:00 AM to 8:05 AM on June 29, 2023, the Prompt prompts the natural language processing model to output the association between the user's (historical) behaviors within this historical time period and the (historical) states of the first and second home appliances in a natural language description manner.

[0091] like Figure 6 As shown, for a series of actions that occurred during the historical period from 8:00 AM to 8:05 AM on June 29, 2023, the natural language processing model outputs the following second historical text information: At 8:00 AM, someone opened the toilet door, the illuminance inside the toilet was 15 Lux, someone turned on the toilet light, the illuminance became 83 Lux, and the toilet door was closed. Three minutes later, the toilet door was opened again, the toilet light was turned off, and the illuminance became 15 Lux.

[0092] By leveraging the powerful language processing capabilities of natural language processing models, the accuracy of obtaining second historical text information can be guaranteed.

[0093] S502: Based on each second historical text information, obtain each historical scenario information.

[0094] During implementation, each second historical text information and each second historical prompt information are input into a natural language processing model to obtain each historical scenario information. The second historical prompt information is used to prompt the output of the scenario corresponding to the association between each historical behavior of the target object and the historical state of the at least one first home appliance and the at least one second home appliance within each historical period.

[0095] In this application, each second historical text message corresponds to a Prompt (used as a second historical prompt message) to indicate the direction of output for the natural language processing model. For example, if the input to the natural language processing model is the second historical text message within the historical time period of 8:00 AM to 8:05 AM on June 29, 2023, the Prompt prompts the natural language processing model to summarize the context or scene information corresponding to each (historical) behavior of the user within this historical time period.

[0096] Combination Figure 6 As shown, for the second historical text information within the historical period of 8:00 AM to 8:05 AM on June 29, 2023, the natural language processing model outputs the following scenario information: the toilet illuminance is less than 20 Lux, the light is dim and people cannot see clearly, the toilet light needs to be turned on when someone enters to use the toilet, and after quickly opening and closing the toilet door in a short time, the toilet light is turned off in order to save electricity.

[0097] As can be seen from the foregoing scheme, in this application, the Prompt of the natural language processing model differs depending on the task. For example, if we consider S501 and S502 as different tasks, then in S501, the Prompt prompts the natural language processing model to output the association between the user's (historical) behaviors and the (historical) states of the first and second home appliances in this historical period using natural language descriptions. In S502, the Prompt prompts the natural language processing model to summarize the context or scene information corresponding to the user's (historical) behaviors in this historical period.

[0098] This demonstrates the powerful capabilities of natural language processing models, which can accomplish various tasks by changing different prompts. This application fully leverages this advantage of natural language processing models to achieve the completion of different tasks, such as second historical text information, historical context information, second text information, and control commands.

[0099] It is understandable that when a natural language processing (NLP) model completes the task of obtaining second-generation historical text information and historical context information, it is essentially a form of self-learning. It learns the user's life scenarios or situations within a historical period based on a series of user behaviors. Therefore, the solution presented here can be considered the self-learning phase of this application.

[0100] S503: Based on the information from each historical scenario, the first scenario database is obtained.

[0101] In this step, for historical scenario information obtained from the same historical period, if they represent the same or similar scenarios, one of the scenario information from the same or similar scenarios can be added to the first scenario database.

[0102] In practical applications, a day can be divided into different time periods, and users may exhibit different habitual behaviors at different times of the same day. For example, from 8:05 AM to 8:05 AM, a user might be using the restroom. From 8:00 PM to 8:20 PM, a user might be washing up. By summarizing user behavior during the historical time period of 8:00 AM to 8:05 AM over several days, one set of contextual information can be derived. Similarly, by summarizing user behavior during the historical time period of 8:00 PM to 8:20 PM over several days, another set of contextual information can be derived. Multiple sets of contextual information can be summarized based on user behavior within different historical time periods. Collecting these contextual information sets forms the content recorded in the first contextual database. That is, through the self-learning scheme shown in S501-S503, the natural language processing model learns the habits generated by a user within a certain time period and summarizes the scenarios or contexts of those habits.

[0103] For certain days or every day in history, a specific time series (e.g., 24 hours per day in history) is identified from historical time series to learn and summarize scenarios, such as 8:00 AM to 8:05 AM every day in history. The time period for learning and summarizing scenarios is typically a period of time when users have fixed daily habits. For example, users typically use the restroom between 8:00 AM and 8:05 AM every day in history. In this application, based on user behavior during this time period each day in history, a natural language processing model can be used to learn or summarize the life scenarios or situations within that time period. In simpler terms, the main task in the self-learning phase of this application is to summarize the life scenarios or user habits within a certain time period using a natural language processing model. The main task in the prediction phase is to use the summarized life scenarios within that time period, based on the user's behavior and the corresponding state of the first home appliance, to achieve flexible and automatic control of the second home appliance.

[0104] It's understandable that the aforementioned solution describes how the first scenario database was obtained. In practical applications, some behaviors may be the same or different across different time periods. For example, users might habitually use the restroom during the periods of 2:00 AM - 2:05 AM and 8:00 AM - 8:05 AM. Some of these behaviors are similar, such as opening the door, turning on the light, closing the door, opening the door again, and turning the light off. However, the brightness of the restroom light used by the user during these two time periods might differ. For instance, the user might use a lower brightness when using the restroom at night than in the morning. The first scenario database does not record the habit or scenario of 2:00 AM - 2:05 AM. However, it does record scenarios for the period of 8:00 AM - 8:05 AM. For the habit or scenario of 2:00 AM - 2:05 AM, a natural language processing model needs to be used to summarize the information, and the summarized scenario information should be added to the first scenario database to further improve and enrich the scenario information recorded in the first scenario database.

[0105] In view of this, a second way to form the target scenario database is to use the second scenario database obtained by updating the first scenario database as the target scenario database.

[0106] Specifically, the update process is as follows:

[0107] First, other text information from historical periods different from the target time period, control commands for the at least one second home appliance within the historical periods corresponding to the target time period, and contextual information within the historical periods corresponding to the target time period are obtained. Specifically, at least some behaviors of the target object in the other historical periods differ from those in the historical periods corresponding to the target time period. The other text information is used to describe, using natural language, the association between each historical behavior of the target object in the other historical periods and the historical states of the at least one first home appliance and the at least one second home appliance targeted by each behavior.

[0108] If we take the target time period as 8:00 AM to 8:05 AM on June 30th and thereafter as an example, then the corresponding historical time period can be 8:00 AM to 8:05 AM on June 29th and before; other historical time periods can be any time period other than 8:00 AM to 8:05 AM on June 29th and before, such as 2:00 AM to 2:05 AM on June 29th.

[0109] The first scenario database records scenario information summarized from the user's behavior between 8:00 AM and 8:05 AM. At 2:00 AM on June 29th, the user went to the toilet, a behavior similar to some of the behaviors observed between 8:00 AM and 8:05 AM. According to the scenario outlined in the prediction phase, the smart home system would automatically turn on the toilet light. It is assumed that the toilet light is in normal (brightness) mode. However, because it is nighttime, the user adjusts the light's brightness from normal mode to night mode. The toilet light's state changes from emitting light in normal mode to emitting light in night mode. That is, the user's required light brightness differs for the toilet use scenarios at 2:00 AM and 8:00 AM. If the smart home system still controls the toilet light at normal brightness at 2:00 AM, it cannot meet the user's actual needs.

[0110] Secondly, new scenario information is obtained based on other text information, control commands for the at least one second home appliance within the historical period corresponding to the target time period, and scenario information within the historical period corresponding to the target time period.

[0111] In order to automatically provide users with a night light mode in the early morning, combined with Figure 7 As shown, at 2:00 AM on June 29th, device signals detected by a brightness sensor or other sensors, such as door / window sensor opening, human body sensor reporting, illuminance of 20, toilet light turning on in normal mode, toilet light switching to night light mode, and toilet light turning off, will be processed. A text translation scheme will be used to convert these device signals into formatted text. The converted formatted text and the prompt message will be input into a natural language processing model, which will output the other text information, such as... Figure 7 The text shows a system that automatically turns on the toilet light when someone enters, increasing the illuminance to 90 Lux, and then turns it off. The prompt mentioned earlier is used to ask the user to describe the content recorded in the input formatted text in natural language.

[0112] Next, the following commands will be input into the natural language processing model: "Toilet illuminance 20 Lux, the system automatically turns on the toilet light when someone enters, the illuminance becomes 90 Lux, and the toilet light is turned off" (other text information); the command provided to the user between 8:00 AM and 8:05 AM to turn on the toilet light in normal brightness mode (control commands for at least one second home appliance within the historical time period corresponding to the target time period, referred to as the reference command); and "Toilet illuminance is below 20 Lux, the light is dim and people cannot see clearly, the toilet light needs to be turned on when someone enters to use the toilet. After quickly opening and closing the toilet door in a short time, the toilet light is turned off to save electricity" (scenario information within the historical time period corresponding to the target time period, referred to as the reference scenario).

[0113] When the above input information is fed into the natural language processing model, a prompt message (Prompt) is also required. The Prompt indicates that, for the scenario described by the other textual information, the reference command given according to the reference scenario cannot meet the needs of the scenario described by the other textual information. Upon receiving the above information, the natural language processing model analyzes and infers, generating new scenario information for the behavior of going to the toilet at 2 AM. For example, Figure 7 The following can be considered as newly generated scenario information: "The toilet illuminance is below 20 Lux, the light is dim and people cannot see clearly, the toilet light needs to be turned on when someone enters to use the toilet. When getting up at night in the early morning, the light is too bright and people are uncomfortable, so turn on the night light mode. After quickly opening and closing the toilet door in a short time, turn off the toilet light to save electricity."

[0114] Finally, based on the new scenario information, the first scenario database is updated to obtain the second scenario database. During implementation, the new scenario information can be recorded in the first scenario database, and together with the original scenario information in the first scenario database, a more comprehensive and richer scenario database can be obtained. The more comprehensive the scenario database, the more scenario information is available for use. Thus, regarding toilet habits at night and in the morning, according to the plan shown in the prediction phase, for toilet behavior between 8:00 and 8:05 in the morning, the given scenario information is: "The toilet illuminance is below 20 Lux, the light is dim and people cannot see clearly, the toilet light needs to be turned on when someone enters the toilet. After quickly opening and closing the toilet door in a short time, the toilet light is turned off to save electricity." Therefore, a control command is given to turn on the toilet light in normal brightness mode. For users going to the toilet at 2 AM, the system provides the following scenario information: "The toilet's illuminance is below 20 Lux, making it difficult to see. The toilet light needs to be turned on when someone enters the toilet. When getting up at night, the light is too bright and uncomfortable, so the night light mode should be activated. After quickly opening and closing the toilet door, the toilet light should be turned off to save electricity." This provides a control command to turn the toilet light on in night light mode. By offering different lighting levels to meet the actual needs of home appliances at different times, the system achieves flexible control and greatly improves the user experience.

[0115] Based on the toilet needs at two different time periods, the technical solution shown in the prediction phase of this application can utilize the scenarios in the target scenario database obtained from the self-learning phase or the scenario database update phase, as well as the actual behavior at different time periods, to achieve flexible control of the second home equipment at different time periods.

[0116] In the aforementioned solution, the toilet light is changed from normal brightness mode to night light mode through manual operation (the user feels the light is too bright and switches to night light mode). Using the updated technical solution in this application, automatic control of home appliances can be achieved during other time periods (such as 2:00 AM to 2:05 AM) that are different from the target time period (such as 8:00 AM to 8:05 AM).

[0117] It's understandable that if, for several consecutive mornings between 8:00 and 8:05, the toilet light is manually switched from normal brightness mode to night light mode, it indicates a change in user habits. Therefore, using the update phase technical solution in this application, the scenario information in the target scenario database can be changed from "Toilet illuminance is below 20 Lux, the light is too dim to see clearly, the toilet light needs to be turned on when someone enters the toilet. After quickly opening and closing the toilet door for a short time, the toilet light is turned off to save electricity" to "Toilet illuminance is below 20 Lux, the light is too dim to see clearly, the toilet light needs to be turned on when someone enters the toilet. When getting up at night in the morning, the light is too bright and uncomfortable, so the night light mode is activated. After quickly opening and closing the toilet door for a short time, the toilet light is turned off to save electricity." In this case, the update phase in this application can also be considered a correction phase, allowing for the timely detection of changes in user habits and adaptive updates to the target scenario database based on actual changes. Therefore, the technical solution of this application can meet the flexible and ever-changing needs of users and achieve flexible control of home appliances.

[0118] When new home appliances are connected, the technical solutions shown in the self-learning phase can be used to summarize the usage scenarios of the new appliances, obtaining new scenario information to enrich the target scenario database. In application, the summarized new scenario information is used, following the technical solutions shown in the prediction phase, to achieve flexible control of the new home appliances.

[0119] The advantages of adopting the technical solution of this application also include:

[0120] A text translation scheme is employed to convert device signals detected within a target time period into first text information. A natural language processing model is then used to describe the content of this first text information in natural language, thus obtaining second text information. By utilizing a target scenario database and the second text information, automatic and flexible control of home appliances can be achieved.

[0121] Given that natural language processing models have powerful reasoning and summarizing capabilities, they can be used to achieve automatic learning of home scenarios and automatic updating of scenario databases, thereby facilitating flexible control of home devices.

[0122] If the solution shown in the self-learning stage of this application is regarded as a self-learning method based on natural language reasoning, then by using this method, new scenarios or situations can be automatically summarized according to changes in the state of the device (changes in usage behavior), thereby making scene control of smart homes more flexible and convenient.

[0123] Therefore, by utilizing the technical solution of this application, the inability to flexibly control home appliances according to actual usage conditions, as is present in related technologies, can be avoided. It avoids the difficulty of manually setting trigger conditions to achieve control when new home appliances are added. It also avoids the need to manually summarize habitual scenarios and set triggers for home appliance control based on these summaries. This enables flexible and automatic control of home appliances, meeting various practical needs of users.

[0124] This application also provides a device control apparatus, such as... Figure 8 As shown, the device includes:

[0125] The first obtaining unit 11 is used to obtain at least one first text information, wherein the at least one first text information is used to describe, in the form of formatted text, at least one behavior generated by the target object within the target time period and the state of at least one first home appliance corresponding to the at least one behavior;

[0126] The second obtaining unit 12 is used to obtain second text information based on at least one first text information, wherein the second text information is used to describe the association between at least one behavior of the target object and the state of at least one first home appliance during the target time period using natural language description.

[0127] The third obtaining unit 13 is used to analyze and process the second text information to determine the control command of at least one second home device corresponding to the matching scenario information, so as to control the state of the at least one second home device within a target time period; wherein the first home device and the second home device have a scenario association relationship.

[0128] In some embodiments, the second obtaining unit 12 is configured to:

[0129] The first text information and the first prompt information are input into a natural language processing model to obtain the second text information; wherein, the first prompt information is used to prompt that the association between at least one behavior of the target object and the state of at least one first home device within the target time period will be output in a natural language description manner.

[0130] In some embodiments, the third obtaining unit 13 is further configured to:

[0131] Based on the target scenario database, the second text information is analyzed to obtain scenario information that matches the second text information; wherein, the target scenario database includes multiple scenario information, and the scenario information represents the association between one or more behaviors of the target object described in natural language and the state of the at least one first home appliance and the at least one second home appliance;

[0132] Based on the context information and the second text information, control commands are obtained for the at least one second home appliance during the target time period, so as to control the state of the at least one second home appliance during the target time period.

[0133] In some embodiments, the third obtaining unit 13 is further configured to:

[0134] The context information, the second text information, and the second prompt information are input into a natural language processing model to obtain control commands for the at least one second home appliance within the target time period; the second prompt information is used to prompt the intent command corresponding to the second text information in the context represented by the context information.

[0135] In some embodiments, the apparatus further includes a fourth obtaining unit, configured to:

[0136] Based on the first historical text information and the second historical text information within each historical time period corresponding to the target time period, a first scenario database is obtained; the first scenario database is used as the target scenario database.

[0137] Alternatively, the second scenario database obtained after updating the first scenario database can be used as the target scenario database;

[0138] The first historical text information is used to describe, in the form of formatted text, at least one historical behavior of the target object within each historical period and the historical state of the at least one first home appliance and the at least one second home appliance corresponding to each historical behavior; the second historical text information is used to describe, in the form of natural language, the association between the historical behavior of the target object and the historical state of the at least one first home appliance and the at least one second home appliance within each historical period.

[0139] In some embodiments, the fourth obtaining unit is further configured to:

[0140] New scenario information is obtained based on other text information in other historical periods that are different from the target time period, control commands for the at least one second home appliance in the historical period corresponding to the target time period, and scenario information in the historical period corresponding to the target time period; wherein, at least some of the behaviors generated by the target object in other historical periods are different from the behaviors in the historical period corresponding to the target time period, and the other text information is used to describe the association between each historical behavior of the target object in the other historical periods and the historical states of the at least one first home appliance and the at least one second home appliance targeted by each behavior in natural language description.

[0141] Based on the new scenario information, the first scenario database is updated to obtain the second scenario database.

[0142] In some embodiments, the fourth obtaining unit is further configured to:

[0143] Based on the first historical text information, the second historical text information is obtained;

[0144] Based on the information from each second historical text, information from each historical scenario is obtained;

[0145] Based on the information from each historical scenario, the first scenario database is obtained.

[0146] In some embodiments, the fourth obtaining unit is further configured to:

[0147] Each first historical text information and each first historical prompt information are input into a natural language processing model to obtain each second historical text information. The first historical prompt information will output the association between the historical behavior of the target object and the historical state of the at least one first home device and the at least one second home device in each historical period using natural language description.

[0148] Each second historical text information and each second historical prompt information are input into a natural language processing model to obtain each historical scenario information. The second historical prompt information is used to prompt the output of the scenario corresponding to the association between the historical behavior of the target object and the historical state of the at least one first home appliance and the at least one second home appliance in each historical period.

[0149] Based on the information from each historical scenario, the first scenario database is obtained.

[0150] This application also provides a device control system capable of controlling (first and second) home appliances. The system includes:

[0151] A processor is configured to obtain at least one first text information, the at least one first text information being configured to describe, in formatted text form, at least one behavior generated by a target object within a target time period and the state of at least one first home appliance corresponding to the at least one behavior;

[0152] The processor is further configured to obtain second text information based on at least one first text information, wherein the second text information is used to describe, in a natural language manner, the association between at least one behavior of the target object and the state of the at least one first home appliance during the target time period;

[0153] The processor is further configured to analyze and process the second text information to determine the control command of at least one second home device corresponding to the matching scenario information, so as to control the state of the at least one second home device within a target time period; wherein the first home device and the second home device have a scenario association relationship.

[0154] It should be noted that the device control device and device control system in this application embodiment are similar in principle to the aforementioned device control method in solving the problem. Therefore, the implementation process and implementation principle of the device control device and device control system can be referred to the description of the implementation process and implementation principle of the aforementioned method, and the repeated parts will not be repeated.

[0155] According to embodiments of this application, this application also provides an electronic device and a readable storage medium.

[0156] Figure 9 A schematic block diagram of an example electronic device 800 that can be used to implement embodiments of this application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the application described and / or claimed herein.

[0157] like Figure 9As shown, device 800 includes a computing unit 801, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 802 or a computer program loaded from storage unit 808 into random access memory (RAM) 803. RAM 803 may also store various programs and data required for the operation of device 800. The computing unit 801, ROM 802, and RAM 803 are interconnected via bus 804. Input / output (I / O) interface 805 is also connected to bus 804.

[0158] Multiple components in device 800 are connected to I / O interface 805, including: input unit 806, such as keyboard, mouse, etc.; output unit 807, such as various types of monitors, speakers, etc.; storage unit 808, such as disk, optical disk, etc.; and communication unit 809, such as network card, modem, wireless transceiver, etc. Communication unit 809 allows device 800 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0159] The computing unit 801 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 801 performs the various methods and processes described above, such as device control methods. For example, in some embodiments, the device control method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of the device control method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the device control method by any other suitable means (e.g., by means of firmware).

[0160] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific labeled products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0161] The program code used to implement the methods of this application may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing device, such that when executed by the processor or controller, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0162] In the context of this application, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0163] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.

Claims

1. A device control method, comprising: Obtain at least one first text information, wherein the at least one first text information is used to describe, in the form of formatted text, at least one behavior generated by the target object during the target time period and the state of at least one first home appliance corresponding to the at least one behavior; Based on at least one first text information, second text information is obtained, which is used to describe the association between at least one behavior of the target object and the state of at least one first home appliance during the target time period using natural language description. Based on the target scenario database, the second text information is analyzed to obtain scenario information that matches the second text information. The target scenario database includes multiple scenario information, which represents the association between one or more behaviors of the target object described in natural language and the state of the at least one first home appliance and the at least one second home appliance. Based on the scenario information and the second text information, a control command is obtained for the at least one second home appliance during the target time period, so as to control the state of the at least one second home appliance during the target time period; The first home appliance and the second home appliance have a contextual relationship.

2. The method according to claim 1, wherein obtaining the second text information based on at least one first text information comprises: The first text information and the first prompt information are input into a natural language processing model to obtain the second text information; wherein, the first prompt information is used to prompt that the association between at least one behavior of the target object and the state of at least one first home device within the target time period will be output in a natural language description manner.

3. The method according to claim 1, wherein obtaining the control command for the at least one second home appliance within the target time period based on the context information and the second text information comprises: The context information, the second text information, and the second prompt information are input into a natural language processing model to obtain control commands for the at least one second home appliance during the target time period. The second prompt information is used to prompt the intent command corresponding to the second text information in the context represented by the context information.

4. The method according to claim 1 or 3, further comprising: Based on the first historical text information and the second historical text information within each historical time period corresponding to the target time period, a first scenario database is obtained; The first scenario database is used as the target scenario database; Alternatively, the second scenario database obtained after updating the first scenario database can be used as the target scenario database; The first historical text information is used to describe, in the form of formatted text, at least one historical behavior generated by the target object within each historical period, as well as the historical status of the at least one first home appliance and the at least one second home appliance corresponding to each historical behavior; The second historical text information is used to describe, in natural language, the association between the target object's historical behavior and the historical state of the at least one first home appliance and the at least one second home appliance during the historical time period.

5. The method according to claim 4, further comprising: New scenario information is obtained based on other text information in other historical periods that are different from the target time period, control commands for the at least one second home appliance in the historical period corresponding to the target time period, and scenario information in the historical period corresponding to the target time period; wherein, at least some of the behaviors generated by the target object in other historical periods are different from the behaviors in the historical period corresponding to the target time period, and the other text information is used to describe the association between each historical behavior of the target object in the other historical periods and the historical states of the at least one first home appliance and the at least one second home appliance targeted by each behavior in natural language description. Based on the new scenario information, the first scenario database is updated to obtain the second scenario database.

6. The method according to claim 4, wherein obtaining the first scenario database based on each first historical text information and each second historical text information within each historical time period corresponding to the target time period includes: Based on the first historical text information, the second historical text information is obtained; Based on the information from each second historical text, information from each historical scenario is obtained; Based on the information from each historical scenario, the first scenario database is obtained.

7. The method according to claim 6, The process of obtaining second historical text information based on each first historical text information includes: Each first historical text information and each first historical prompt information are input into a natural language processing model to obtain each second historical text information. The first historical prompt information will output the association between the historical behavior of the target object and the historical state of the at least one first home device and the at least one second home device in each historical period using natural language description. The process of obtaining historical context information based on each second historical text information includes: Each second historical text information and each second historical prompt information are input into a natural language processing model to obtain each historical scenario information. The second historical prompt information is used to prompt the output of the scenario corresponding to the association between the historical behavior of the target object and the historical state of the at least one first home appliance and the at least one second home appliance in each historical period. Based on the information from each historical scenario, the first scenario database is obtained.

8. A device for controlling equipment, comprising: The first obtaining unit is configured to obtain at least one first text information, wherein the at least one first text information is used to describe, in the form of formatted text, at least one behavior generated by the target object within the target time period and the state of at least one first home appliance corresponding to the at least one behavior; The second obtaining unit is configured to obtain second text information based on at least one first text information, wherein the second text information is used to describe, in a natural language manner, the association between at least one behavior of the target object and the state of at least one first home appliance during the target time period; The third obtaining unit is configured to analyze the second text information based on a target scenario database to obtain scenario information matching the second text information. The target scenario database includes multiple scenario information sets, each representing the association between one or more behaviors of a target object described using natural language and the states of the at least one first home appliance and the at least one second home appliance. Based on the scenario information and the second text information, a control command is obtained for the at least one second home appliance during the target time period to control the state of the at least one second home appliance during the target time period. The first home appliance and the second home appliance have a contextual relationship.

9. A device control system, comprising: A processor is configured to obtain at least one first text information, the at least one first text information being configured to describe, in formatted text form, at least one behavior generated by a target object within a target time period and the state of at least one first home appliance corresponding to the at least one behavior; The processor is further configured to obtain second text information based on at least one first text information, wherein the second text information is used to describe, in a natural language manner, the association between at least one behavior of the target object and the state of the at least one first home appliance during the target time period; The processor is further configured to analyze the second text information based on a target context database to obtain context information matching the second text information, wherein the target context database includes multiple context information, and the context information represents the association between one or more behaviors of a target object described in natural language and the state of the at least one first home appliance and the at least one second home appliance; based on the context information and the second text information, to obtain control commands for the at least one second home appliance during the target time period, so as to control the state of the at least one second home appliance during the target time period; The first home appliance and the second home appliance have a contextual relationship.

Citation Information

Patent Citations

  • Universal equipment linkage method and system

    CN115314529A

  • Descriptive text-based input based on non-audible sensor data

    US20190138095A1