A smart home system based on model predictive control
By building a model predictive control module in the smart home system to analyze and optimize home environment parameters, the problem that traditional smart home systems cannot meet actual needs is solved and the user experience is improved.
Patent Information
- Application Number
- CN202311600647.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-24
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2043-11-24
AI Technical Summary
Traditional smart home systems adjust the control parameters of home devices through fixed scene modes, which cannot meet actual needs, resulting in poor user experience.
Adopt a smart home system based on model predictive control to obtain and analyze home environment parameters through the access control module, monitoring module, parameter processing module, model construction module and optimization control module, build an initial control model, and perform optimized control based on environmental monitoring data , adjust the operation of home equipment.
It improves the intelligence of the system, meets actual needs, and improves user experience.
Smart Images

Figure 00000000_0000
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent control technology, and in particular to an intelligent home system based on model predictive control. Background Art
[0002] With the rapid development of information technology and the gradual improvement of network technology, intelligent information services are entering households, creating smart homes, improving people's living standards and quality of life. Smart homes, as the main way to achieve smart homes, connect various home devices and systems through the Internet and Internet of Things technologies to achieve a home environment with intelligent management and control.
[0003] At present, smart homes adjust the control parameters of home appliances connected to the system through user selection of preset scenario modes, and the home appliances perform corresponding operations, making it difficult for the home environment under the control of traditional smart homes to meet the actual needs based on the current environment, resulting in poor user experience.
[0004] Therefore, a smart home system based on model predictive control is proposed. Summary of the invention
[0005] In order to solve the above technical problems, the present invention provides a smart home system based on model predictive control, which is used to solve the problem that in traditional technology, smart homes adjust the control parameters of home appliances according to fixed scenario modes, which cannot meet actual needs, resulting in poor user experience and lack of intelligence of the system.
[0006] The present invention provides a smart home system based on model predictive control, comprising:
[0007] The access control module is used to authenticate the home device that initiates the communication connection request, and establish a communication connection with the optimization control module after the authentication is passed;
[0008] A monitoring module, which is used to monitor and collect environmental parameters of the home environment where the successfully connected home appliances are located based on pre-deployed sensors, and divide the environmental parameters according to preset parameter types to obtain a plurality of parameter sets, wherein each environmental parameter in the parameter set is marked with a collection time and a collection area;
[0009] The parameter processing module is used to perform parameter fusion processing on the same parameter set, construct monitoring feature data, and merge and organize the monitoring feature data to obtain environmental monitoring data;
[0010] A model building module, used to perform type and value analysis on each individual sample in the sample set to build an initial control model, and to perform correlation analysis on different layers in the initial control model to optimize the initial control model to obtain a home control model;
[0011] The optimization control module is used to input the environmental monitoring data into the home control model to predict and obtain optimization control information to control the corresponding home appliances to perform specified operations.
[0012] Preferably, the model building module includes:
[0013] A set acquisition unit, used for performing type and value analysis on each individual sample in the sample set of the historical home control library, and acquiring a feature data set corresponding to the individual sample;
[0014] A set analysis unit, used for analyzing the feature data set to generate a sample feature data set;
[0015] A convolution processing unit, used to perform convolution processing on the sample feature data set according to a built-in convolution kernel to obtain a control data processing set;
[0016] The prediction unit is used to predict the control data processing set, and when the prediction accuracy meets the accuracy threshold, an initial control model is obtained.
[0017] Preferably, the set acquisition unit includes:
[0018] An information generation subunit is used to identify the monitoring and control parameter type of the individual sample, encode the identification result by one-hot encoding, and assign a corresponding numerical label to each character in the encoding result in combination with the numerical analysis result within a set time period corresponding to the individual sample, so as to generate sample numerical information;
[0019] A dimension processing subunit, used to perform dimension processing on the information at each unit historical moment in the sample numerical information, and expand the information at each unit historical moment into an initial feature vector;
[0020]
[0021] in, e ti For the t The unit's historical moment i dimensional eigenvalue, ave ( e ti ) is the information of the tth unit historical moment i The average value of the dimension information, MAD ( e ti ) is the information of the tth unit historical moment i The mean absolute deviation of the dimensional data, the value of i is equal to the number of dimensions involved in the unit historical moment;
[0022] A sub-unit is constructed to supplement and align the elements of the initial feature vector at each unit historical moment to construct a feature data set.
[0023] Preferably, the set analysis unit comprises:
[0024] An allocation subunit is used to construct a matrix for the feature data set, and to allocate channels to each column vector in the constructed matrix, and to allocate a corresponding weight coefficient to each channel, thereby determining feature aggregation information of each channel in the feature data set, wherein the columns of the constructed matrix are parameters of the same type, and the rows are parameters of different types at the same unit historical moment;
[0025]
[0026] in, is the first i1 The feature aggregation information of each channel, For the i1 The weight coefficient corresponding to each channel is is the first i1 In the channel j characteristic elements, r is the first i1 The number of characteristic elements in the channel, is the first i1 The element variance after standardization of all characteristic elements involved in the channel is To remove the first i1 The maximum variance is selected from all variances after one element of all feature elements involved in the channel;
[0027] A matrix construction subunit is used to aggregate the feature information Supplement to the first row of the matrix to construct a feature data matrix;
[0028] The data set construction subunit is used to analyze the feature data matrix to construct a sample feature data set.
[0029] Preferably, the model building module further includes:
[0030] A vector set construction unit, used to obtain a number of randomly combined environmental parameter test samples to test the initial control model, and sequentially record the execution process of each device control layer in the initial control model for each environmental parameter test sample, and construct an execution vector set of each environmental parameter test sample;
[0031] A layer matrix construction unit, used for extracting execution vectors of the same device control layer from all execution vector sets, and constructing a layer matrix corresponding to the same device control layer;
[0032] A regularity analysis unit, used to obtain the average value of the elements of each column vector in the layer matrix, and construct a first vector; at the same time, obtain the standard execution value of the corresponding device control layer under the corresponding environmental parameter test sample, and construct a second vector;
[0033] an amplification processing unit, configured to compare and analyze the first vector and the second vector to obtain an error vector, and perform differential amplification processing;
[0034] Perform regularity analysis on the error vector after differential amplification processing to determine whether it satisfies the execution consistency mechanism of the corresponding device control layer. If so, the corresponding device control layer is regarded as the first layer.
[0035] A factor determination unit, for, if there is inconsistency, regarding the corresponding device control layer as the second layer, and determining the execution adjustment factor of the second layer according to the execution sequence of each device control layer in the initial control device control layer and the set execution conversion relationship between adjacent execution device control layers determined based on the execution sequence, and combining the regularity analysis result with the execution anomaly of the corresponding execution consistency mechanism;
[0036] The optimization unit is used to optimize the initial control model by eliminating contradictions according to all existing execution adjustment factors to obtain a home control model.
[0037] Preferably, the amplification processing unit includes:
[0038] A difference screening subunit, used for screening the minimum difference and the maximum difference in the error vector;
[0039] A calculation subunit, used for performing differential amplification processing on the elements in the error vector according to the following formula;
[0040]
[0041] Among them, min2 represents the minimum difference; max1 represents the maximum difference; Indicates the number of elements contained in the corresponding column vector; Indicates the set constant; b1 indicates the standard execution value corresponding to the maximum difference; b2 indicates the standard execution value corresponding to the minimum difference; [ ] indicates the rounding function; represents the unit variable obtained from the unit database based on the matching of b1 and b2; represents the unit variable matched from the unit database based on b1, b2, and a01; Indicates differential magnification.
[0042] Preferably, the optimization control module includes:
[0043] A device identification unit, used to obtain device model information of the household device and transmit it to the information analysis unit;
[0044] An information parsing unit, used to obtain a control parameter protocol format of the home appliance according to the appliance model information;
[0045] a format conversion unit, configured to convert the format of the optimization control information output by the home control model according to the environmental monitoring data according to the control parameter protocol format, and generate the optimization control parameters corresponding to the home equipment;
[0046] The device control unit is used to control the home device according to the optimized control parameters.
[0047] Preferably, it also includes: a client communication module;
[0048] The monitoring module is further used to obtain the device operation data of the household device and transmit the device operation data to the client communication module;
[0049] The client communication module is used to transmit the device operation data transmitted by the monitoring module to the user's electronic device for display;
[0050] The client communication module is further used to receive a device control instruction transmitted by a user based on an electronic device, and transmit the device control instruction to the optimization control module;
[0051] The optimization control module is used to control the household device according to the device control instruction;
[0052] The priority of the device control instruction is higher than the optimization control information output by the home control model.
[0053] Compared with the prior art, the beneficial effects of the present application are as follows: by obtaining the current environmental parameters to adjust the control parameters of home appliances, that is, by building a model to effectively analyze the environmental data, it not only improves the intelligence of the system, but also effectively meets actual needs and improves the user experience.
[0054] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description and the accompanying drawings.
[0055] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 A schematic diagram of the structure of a smart home system based on model predictive control provided by the present invention. DETAILED DESCRIPTION
[0057] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0058] Embodiment 1:
[0059] The embodiment of the present invention provides a smart home system based on model predictive control, which refers to Figure 1 ,include:
[0060] The access control module is used to authenticate the home device that initiates the communication connection request, and establish a communication connection with the optimization control module after the authentication is passed;
[0061] A monitoring module is used to monitor and collect environmental parameters of the home environment where the successfully connected home appliances are located based on pre-deployed sensors, and divide the environmental parameters according to preset parameter types to obtain several parameter sets, wherein each environmental parameter in the parameter set is marked with a collection time and a collection area;
[0062] The parameter processing module is used to perform parameter fusion processing on the same parameter set, construct monitoring feature data, and merge and organize the monitoring feature data to obtain environmental monitoring data;
[0063] A model building module is used to perform type and value analysis on each individual sample in the sample set to build an initial control model, and to perform correlation analysis on different layers in the initial control model to optimize the initial control model and obtain a home control model;
[0064] The optimization control module is used to input environmental monitoring data into the home control model to obtain optimization control information to control the corresponding home appliances to perform specified operations.
[0065] The working principle of the above-mentioned smart home system based on model predictive control is as follows: the access control module authenticates the home device that initiates the communication connection request, and establishes a communication connection between the optimization control module and the home device after the verification; the monitoring module monitors and collects the environmental parameters of the home environment in which the home device is located based on the pre-deployed sensors, and divides the environmental parameters according to the preset parameter types to obtain several parameter sets; and performs parameter fusion processing on the same parameter set through the parameter processing module, constructs monitoring feature data, merges and organizes the monitoring feature data, and obtains environmental monitoring data; the optimization control module inputs the environmental monitoring data into the home control model, and controls the corresponding home devices to perform corresponding operations according to the optimization control information output by the home control model.
[0066] Among them, the construction of the home control model uses the model construction module to perform type and value analysis on each individual sample in the sample set, build an initial control model, and perform correlation analysis on different layers in the initial control model to optimize the initial control model.
[0067] In one embodiment, the monitoring module includes: a temperature sensor, a humidity sensor, and a light sensor; the environmental monitoring data acquired by the parameter processing module includes: temperature monitoring data, humidity monitoring data, and light intensity monitoring data; the home appliance includes: an air conditioner. The system outputs optimized control information based on the home control model according to the temperature monitoring data, humidity monitoring data, and light intensity monitoring data, realizes the adjustment of air conditioning parameters, and automatically adjusts the indoor temperature according to the temperature, humidity, and light of the home environment, providing users with a more comfortable living environment.
[0068] In one embodiment, the monitoring module includes: a door monitor for monitoring the opening state of the door; the home equipment includes: a security system. When it is detected that the door is illegally opened, the security system is controlled by the system to automatically alarm and record, thereby effectively improving the safety of the home environment through the system proposed by the present invention.
[0069] In a specific embodiment, when the monitoring module detects that there are no family members in the room area, the optimization control module automatically turns off the lights and electrical appliances to save energy.
[0070] In a specific embodiment, the different needs and preferences of family members in the room area are analyzed through the monitoring module, parameter processing module and model building module, and the optimization control module controls the corresponding home appliances to meet user needs and provide personalized services for users.
[0071] In one embodiment, the household equipment may be air conditioning equipment, purification equipment, or other equipment that can adjust the environment.
[0072] In one embodiment, the preset parameter type is pre-set, for example, temperature and light intensity are classified into one type, pollution degree is classified into another type, and so on.
[0073] In one embodiment, the collection area refers to dividing the corresponding home area into several blocks, and each block area is a collection area.
[0074] In one embodiment, the purpose of parameter fusion processing is to fuse the collection parameters in each individual collection area to obtain the entire environmental parameters of the home area. Because in the collection process, for example, there will be temperature sensor 1 collecting temperature at the boundary position 01 of collection area 1, and temperature sensor 2 collecting temperature at the boundary position 02 of collection area 2. At this time, boundary position 01 and boundary position 02 are adjacent to each other, and then the average value of the temperature of boundary position 01 and boundary position 02 is assigned to replace the average temperature of the two. At this time, data fusion is achieved.
[0075] In this embodiment, the monitoring characteristic data is, for example, the temperature existence of the temperature parameter set: Region 1: a1 , a2 , Region 2: a3 , a4 , at this time, the monitoring characteristic data is: a1 , ( a 2 +a 3) / 2 , a4 ;
[0076] The purpose of merging and sorting is to aggregate the monitoring characteristic data under all parameter sets, and the aggregated result is the environmental monitoring data: that is, the monitoring characteristic data based on parameter set 1, the monitoring characteristic data based on parameter set 2, and so on.
[0077] In this embodiment, a single sample refers to a sample in a sample set, and the sample set is constructed in advance by collecting a large amount of data, mainly for constructing an initial control model.
[0078] In this embodiment, a single sample refers to the sample monitoring data at each unit historical moment within a set time period and the sample optimization control information corresponding to the sample monitoring data. One set time period corresponds to one single sample, which is convenient for providing a rich data basis, and each unit historical moment includes monitoring data and control data within 3 seconds, that is, 3 seconds is taken as a unit, providing a basis for the subsequent construction of an initial control model.
[0079] The beneficial effect of the above technical solution is that the control parameters of home appliances are adjusted by obtaining the current environmental parameters, that is, by building a model to effectively analyze the environmental data, which not only improves the intelligence of the system, but also effectively meets actual needs and improves the user experience.
[0080] Embodiment 2:
[0081] The embodiment of the present invention provides a smart home system based on model predictive control, and the model building module includes:
[0082] A set acquisition unit, used for performing type and value analysis on each individual sample in the sample set of the historical home control library, and acquiring a feature data set corresponding to the individual sample;
[0083] A set analysis unit, used to analyze the feature data set to generate a sample feature data set;
[0084] A convolution processing unit, used to perform convolution processing on a sample feature data set according to a built-in convolution kernel to obtain a control data processing set;
[0085] The prediction unit is used to predict the control data processing set, and when the prediction accuracy meets the accuracy threshold, an initial control model is obtained.
[0086] In the above embodiments, individual samples refer to sample monitoring data and sample optimization control information corresponding to the sample monitoring data. The set acquisition unit, the set analysis unit, the convolution processing unit, and the prediction unit make predictions based on the sample monitoring data, and judge the prediction accuracy through the sample optimization control information. In the above embodiments, the optimization control module inputs the environmental monitoring data into the home control model to obtain the optimization control information to control the corresponding home appliances to perform specified operations, and the construction of the home control model is carried out by the model construction module to perform type and value analysis on each individual sample in the sample set, construct an initial control model, and perform correlation analysis on different layers in the initial control model to optimize the initial control model.
[0087] In one embodiment, a single sample includes sample temperature data and corresponding sample air-conditioning control information. The set acquisition unit, the set analysis unit, the convolution processing unit and the prediction unit make predictions based on the sample temperature data. The prediction accuracy of the prediction result is judged based on the sample air-conditioning control information to determine whether it meets the precision threshold. When the precision threshold is met, an initial control model is obtained.
[0088] In one embodiment, each individual sample may include historically monitored ambient humidity data and corresponding sample humidifier control information, sample illumination data and corresponding sample lighting control information, etc., and various monitoring data related to pre-deployed home smart devices and control information for the monitoring data.
[0089] The beneficial effect of the above technology is that the model construction module processes each individual sample in the sample set through the set acquisition unit, the set analysis unit, the convolution processing unit and the prediction unit, thereby realizing the construction of the initial control model.
[0090] Embodiment 3:
[0091] The embodiment of the present invention provides a smart home system based on model predictive control, a set acquisition unit, including:
[0092] The information generation subunit is used to identify the monitoring and control parameter types of individual samples, encode the identification results by one-hot encoding, and assign a corresponding numerical label to each character in the encoding result in combination with the numerical analysis results within a set time period corresponding to the individual samples, so as to generate sample numerical information;
[0093] The dimension processing subunit is used to perform dimension processing on the information at each unit historical moment in the sample numerical information, and expand the information at each unit historical moment into an initial feature vector;
[0094]
[0095] in, e ti For the t The unit's historical moment i dimensional eigenvalue, ave ( e ti ) is the information of the tth unit historical moment i The average value of the dimension information, MAD ( e ti ) is the information of the tth unit historical moment i The mean absolute deviation of the dimensional data, the value of i is equal to the number of dimensions involved in the unit historical moment;
[0096] A sub-unit is constructed to supplement and align the elements of the initial feature vector at each unit historical moment to construct a feature data set.
[0097] In this embodiment, the set acquisition unit processes the individual samples to construct a feature data set; the individual samples include: sample temperature data, sample humidity data, sample door monitoring data, etc. and corresponding control data, etc.
[0098] In this embodiment, because the control parameters involved in each individual sample and the parameters monitored by the environment may be different, after the parameter type involved at each unit historical moment in the sample is identified, the type is effectively represented by encoding.
[0099] In this embodiment, the numerical analysis result refers to the normalized corresponding monitored environmental values and control values, and the parameter is the determination of the parameter description of the environmental parameters and the control parameters.
[0100] In this embodiment, the numerical label only assigns the corresponding standardized numerical value to the corresponding character to facilitate subsequent calculation and analysis.
[0101] In this embodiment, the purpose of dimension processing is to ensure that the number of elements in each row of vectors is consistent, so as to facilitate matrix construction.
[0102] In this embodiment, for example, the information at the unit historical moment t1 includes environment parameter 1, environment parameter 2, environment parameter 4 and control parameter 1, control parameter 2, and the information at the unit historical moment t2 includes environment parameter 1, environment parameter 2, environment parameter 3 and control parameter 1, then the initial feature vector obtained for the unit historical moment t1 has five dimensions corresponding to environment parameter 1, environment parameter 2, environment parameter 4 and control parameter 1, control parameter 2, and the initial feature vector obtained for the unit historical moment t2 has four dimensions corresponding to environment parameter 1, environment parameter 2, environment parameter 3 and control parameter 1, and the subsequent element supplementation and alignment processing means that if environment parameter 3 is missing at moment t1, one dimension of environment parameter 3 is supplemented, and if environment parameter 4 and control parameter 2 are missing at moment t2, two dimensions of environment parameter 4 and control parameter 2 are supplemented.
[0103] Finally, there are 6 dimensions at time t1 and 6 dimensions at time t2.
[0104] In this embodiment, element supplementation is to supplement the elements under the actual dimension with 0. The beneficial effect of the above technology is that by identifying the types of monitoring environment parameters and control parameters, it is convenient to reasonably control intelligent monitoring and control, and by encoding the recognition results, performing numerical analysis, and assigning characters, it is convenient to perform dimensional processing to obtain the initial feature vector at each unit historical moment, so as to construct a feature data set of a single sample, and provide a basis for subsequent model construction.
[0105] Embodiment 4:
[0106] The embodiment of the present invention provides a smart home system based on model predictive control, a collection analysis unit, including:
[0107] The allocation subunit is used to construct a matrix for the feature data set, and to allocate channels to each column vector in the constructed matrix, and to allocate a corresponding weight coefficient to each channel, thereby determining the feature aggregation information of each channel in the feature data set, wherein the columns of the constructed matrix are parameters of the same type, and the rows are parameters of different types at the same unit historical moment;
[0108]
[0109] in, is the first i1 The feature aggregation information of each channel, For the i1 The weight coefficient corresponding to each channel is is the first i1 In the channel j characteristic elements, r is the first i1 The number of characteristic elements in the channel, is the first i1 The element variance after standardization of all characteristic elements involved in the channel is To remove the first feature from any dataset i1 The maximum variance is selected from all variances after one element of all feature elements involved in the channel;
[0110] Matrix construction subunit, used to aggregate feature information Add to the first row of the matrix to construct the feature data matrix;
[0111] The data set construction subunit is used to analyze the feature data matrix to construct a sample feature data set.
[0112] In one embodiment, channel characteristics are obtained, and channel allocation is performed for each column based on matrix construction of the feature data set. This can be implemented by assigning corresponding weight coefficients according to the data detection accuracy channel, sensor power consumption impact channel, data transmission rate channel, data measurement value channel, and data compensation value channel of the temperature feature data, extracting feature aggregation information of each channel, and constructing channel characteristics based on the multiple influencing factors of the temperature feature data.
[0113] In one embodiment, the model building module proposed by the present invention is built based on the Res2net model.
[0114] In one embodiment, a sample feature data set is constructed by performing column analysis on the feature data matrix, that is, the columns in the feature data matrix are input into a feature analysis model to obtain corresponding sample features. The model is obtained by training a neural network model based on different combinations of the same parameters and random feature aggregation information as well as expert analysis of the combination. Therefore, the corresponding sample features can be directly obtained.
[0115] The beneficial effects of the above technology are: through the feature allocation subunit, according to the channels assigned to the feature data set and the corresponding weight coefficients, the feature aggregation information of each channel is obtained, and the features of each channel in the feature data set can be effectively extracted; through the matrix construction subunit, a feature data matrix is constructed based on the feature data set and the feature aggregation information, so that the acquired feature data matrix can effectively extract the channel feature information in the feature data set, effectively improve the classification ability of the model, provide a basis for subsequent model construction, and indirectly improve the flexibility of intelligent control.
[0116] Embodiment 5:
[0117] The embodiment of the present invention provides a smart home system based on model predictive control, the model building module also includes:
[0118] A vector set construction unit is used to obtain a number of randomly combined environmental parameter test samples to test the initial control model, and sequentially record the execution process of each device control layer in the initial control model for each environmental parameter test sample, and construct an execution vector set of each environmental parameter test sample;
[0119] A layer matrix construction unit, used for extracting execution vectors of the same device control layer from all execution vector sets, and constructing a layer matrix corresponding to the same device control layer;
[0120] The regularity analysis unit is used to obtain the average value of the elements of each column vector in the layer matrix and construct a first vector; at the same time, obtain the standard execution value of the corresponding device control layer under the corresponding environmental parameter test sample and construct a second vector;
[0121] an amplification processing unit, used for comparing and analyzing the first vector and the second vector to obtain an error vector, and performing differential amplification processing;
[0122] Perform regularity analysis on the error vector after differential amplification processing to determine whether it satisfies the execution consistency mechanism of the corresponding device control layer. If so, the corresponding device control layer is regarded as the first layer.
[0123] A factor determination unit, for, if there is inconsistency, regarding the corresponding device control layer as the second layer, and determining the execution adjustment factor of the second layer according to the execution sequence of each device control layer in the initial control device control layer and the set execution conversion relationship between adjacent execution device control layers determined based on the execution sequence, and combining the regularity analysis result with the execution anomaly of the corresponding execution consistency mechanism;
[0124] The optimization unit is used to optimize the initial control model by eliminating contradictions according to all existing execution adjustment factors to obtain a home control model.
[0125] Amplification processing unit, comprising:
[0126] A difference screening subunit, used for screening the minimum difference and the maximum difference in the error vector;
[0127] A calculation subunit, used for performing differential amplification processing on elements in the error vector according to the following formula;
[0128]
[0129] Among them, min2 represents the minimum difference; max1 represents the maximum difference; Indicates the number of elements contained in the corresponding column vector; Indicates the set constant; b1 indicates the standard execution value corresponding to the maximum difference; b2 indicates the standard execution value corresponding to the minimum difference; [ ] indicates the rounding function; represents the unit variable obtained from the unit database based on the matching of b1 and b2; represents the unit variable matched from the unit database based on b1, b2, and a01; Indicates differential magnification.
[0130] In one embodiment, the test samples are pre-set and obtained by a combination of random environmental parameters, and the test samples are the same, mainly to perform multiple tests on the same sample of the initial control model to ensure the test conditions of the initial control model in different test processes, wherein the initial control model includes many device control layers. For example, the execution process of the device control layer 1 includes execution processes z1, z2 and z3. Then, based on the result of the execution process, there will be an execution vector, namely {result of z1, result of z2, result of z3}. Then, all execution vectors of the same test sample for different device control layers are collected together as an execution vector set.
[0131] In one embodiment, The rows in the matrix are the element values of the same test sample based on different execution parameters, and the columns are the parameter element values of the same execution parameters based on different test samples.
[0132] In one embodiment, the element mean is the mean of the column vectors, first vector = [mean of first column mean of second column ...].
[0133] In one embodiment, the execution standard values are pre-set by an expert, and then a second vector = [execution standard values matching the first column and execution standard values matching the second column ...] is constructed.
[0134] In one embodiment, the error vector is an absolute value difference obtained by subtracting the first vector from the second vector.
[0135] In one embodiment, the purpose of differential amplification processing is to avoid ignoring the error in the subsequent analysis process due to the data error being too small, so amplification is performed for the purpose of regularity analysis.
[0136] In one embodiment, for example, the parameters set in the corresponding device control layer should all tend to be consistent, but after error vector analysis, the existing errors also tend to be consistent. At this time, it is considered to be satisfied. If there are errors that are not consistent, at this time, the execution adjustment factor is determined.
[0137] In one embodiment, the execution conversion relationship and the execution order are pre-set. Since there are many internal execution processes in the device control layer, the execution status of different processes and the conversion status between processes are known in advance and are only used as the basis for determining execution anomalies.
[0138] In this embodiment, for example, the inconsistently classified parameters are parameter 1 and parameter 2, and parameter 1 and parameter 2 are located in the set execution conversion relationship 3. At this time, the execution adjustment factor can be matched from the parameter-position-factor mapping table, for example, the model training threshold of parameter 1 is adjusted.
[0139] In this embodiment, the purpose of contradiction elimination is to avoid the emergence of new anomalies due to the execution contradiction between factors. For example, the adjustment factor r1 of parameter 1 is inconsistent with the adjustment factor r2 of parameter 2, and the adjustment factor r2 can adjust both parameter 1 and parameter 2. At this time, the adjustment factor 1 is deleted to eliminate the contradiction, mainly to ensure the effective control of different home appliances by the model and avoid conflicts. The beneficial effects of the above technology are: the vector construction unit implements the test of the initial control model through a number of test samples, and constructs the execution vector set of each test sample; the layer matrix construction unit extracts the execution vector of the same device control layer in the execution vector set, and realizes the construction of the layer matrix of the same device control layer; the regularity analysis unit processes the vectors in the layer matrix, and then determines the execution adjustment factor through the factor determination unit, and the optimization unit eliminates the contradiction according to the execution adjustment factor to optimize the initial control model and construct the home control model. Through the vector construction unit, layer matrix construction unit, regularity analysis unit, factor determination unit and optimization unit of the model construction module in the above technical solution, the optimization of the initial control model is realized, and the home control model is obtained.
[0140] Embodiment 6:
[0141] The embodiment of the present invention provides a smart home system based on model predictive control, an optimization control module, including:
[0142] A device identification unit, used to obtain device model information of household devices and transmit it to the information analysis unit;
[0143] An information parsing unit, used to obtain the control parameter protocol format of the home device according to the device model information;
[0144] A format conversion unit, used to convert the format of the optimized control information output by the home control model according to the environmental monitoring data according to the control parameter protocol format, and generate the optimized control parameters corresponding to the home equipment;
[0145] The device control unit is used to control the home devices to perform specified operations according to the optimized control parameters.
[0146] In the above embodiments, the device model information of the home appliance is obtained through the device identification unit, and the control parameter protocol format of the home appliance is obtained through the information parsing unit. The format conversion unit converts the format of the optimized control information into the corresponding control parameter protocol format, generates the optimized control parameters corresponding to the home appliance, and the device control unit controls the home appliance to perform the specified operation according to the optimized control parameters. In the above embodiments, the home control model uses the environmental monitoring data as the input feature and the optimized control information as the output feature.
[0147] The beneficial effects of the above technology are: through the device identification unit, the device model information of the home appliance is obtained; through the signal analysis unit, the control parameter protocol format of the home appliance is obtained; the format conversion unit performs corresponding format conversion on the optimized control information to obtain the optimized control parameters, thereby being able to control home appliances of different models connected to the system; through the device control unit, the control of the home appliance is achieved according to the optimized control parameters. In the above technical solution, the optimized control module controls the home appliance according to the acquired optimized control information through the device identification unit, the information analysis unit, the format conversion unit and the device control unit.
[0148] Embodiment 7:
[0149] The embodiment of the present invention provides a smart home system based on model predictive control, further comprising: a client communication module;
[0150] The monitoring module is also used to obtain the device operation data of the home device and transmit the device operation data to the client communication module;
[0151] A client communication module, used to transmit the equipment operation data transmitted by the monitoring module to the user's electronic device for display;
[0152] The client communication module is also used to receive device control instructions transmitted by the user based on the electronic device, and transmit the device control instructions to the optimization control module;
[0153] An optimized control module is used to control home appliances according to appliance control instructions;
[0154] The priority of device control instructions is higher than the optimization control information output by the home control model.
[0155] In the above embodiments, the monitoring module transmits the acquired device operation data of the home appliance to the client communication module, and the client communication module transmits the device operation data to the user's electronic device for display.
[0156] In the above embodiments, when the client communication module receives a device control instruction transmitted by the user based on the electronic device, it transmits the device control instruction to the optimization control module, and the optimization control module controls the home device to perform a specified operation according to the device control instruction.
[0157] In the above embodiments, when the optimization control module simultaneously receives the device control instruction transmitted by the client communication module and the optimization control information output by the home control model, the optimization control module preferentially executes the device control instruction.
[0158] The beneficial effects of the above technology are: through the monitoring module, the device operation data of the home appliance is obtained, and the obtained device operation data is displayed to the user through the electronic device through the client communication module, so that the user can obtain the device operation data of the home appliance in real time. The user transmits the device control instruction to the optimization control module through the client communication module based on the electronic device, and the optimization control module controls the home appliance according to the device control instruction, so that the user can control the home appliance, and control the home appliance with priority over the optimization control information obtained by the system, thereby realizing the real-time control and management of the home appliance by the user, so that the system has a good human-computer interaction function.
[0159] In Examples 1-7, the smart home system based on model predictive control has advantages in many aspects such as convenience, comfort, safety, energy saving and personalization, and can provide family members with a more intelligent, comfortable and safe living environment.
[0160] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A smart home system based on model predictive control, characterized in that: include: The access control module is used to authenticate the home device that initiates the communication connection request, and establish a communication connection with the optimization control module after the authentication is passed; A monitoring module, which is used to monitor and collect environmental parameters of the home environment where the successfully connected home appliances are located based on pre-deployed sensors, and divide the environmental parameters according to preset parameter types to obtain a plurality of parameter sets, wherein each environmental parameter in the parameter set is marked with a collection time and a collection area; The parameter processing module is used to perform parameter fusion processing on the same parameter set, construct monitoring feature data, and merge and organize the monitoring feature data to obtain environmental monitoring data; A model building module is used to perform type and value analysis on each individual sample in the sample set to build an initial control model, and to perform correlation analysis on different layers in the initial control model to optimize the initial control model to obtain a home control model; including: The model building module further includes: A vector set construction unit, used to obtain a number of randomly combined environmental parameter test samples to test the initial control model, and sequentially record the execution process of each device control layer in the initial control model for each environmental parameter test sample, and construct an execution vector set of each environmental parameter test sample; A layer matrix construction unit, used for extracting execution vectors of the same device control layer from all execution vector sets, and constructing a layer matrix corresponding to the same device control layer; A regularity analysis unit, used to obtain the average value of the elements of each column vector in the layer matrix, and construct a first vector; at the same time, obtain the standard execution value of the corresponding device control layer under the corresponding environmental parameter test sample, and construct a second vector; an amplification processing unit, configured to compare and analyze the first vector and the second vector to obtain an error vector, and perform differential amplification processing; Perform regularity analysis on the error vector after differential amplification processing to determine whether it satisfies the execution consistency mechanism of the corresponding device control layer. If so, the corresponding device control layer is regarded as the first layer. A factor determination unit, for, if there is inconsistency, regarding the corresponding device control layer as the second layer, and determining the execution adjustment factor of the second layer according to the execution sequence of each device control layer in the initial control device control layer and the set execution conversion relationship between adjacent execution device control layers determined based on the execution sequence, and combining the regularity analysis result with the execution anomaly of the corresponding execution consistency mechanism; An optimization unit, used to optimize the initial control model by eliminating contradictions according to all existing execution adjustment factors to obtain a home control model; The amplification processing unit comprises: A difference screening subunit, used for screening the minimum difference and the maximum difference in the error vector; A calculation subunit, used for performing differential amplification processing on the elements in the error vector according to the following formula; Among them, min2 represents the minimum difference; max1 represents the maximum difference; m01 represents the number of elements contained in the corresponding column vector; a01 represents the set constant; b1 represents the standard execution value corresponding to the maximum difference; b2 represents the standard execution value corresponding to the minimum difference; [] represents the rounding function; Δ1(b1,b2) represents the unit variable matched from the unit database based on b1 and b2; Δ1(b1,b2,a01) represents the unit variable matched from the unit database based on b1, b2, a01; N01 represents the differential magnification; The optimization control module is used to input the environmental monitoring data into the home control model to predict and obtain optimization control information to control the corresponding home appliances to perform specified operations.
2. The smart home system based on model predictive control according to claim 1, characterized in that: The model building module comprises: A set acquisition unit, used for performing type and value analysis on each individual sample in the sample set of the historical home control library, and acquiring a feature data set corresponding to the individual sample; A set analysis unit, used for analyzing the feature data set to generate a sample feature data set; A convolution processing unit, used to perform convolution processing on the sample feature data set according to a built-in convolution kernel to obtain a control data processing set; The prediction unit is used to predict the control data processing set, and when the prediction accuracy meets the accuracy threshold, an initial control model is obtained.
3. The smart home system based on model predictive control according to claim 2, characterized in that: The collection acquisition unit includes: An information generation subunit is used to identify the monitoring and control parameter type of the individual sample, encode the identification result by one-hot encoding, and assign a corresponding numerical label to each character in the encoding result in combination with the numerical analysis result within a set time period corresponding to the individual sample, so as to generate sample numerical information; A dimension processing subunit, used to perform dimension processing on the information at each unit historical moment in the sample numerical information, and expand the information at each unit historical moment into an initial feature vector; Among them, e ti is the eigenvalue of the i-th dimension at the t-th unit historical moment, ave(e ti ) is the average value of the i-th dimension information in the information at the t-th unit historical moment, MAD(e ti ) is the average absolute deviation of the i-th dimension data in the information at the t-th unit historical moment, and the value of i is equal to the number of dimensions involved in the unit historical moment; A sub-unit is constructed to supplement and align the elements of the initial feature vector at each unit historical moment to construct a feature data set.
4. The smart home system based on model predictive control according to claim 2, characterized in that: The set analysis unit comprises: An allocation subunit is used to construct a matrix for the feature data set, and to allocate channels to each column vector in the constructed matrix, and to allocate a corresponding weight coefficient to each channel, thereby determining feature aggregation information of each channel in the feature data set, wherein the columns of the constructed matrix are parameters of the same type, and the rows are parameters of different types at the same unit historical moment; Among them, J i1 is the feature aggregation information of the i1th channel in the feature data set, β i1 is the weight coefficient corresponding to the i1th channel, is the jth feature element in the i1th channel in the feature data set, r is the number of feature elements in the i1th channel in the feature data set, is the element variance after normalization of all feature elements involved in the i1th channel in the feature data set, Screening the maximum variance from all variances after removing one element from all feature elements involved in the i1th channel in the feature data set; A matrix construction subunit is used to aggregate the feature information J i1 Supplement to the first row of the matrix to construct a feature data matrix; The data set construction subunit is used to analyze the feature data matrix to construct a sample feature data set.
5. The smart home system based on model predictive control according to claim 1, characterized in that: The optimization control module comprises: A device identification unit, used to obtain device model information of the household device and transmit it to the information analysis unit; An information parsing unit, used to obtain a control parameter protocol format of the home appliance according to the appliance model information; a format conversion unit, configured to convert the format of the optimization control information output by the home control model according to the environmental monitoring data according to the control parameter protocol format, and generate the optimization control parameters corresponding to the home equipment; The device control unit is used to control the home device according to the optimized control parameters.
6. The smart home system based on model predictive control according to claim 1, characterized in that: include: Client communication module; The monitoring module is further used to obtain the device operation data of the household device and transmit the device operation data to the client communication module; The client communication module is used to transmit the device operation data transmitted by the monitoring module to the user's electronic device for display; The client communication module is further used to receive a device control instruction transmitted by a user based on an electronic device, and transmit the device control instruction to the optimization control module; The optimization control module is used to control the household device according to the device control instruction; The priority of the device control instruction is higher than the optimization control information output by the home control model.
Citation Information
Patent Citations
Smart home equipment management method, device and system, and storage medium
CN112286150A
Smart home authentication method based on edge computing
CN115567222A
Smart home control method and system based on Internet of Things
CN115865549A
Smart home system control method and device, server and storage medium
CN115937662A
Smart home air purification system based on Internet of Things
CN116007148A
