Smart home service management and control method based on spatiotemporal data drive
Through the spatiotemporal data-driven smart home service management and control method, using time-series knowledge graphs and deep learning models, the problem of collaborative work and personalized needs of smart home devices is solved, non-inductive and automated smart home service control is achieved, and development difficulty is reduced. and user learning costs.
Patent Information
- Application Number
- CN202210937255.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-05
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-08-05
AI Technical Summary
Existing smart home devices cannot work together, resulting in the inability to achieve truly intelligent and personalized services. Users need to manually set rules to meet the needs of complex environments, which increases the difficulty of use and learning costs.
Using a smart home service management and control method driven by spatiotemporal data, automatic control of equipment status and personalized service management are realized by constructing a time-series knowledge graph with time-series capabilities and a multi-hidden layer deep neural network model.
It realizes intelligent and non-sensitive smart home service control without user intervention, reduces the difficulty and complexity of development, can learn user operating habits and predict needs, and provide personalized services.
Smart Images

Figure CN115079588B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart home control, and in particular to a smart home service management and control method driven by spatiotemporal data. Background Art
[0002] With the continuous development of infrastructure and the increasing popularity of various smart home devices, smart devices are gradually integrated into people's lives. Smart homes bring many conveniences to people's lives through the various services provided by these smart devices. At present, major smart device manufacturers are committed to building a smart home ecosystem for users. However, they often cannot communicate with each other. If users want to use a certain brand of smart device, they must install the brand's specific APP to control the corresponding smart device.
[0003] Living in a home environment surrounded by a large number of smart devices every day, people's requirements for smart home services will naturally increase further. In an era of rapid technological development, simple device control has lost its competitiveness, and users need more intelligent, touchless and personalized services. However, the realization of more intelligent services is inseparable from the ability of devices to cooperate with each other. For example, when the user leaves the bedroom and walks to the living room, the air conditioner in the bedroom is automatically turned off and the air conditioner in the living room is turned on. At this time, the air conditioners in the two rooms need to be linked with the user's positioning device. At the same time, in order to realize complex user needs in different scenarios, it is necessary to be able to abstract the devices more advanced and write corresponding service programs based on these abstractions. In addition, the needs of different users are not exactly the same. For example, everyone has different tolerance for temperature, and the critical temperature for turning on the air conditioner is also different. In order to realize the personalized needs of users, the existing solution is often to let users pre-set device control rules.
[0004] However, there are many problems with existing smart home services. First, smart home devices of different models from different manufacturers often cannot work together. The reason is that each manufacturer is committed to building its own ecosystem. The products of each brand cannot communicate with each other and act independently. It is difficult for isolated devices to form an integrated smart home experience. At the same time, the heterogeneous characteristics of each device also bring huge challenges to developers in programming and developing device interconnection and coordinated management. Secondly, the control methods of existing devices mostly rely on users to remotely control through terminal devices or users to pre-set rules to provide services. Remote control of smart home devices does not achieve true intelligence, and the device control instructions still need to be issued manually by users. Although the method of pre-setting rules has achieved a certain degree of intelligence, the rigid rules cannot adapt to complex and changing environments. At the same time, the large number of rule setting processes themselves bring certain thresholds and learning costs to users using smart homes. Even some smart home systems require users to spend a lot of time and energy to learn rule settings. Finally, users often put forward service requirements based on the environmental status around them, which makes personalized smart home services inseparable from the perception of the user's surrounding environment and its changes. Summary of the invention
[0005] In view of this, an object of the present invention is to provide a smart home service management and control method based on spatiotemporal data drive to achieve intelligent and seamless smart home service control without user intervention.
[0006] To achieve the above object, the present invention adopts the following technical solution:
[0007] A smart home service management and control method based on spatiotemporal data drive includes the following steps:
[0008] Step S1: configure the mapping relationship between concept instances and smart devices, and construct a temporal knowledge graph with temporal capabilities;
[0009] Step S2: Read the device status at each moment based on the time interval specified by the scenario, and build a smart home management and control model;
[0010] Step S3: According to the smart home management and control model, smart home service management and control is performed based on deep learning.
[0011] Furthermore, the knowledge graph is defined as KG:
[0012] KG={(x i ,r i,j ,x j )|x i ,x j ∈E,r i,j ∈R,i≠j}
[0013] E=U∪S∪L∪C∪D
[0014] R={Effect,Locate,Sense,Provide}
[0015] Where E is the set of all types of instances, including five categories: device D, location L, user U, service S, and environment; R is the set of relationships, including influence, location, perception, and provision;
[0016] The temporal knowledge graph with time-series capability is a knowledge graph stream with time labels, that is, the knowledge graph in a given time period {T1,...,T n The state set within the time interval ΔT, the data at each time point includes the knowledge graph state KG at that time point k and time tag t k , specifically:
[0017] TKG={(t k ,KG k )|T1≤t k ≤T n ,t k+1 =t k +ΔT}.
[0018] Further, the location refers to a specific area in the smart home environment, including the physical location information of the area, and other instances can be associated with a specific location, indicating that its scope of action or activity is at a specific location;
[0019] The device is an abstraction of a specific smart home device, and each device instance includes the device name, device location, device status, and function information that the device can provide;
[0020] The user is a service target in the smart home. Each user instance includes the user name UName and the user's location information LName, which is defined as user = <UName, LName>. The set of users is defined as U;
[0021] The environment is a specific environmental state that can be perceived by humans, including temperature, humidity, brightness, etc., including user and location information bound to the environment, and is defined as context = <UName, LName, CType, CValue>. The set of environments is defined as C; each environment instance can be associated with a specific user and location, expressing that the user perceives a certain environmental state at a certain location;
[0022] The service is an abstraction of device functions. One device corresponds to multiple services. The service is defined as service = <DName, LName, CType, Effect, Status, SValue>, and the set of services is defined as S. Each service can have an impact on the corresponding environment. The runtime knowledge graph indirectly controls the corresponding device by controlling the service, thereby realizing unified control of various heterogeneous devices.
[0023] Furthermore, the smart home control model is constructed based on the temporal knowledge graph model, specifically:
[0024] First, extract the knowledge graph KG at time t from TKG t :
[0025] KG t ={(x i ,r i,j ,x j )|x i ,x j ∈E t ,r i,j ∈R t ,i≠j}
[0026] From KG t Take each user u(u∈E t ∧u.Type="User"), define the Context subset that user u can perceive at time t as
[0027]
[0028] Where w is the number of environmental states that the user is concerned about, and the types of any two ctx are different; The environmental state described in is part of the environmental state in the smart home environment, which is the environmental state attribute value perceived by a specific user at a specified time point, rather than the environmental state value of the entire smart home scene;
[0029] based on At time point t, we can get The subset of Service instances that are affected by the Context instance in
[0030]
[0031] in accordance with Definition, Can Producing an impact is equivalent to influencing the environment that the user can perceive, that is, the service instance that can provide services to the user at time t, which is the service object we want to control.
[0032] Furthermore, the input and output of the smart home control model are as follows:
[0033] According to the definition of the time series knowledge graph, each The environment attribute values in the fixed environment type order are extracted to obtain the corresponding environment attribute value sequence
[0034]
[0035] where c i =ctx i .CValue, the attribute value of the i-th environment attribute;
[0036] Therefore, the input data X is the contextual data of the environment state perceived by the user within a certain time window:
[0037] X=[E 1 ,E 2 ,...,E k ] T
[0038] The output Y of the model is defined as:
[0039]
[0040] where s i and v i They are The corresponding Status and Svalue in , r is the number of services that need to be controlled.
[0041] Furthermore, the step S3 adopts a multi-hidden layer deep neural network model to realize the mining of implicit relationships between input and output.
[0042] Furthermore, the multi-hidden layer deep neural network model includes an input layer L in , three fully connected hidden layers H1, H2, H3 and output layer L out ;
[0043] The number of neurons N in the input layer is determined by the number of environments p and the length of the time window k. input =p*k, the number of neurons in the output layer is the number of services N output N is determined by the number of services that need to be predicted output =p;
[0044] The number of neurons in the three hidden layers are N1, N2, and N3 respectively; the layers are fully connected.
[0045] Where L in The input to each layer of H3 is X i , then its output is
[0046] L i =Sigmoid(X i W i +B i )
[0047] The activation function used in each layer of the network is Sigmoid, which is defined as:
[0048]
[0049] In particular, the network output is compared with a predetermined threshold th to obtain the output L of the output layer. out :
[0050] L' out ={l1,l2,...,l q =Sigmoid(L3W out +B out )
[0051]
[0052] Furthermore, the multi-hidden layer deep neural network model training is specifically as follows:
[0053] (1) Adjust the number of neurons according to the time window length k and the number of environmental attributes q;
[0054] (2) For the weight matrices W1, W2, W3, W out Perform random initialization;
[0055] (3) The bias vectors B1, B2, B3, B out Initialized to 0;
[0056] (4) Randomly extract a preset number of samples from the sample set DataSet without replacement as a batch as the value of the Input layer;
[0057] (5) Calculate the output value of the network and randomly set the preset neuron output value to 0;
[0058] (6) Calculate the cost function according to the following formula:
[0059]
[0060] (7) Adjust weights and biases along the direction of gradient descent;
[0061] (8) Return to step 4 until the sample size is less than the preset number.
[0062] Furthermore, the step S3 is specifically as follows: based on the trained weight matrices W1, W2, W3, W out And the bias matrices B1, B2, B3, B out , according to which the multi-hidden layer deep neural network model is initialized, and with the support of the time series knowledge graph, the environment state matrix Env of the previous k time points is collected and input into the model to obtain the service status decision result Status; then the decision result Status is output to the time series knowledge graph, and with the help of its control capability, control instructions are issued to the corresponding smart home devices to realize the active execution of the corresponding device services.
[0063] Compared with the prior art, the present invention has the following beneficial effects:
[0064] 1. The present invention can learn operating habits from the user's historical behavior data, establish a personalized model, predict the user's operating habits, and use the runtime knowledge graph to automatically perform service operations for the user;
[0065] 2. The present invention realizes intelligent and non-sensitive smart home services without user intervention. Developers only need to provide scenario-oriented contextual knowledge and configure the mapping relationship between concept instances and smart devices;
[0066] 3. The present invention makes use of the high-level abstract capability of the temporal knowledge graph, and this method can greatly reduce the difficulty and complexity of developing smart home services. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Figure 1 It is a logical schematic diagram of the method of the present invention;
[0068] Figure 2 is a runtime knowledge graph in one embodiment of the present invention;
[0069] Figure 3 is a temporal knowledge graph in one embodiment of the present invention;
[0070] Figure 4 is a smart home service decision model in one embodiment of the present invention;
[0071] Figure 5 It is a DNN network structure in one embodiment of the present invention. DETAILED DESCRIPTION
[0072] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0073] Please refer to Figure 1-5The present invention provides a smart home service management and control method based on spatiotemporal data driving, comprising the following steps:
[0074] Step S1: configure the mapping relationship between concept instances and smart devices, and construct a temporal knowledge graph with temporal capabilities;
[0075] Step S2: Read the device status at each moment based on the time interval specified by the scenario, and build a smart home management and control model;
[0076] Step S3: According to the smart home management and control model, smart home service management and control is performed based on deep learning.
[0077] In this embodiment, the runtime knowledge graph constructs a smart home scenario model by defining five smart home knowledge graph concept instances of device, location, user, service, and context and the relations between these concept instances, and realizes two-way synchronization with the smart home scenario through specific execution rules. The runtime knowledge graph is defined as KG:
[0078] KG={(x i ,r i,j ,x j )|x i ,x j ∈E,r i,j ∈R,i≠j} (1)
[0079] E=U∪S∪L∪C∪D (2)
[0080] R={Effect,Locate,Sense,Provide} (3)
[0081] E is the set of all types of instances, including the five categories of User, Service, Location, Context, and Device. R is the set of relationships, including Influence, Location, Perception, and Provision.
[0082] like Figure 2As shown in the figure, location refers to a specific area in the smart home environment, including the physical location information of the area. Other instances can be associated with a specific location, indicating that its scope of action or activity is at a specific location. Device is an abstraction of a specific smart home device. Each device instance contains the device name, device location, device status, and functional information that the device can provide. User is a service target in a smart home, such as a specific resident or green plant. Each user instance contains the user name UName and the user's location information LName, defined as user = <UName, LName>, and the user set is defined as U. Environment (Context) is a specific environmental state that people can perceive, such as temperature, humidity, brightness, etc., including the user and location information bound to the environment, defined as context = <UName, LName, CType, CValue>, and the environment set is defined as C. Each environment instance can be associated with a specific user and location, expressing that the user perceives a certain environmental state at a certain location. The layout of each room in the smart home environment is different, and the environment of each room is also different, so each room has its own Context instance. The user is always associated with the Context instance at the same location, which means that the user can perceive the corresponding Context instance. When the user moves from location A to location B, the user will disconnect from the Context instance at location A and associate with the Context instance at location B. This association is reflected in the knowledge graph through relationships. Service is an abstraction of device functions, and a device often has multiple functions, so a device often corresponds to multiple services. The definition of service is service = <DName, LName, CType, Effect, Status, SValue>, and the set of services is defined as S. Each service can have an impact on the corresponding environment, such as the cooling of air conditioners can reduce the room temperature, and smart lights can increase the brightness. At runtime, the knowledge graph indirectly controls the corresponding device by controlling the service, thereby achieving unified control of various heterogeneous devices.
[0083] The runtime knowledge graph can realize two-way synchronization between the concept instances in the knowledge graph and the devices and environments in the specific smart home scene. That is, while the changes in the state of the environment in the smart home scene are reflected in the runtime knowledge graph, the operations on the service instances on the runtime knowledge graph will also be converted into the operations of the corresponding devices through the execution rules. Based on the runtime knowledge graph model, it is easy to realize the scene-based device and environment information reading and device function control, and developers only need to configure specific contextual knowledge to automatically construct the runtime knowledge graph according to the rules.
[0084] In this embodiment, the temporal knowledge graph is as follows: Figure 3As shown in Figure 2, this model is an extension of the runtime knowledge graph model in the previous work in the time dimension. In addition to describing the concepts and relationships between concepts involved in smart home personalization solutions, it can also represent the changes in concept instances and relationships within a certain period of time.
[0085] The temporal knowledge graph can be understood as a knowledge graph stream (KG Stream) with time labels, that is, the knowledge graph in a given time period {T1,...,T n The state set within the time interval ΔT, the data at each time point includes the knowledge graph state KG at that time point k and time tag t k , can fully describe the state of the smart home scene at the corresponding moment, including the user's location information, the user's perceptible environment state information, the state information of each smart device, etc. The continuous knowledge graph state information can describe the changes in the smart home state over a period of time. The following is a formal definition of the time series knowledge graph:
[0086] TKG={(t k ,KG k )|T1≤t k ≤T n ,t k+1 =t k +ΔT} (4);
[0087] In this embodiment, a user-oriented smart home service management model is proposed. This model uses the spatiotemporal semantic description capability of the time series knowledge graph to extract the service status and environment status sequence that each user is concerned about and predict the relevant service status for them. First, the knowledge graph KG at time t is extracted from TKG t :
[0088] KG t ={(x i ,r i,j ,x j )|x i ,x j ∈E t ,r i,j ∈R t ,i≠j} (5)
[0089] We KG t Take each user u(u∈E t ∧u.Type="User"), define the Context subset that user u can perceive at time t as
[0090]
[0091] Where w is the number of environmental states that the user is concerned about, and the types (CType) of any two ctx are different. It should be noted that The environmental state described in is part of the environmental state in the smart home environment. It is the environmental state attribute value perceived by a specific user at a specified time point, rather than the environmental state value of the entire smart home scene. and The model proposed in this invention is built around the user, and the data it relies on is always determined by the user's spatial location. We can extract the environmental state that the user can perceive at any time, and the spatial information is implicit in the data and transparent to the upper-level decision-making algorithm.
[0092] based on We can further obtain that at time point t The subset of Service instances that are affected by the Context instance in
[0093]
[0094] in accordance with Definition, Can Producing an impact is equivalent to influencing the environment that the user can perceive, that is, the service instance that can provide services to the user at time t, which is the service object we want to control.
[0095] In this embodiment, preferably, the single-user decision model based on the time series knowledge graph is as follows Figure 4 As shown in the figure, the framework takes the context instances perceived by a specific user in the past period of time as input, and uses the DNN model to analyze the currently perceived service instances. Predict and control. Where l is the fixed time window length, w is the number of status types that users care about, and r is the number of services that need to be controlled. In the proposed overall framework, each user served has an independent service prediction model, which relies on the DNN-based algorithm introduced in the next chapter to achieve service status learning and prediction based on time series data.
[0096] In this embodiment, the smart home service management and control method based on deep learning is as follows:
[0097] a) Smart home service prediction method input and output
[0098] According to the definition of temporal knowledge graph, we The environment attribute values (CValue) in the fixed environment type order are extracted to obtain the corresponding environment attribute value sequence
[0099]
[0100] where c i =ctx i .CValue is the attribute value of the i-th environmental attribute. Therefore, the input data X is the environmental state context data perceived by the user within a certain time window:
[0101] X=[E 1 ,E 2 ,...,E k ] T (9)
[0102] In the existing runtime knowledge graph definition, if you need to control a service, you can change the running state of the service by specifying the status value (Status) and parameter value (SValue) of the service. Therefore, the output Y of the model is defined as:
[0103]
[0104] where s i and v i They are The corresponding Status and Svalue in , r is the number of services that need to be controlled.
[0105] b) Neural network structure
[0106] In this embodiment, a multi-hidden layer deep neural network (DNN) model is used to mine the implicit relationship between input and output. Its overall structure is as follows: Figure 5 As shown. The network contains an input layer L in , three fully connected hidden layers H1, H2, H3 and output layer L out The number of neurons N in the input layer is determined by the number of environments p and the length of the time window k. input =p*k, the number of neurons in the output layer is the number of services N output N is determined by the number of services that need to be predicted output =p. The number of neurons in the three hidden layers are N1 = 128, N2 = 256, and N3 = 128. A fully connected structure is used between each layer.
[0107] Where L in The input to each layer of H3 is X i , then its output is
[0108] L i=Sigmoid(X i W i +B i ) (11)
[0109] The activation function used in each layer of the network is Sigmoid, which is defined as:
[0110]
[0111] In particular, we compare the network output with the predetermined threshold th to obtain the output L of the output layer. out :
[0112] L' out ={l1,l2,...,l q =Sigmoid(L3W out +B out ) (13)
[0113]
[0114] In this embodiment, the multi-hidden layer deep neural network model training is specifically as follows:
[0115] (1) Adjust the number of neurons according to the time window length k and the number of environmental attributes q;
[0116] (2) For the weight matrices W1, W2, W3, W out Perform random initialization;
[0117] (3) The bias vectors B1, B2, B3, B out Initialized to 0;
[0118] (4) Randomly extract a preset number of samples from the sample set DataSet without replacement as a batch as the value of the Input layer;
[0119] (5) Calculate the output value of the network according to formula 10-13, and randomly set the preset neuron output value to 0;
[0120] (6) Calculate the cost function according to the following formula:
[0121]
[0122] (7) Adjust weights and biases along the direction of gradient descent;
[0123] (8) Return to step 4 until the sample size is less than the preset number.
[0124] Preferably, in this embodiment, the weight matrices W1, W2, W3, W outAnd the bias matrices B1, B2, B3, B out , according to which the neural network is initialized, and with the support of the time series knowledge graph, the environment state matrix Env of the previous k time points is collected and input into the model to obtain the service state decision result Status. Then the decision result Status is output to the time series knowledge graph, and with its control ability, control instructions are issued to the corresponding smart home devices to realize the active execution of the corresponding device services, achieving a non-sensitive smart home user experience.
[0125] The above description is only a preferred embodiment of the present invention. All equivalent changes and modifications made according to the scope of the patent application of the present invention should fall within the scope of the present invention.
Claims
1. A smart home service management and control method based on spatiotemporal data drive, It is characterized in that The following steps are involved: Step S1: configure the mapping relationship between concept instances and smart devices, and construct a temporal knowledge graph with temporal capabilities; Step S2: Read the device status at each moment based on the time interval specified by the scenario, and build a smart home management and control model; Step S3: According to the smart home management and control model, smart home service management and control is performed based on deep learning; The knowledge graph is defined as KG: KG={(x i ,r i,j ,x j )|x i ,x j ∈E,r i,j ∈R,i≠j} E=U∪S∪L∪C∪D R={Effect,Locate,Sense,Provide} Where E is the set of all types of instances, including five categories: device D, location L, user U, service S, and environment C; R is the set of relationships, including influence, location, perception, and provision; The temporal knowledge graph with temporal capability is a knowledge graph stream with time labels, that is, the knowledge graph in a given time period {T 1 ,…,T n The state set within the time interval ΔT, the data at each time point includes the knowledge graph state KG at that time point k and time tag t k , specifically: TKG={(t k ,KG k )|T 1 ≤t k ≤T n ,t k+1 =t k +ΔT}; The location refers to a specific area in the smart home environment, including the physical location information of the area. Other instances can be associated with a specific location, indicating that its scope of action or activity is at a specific location; The device is an abstraction of a specific smart home device, and each device instance includes the device name, device location, device status, and function information that the device can provide; The user is a service target in the smart home. Each user instance includes the user name UName and the user's location information LName, which is defined as user = <UName, LName>. The set of users is defined as U; The environment is a specific environmental state that can be perceived by humans, including temperature, humidity, brightness, and user and location information bound to the environment, and is defined as context = <UName, LName, CType, CValue>. The set of environments is defined as C. Each environment instance can be associated with a specific user and location, expressing that the user perceives a certain environmental state at a certain location. The service is an abstraction of device functions. One device corresponds to multiple services. The service is defined as service = <DName, LName, CType, Effect, Status, SValue>, and the set of services is defined as S. Each service can have an impact on the corresponding environment. The runtime knowledge graph indirectly controls the corresponding device by controlling the service, thereby achieving unified control of various heterogeneous devices. The smart home control model is constructed based on the temporal knowledge graph model, specifically: First, extract the knowledge graph KG at time t from TKG t : KG t ={(x i ,r i,j ,x j )|x i ,x j ∈E t ,r i,j ∈R t ,i≠j} From KG t Take each user u(u∈E t ∧u.Type="User"), define the Context subset that user u can perceive at time t as Where w is the number of environmental states that the user is concerned about, and the types of any two ctx are different; The environmental state described in is part of the environmental state in the smart home environment, which is the environmental state attribute value perceived by a specific user at a specified time point, rather than the environmental state value of the entire smart home scene; based on Get the value that can be obtained at time point t The subset of Service instances that are affected by the Context instance in in accordance with Definition, Can Producing an impact is equivalent to influencing the environment that the user can perceive, that is, the service instance that can provide services to the user at time t, which is the service object we want to control.
2. According to the smart home service management and control method based on spatiotemporal data drive according to claim 1, It is characterized in that The input and output of the smart home control model are as follows: According to the definition of the time series knowledge graph, each The environment attribute values in the fixed environment type order are extracted to obtain the corresponding environment attribute value sequence where c i =ctx i .CValue, the attribute value of the i-th environment attribute; Therefore, the input data X is the contextual data of the environment state perceived by the user within a certain time window: X=[E 1 ,AND 2 ,...,AND k ] T The output Y of the model is defined as: where s i and v i They are The corresponding Status and Svalue in , r is the number of services that need to be controlled.
3. According to the smart home service management and control method based on spatiotemporal data drive according to claim 2, It is characterized in that The step S3 uses a multi-hidden layer deep neural network model to mine the implicit relationship between input and output.
4. According to the method for controlling smart home services based on spatiotemporal data drive according to claim 3, It is characterized in that The multi-hidden layer deep neural network model includes an input layer L in , three fully connected hidden layers H 1 , H 2 , H 3 And the output layer L out ; The number of neurons N in the input layer is determined by the number of environments p and the length of the time window k. input =p*k, the number of neurons in the output layer is the number of services N output N is determined by the number of services that need to be predicted output =p; The number of neurons in the three hidden layers is N 1 ,N 2 ,N 3 ; A fully connected structure is used between each layer; Where L in To H 3 The input of each layer is X i , then its output is L i =Sigmoid(X i W i +B i ) The activation function used in each layer of the network is Sigmoid, which is defined as: Compare the network output result with the predetermined threshold th to obtain the output L of the output layer out : L' out ={l 1 ,l 2 ,...,l q }=Sigmoid(L 3 W out +B out ) 5. According to the smart home service management and control method based on spatiotemporal data drive according to claim 3, It is characterized in that The multi-hidden layer deep neural network model training is specifically as follows: (1) Adjust the number of neurons according to the time window length k and the number of environmental attributes q; (2) Weight matrix W 1 ,W 2 ,W 3 ,W out Perform random initialization; (3) The bias vector B 1 ,B 2 ,B 3 ,B out Initialized to 0; (4) Randomly extract a preset number of samples from the sample set DataSet without replacement as a batch as the value of the Input layer; (5) Calculate the output value of the network and randomly set the preset neuron output value to 0; (6) Calculate the cost function according to the following formula: (7) Adjust weights and biases along the direction of gradient descent; (8) Return to step 4 until the sample size is less than the preset number.
6. According to the spatiotemporal data-driven smart home service management and control method of claim 5, It is characterized in that The step S3 is specifically as follows: based on the trained weight matrix W 1 ,W 2 ,W 3 ,W out And the bias matrix B 1 ,B 2 ,B 3 ,B out , according to which the multi-hidden layer deep neural network model is initialized, and with the support of the time series knowledge graph, the environment state matrix Env of the previous k time points is collected and input into the model to obtain the service status decision result Status; The decision result Status is then output to the time series knowledge graph, and with the help of its control capability, control instructions are issued to the corresponding smart home devices to achieve the active execution of the corresponding device services.
Citation Information
Patent Citations
A runtime modeling and executing method for a smart home context awareness service
CN109446700A
