Smart home equipment control method and device
By collecting user data and environmental data, and generating smart home equipment control strategies, the problem of low intelligence level of home equipment control in the existing technology is solved, and more efficient equipment control is achieved, providing users with a comfortable life experience.
Patent Information
- Application Number
- CN202411409439.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-10
- Publication Date
- 2024-12-06
AI Technical Summary
In the prior art, the intelligent level of home equipment control is low, and it is impossible to automatically generate appropriate equipment working parameters based on user activity, health and environmental data.
Collect user activity data, health data and environmental data, determine the target home scene, obtain reference data, generate smart home device control strategies, and control multiple smart home devices according to the strategy.
It improves the intelligence level of home equipment control and provides users with a more comfortable life experience.
Smart Images

Figure CN119087826A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of device control technology, and in particular to a method and device for controlling smart home devices. Background Art
[0002] In order to facilitate the lives of users and provide them with a more comfortable home life, it is necessary to provide more intelligent control of home appliances. The current level of intelligence in home appliance control is mainly reflected in the ability to remotely control home appliances and control the operation of home appliances according to set time and values. It can be seen that the current level of intelligence in controlling home appliances is still relatively low. In actual life scenarios, users will set appropriate parameters for home appliances based on their own activities, physical conditions, environmental data and other factors, but existing technologies cannot automatically generate appropriate working parameters for home appliances. Summary of the invention
[0003] In view of this, the embodiments of the present application provide a smart home device control method, device, electronic device and computer-readable storage medium to solve the problem of low intelligence level in home device control in the prior art.
[0004] In a first aspect of an embodiment of the present application, a smart home device control method is provided, including: collecting activity data and health data of users in a target home place and outdoor environment data and indoor environment data of the target home place; determining a target home scene in the target home place based on the activity data; obtaining first reference data corresponding to the target home scene and second reference data corresponding to the health data; generating a smart home device control strategy based on the first reference data, the second reference data, the outdoor environment data and the indoor environment data; and controlling multiple smart home devices in the target home place according to the smart home device control strategy.
[0005] According to a second aspect of an embodiment of the present application, a smart home device control apparatus is provided, comprising: a collection module, configured to collect activity data and health data of users in a target home location, as well as outdoor environment data and indoor environment data of the target home location; a determination module, configured to determine a target home scene in which the target home location is located based on the activity data; an acquisition module, configured to acquire first reference data corresponding to the target home scene and second reference data corresponding to the health data; a generation module, configured to generate a smart home device control strategy based on the first reference data, the second reference data, the outdoor environment data and the indoor environment data; and a control module, configured to control multiple smart home devices in the target home location according to the smart home device control strategy.
[0006] According to a third aspect of an embodiment of the present application, an electronic device is provided, 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 above method when executing the computer program.
[0007] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0008] Compared with the prior art, the embodiments of the present application have the following beneficial effects: collecting the activity data and health data of the user in the target home place and the outdoor environment data and indoor environment data of the target home place; determining the target home scene in which the target home place is located based on the activity data; obtaining the first reference data corresponding to the target home scene and the second reference data corresponding to the health data; generating a smart home device control strategy based on the first reference data, the second reference data, the outdoor environment data and the indoor environment data; and controlling multiple smart home devices in the target home place according to the smart home device control strategy. The above technical means can solve the problem of the low level of intelligence in the prior art in that it is impossible to centrally control home devices, thereby improving the level of intelligence in home device control and providing users with a more comfortable life. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0010] Figure 1 It is a flowchart of a smart home device control method provided by an embodiment of the present application;
[0011] Figure 2 It is a flowchart of another smart home device control method provided by an embodiment of the present application;
[0012] Figure 3 It is a structural schematic diagram of a smart home device control device provided in an embodiment of the present application;
[0013] Figure 4 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0014] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0015] A method and apparatus for controlling smart home devices according to an embodiment of the present application will be described in detail below with reference to the accompanying drawings.
[0016] Figure 1 It is a flowchart of a smart home device control method provided in an embodiment of the present application. Figure 1 The smart home device control method can be executed by a computer or a server, or software on the computer or the server. Figure 1 As shown, the smart home device control method includes:
[0017] S101, collecting activity data and health data of users in a target home location as well as outdoor environment data and indoor environment data of the target home location;
[0018] S102, determining a target home scene where the target home location is located based on the activity data;
[0019] S103, obtaining first reference data corresponding to the target home scene and second reference data corresponding to the health data;
[0020] S104, generating a smart home device control strategy according to the first reference data, the second reference data, the outdoor environment data, and the indoor environment data;
[0021] S105, controlling multiple smart home devices in the target home location according to the smart home device control strategy.
[0022] Smart home devices include: smart light bulbs, smart window controllers, smart water dispensers, smart air purifiers, air conditioners, dehumidifiers, etc. Activity data is a description of the user's ongoing activities, including: sleeping, leaving home, returning home, dining, working, exercising, getting up in the morning, etc. Health data is a description of the user's physical data and quality of life in the recent period, such as body temperature, heart rate, sleep quality in the recent period, etc. Outdoor environmental data is also outdoor environmental data, including environmental parameters such as temperature, humidity, air quality, and weather. Indoor environmental data is environmental data in the target home place, including environmental parameters such as temperature, humidity, air quality, and weather. It should be noted that the air quality of outdoor environmental data is different from that of indoor environmental data. The air quality of outdoor environmental data is mainly PM2.5 content and whether there is haze, etc. The air quality of indoor environmental data is mainly carbon dioxide content, copper monoxide content, etc. The target home scene and activity data correspond to each other. The target home scene includes sleeping scene, leaving home scene, returning home scene, dining scene, working scene, exercising scene, getting up in the morning scene, etc.
[0023] Both the first reference data and the second reference data include multiple environmental parameters and the data range of each environmental parameter. Both the outdoor environmental data and the indoor environmental data include multiple environmental parameters and the data corresponding to each environmental parameter. The first reference data is obtained by counting the numerical values of each environmental parameter frequently set by multiple users in the target home scene. The first reference data gives the reference range of the data for setting each environmental parameter in the target home scene. The second reference data is obtained by counting the numerical values of each environmental parameter frequently set by users of different health data. The second reference data gives the reference range of the data for setting each environmental parameter by the user of the health data.
[0024] According to the technical solution provided in the embodiment of the present application, the activity data and health data of the user in the target home place and the outdoor environment data and indoor environment data of the target home place are collected; the target home scene of the target home place is determined based on the activity data; the first reference data corresponding to the target home scene and the second reference data corresponding to the health data are obtained; the smart home device control strategy is generated according to the first reference data, the second reference data, the outdoor environment data and the indoor environment data; and the multiple smart home devices in the target home place are controlled according to the smart home device control strategy. The above technical means can solve the problem of the low level of intelligence in the existing technology that the control of home devices cannot be centralized, thereby improving the level of intelligence of home device control and providing users with a more comfortable life.
[0025] Furthermore, a smart home device control strategy is generated based on the first reference data, the second reference data, the outdoor environment data and the indoor environment data, including: determining the same data range for each environmental parameter in the first reference data and the second reference data, wherein the first reference data and the second reference data both contain multiple environmental parameters and the data range for each environmental parameter, and the outdoor environment data and the indoor environment data both contain multiple environmental parameters and data corresponding to each environmental parameter; using the same data range for each environmental parameter as the third reference data; determining a first difference between the data corresponding to each environmental parameter in the outdoor environment data and the indoor environment data; determining ideal data for each environmental parameter based on the third reference data and the first difference between the data corresponding to each environmental parameter; and generating a smart home device control strategy based on the ideal data for each environmental parameter.
[0026] The same data range of each environmental parameter in the first reference data and the second reference data is used as the third reference data to narrow the data range given by the reference data. Because the control of home appliances is actually related to the difference between indoor and outdoor environmental parameters, such as the control of air conditioners and the difference between indoor and outdoor temperatures, the first difference between the data corresponding to each environmental parameter in the outdoor environmental data and the indoor environmental data is calculated, and the ideal data of each environmental parameter is determined by combining the data range corresponding to each environmental parameter in the third reference data and the first difference corresponding to each environmental parameter. The ideal data of each environmental parameter can be determined according to the principle that the larger the first difference, the larger the data in the data range corresponding to each environmental parameter in the third reference data. If the data range corresponding to the temperature in the third reference data is 22 degrees Celsius to 25 degrees Celsius, and the difference between indoor and outdoor temperatures is 10 degrees Celsius, the ideal data of the indoor temperature can be selected as 25 degrees Celsius. The ideal data of the environmental parameter is the set value of the smart home device that adjusts the environmental parameter, that is, the control strategy of the smart home device.
[0027] For example: Indoor environment: temperature 28℃, humidity 70%, normal carbon dioxide concentration; outdoor environment: temperature 22℃, humidity 50%, sunny and windless; health data: poor sleep quality and low daytime activity; target home scene: work scene. The smart home device control strategy generated based on the above data: temperature adjustment: start the air conditioner and set the target temperature to 24℃ to lower the indoor temperature; humidity adjustment: start the dehumidifier and set the target humidity to 55%; air quality: good outdoor air quality, open the windows for ventilation; turn off the music.
[0028] Furthermore, a smart home device control strategy is generated based on the first reference data, the second reference data, the outdoor environment data and the indoor environment data, including: determining a first difference in data corresponding to each environmental parameter in the outdoor environment data and the indoor environment data, wherein the first reference data and the second reference data both contain multiple environmental parameters and data ranges for each environmental parameter, and the outdoor environment data and the indoor environment data both contain multiple environmental parameters and data corresponding to each environmental parameter; determining preliminary data for each environmental parameter based on the first difference in data corresponding to each environmental parameter; optimizing the preliminary data for each environmental parameter based on the data range for each environmental parameter in the first reference data and the second reference data to obtain ideal data for each environmental parameter; and generating a smart home device control strategy based on the ideal data for each environmental parameter.
[0029] In many scenarios, the difference between the corresponding data of indoor and outdoor environmental parameters may be the main factor in the control of smart home devices. Therefore, the preliminary data of each environmental parameter is determined based on the first difference between the corresponding data of each environmental parameter in the outdoor environmental data and the indoor environmental data (the data can be obtained based on historical data statistics). Then, the preliminary data of each environmental parameter is optimized based on the data range of each environmental parameter in the first reference data and the second reference data. For example, the difference between indoor and outdoor temperatures is 10 degrees Celsius, and the preliminary data recommends 25 degrees Celsius. The data range corresponding to the temperature in the first reference data is 22 degrees Celsius to 25 degrees Celsius, and the data range corresponding to the temperature in the second reference data is 23 degrees Celsius to 26 degrees Celsius. Combined with the first reference data and the second reference data, the temperature should be set to 23 degrees Celsius to 25 degrees Celsius. The preliminary data recommends that 25 degrees Celsius is the highest value in the reference data. In order to avoid errors, 24 degrees Celsius can be used as the ideal temperature data.
[0030] Generate a smart home device control strategy based on first reference data, second reference data, outdoor environment data and indoor environment data, including: input the first reference data, second reference data, outdoor environment data and indoor environment data into a device control strategy model, and output the smart home device control strategy; wherein the device control strategy model has been trained and can generate a smart home device control strategy based on the first reference data, second reference data, outdoor environment data and indoor environment data.
[0031] The device control strategy model can be any commonly used neural network model, such as a transform model. Training data can be input to allow the device control strategy model to output the smart home device control strategy for training. Finally, the loss between the smart home device control strategy and the label is calculated to optimize the model parameters. The training data includes the first reference data, the second reference data, the outdoor environment data, and the indoor environment data.
[0032] Furthermore, a smart home device control strategy is generated based on the ideal data of each environmental parameter, including: determining a second difference between the ideal data of each environmental parameter and the data corresponding to each environmental parameter in the indoor environmental data; generating a smart home device control strategy based on the second difference corresponding to each environmental parameter, wherein the smart home device control strategy includes multiple stage control strategies in a sequential order.
[0033] Because if you follow one control strategy, it may take too long, or the environment may change too much, causing users to be uncomfortable. Therefore, smart home devices can be controlled in stages, which is especially suitable for temperature adjustment. When a stage control strategy adjusts the temperature to a certain value, the next stage control strategy starts.
[0034] Generate a smart home device control strategy based on the second difference corresponding to each environmental parameter, including: calculate the target data corresponding to each environmental parameter in each stage control strategy based on the second difference corresponding to each environmental parameter, the number of stage control strategies in the smart home device control strategy and the data corresponding to each environmental parameter in the indoor environment data; generate the smart home device control strategy with the target data corresponding to each environmental parameter in each stage control strategy and the target data corresponding to each environmental parameter in the previous stage control strategy of the stage control strategy.
[0035] The target data C corresponding to each environmental parameter in the i-th stage control strategy is calculated according to the following formula: C = A / N*i+B; where A is the second difference corresponding to each environmental parameter, N is the number of stage control strategies in the smart home device control strategy, and B is the data corresponding to each environmental parameter in the indoor environment data. The target data corresponding to each environmental parameter in each stage control strategy is used as the set value of the smart home device that adjusts the environmental parameter, and the target data corresponding to the environmental parameter in the previous stage control strategy of the stage control strategy is used as the starting value of the smart home device that adjusts the environmental parameter, and the control strategy of the smart home device is generated.
[0036] Figure 2 It is a flowchart of another smart home device control method provided in an embodiment of the present application.
[0037] like Figure 2 As shown, the method includes:
[0038] Execute the following loop:
[0039] S201, determining whether i is greater than N, wherein i is the sequence number of the stage control strategy in the smart home device control strategy, and N is the number of the stage control strategies in the smart home device control strategy;
[0040] S202, when i is greater than N, end the loop;
[0041] S203, when i is not greater than N, controlling multiple smart home devices in the target home location according to the i-th stage control strategy, and collecting data corresponding to each environmental parameter in the indoor environment data in real time;
[0042] S204, when the data corresponding to each environmental parameter in the real-time collected indoor environmental data is the same as the target data corresponding to each environmental parameter in the i-th stage control strategy, update i with the value of i plus 1, where the target data corresponding to each environmental parameter in the N-th stage control strategy is the ideal data of each environmental parameter.
[0043] If i is equal to N plus 1, it means that all stage control strategies have been implemented and the loop ends. If i is less than N plus 1, multiple smart home devices in the target home location are controlled according to the i-th stage control strategy. Until the data corresponding to each environmental parameter in the real-time collected indoor environment data is the same as the target data corresponding to each environmental parameter in the i-th stage control strategy, it means that the i-th stage control strategy has been completed, and i is updated with the value of i plus 1.
[0044] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0045] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0046] Figure 3 Schematic diagram of a smart home device control device provided in an embodiment of the present application. Figure 3 As shown, the smart home device control device includes:
[0047] The collection module 301 is configured to collect activity data and health data of users in a target home location and outdoor environment data and indoor environment data of the target home location;
[0048] A determination module 302 is configured to determine a target home scene in which the target home location is located based on the activity data;
[0049] An acquisition module 303 is configured to acquire first reference data corresponding to the target home scene and second reference data corresponding to the health data;
[0050] A generating module 304 is configured to generate a smart home device control strategy according to the first reference data, the second reference data, the outdoor environment data and the indoor environment data;
[0051] The control module 305 is configured to control the multiple smart home devices in the target home location according to the smart home device control strategy.
[0052] According to the technical solution provided in the embodiment of the present application, the activity data and health data of the user in the target home place and the outdoor environment data and indoor environment data of the target home place are collected; the target home scene of the target home place is determined based on the activity data; the first reference data corresponding to the target home scene and the second reference data corresponding to the health data are obtained; the smart home device control strategy is generated according to the first reference data, the second reference data, the outdoor environment data and the indoor environment data; and the multiple smart home devices in the target home place are controlled according to the smart home device control strategy. The above technical means can solve the problem of the low level of intelligence in the existing technology that the control of home devices cannot be centralized, thereby improving the level of intelligence of home device control and providing users with a more comfortable life.
[0053] In some embodiments, the generation module 304 is also configured to determine the same data range for each environmental parameter in the first reference data and the second reference data, wherein both the first reference data and the second reference data contain multiple environmental parameters and the data range for each environmental parameter, and both the outdoor environmental data and the indoor environmental data contain multiple environmental parameters and the data corresponding to each environmental parameter; use the same data range for each environmental parameter as the third reference data; determine the first difference between the data corresponding to each environmental parameter in the outdoor environmental data and the indoor environmental data; determine the ideal data for each environmental parameter based on the first difference between the third reference data and the data corresponding to each environmental parameter; and generate a smart home device control strategy based on the ideal data for each environmental parameter.
[0054] The same data range of each environmental parameter in the first reference data and the second reference data is used as the third reference data to narrow the data range given by the reference data. Because the control of home appliances is actually related to the difference between indoor and outdoor environmental parameters, such as the control of air conditioners and the difference between indoor and outdoor temperatures, the first difference between the data corresponding to each environmental parameter in the outdoor environmental data and the indoor environmental data is calculated, and the ideal data of each environmental parameter is determined by combining the data range corresponding to each environmental parameter in the third reference data and the first difference corresponding to each environmental parameter. The ideal data of each environmental parameter can be determined according to the principle that the larger the first difference, the larger the data in the data range corresponding to each environmental parameter in the third reference data. If the data range corresponding to the temperature in the third reference data is 22 degrees Celsius to 25 degrees Celsius, and the difference between indoor and outdoor temperatures is 10 degrees Celsius, the ideal data of the indoor temperature can be selected as 25 degrees Celsius. The ideal data of the environmental parameter is the set value of the smart home device that adjusts the environmental parameter, that is, the control strategy of the smart home device.
[0055] For example: Indoor environment: temperature 28℃, humidity 70%, normal carbon dioxide concentration; outdoor environment: temperature 22℃, humidity 50%, sunny and windless; health data: poor sleep quality and low daytime activity; target home scene: work scene. The smart home device control strategy generated based on the above data: temperature adjustment: start the air conditioner and set the target temperature to 24℃ to lower the indoor temperature; humidity adjustment: start the dehumidifier and set the target humidity to 55%; air quality: good outdoor air quality, open the windows for ventilation; turn off the music.
[0056] In some embodiments, the generation module 304 is also configured to determine a first difference in the data corresponding to each environmental parameter in the outdoor environment data and the indoor environment data, wherein the first reference data and the second reference data both contain multiple environmental parameters and the data range of each environmental parameter, and the outdoor environment data and the indoor environment data both contain multiple environmental parameters and the data corresponding to each environmental parameter; determine preliminary data of each environmental parameter based on the first difference in the data corresponding to each environmental parameter; optimize the preliminary data of each environmental parameter based on the data range of each environmental parameter in the first reference data and the second reference data to obtain ideal data of each environmental parameter; generate a smart home device control strategy based on the ideal data of each environmental parameter.
[0057] In many scenarios, the difference between the corresponding data of indoor and outdoor environmental parameters may be the main factor in the control of smart home devices. Therefore, the preliminary data of each environmental parameter is determined based on the first difference between the corresponding data of each environmental parameter in the outdoor environmental data and the indoor environmental data (the data can be obtained based on historical data statistics). Then, the preliminary data of each environmental parameter is optimized based on the data range of each environmental parameter in the first reference data and the second reference data. For example, the difference between indoor and outdoor temperatures is 10 degrees Celsius, and the preliminary data recommends 25 degrees Celsius. The data range corresponding to the temperature in the first reference data is 22 degrees Celsius to 25 degrees Celsius, and the data range corresponding to the temperature in the second reference data is 23 degrees Celsius to 26 degrees Celsius. Combined with the first reference data and the second reference data, the temperature should be set to 23 degrees Celsius to 25 degrees Celsius. The preliminary data recommends that 25 degrees Celsius is the highest value in the reference data. In order to avoid errors, 24 degrees Celsius can be used as the ideal temperature data.
[0058] In some embodiments, the generation module 304 is also configured to input the first reference data, the second reference data, the outdoor environment data and the indoor environment data into the device control strategy model, and output the smart home device control strategy; wherein the device control strategy model has been trained and can generate a smart home device control strategy based on the first reference data, the second reference data, the outdoor environment data and the indoor environment data.
[0059] The device control strategy model can be any commonly used neural network model, such as a transform model. Training data can be input to allow the device control strategy model to output the smart home device control strategy for training. Finally, the loss between the smart home device control strategy and the label is calculated to optimize the model parameters. The training data includes the first reference data, the second reference data, the outdoor environment data, and the indoor environment data.
[0060] In some embodiments, the generation module 304 is also configured to determine a second difference between the ideal data of each environmental parameter and the data corresponding to each environmental parameter in the indoor environmental data; and generate a smart home device control strategy based on the second difference corresponding to each environmental parameter, wherein the smart home device control strategy includes multiple stage control strategies in a sequential order.
[0061] Because if you follow one control strategy, it may take too long, or the environment may change too much, causing users to be uncomfortable. Therefore, smart home devices can be controlled in stages, which is especially suitable for temperature adjustment. When a stage control strategy adjusts the temperature to a certain value, the next stage control strategy starts.
[0062] In some embodiments, the generation module 304 is also configured to calculate the target data corresponding to each environmental parameter in each stage control strategy based on the second difference corresponding to each environmental parameter, the number of stage control strategies in the smart home device control strategy, and the data corresponding to each environmental parameter in the indoor environment data; the smart home device control strategy is generated based on the target data corresponding to each environmental parameter in each stage control strategy and the target data corresponding to each environmental parameter in the previous stage control strategy of the stage control strategy.
[0063] The target data C corresponding to each environmental parameter in the i-th stage control strategy is calculated according to the following formula: C = A / N*i+B; where A is the second difference corresponding to each environmental parameter, N is the number of stage control strategies in the smart home device control strategy, and B is the data corresponding to each environmental parameter in the indoor environment data. The target data corresponding to each environmental parameter in each stage control strategy is used as the set value of the smart home device that adjusts the environmental parameter, and the target data corresponding to the environmental parameter in the previous stage control strategy of the stage control strategy is used as the starting value of the smart home device that adjusts the environmental parameter, and the control strategy of the smart home device is generated.
[0064] In some embodiments, the generation module 304 is also configured to execute the following loop: determine whether i is greater than N, where i is the sequence number of the stage control strategy in the smart home device control strategy, and N is the number of stage control strategies in the smart home device control strategy; when i is greater than N, end the loop; when i is not greater than N, control multiple smart home devices in the target home location according to the i-th stage control strategy, and collect data corresponding to each environmental parameter in the indoor environment data in real time; when the data corresponding to each environmental parameter in the real-time collected indoor environment data is the same as the target data corresponding to each environmental parameter in the i-th stage control strategy, update i with the value of i plus 1, where the target data corresponding to each environmental parameter in the N-th stage control strategy is the ideal data of each environmental parameter.
[0065] If i is equal to N plus 1, it means that all stage control strategies have been implemented and the loop ends. If i is less than N plus 1, multiple smart home devices in the target home location are controlled according to the i-th stage control strategy. Until the data corresponding to each environmental parameter in the real-time collected indoor environment data is the same as the target data corresponding to each environmental parameter in the i-th stage control strategy, it means that the i-th stage control strategy has been completed, and i is updated with the value of i plus 1.
[0066] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean 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 the present application.
[0067] Figure 4 Schematic diagram of an electronic device 4 provided in an embodiment of the present application. Figure 4 As shown, the electronic device 4 of this embodiment includes: a processor 401, a memory 402, and a computer program 403 stored in the memory 402 and executable on the processor 401. When the processor 401 executes the computer program 403, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 401 executes the computer program 403, the functions of the modules / units in the above-mentioned device embodiments are implemented.
[0068] The electronic device 4 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 4 may include, but is not limited to, a processor 401 and a memory 402. Those skilled in the art will appreciate that Figure 4 The electronic device 4 is merely an example and does not limit the electronic device 4 , and may include more or less components than those shown in the figure, or different components.
[0069] The processor 401 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0070] The memory 402 may be an internal storage unit of the electronic device 4, for example, a hard disk or memory of the electronic device 4. The memory 402 may also be an external storage device of the electronic device 4, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 4. The memory 402 may also include both an internal storage unit and an external storage device of the electronic device 4. The memory 402 is used to store computer programs and other programs and data required by the electronic device.
[0071] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0072] If the integrated module / 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 present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, and the computer program code may be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.
[0073] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical feature diagrams therein. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A smart home device control method, characterized in that: include: Collecting activity data and health data of users in a target home location as well as outdoor environment data and indoor environment data of the target home location; Determine a target home scene in which the target home location is located based on the activity data; Acquire first reference data corresponding to the target home scene and second reference data corresponding to the health data; Generate a smart home device control strategy according to the first reference data, the second reference data, the outdoor environment data, and the indoor environment data; Control multiple smart home devices in the target home location according to the smart home device control strategy.
2. The method according to claim 1, characterized in that Generating a smart home device control strategy according to the first reference data, the second reference data, the outdoor environment data, and the indoor environment data includes: Determine the same data range of each environmental parameter in the first reference data and the second reference data, wherein the first reference data and the second reference data both include multiple environmental parameters and the data range of each environmental parameter, and the outdoor environmental data and the indoor environmental data both include multiple environmental parameters and data corresponding to each environmental parameter; The data range with the same environmental parameters is used as the third reference data; Determine a first difference between data corresponding to each environmental parameter in the outdoor environmental data and the indoor environmental data; Determine ideal data of each environmental parameter according to a first difference between the third reference data and data corresponding to each environmental parameter; The smart home device control strategy is generated according to the ideal data of various environmental parameters.
3. The method according to claim 1, characterized in that: Generating a smart home device control strategy according to the first reference data, the second reference data, the outdoor environment data, and the indoor environment data includes: Determine a first difference between the data corresponding to each environmental parameter in the outdoor environmental data and the indoor environmental data, wherein the first reference data and the second reference data both include multiple environmental parameters and data ranges of each environmental parameter, and the outdoor environmental data and the indoor environmental data both include multiple environmental parameters and data corresponding to each environmental parameter; Determine preliminary data of each environmental parameter based on a first difference value of the data corresponding to each environmental parameter; Optimizing preliminary data of each environmental parameter based on the data range of each environmental parameter in the first reference data and the second reference data to obtain ideal data of each environmental parameter; The smart home device control strategy is generated according to the ideal data of various environmental parameters.
4. The method according to claim 1, characterized in that: Generating a smart home device control strategy according to the first reference data, the second reference data, the outdoor environment data, and the indoor environment data includes: Inputting the first reference data, the second reference data, the outdoor environment data and the indoor environment data into a device control strategy model, and outputting the smart home device control strategy; Among them, the device control strategy model has been trained and can generate the smart home device control strategy based on the first reference data, the second reference data, the outdoor environment data and the indoor environment data.
5. The method according to claim 2 or 3, characterized in that: The smart home device control strategy is generated according to the ideal data of each environmental parameter, including: Determine a second difference between the ideal data of each environmental parameter and the data corresponding to each environmental parameter in the indoor environmental data; The smart home device control strategy is generated based on the second difference corresponding to each environmental parameter, wherein the smart home device control strategy includes a plurality of stage control strategies in a sequential order.
6. The method according to claim 5, characterized in that Controlling multiple smart home devices in the target home location according to the smart home device control strategy includes: Execute the following loop: Determine whether i is greater than N, where i is the sequence number of the stage control strategy in the smart home device control strategy, and N is the number of the stage control strategies in the smart home device control strategy; When i is greater than N, the loop ends; When i is not greater than N, the plurality of smart home devices in the target home location are controlled according to the i-th stage control strategy, and data corresponding to each environmental parameter in the indoor environment data are collected in real time; When the data corresponding to each environmental parameter in the indoor environmental data collected in real time is the same as the target data corresponding to each environmental parameter in the i-th stage control strategy, i is updated with the value of i plus 1, where the target data corresponding to each environmental parameter in the N-th stage control strategy is the ideal data of each environmental parameter.
7. The method according to claim 5, characterized in that Generating the smart home device control strategy based on the second difference corresponding to each environmental parameter includes: Calculate target data corresponding to each environmental parameter in each stage control strategy based on the second difference corresponding to each environmental parameter, the number of stage control strategies in the smart home device control strategy, and the data corresponding to each environmental parameter in the indoor environment data; The smart home device control strategy is generated by the target data corresponding to each environmental parameter in each stage control strategy and the target data corresponding to each environmental parameter in the previous stage control strategy of the stage control strategy.
8. A smart home equipment control device, characterized in that: include: A collection module configured to collect activity data and health data of users in a target home location and outdoor environment data and indoor environment data of the target home location; A determination module, configured to determine a target home scene in which the target home location is located based on the activity data; an acquisition module, configured to acquire first reference data corresponding to the target home scene and second reference data corresponding to the health data; A generating module, configured to generate a smart home device control strategy according to the first reference data, the second reference data, the outdoor environment data and the indoor environment data; The control module is configured to control multiple smart home devices in the target home location according to the smart home device control strategy.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
