A smart home control and regulation system based on the Internet
Through the Internet-based smart home control and adjustment system, data collection and clustering algorithms are used to identify user habits, train prediction models, and realize automatic adjustment of light intensity. This solves the problem that existing home lighting systems are difficult to adapt to user habits and improves personality. Transform the lighting experience.
Patent Information
- Application Number
- CN202311838048.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2043-12-28
AI Technical Summary
Existing home lighting systems lack adaptive adjustment methods and are difficult to effectively reflect users' real habits, resulting in insufficient personalized lighting experience.
Design an Internet-based smart home control and regulation system that automatically identifies users and provides customized lighting strategies, including installed power, through the lighting habit data collection module, crowd clustering module, lighting intensity prediction model training module and member identification module. Sensors, light intensity sensors and temperature sensors collect data and classify user habit types through clustering algorithms, train lighting intensity prediction models, and adjust light intensity in real time.
It improves users' home experience and provides personalized, comfortable and efficient lighting control to meet the needs of different users.
Smart Images

Figure CN117687312B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of home intelligent control, and in particular to an Internet-based intelligent home control and regulation system. Background Art
[0002] Wooden home customization is an increasingly popular trend in interior decoration and home design. It emphasizes uniqueness, quality and personalization, providing consumers with the opportunity to create their ideal home;
[0003] Based on the personalization of wooden home furnishing customization, it is also necessary to reflect the adaptive home experience such as various lighting controls in wooden home furnishings; this trend is not only reflected in providing comfortable, energy-saving and convenient living experience, but also emphasizes the importance of personalization and user habits;
[0004] The smart lighting system in the whole house home customization not only provides users with more customization options, but also makes family life more intelligent, comfortable and efficient. It has become a part of modern life, designed to meet the needs of different users and provide a better home experience;
[0005] However, there is currently a lack of adaptive adjustment methods for home lighting, or it is simply based on the historical data of home users. However, the amount of historical data of home users is small and it is difficult to effectively reflect the real habits of users;
[0006] To this end, the present invention proposes an Internet-based smart home control and regulation system. Summary of the invention
[0007] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes an Internet-based smart home control and adjustment system, which automatically identifies the identity of the user who opens the home and provides the user with a customized lighting strategy to improve the user's home experience.
[0008] To achieve the above-mentioned purpose, according to Embodiment 1 of the present invention, an Internet-based smart home control and adjustment system is proposed, comprising a lighting habit data collection module, a crowd clustering module, a lighting intensity prediction model training module, a member identification module and a lighting decision module; wherein each module is electrically connected;
[0009] A lighting habit data collection module is used to collect lighting habit data of each user at home through the Internet;
[0010] The data on lighting habits of each user in the home collected through the Internet includes:
[0011] A power sensor, a light intensity sensor, and a temperature sensor are installed in each household, and the power sensor, the light intensity sensor, and the temperature sensor are electrically connected to the home intelligent control terminal;
[0012] After the home design of each household is completed, the home intelligent control terminal collects several lighting habit sets of each user in the family and sends the lighting habit sets to the home control background;
[0013] The lighting habit data collection module sends the lighting habit data of each user to the crowd clustering module;
[0014] A crowd clustering module, used to classify users into several lighting habit types based on the lighting habit data of each user, and obtain clustering result data and classification results;
[0015] The method of dividing users into several lighting habit types and obtaining clustering result data and classification results is as follows:
[0016] The number of each user is marked as i, and the number of each lighting habit set in the lighting habit data of the i-th user is marked as xi;
[0017] Clustering algorithms are used to cluster all lighting habit sets to obtain clustering result data;
[0018] According to the clustering result data, the lighting habit type is classified for each user to obtain the classification result;
[0019] Wherein, obtaining clustering result data includes:
[0020] Step 11: Preset the number of clusters K;
[0021] Step 12: Treat each lighting habit set as an N-dimensional discrete point, wherein N is the number of elements in the lighting habit set, and the coordinates of the N-dimensional discrete point in each dimension correspond to a parameter in the lighting habit set;
[0022] Step 13: Randomly select K N-dimensional discrete points from all N-dimensional discrete points as initial cluster centers, and the remaining N-dimensional discrete points as non-initial cluster centers;
[0023] Step 14: For each non-initial cluster center, calculate the Euclidean distance to each initial cluster center, and divide each N-dimensional discrete point into the cluster cluster where the nearest initial cluster center is located;
[0024] Step 15: Calculate the average value of the parameters corresponding to each dimension of the N-dimensional discrete points in each cluster, and form a new N-dimensional discrete point with the average value of the parameters corresponding to each dimension, and use the new N-dimensional discrete point as the new cluster center of the cluster;
[0025] Step 16: Recalculate the Euclidean distance from each N-dimensional discrete point to each new cluster center, and re-divide each N-dimensional discrete point into the cluster where the nearest new cluster center is located;
[0026] Step 17: Repeat steps 15-16 until the N-dimensional discrete points in all the divided clusters no longer change, mark the number of each cluster as k, k = 1, 2, 3, ... K; obtain all the N-dimensional discrete points contained in each cluster, and form a discrete point set with all the N-dimensional discrete points therein; the clustering result data includes the corresponding relationship between the numbers of all clusters and the discrete point sets;
[0027] The method of classifying the lighting habit type for each user is as follows:
[0028] Correspond each cluster number to a lighting habit type number;
[0029] For the i-th user, count the distribution of all lighting habit sets in his lighting habit data in the discrete point set;
[0030] For the i-th user, traverse and retrieve the discrete point set with the highest proportion of the user's lighting habit set among all discrete point sets, and use the number of the cluster corresponding to the discrete point set as the lighting habit type of the user; the classification result includes the corresponding relationship between the numbers of all users and the numbers of the lighting habit types;
[0031] The crowd clustering module sends the clustering result data to the lighting intensity prediction model training module, and sends the classification result to the member identification module;
[0032] A lighting intensity prediction model training module, used for training a lighting intensity prediction model that outputs a lighting intensity prediction value for each lighting habit type based on clustering result data;
[0033] The method of training the lighting intensity prediction model that outputs the lighting intensity prediction value for each lighting habit type is as follows:
[0034] For each lighting habit type:
[0035] For each lighting habit set in the discrete point set corresponding to the number of the lighting habit type, the lighting intensity in the home in the lighting habit set is used as the real lighting intensity label, and the remaining parameters in the lighting habit set constitute a lighting intensity feature vector;
[0036] Each group of lighting intensity feature vectors in the discrete point set is used as the input of the lighting intensity prediction model, the lighting intensity prediction model takes the predicted lighting intensity of each lighting intensity feature vector as the output, takes the real lighting intensity label corresponding to the lighting intensity feature vector in the discrete point set as the prediction target, and takes minimizing the sum of prediction errors of all predicted lighting intensities to the real lighting intensity label as the training target; the lighting intensity prediction model is trained until the sum of prediction errors reaches convergence and the training is stopped;
[0037] The lighting intensity prediction model training module sends the lighting intensity prediction model to the lighting decision module;
[0038] A member identification module, used to collect a set of home opening actions of the user when the user opens the home, and identify the user based on the set of home opening actions and the classification result;
[0039] The method of collecting the user's home opening action set is:
[0040] When the user opens the home, the force used by the user to open the home, the speed at which the home door pops up, and the position of the user's hand are collected to form a home opening action set;
[0041] The method of identifying the user identity based on the set of home opening actions is:
[0042] Collect the historical home opening action sets of all users in the family;
[0043] Collect the number of member users in the family and mark the number of member users as K1;
[0044] Use a clustering algorithm on the historical home opening action set to obtain K1 home action clusters, each of which corresponds to a member user;
[0045] Each time the user opens the home, determine the home action cluster to which the home opening action set corresponding to the home opening belongs, and use the identity of the member user corresponding to the home action cluster as the user identity;
[0046] The member identification module sends the identified user identity to the lighting decision module;
[0047] A lighting decision module is used to automatically control the lighting intensity of the home lights based on the user's identity and using the corresponding lighting intensity prediction model each time the user opens the home.
[0048] The method of using the corresponding lighting intensity prediction model to automatically control the lighting intensity of the home lights is:
[0049] Reading the lighting intensity prediction model corresponding to the user identity as a control model;
[0050] Collect the lighting intensity feature vector corresponding to the time when the home is turned on as the real-time lighting intensity feature vector;
[0051] The real-time lighting intensity feature vector is input into the control model to obtain a predicted value of the lighting intensity, and the home intelligent control terminal sets the light intensity in the home to the predicted value of the lighting intensity.
[0052] According to Embodiment 2 of the present invention, a smart home control and adjustment method based on the Internet is proposed, comprising the following steps:
[0053] Collect data on lighting habits of each user at home through the Internet;
[0054] Based on the lighting habit data of each user, the users are divided into several lighting habit types to obtain clustering result data and classification results;
[0055] Based on the clustering result data, a lighting intensity prediction model is trained to output a lighting intensity prediction value for each lighting habit type;
[0056] When the user opens the home, the user's home opening action set is collected, and the user identity is identified based on the home opening action set and the classification result;
[0057] Every time a user opens the home, the lighting intensity in the home is automatically controlled using the corresponding lighting intensity prediction model based on the user's identity.
[0058] An electronic device according to Embodiment 3 of the present invention includes: a processor and a memory, wherein the memory stores a computer program that can be called by the processor;
[0059] The processor executes the above-mentioned Internet-based smart home control and adjustment method by calling the computer program stored in the memory.
[0060] A computer-readable storage medium according to embodiment 4 of the present invention stores a rewritable computer program;
[0061] When the computer program is executed on a computer device, the computer device is enabled to execute the above-mentioned Internet-based smart home control and adjustment method.
[0062] Compared with the prior art, the present invention has the following beneficial effects:
[0063] The present invention sets a lighting habit data collection module to collect the lighting habit data of each user in the home, sets a crowd clustering module to divide the users into several lighting habit types based on the lighting habit data of each user, obtains clustering result data and classification results, sets a lighting intensity prediction model training module to train a lighting intensity prediction model that outputs a lighting intensity prediction value for each lighting habit type based on the clustering result data, sets a member identification module to collect the user's home opening action set when the user opens the home, and identifies the user's identity based on the home opening action set and the classification result, and sets a lighting decision module to automatically control the lighting intensity of the home based on the user's identity each time the user opens the home; by automatically identifying the identity of the user who opens the home, a customized lighting strategy is provided for the user, thereby improving the user's experience of using the home. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1 This is a module connection diagram of an Internet-based smart home control and regulation system in Embodiment 1 of the present invention;
[0065] Figure 2 This is a flow chart of an Internet-based smart home control and adjustment method in Embodiment 2 of the present invention;
[0066] Figure 3 This is a schematic diagram of the structure of an electronic device in Embodiment 3 of the present invention;
[0067] Figure 4 This is a schematic diagram of the computer-readable storage medium structure in Example 4 of the present invention. DETAILED DESCRIPTION
[0068] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0069] Example 1
[0070] like Figure 1 As shown, an Internet-based smart home control and regulation system includes a lighting habit data collection module, a crowd clustering module, a lighting intensity prediction model training module, a member identification module, and a lighting decision module; wherein each module is electrically connected;
[0071] The lighting habit data collection module is mainly used to collect lighting habit data of each user in the home through the Internet;
[0072] It is understandable that the home furnishings include but are not limited to home cabinets, home bookcases, home wardrobes, etc. When users open various home furnishings, they usually need to provide additional lighting in the home to help users find the target better. However, different users have different requirements for the intensity of lighting, that is, lighting habits are different.
[0073] In a preferred embodiment, the collecting of lighting habit data of each user at home via the Internet includes:
[0074] A power sensor, a light intensity sensor, and a temperature sensor are installed in each household, and the power sensor, the light intensity sensor, and the temperature sensor are electrically connected to a home intelligent control terminal, and the home intelligent control terminal is wirelessly connected to a home control background via the Internet; it can be understood that the home intelligent control terminal is a client in the home, and the home control background is a remote server;
[0075] After the home design of each household is completed, the home intelligent control terminal collects several lighting habit sets of each user in the family and sends the lighting habit sets to the home control background; the elements in the lighting habit set include the lighting intensity in the home adjusted by each user, the ambient light intensity and the ambient temperature at the location of the home; it can be understood that the lighting intensity can be measured by collecting the working power of the lights in the home, and the ambient light intensity and the ambient temperature can be obtained in real time using a light intensity sensor and a temperature sensor respectively;
[0076] In a preferred embodiment, the method of collecting a plurality of lighting habit sets of each user in the family is:
[0077] For each user in the home, after the user opens the home several times, the lighting intensity is automatically controlled at the preset initial lighting intensity, and the user is waited for to manually adjust the lighting intensity in the home, and the lighting intensity, ambient light intensity and ambient temperature at the end of the adjustment are collected;
[0078] The lighting habit data collection module sends the lighting habit data of each user to the crowd clustering module;
[0079] The crowd clustering module is mainly used to classify users into several lighting habit types based on the lighting habit data of each user, and obtain clustering result data and classification results;
[0080] In a preferred embodiment, the method of dividing users into several lighting habit types based on the lighting habit data of each user and obtaining clustering result data and classification results is as follows:
[0081] The number of each user is marked as i, and the number of each lighting habit set in the lighting habit data of the i-th user is marked as xi;
[0082] Clustering algorithms are used to cluster all lighting habit sets to obtain clustering result data;
[0083] According to the clustering result data, the lighting habit type is classified for each user to obtain the classification result;
[0084] The clustering algorithm is used to cluster all lighting habit sets to obtain clustering result data, including:
[0085] Step 11: Preset the number of clusters K;
[0086] Step 12: Treat each lighting habit set as an N-dimensional discrete point; wherein N is the number of elements in the lighting habit set, and the coordinates of the N-dimensional discrete point in each dimension correspond to a parameter in the lighting habit set; as an example of an N-dimensional discrete point, the N-dimensional discrete point may be (60, 400, 33), that is, the value of N is 3, the power of the light is 60 watts, the ambient light intensity is 400 lumens, and the ambient temperature is 33 degrees Celsius; each of the three parameters corresponds to a dimensional coordinate;
[0087] Step 13: Randomly select K N-dimensional discrete points from all N-dimensional discrete points as initial cluster centers, and the remaining N-dimensional discrete points as non-initial cluster centers;
[0088] Step 14: For each non-initial cluster center, calculate the Euclidean distance to each initial cluster center, and divide each N-dimensional discrete point into the cluster cluster where the nearest initial cluster center is located;
[0089] Step 15: Calculate the average value of the parameters corresponding to each dimension of the N-dimensional discrete points in each cluster, and form a new N-dimensional discrete point with the average value of the parameters corresponding to each dimension, and use the new N-dimensional discrete point as the new cluster center of the cluster;
[0090] Step 16: Recalculate the Euclidean distance from each N-dimensional discrete point to each new cluster center, and re-divide each N-dimensional discrete point into the cluster where the nearest new cluster center is located;
[0091] Step 17: Repeat steps 15-16 until the N-dimensional discrete points in all the divided clusters no longer change, mark the number of each cluster as k, k = 1, 2, 3, ... K; obtain all the N-dimensional discrete points contained in each cluster, and form a discrete point set with all the N-dimensional discrete points therein; the clustering result data includes the corresponding relationship between the numbers of all clusters and the discrete point sets;
[0092] It can be understood that the lighting habit sets in each of the discrete point sets have similar properties, that is, the habits expressed are similar;
[0093] Furthermore, the method of classifying the lighting habit type for each user according to the clustering result data is as follows:
[0094] Correspond each cluster number to a lighting habit type number;
[0095] For the i-th user, count the distribution of all lighting habit sets in the lighting habit data of the user in the discrete point sets; specifically, the distribution refers to counting the number of all lighting habit sets in each discrete point set;
[0096] For the i-th user, traverse and retrieve the discrete point set with the highest proportion of the user's lighting habit set among all discrete point sets, and use the number of the cluster corresponding to the discrete point set as the lighting habit type of the user; the classification result includes the corresponding relationship between the numbers of all users and the numbers of the lighting habit types;
[0097] The crowd clustering module sends the clustering result data to the lighting intensity prediction model training module, and sends the classification result to the member identification module; it can be understood that the classification result can classify each user into a discrete point set with similar habits, so the lighting habit set in each discrete point set can be used to analyze the lighting habits of the crowd in their homes;
[0098] The lighting intensity prediction model training module is mainly used to train a lighting intensity prediction model that outputs a lighting intensity prediction value for each lighting habit type based on the clustering result data;
[0099] The method of training a lighting intensity prediction model that outputs a lighting intensity prediction value for each lighting habit type based on the clustering result data is as follows:
[0100] For each lighting habit type:
[0101] For each lighting habit set in the discrete point set corresponding to the number of the lighting habit type, the lighting intensity in the home in the lighting habit set is used as the real lighting intensity label, and the remaining parameters in the lighting habit set constitute a lighting intensity feature vector;
[0102] Each group of lighting intensity feature vectors in the discrete point set is used as the input of the lighting intensity prediction model, the lighting intensity prediction model takes the predicted lighting intensity of each lighting intensity feature vector as the output, takes the real lighting intensity label corresponding to the lighting intensity feature vector in the discrete point set as the prediction target, and takes minimizing the sum of prediction errors of all predicted lighting intensities to the real lighting intensity label as the training target; the lighting intensity prediction model is trained until the sum of prediction errors reaches convergence, and the training is stopped, and a lighting intensity prediction model is trained to output the predicted lighting intensity according to the lighting intensity feature vector for the lighting habit type (i.e., a group of people); preferably, the lighting intensity prediction model is a polynomial regression model or an SVR model; the sum of prediction errors may be a mean square error;
[0103] The lighting intensity prediction model training module sends the lighting intensity prediction model to the lighting decision module;
[0104] The member identification module is mainly used to collect the user's home opening action set when the user opens the home, and identify the user's identity based on the home opening action set and the classification result;
[0105] In a preferred embodiment, when the user opens the home, the method of collecting the user's home opening action set is:
[0106] When the user opens the home, the force used by the user to open the home, the speed at which the home door pops up, and the position of the user's hand are collected to form a home opening action set; it is understandable that each user's habit of opening the home is often consistent, that is, the force used and the position of the hand generally have a small change range, so the specific user identity can be determined based on the home opening action;
[0107] Furthermore, the method of identifying the user identity based on the set of home opening actions is:
[0108] Collect the historical home opening action sets of all users in the family;
[0109] Collect the number of member users in the family and mark the number of member users as K1; it is understandable that the number of member users can be pre-entered in the home intelligent control terminal by family members;
[0110] Use a clustering algorithm on the historical home opening action set to obtain K1 home action clusters, each of which corresponds to a member user;
[0111] Each time the user opens the home, determine the home action cluster to which the home opening action set corresponding to the home opening belongs, and use the identity of the member user corresponding to the home action cluster as the user identity;
[0112] The member identification module sends the identified user identity to the lighting decision module;
[0113] The lighting decision module is mainly used to automatically control the lighting intensity of the home lights based on the user's identity and using the corresponding lighting intensity prediction model each time the user opens the home.
[0114] In a preferred embodiment, the method of automatically controlling the lighting intensity of the home lights based on the user identity and using the corresponding lighting intensity prediction model is as follows:
[0115] Reading the lighting intensity prediction model corresponding to the user identity as a control model;
[0116] Collect the lighting intensity feature vector corresponding to the time when the home is turned on as the real-time lighting intensity feature vector;
[0117] The real-time lighting intensity feature vector is input into the control model to obtain a predicted value of the lighting intensity, and the home intelligent control terminal sets the light intensity in the home to the predicted value of the lighting intensity; by automatically identifying the identity of the user who opens the home, a customized lighting strategy is provided for the user to improve the user experience of the home.
[0118] Example 2
[0119] like Figure 2 As shown, a smart home control and adjustment method based on the Internet includes the following steps:
[0120] Collect data on lighting habits of each user at home through the Internet;
[0121] Based on the lighting habit data of each user, the users are divided into several lighting habit types to obtain clustering result data and classification results;
[0122] Based on the clustering result data, a lighting intensity prediction model is trained to output a lighting intensity prediction value for each lighting habit type;
[0123] When the user opens the home, the user's home opening action set is collected, and the user identity is identified based on the home opening action set and the classification result;
[0124] Every time a user opens the home, the lighting intensity in the home is automatically controlled using the corresponding lighting intensity prediction model based on the user's identity.
[0125] Example 3
[0126] Figure 3 1 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 3As shown, according to another aspect of the present application, an electronic device 100 is also provided. The electronic device 100 may include one or more processors and one or more memories. The memories store computer readable codes, and when the computer readable codes are executed by one or more processors, the above-mentioned Internet-based smart home control and adjustment method can be executed.
[0127] The method or system according to the embodiment of the present application can also be used by Figure 3 The electronic device shown in the figure is implemented by the electronic device architecture. Figure 3 As shown, the electronic device 100 may include a bus 101, one or more CPUs 102, a read-only memory (ROM) 103, a random access memory (RAM) 104, a communication port 105 connected to a network, an input / output component 106, a hard disk 107, etc. The storage device in the electronic device 100, such as the ROM 103 or the hard disk 107, may store the Internet-based smart home control and adjustment method provided in the present application. The Internet-based smart home control and adjustment method may, for example, include the following steps: collecting lighting habit data of each user in the home through the Internet; based on the lighting habit data of each user, dividing the user into several lighting habit types, and obtaining clustering result data and classification results; based on the clustering result data, training a lighting intensity prediction model that outputs a lighting intensity prediction value for each lighting habit type; when the user opens the home, collecting the user's home opening action set, and identifying the user's identity based on the home opening action set and the classification result; each time the user opens the home, based on the user's identity, using the corresponding lighting intensity prediction model to automatically control the lighting intensity of the lights in the home;
[0128] Furthermore, the electronic device 100 may further include a user interface 108. Figure 3 The architecture shown is only exemplary and can be omitted according to actual needs when implementing different devices. Figure 3 One or more components of an electronic device are shown.
[0129] Example 4
[0130] Figure 4 Schematic diagram of the computer-readable storage medium structure provided by an embodiment of the present application. Figure 4As shown, a computer-readable storage medium 200 according to an embodiment of the present application is shown. Computer-readable instructions are stored on the computer-readable storage medium 200. When the computer-readable instructions are executed by the processor, the Internet-based smart home control and adjustment method according to the embodiment of the present application described with reference to the above figures can be executed. The computer-readable storage medium 200 includes, but is not limited to, for example, volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc.
[0131] In addition, according to the implementation of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the present application provides a non-transitory machine-readable storage medium, the non-transitory machine-readable storage medium stores machine-readable instructions, the machine-readable instructions can be run by a processor to execute instructions corresponding to the method steps provided by the present application, and when the computer program is executed by a central processing unit (CPU), the above functions defined in the method of the present application are executed.
[0132] The methods, apparatuses, and devices of the present application may be implemented in many ways. For example, the methods, apparatuses, and devices of the present application may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present application are not limited to the order specifically described above unless otherwise specified. In addition, in some embodiments, the present application may also be implemented as programs recorded in a recording medium, which include machine-readable instructions for implementing the method according to the present application. Therefore, the present application also covers recording media storing programs for executing the method according to the present application.
[0133] In addition, the parts of the above-mentioned technical solutions provided in the embodiments of the present application that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail to avoid excessive redundancy.
[0134] The specific implementation modes as described above further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation mode of the present invention and is not intended to limit the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
[0135] The above preset parameters or preset thresholds are all set by technicians in this field according to actual conditions or obtained through large-scale data simulation.
[0136] The above embodiments are only used to illustrate the technical method of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical method of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical method of the present invention.
Claims
1. An Internet-based smart home control and regulation system, characterized in that: It includes a lighting habit data collection module, a crowd clustering module, a lighting intensity prediction model training module, a member identification module and a lighting decision module; wherein each module is electrically connected; A lighting habit data collection module, used to collect lighting habit data of each user at home through the Internet, and send the lighting habit data of each user to the crowd clustering module; A crowd clustering module, which is used to classify users into several lighting habit types based on the lighting habit data of each user, obtain clustering result data and classification results, send the clustering result data to the lighting intensity prediction model training module, and send the classification results to the member identification module; A lighting intensity prediction model training module, used for training a lighting intensity prediction model that outputs a lighting intensity prediction value for each lighting habit type based on the clustering result data, and sending the lighting intensity prediction model to the lighting decision module; A member identification module, used for collecting a set of home opening actions of the user when the user opens the home, identifying the user identity based on the home opening action set and the classification result, and sending the identified user identity to the lighting decision module; A lighting decision module is used to automatically control the lighting intensity of the home lights based on the user's identity and using the corresponding lighting intensity prediction model each time the user opens the home. The method of training the lighting intensity prediction model that outputs the lighting intensity prediction value for each lighting habit type is as follows: For each lighting habit type: For each lighting habit set in the discrete point set corresponding to the number of the lighting habit type, the lighting intensity in the home in the lighting habit set is used as a real lighting intensity label, and the remaining parameters in the lighting habit set constitute a lighting intensity feature vector; the elements in the lighting habit set include the lighting intensity in the home adjusted autonomously by each user, the ambient light intensity at the location of the home, and the ambient temperature; Each group of lighting intensity feature vectors in the discrete point set is used as the input of the lighting intensity prediction model. The lighting intensity prediction model takes the predicted lighting intensity of each lighting intensity feature vector as the output, and the real lighting intensity label corresponding to the lighting intensity feature vector in the discrete point set as the prediction target. Minimizing the sum of prediction errors of all predicted lighting intensities for the real lighting intensity label is used as the training target. The lighting intensity prediction model is trained until the sum of prediction errors reaches convergence and the training is stopped.
2. The Internet-based smart home control and regulation system according to claim 1, characterized in that: The data on lighting habits of each user in the home collected through the Internet includes: A power sensor, a light intensity sensor, and a temperature sensor are installed in each household, and the power sensor, the light intensity sensor, and the temperature sensor are electrically connected to the home intelligent control terminal; After the home design of each household is completed, the home intelligent control terminal collects several lighting habit sets of each user in the family and sends the lighting habit sets to the home control background.
3. The Internet-based smart home control and regulation system according to claim 2, characterized in that: The method of dividing users into several lighting habit types and obtaining clustering result data and classification results is as follows: The number of each user is marked as i, and the number of each lighting habit set in the lighting habit data of the i-th user is marked as xi; Clustering algorithms are used to cluster all lighting habit sets to obtain clustering result data; According to the clustering result data, the lighting habit type is classified for each user to obtain the classification result.
4. The Internet-based smart home control and regulation system according to claim 3, characterized in that: The obtaining of clustering result data comprises: Step 11: Preset the number of clusters K; Step 12: Treat each lighting habit set as an N-dimensional discrete point, wherein N is the number of elements in the lighting habit set, and the coordinates of the N-dimensional discrete point in each dimension correspond to a parameter in the lighting habit set; Step 13: Randomly select K N-dimensional discrete points from all N-dimensional discrete points as initial cluster centers, and the remaining N-dimensional discrete points as non-initial cluster centers; Step 14: For each non-initial cluster center, calculate the Euclidean distance to each initial cluster center, and divide each N-dimensional discrete point into the cluster cluster where the nearest initial cluster center is located; Step 15: Calculate the average value of the parameters corresponding to each dimension of the N-dimensional discrete points in each cluster, and form a new N-dimensional discrete point with the average value of the parameters corresponding to each dimension, and use the new N-dimensional discrete point as the new cluster center of the cluster; Step 16: Recalculate the Euclidean distance from each N-dimensional discrete point to each new cluster center, and re-divide each N-dimensional discrete point into the cluster where the nearest new cluster center is located; Step 17: Repeat steps 15-16 until the N-dimensional discrete points in all divided clusters no longer change, mark the number of each cluster as k, k = 1, 2, 3, ... K; obtain all N-dimensional discrete points contained in each cluster, and form all the N-dimensional discrete points into a discrete point set; the clustering result data includes the correspondence between the numbers of all clusters and the discrete point sets.
5. The Internet-based smart home control and regulation system according to claim 4, characterized in that: The method of classifying the lighting habit type for each user is as follows: Correspond each cluster number to a lighting habit type number; For the i-th user, count the distribution of all lighting habit sets in his lighting habit data in the discrete point set; For the i-th user, the discrete point set containing the user's lighting habit set with the highest proportion among all discrete point sets is traversed and retrieved, and the number of the cluster corresponding to the discrete point set is used as the lighting habit type of the user; the classification result includes the correspondence between the numbers of all users and the numbers of the lighting habit types.
6. The Internet-based smart home control and regulation system according to claim 5, characterized in that: The method of identifying the user identity based on the home opening action set and the classification result is: Collect the historical home opening action sets of all users in the family; Collect the number of member users in the family and mark the number of member users as K1; Use a clustering algorithm on the historical home opening action set to obtain K1 home action clusters, each of which corresponds to a member user; Each time the user opens the home, the home action cluster to which the home opening action set corresponding to the home opening belongs is determined, and the identity of the member user corresponding to the home action cluster is used as the user identity.
7. An Internet-based smart home control and adjustment method, which is implemented based on an Internet-based smart home control and adjustment system according to any one of claims 1 to 6, characterized in that: The following steps are involved: Collect data on lighting habits of each user at home through the Internet; Based on the lighting habit data of each user, the users are divided into several lighting habit types to obtain clustering result data and classification results; Based on the clustering result data, a lighting intensity prediction model is trained to output a lighting intensity prediction value for each lighting habit type; When the user opens the home, the user's home opening action set is collected, and the user identity is identified based on the home opening action set and the classification result; Every time a user opens the home, the lighting intensity in the home is automatically controlled using the corresponding lighting intensity prediction model based on the user's identity.
8. An electronic device, characterized in that: include: processor and memory, wherein The memory stores a computer program that can be called by the processor; The processor executes the Internet-based smart home control and adjustment method of claim 7 in the background by calling the computer program stored in the memory.
9. A computer-readable storage medium, characterized in that: A rewritable computer program is stored thereon; When the computer program runs on a computer device, the computer device executes the Internet-based smart home control and adjustment method of claim 7 in the background.
