Disclosure of Invention
This section is intended to outline some aspects of embodiments of the application and to briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section as well as in the description of the application and in the title of the application, which may not be used to limit the scope of the application.
In order to solve the technical problems, the invention provides the following technical scheme:
In a first aspect, an embodiment of the present invention provides an intelligent home control method, which specifically includes the following steps:
S1, data acquisition, namely detecting environmental parameters and personnel activities in a room through sensors arranged in each room and intelligent equipment worn by a user;
S2, analyzing and modeling the data, namely analyzing the collected environmental data and behavior data by using a machine learning algorithm, establishing a user behavior model and an environmental model, and predicting the changes of the user behavior and the environment;
s3, intelligent contextual model switching, namely presetting a plurality of contextual models according to the analyzed behavioral models, and automatically switching to corresponding contextual models according to user behaviors and environmental data monitored in real time;
S4, the intelligent energy-saving algorithm is applied, namely continuously collecting the environmental sensor data, analyzing the current environmental condition through the intelligent energy-saving algorithm, and dynamically adjusting the working state of the intelligent household equipment according to the environmental data analysis result;
and S5, user feedback and system optimization, namely collecting the user feedback and suggestions through an application program, and continuously optimizing the control method of the intelligent home according to the suggestions.
As a preferable scheme of the intelligent home control method, the construction of the user behavior model in the S2 specifically comprises the following steps:
Preprocessing the received user behavior data, wherein the preprocessing comprises action data, heart rate data and environment data;
sleep behavior judgment, namely obtaining a comprehensive sleep state judgment value through comprehensive calculation based on the preprocessed data to judge;
and (3) mode switching, namely switching to a sleep mode and adjusting the associated equipment when the user is judged to be in the sleep state.
As a preferable scheme of the intelligent home control method, the comprehensive sleep state judgment value calculation formula is as follows:
wherein A (t) is user action data at time t and represents action amplitude or frequency of a user at time t, H (t) is heart rate data at time t and represents heart rate of the user at time t, E (t) is environment data at time t and represents temperature, humidity and illumination intensity of surrounding environment of the user, alpha, beta and gamma are weight coefficients and are adjusted according to specific application scenes, mu A,μH,μE respectively represents average values of the action data, the heart rate data and the environment data, sigma A,σH,σE respectively represents standard deviations of the action data, the heart rate data and the environment data, and n, m and p respectively represent sampling points of the action data, the heart rate data and the environment data.
The intelligent home control method is characterized in that when the S (t) value is smaller and reaches a preset sleep judgment threshold, the user is in a relatively static state and can be judged to be in a sleep state, when the S (t) value is larger and is larger than the preset sleep judgment threshold, the user is in an active state and does not accord with sleep characteristics, and the specific expression formula is as follows:
wherein S is a preset threshold, and D is a sleep state index.
As a preferable scheme of the intelligent home control method, the construction of the environment model in the S2 specifically comprises the following steps:
preprocessing the collected environmental data, including temperature, humidity, illumination intensity and equipment power consumption;
analyzing the current environment state through complex functions based on the environment data;
and adjusting the working state of the equipment according to the analysis result, thereby realizing the energy-saving aim.
As a preferable scheme of the intelligent home control method, the environment data analysis formula is specifically as follows:
Wherein E (T) is total environmental energy consumption at time T, T (T), H (T), L (T) and P (T) are respectively environmental temperature, humidity, illumination intensity and equipment power consumption data, mu T、μH、μL、μP is respectively average value of the temperature, humidity, illumination and equipment power consumption data, sigma T、σH、σL、σP is respectively standard deviation of the temperature, humidity, illumination and equipment power consumption data, n, m, P, q is respectively sampling point number of the temperature, humidity, illumination and equipment power consumption data, and alpha, beta, gamma and delta are weight coefficients.
The invention relates to an intelligent home control method, which is a preferable scheme, wherein the E (t) value is smaller and the difference value between the E (t) value and a preset threshold value is within a preset range, the E (t) value and the preset threshold value indicate that the environmental data and the equipment power consumption both accord with energy-saving characteristics, the system judges that the current equipment working state is an energy-saving state, when the E (t) value is larger and the difference value between the E (t) value and the preset threshold value exceeds the preset range, the E (t) value indicates that the environmental data and the equipment power consumption deviate from the energy-saving characteristics, and the system needs to adjust the equipment working state to achieve an energy-saving target, and the specific formula is as follows:
wherein the method comprises the steps of E is a preset threshold value; Whether the energy-saving state index is adopted.
In a second aspect, in order to further solve the problem in smart home control, an embodiment of the present invention provides a smart home control system, including:
The sensor module is responsible for collecting environmental data and user behavior data, including temperature, humidity, illumination, user heart rate and intelligent equipment power consumption data;
the data processing module is used for preprocessing and storing the data collected by the sensor;
the intelligent control module is used for analyzing and deciding the preprocessed data and executing corresponding equipment control;
The user interface module is used for interacting with a user, providing system state information and receiving user instructions;
communication module responsible for data communication between modules and between system and external equipment
As a preferable scheme of the intelligent home control system, the invention specifically comprises the following steps:
the data processing module comprises a data preprocessing unit, a data storage unit, a data processing unit and a data processing unit, wherein the data preprocessing unit is used for denoising and normalizing data;
The intelligent control module comprises a data analysis unit, a decision unit, a control unit and a control unit, wherein the data analysis unit analyzes environmental data and user behavior data through an algorithm, and the decision unit decides the working state of equipment according to analysis results and executes a corresponding control strategy;
The user interface module comprises a display unit, an input unit, a control unit and a control unit, wherein the display unit displays the current state of the system, the energy consumption data, the working state of equipment and other information;
The communication module comprises a wired communication unit and a wireless communication unit, wherein the wired communication unit is used for realizing communication among the modules in a wired mode, and the wireless communication unit is used for realizing communication among the modules in a wireless mode and connection with external equipment.
In a third aspect, an embodiment of the present invention further provides a computer device, including a memory and a processor, where the memory stores a computer program, where the computer program when executed by the processor implements any step of a smart home control method according to the first aspect of the present invention.
The invention has the beneficial effects that:
1. through real-time analysis of the user behavior data, the system can automatically detect the state of the user and switch to a corresponding mode according to the detection result. Through automatic control and dynamic environment adjustment, the system significantly improves the quality of life of the user. The user does not need to manually operate the intelligent equipment, and the system can automatically adapt to living habits and environmental changes of the user and provide a more comfortable and convenient living environment.
2. Through real-time monitoring environmental data (such as temperature, humidity, illumination intensity and the like), the working state of various intelligent devices is dynamically adjusted, so that the household energy utilization is more efficient. The system is innovative in intelligent control and dynamic adjustment, so that the household energy utilization is more efficient.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to specific embodiments thereof which are illustrated in the appended drawings.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, but the present invention may be practiced in other ways other than those described herein, and persons skilled in the art will readily appreciate that the present invention is not limited to the specific embodiments disclosed below.
Further, reference herein to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic can be included in at least one implementation of the invention. The appearances of the phrase "in one embodiment" in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments.
Example 1
Referring to fig. 1-2, for a first embodiment of the present invention, the present invention provides an intelligent home control method, which specifically includes the following steps:
S1, data acquisition, namely detecting environmental parameters and personnel activities in a room through sensors arranged in each room and intelligent equipment worn by a user;
S2, analyzing and modeling the data, namely analyzing the collected environmental data and behavior data by using a machine learning algorithm, establishing a user behavior model and an environmental model, and predicting the changes of the user behavior and the environment;
s3, intelligent contextual model switching, namely presetting a plurality of contextual models according to the analyzed behavioral models, and automatically switching to corresponding contextual models according to user behaviors and environmental data monitored in real time;
S4, the intelligent energy-saving algorithm is applied, namely continuously collecting the environmental sensor data, analyzing the current environmental condition through the intelligent energy-saving algorithm, and dynamically adjusting the working state of the intelligent household equipment according to the environmental data analysis result;
and S5, user feedback and system optimization, namely collecting the user feedback and suggestions through an application program, and continuously optimizing the control method of the intelligent home according to the suggestions.
The construction of the user behavior model in S2 specifically includes the following steps:
Preprocessing the received user behavior data, wherein the preprocessing comprises action data, heart rate data and environment data;
sleep behavior judgment, namely obtaining a comprehensive sleep state judgment value through comprehensive calculation based on the preprocessed data to judge;
and (3) mode switching, namely switching to a sleep mode and adjusting the associated equipment when the user is in the sleep state, and intelligently judging the behavior of the user and adjusting the equipment by processing and analyzing the real-time data.
Further, the comprehensive sleep state judgment value has the following calculation formula:
Wherein A (t) is user action data at time t and represents action amplitude or frequency of a user at time t, H (t) is heart rate data at time t and represents heart rate of the user at time t, E (t) is environment data at time t and represents temperature, humidity and illumination intensity of surrounding environment of the user, alpha, beta and gamma are weight coefficients and are adjusted according to specific application scenes, mu A,μH,μE respectively represents average values of the action data, the heart rate data and the environment data, sigma A,σH,σE respectively represents standard deviations of the action data, the heart rate data and the environment data, and n, m and p respectively represent sampling points of the action data, the heart rate data and the environment data.
Further, when the S (t) value is smaller and reaches a preset sleep judgment threshold, the user is in a relatively static state and can be judged to be in a sleep state, and when the S (t) value is larger and is larger than the preset sleep judgment threshold, the user is in an active state and does not accord with sleep characteristics, and the specific expression is as follows:
And S is a preset threshold value, D is a sleep state index, and the behavior of the user is judged by comparing the judgment of the S (t) value with the preset threshold value.
Further, the construction of the environmental model in S2 specifically includes the following steps:
preprocessing the collected environmental data, including temperature, humidity, illumination intensity and equipment power consumption;
analyzing the current environment state through complex functions based on the environment data;
And adjusting the working state of the equipment according to the analysis result, so as to realize the energy-saving target, analyze the current environmental data in real time, and adjust the equipment, so that the comfort level of a user can be improved while the energy-saving target is realized.
Further, the environmental data analysis formula is specifically as follows:
Wherein E (T) is total environmental energy consumption at time T, T (T), H (T), L (T) and P (T) are respectively environmental temperature, humidity, illumination intensity and equipment power consumption data, mu T、μH、μL、μP is respectively average value of the temperature, humidity, illumination and equipment power consumption data, sigma T、σH、σL、σP is respectively standard deviation of the temperature, humidity, illumination and equipment power consumption data, n, m, P, q is respectively sampling point number of the temperature, humidity, illumination and equipment power consumption data, and alpha, beta, gamma and delta are weight coefficients.
When the E (t) value is larger and the difference value between the E (t) value and the preset threshold exceeds the preset range, the environment data and the equipment power consumption deviate from the energy-saving characteristic, and the system needs to adjust the equipment working state to achieve the energy-saving target, wherein the specific formula is as follows:
wherein the method comprises the steps of E is a preset threshold value; in order to determine whether the energy-saving state index is the energy-saving state index, the equipment is adjusted in real time through environmental factors, so that the equipment is in an energy-saving state.
The embodiment also provides an intelligent home control system, which comprises:
The sensor module is responsible for collecting environmental data and user behavior data, including temperature, humidity, illumination, user heart rate and intelligent equipment power consumption data;
the data processing module is used for preprocessing and storing the data collected by the sensor;
the intelligent control module is used for analyzing and deciding the preprocessed data and executing corresponding equipment control;
The user interface module is used for interacting with a user, providing system state information and receiving user instructions;
And the communication module is responsible for data communication between the modules and between the system and external equipment, and the steps of the method are realized through cooperation among the modules.
Further, each module specifically includes:
the data processing module comprises a data preprocessing unit, a data storage unit, a data processing unit and a data processing unit, wherein the data preprocessing unit is used for denoising and normalizing data;
The intelligent control module comprises a data analysis unit, a decision unit, a control unit and a control unit, wherein the data analysis unit analyzes environmental data and user behavior data through an algorithm, and the decision unit decides the working state of equipment according to analysis results and executes a corresponding control strategy;
The user interface module comprises a display unit, an input unit, a control unit and a control unit, wherein the display unit displays the current state of the system, the energy consumption data, the working state of equipment and other information;
The communication module comprises a wired communication unit and a wireless communication unit, wherein the wired communication unit is used for realizing communication among the modules in a wired mode, the wireless communication unit is used for realizing communication among the modules and connection with external equipment in a wireless mode, the wired mode can be an Ethernet mode or the like, and the wireless mode can be a Wi-Fi, zigbee, bluetooth mode or the like.
The embodiment also provides computer equipment, which is suitable for the condition of the intelligent home control method and comprises a memory and a processor, wherein the memory is used for storing computer executable instructions, and the processor is used for executing the computer executable instructions to realize the intelligent home control method as provided in the embodiment.
Example 2
Referring to fig. 3, a second embodiment of the present invention, which is different from the first embodiment, is provided with experimental comparison data of the present invention with the prior art in order to verify the advantageous effects thereof.
In the embodiment, two sets of intelligent home systems are adopted, wherein the system A is a traditional intelligent home system, and the system B is an intelligent home system adopting my invention.
Experimental environment:
the experimental place is a common house;
The experimental period is 7 days;
user behavior simulation, namely simulating activities of a user at home, including sleeping, watching television, cooking, bathing and the like;
and environmental data acquisition, namely detecting environmental data and user behavior data in real time by using a temperature sensor, a humidity sensor, an illumination sensor, a behavior monitor and the like.
The experimental steps are as follows:
The first day, two sets of systems are installed and configured, preliminary tests are carried out to ensure the normal operation of the systems, and the second to seventh days, formal experiments are carried out. And recording the working conditions of two sets of systems each day, including user behavior data, environment data and the working states of various intelligent devices. And simultaneously, recording the energy consumption condition.
The specific experimental data are as follows:
from the analysis of the experimental data described above, we can conclude that:
And the accuracy of user behavior analysis is that the system B can accurately judge the user state through real-time user behavior analysis and switch modes according to the state. For example, when the user falls asleep, system B can automatically turn off unnecessary electrical devices, entering sleep mode. This function shows high accuracy and reliability in experiments.
The system B dynamically adjusts the working state of the equipment by monitoring the environmental data in real time, so that the household energy utilization is more efficient. For example, when the illumination intensity is reduced, the system B automatically adjusts the light brightness, improving the comfort of the user, while saving energy.
Energy consumption comparison it can be seen from the experimental data that the total electrical energy consumption of system B is significantly lower than that of system a. In the experiment of 7 days, the average electric energy consumption of the system A is 5.13kWh, and the average electric energy consumption of the system B is 4.06kWh, so that the energy-saving effect is remarkable.
Through the comparative analysis, the intelligent home control method disclosed by the invention has obvious advantages in the aspects of user behavior analysis and environment data dynamic adjustment. These advantages not only improve the automation degree and user experience of the system, but also greatly reduce the energy consumption and realize the optimization of the household energy utilization.
It should be noted that the above embodiments are only for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that the technical solution of the present invention may be modified or substituted without departing from the spirit and scope of the technical solution of the present invention, which is intended to be covered in the scope of the claims of the present invention.