A runtime verification method for smart home based on quantized timing constraints

Through the smart home runtime verification method based on quantified timing constraints, the state space explosion problem of smart home systems under complexity and hardware uncertainty is solved, real-time verification and feedback are achieved, and the reliability and security of the system are improved.

CN114676003BActive Publication Date: 2024-10-18NANJING UNIV OF SCI & TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210023752.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-10
Publication Date
2024-10-18
Estimated Expiration
2042-01-10

AI Technical Summary

Technical Problem

When smart home systems face complexity and hardware uncertainty, static verification methods cannot effectively solve the problem of state space explosion and cannot detect and respond to operational errors in real time, affecting the security and reliability of the system.

Method used

Adopting a runtime verification method based on quantified timing constraints, by defining user requirements, converting them into timing logic formulas, generating attribute monitors, obtaining environmental attribute values, preprocessing data, using the S-Taliro tool to verify status, and triggering device operations based on the results to meet demand.

Benefits of technology

It effectively overcomes the state space explosion problem, realizes real-time verification and feedback of the smart home system, and improves the reliability and security of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114676003B_ABST
    Figure CN114676003B_ABST
Patent Text Reader

Abstract

The present invention discloses a smart home runtime verification method based on quantified timing constraints. Based on the quantified timing constraints, the environmental requirements when a user performs autonomous activities are defined; based on the metric timing logic, the defined environmental requirements are converted into a timing logic formula, and the property specification is performed to generate an attribute monitor; through sensors, the attribute values ​​of environmental attributes in the smart home system are obtained, and preprocessed to obtain runtime state data; based on the verification algorithm in the S‑Taliro tool, combined with the runtime state data and the attribute monitor of the smart home system, it is verified whether the runtime state of the smart home system meets the requirements; according to the verification result, the smart home device is triggered to perform different operations, if the requirements are met, the smart home system maintains the current state, otherwise the operation state of the smart home device is changed according to the predefined strategy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart home runtime verification, and in particular to a smart home runtime verification method based on quantized timing constraints. Background Art

[0002] With the development of modern environmental perception technology and Internet of Things technology, new smart home technologies and their applications have flourished. However, in the actual operation process, certain physical environments may affect the smart home program. In order to ensure the safety and reliability of smart home operation, it is necessary to monitor the system during operation, detect system operation errors in a timely manner, and help relevant personnel to actively respond. At present, the verification of smart home systems mainly adopts static verification methods, such as verification by exhaustively traversing the model state space, which can clearly give the verification result, that is, whether the model conforms to the specification. However, in the face of the increasing complexity of smart home software and the uncertainty of related hardware architecture, model checking technology will encounter the problem of state space explosion and cannot give a good verification result. Summary of the invention

[0003] The object of the present invention is to provide a smart home runtime verification method based on quantized timing constraints.

[0004] The technical solution to achieve the purpose of the present invention is: a smart home runtime verification method based on quantized timing constraints, comprising the following steps:

[0005] Step 1: Define the environment requirements when users perform autonomous activities based on quantitative timing constraints;

[0006] Step 2: Based on the measurement temporal logic, the defined environmental requirements are converted into temporal logic formulas, and the properties are reduced to generate attribute monitors;

[0007] Step 3, obtaining attribute values ​​of environmental attributes in the smart home system through sensors, and performing preprocessing to obtain runtime state data;

[0008] Step 4: Based on the verification algorithm in the S-Taliro tool, combined with the runtime status data and attribute monitor of the smart home system, verify whether the runtime status of the smart home system meets the requirements;

[0009] Step 5: According to the verification result, the smart home application device is triggered to perform different operations. If the requirements are met, the smart home system maintains the current state; otherwise, the operation state of the smart home device is changed according to the predefined strategy.

[0010] Furthermore, in step 1, based on the quantified timing constraints, the environmental requirements for users to perform autonomous activities are defined. The specific method is as follows:

[0011] 11) According to the time interval theory, the time constraint is described in the form of an interval: Time:[a,b], where a and b represent the earliest and latest time points that the demand needs to be met, respectively. <b;

[0012] 12) In the form of a two-tuple: Request:<actType,req> , define the requirements, where actType is the user activity type, req is a set of constraints on related environmental attributes, and it is a formula defined by analogy with the temporal logic syntax of measurement: req:=pred|◇ [a,b] pred|□ [a,b] pred;

[0013] In the req formula, pred is the constraint of the environment attribute, [a,b] It is a "final" operator with a time limit, indicating that in the future time period [a, b], there is a constraint that is satisfied from a certain moment. If there is no time limit, it means that it is always valid; [a,b] The "always" operator with a time limit means that the constraint is always satisfied in the future time period [a,b]. If there is no time limit, it means that it is always valid.

[0014] Furthermore, in step 2, based on the measurement temporal logic, the defined environmental requirements are converted into temporal logic formulas, and property reduction is performed to generate attribute monitors to realize the monitoring of environmental attributes. The specific method is as follows:

[0015] 21) Use the measurement timing logic MTL formula to transform the defined environmental requirement Request into the corresponding timing constraint logic formula, where the measurement timing logic MTL formula is:

[0016] phi:=p|(phi)|! phi|phi∨phi|phi∧phi|phi→phi|◇ [a,b] phi|□ [a,b] phi

[0017] Where p is a predicate used to describe related properties; ! is the logical relation word "not"; ∨ is the logical relation word "or"; ∧ is the logical relation word "and"; → is the logical relation word "implies"; ◇ [a,b] It is a "final" operator with a time limit, indicating that in the future time period [a, b], there is a constraint that is satisfied from a certain moment. If there is no time limit, it means that it is always valid; [a,b] The "always" operator with a time limit means that the constraint is always satisfied in the future time period [a, b]. If there is no time limit, it means that it is always valid;

[0018] According to the above logic, the defined environmental requirement Request is transformed into the corresponding temporal constraint logic formula phi. In phi, the relevant environmental attributes are described as predicate p in the MTL formula;

[0019] 22) Summarize the logical formulas phi of the same activity type actType to obtain the set of temporal constraint logic formulas Nature: {phi 1 ,phi 2 ,…,phi n};

[0020] 23) For each phi formula in the logic formula set Nature, perform property reduction, generate attribute monitor Pred, formally describe the constraints of each predicate, implement the mapping of predicates to their respective constraints, and specify the monitoring position to complete the monitoring of environmental attributes.

[0021] Furthermore, in step 3, the attribute values ​​of the environmental attributes in the smart home system are obtained through sensors, and preprocessed to obtain runtime state data. The specific method is:

[0022] 31) Obtain the attribute values ​​of the environment attributes in the smart home system through sensors and describe them in the form of triples State:<time,attribute,dataList> , where time is time, attribute is attribute name, and dataList is attribute value;

[0023] 32) Non-numeric attribute values ​​are converted to digits, and attribute information is summarized to form an operation status table Table:{state}, thereby obtaining the runtime status data of the system.

[0024] Furthermore, in step 5, according to the verification result, the smart home device is triggered to perform different operations. If the requirements are met, the smart home system maintains the current state. Otherwise, the operation state of the smart home device is changed according to the predefined strategy. The specific method is:

[0025] 51) If the defined environmental requirements are met, the smart home system is controlled to maintain the current state and continue to operate; if not, go to 52);

[0026] 52) Obtain unsatisfied property predicates, find the corresponding sensor type, query related smart home devices, obtain the operating status of the current device, and if there is a predefined strategy, that is, change the operating status of the current device, trigger the device to perform the corresponding operation; if not, go to step 53);

[0027] 53) If there is no predefined strategy, that is, the operating state of the smart home cannot be changed, a notification is sent to the user, indicating that the demand cannot be met.

[0028] A smart home runtime verification system based on quantized timing constraints utilizes the smart home runtime verification method based on quantized timing constraints to implement smart home runtime verification based on quantized timing constraints.

[0029] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for smart home runtime verification based on quantized timing constraints is utilized to implement smart home runtime verification based on quantized timing constraints.

[0030] A computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the method for smart home runtime verification based on quantized timing constraints is utilized to implement smart home runtime verification based on quantized timing constraints.

[0031] Compared with the prior art, the present invention has the following significant advantages: based on the definition of requirements based on quantitative timing constraints, the timing requirements of smart home users can be better described; runtime verification is used to effectively overcome the state space explosion problem caused by model verification of the smart home system; and real-time feedback of verification results can be achieved to improve the reliability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is the runtime verification process dependency graph.

[0033] Figure 2 It is the flow chart of runtime verification system.

[0034] Figure 3 It is a table of environmental attribute values.

[0035] Figure 4 It is a table diagram of the current runtime status data. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0037] A smart home runtime verification method based on quantized timing constraints specifically includes the following steps:

[0038] Step 1: Based on the quantified temporal constraints, define the system-level and application-level requirements for the environment when the user performs autonomous activities.

[0039] In Step 1, relevant requirements need to be defined. The smart home system has functions such as identifying activities, perceiving information related to activities, and providing relevant support for activities. When the user performs autonomous activities such as sleeping and reading in the smart home, there are different requirements for the relevant environment. Therefore, the relevant requirements in the smart home system should be expressed as environment constraints related to activities. At the same time, from the perspective of time, each type of activity has a duration, so only the requirements for each continuous time period need to be considered. The quantified temporal constraint problem is defined as a set of finite variable sets X = {X 1 , X 2 … X n} and a set of constraints {C 1 , C 2 … C n} on the variables. Each variable represents a time point, and the constraints between the variables represent the temporal relationship between the time points. Therefore, the definition of requirements includes the following steps:

[0040] 11) According to the time interval theory, describe the time constraint in the form of an interval: Time: [a, b], where a and b represent the earliest time point and the latest time point that the requirement needs to meet, respectively, and a < b. For example, when the user is sleeping, it is required that the bedroom temperature reaches 23 - 25°C within 0 - 15 minutes, then the time constraint of this requirement is quantified as Time: [0, 15];

[0041] 12) Define the requirement in the form of a binary tuple: Request: <actType, req>. Where actType is the user activity type, and req is a set of constraints on the relevant environment attributes, and it is a formula defined by analogy with the syntax of Metric Temporal Logic (MTL): req := pred | ◇ [a,b] pred | □ [a,b] pred.

[0042] In the req formula, pred is the constraint of the environment attribute. For example, if "the temperature (Temperature) needs to reach 23 - 25°C", then pred is "Temperature > 23 ∧ Temperature < 25"; ◇ [a,b] is the "eventually" operator with a time limit, indicating that within the future time period [a, b], there exists a moment when the constraint is satisfied. If there is no time limit, it means it is always valid; □ [a,b]The "always" operator with a time limit means that the constraint is always satisfied in the future time period [a,b]. If there is no time limit, it means that it is always valid.

[0043] Through the above steps, the system-level and application-level requirements in the smart home scenario can be obtained.

[0044] Step 2: Convert the defined system-level and application-level requirements into temporal logic formulas based on Metric Temporal Logic (MTL). Perform property reduction and generate attribute monitors to monitor environmental attributes.

[0045] The step 2 specifically includes the following steps:

[0046] 21) Using the Metric Temporal Logic (MTL) formula:

[0047] phi:=p|(phi)|! phi|phi∨phi|phi∧phi|phi→phi|◇ [a,b] phi|□ [a,b] phi

[0048] Where p is a predicate used to describe related properties; ! is the logical relation word "not"; ∨ is the logical relation word "or"; ∧ is the logical relation word "and"; → is the logical relation word "implies"; ◇ [a,b] It is a "final" operator with a time limit, indicating that in the future time period [a, b], there is a time that satisfies the constraint from a certain moment. If there is no time limit, it means that it is always valid; [a,b] The "always" operator with a time limit means that the constraint is always satisfied in the future time period [a,b]. If there is no time limit, it means that it is always valid;

[0049] According to the above logic, the defined system-level and application-level requirements Request are converted into the corresponding timing constraint logic formula phi. In phi, the relevant environmental attributes are described as predicates p in the MTL formula.

[0050] 22) Summarize the logical formulas phi of the same activity type actType to obtain the set of temporal constraint logic formulas Nature: {phi 1 ,phi 2 ,…,phi n};

[0051] 23) For each phi formula in the logic formula set Nature, perform property reduction and generate the attribute monitor Pred. According to the number of predicates in the phi formula, the dimension n of the monitor Pred is obtained. Then it is necessary to formally describe the constraints of each predicate in the monitor Pred to realize the mapping of predicates to their respective constraints. For example, "Temperature>23" is formalized as "Pred(i).A=[0 0 0 -1 0];Pred(i).b=[-23.0]", where Pred is a mapping from the predicate to its own state, and the data type is a structure type: "Pred.str" represents the predicate name, "Pred(i).A" and "Pred(i).b" represent constraints in the form of Ax<=b. At the same time, it is also necessary to determine the monitoring position of the attribute. For example, specify the monitoring position for temperature (Temperature): "Pred(i).loc=5".

[0052] Through the above steps, a property monitor can be obtained to realize the monitoring of environmental properties.

[0053] Step 3: Obtain the attribute values ​​of the environmental attributes in the smart home system through sensors, and perform preprocessing to obtain runtime status data.

[0054] The step 3 mainly includes the following steps:

[0055] 31) Obtain the attribute values ​​of the environment attributes in the smart home system through sensors. Describe them in the form of triples State:<time,attribute,dataList> , where time is time, attribute is attribute name, and dataList is attribute value;

[0056] 32) Non-numeric attribute values ​​are digitized, such as the on / off state of equipment in the environment can be digitized as 0 / 1, etc. The attribute information is summarized to form an operation status table Table:{state}, thereby obtaining the runtime status data of the system.

[0057] Through the above steps, the runtime status data of the smart home system can be obtained;

[0058] Step 4: Based on the defined system-level and application-level requirements and the runtime status data of the smart home system, a runtime verification algorithm is used to verify whether the runtime status of the smart home system meets the requirements.

[0059] In step 4, runtime verification is performed as follows:

[0060] 41) Define the running time of the verification algorithm;

[0061] 42) Call the verification algorithm in the S-Taliro tool, input the corresponding logical formula and its constraints, the running time and the corresponding running status in the running status data, so as to realize the verification of the running status, and output the verification result, that is, whether the running status of the smart home system meets the requirements.

[0062] Step 5: trigger different operations of the smart home application device according to the verification result.

[0063] The step 5 mainly includes the following steps:

[0064] 51) If satisfied, the smart home system maintains the current state and continues to operate. If not satisfied, go to step 52);

[0065] 52) Get the unsatisfied property predicate and find the corresponding sensor type. Then, query the relevant smart home devices and get the running status of the current device. If there is a predefined policy, that is, it can change the running status of the current device, then trigger the device to perform the corresponding operation. If not, go to step 53);

[0066] 53) If there is no predefined policy, that is, the operating status of the current device cannot be changed, a notification is sent to the user, indicating that the demand cannot be met.

[0067] The present invention also proposes a smart home runtime verification system based on quantized timing constraints, and utilizes the smart home runtime verification method based on quantized timing constraints to implement smart home runtime verification based on quantized timing constraints.

[0068] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for smart home runtime verification based on quantized timing constraints is utilized to implement smart home runtime verification based on quantized timing constraints.

[0069] A computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the method for smart home runtime verification based on quantized timing constraints is utilized to implement smart home runtime verification based on quantized timing constraints.

[0070] Example

[0071] In order to verify the effectiveness of the solution of the present invention, the environmental requirements of a smart home are taken as an example to further illustrate the solution of the present invention.

[0072] The requirements in the smart home scenario are as follows:

[0073] At 1:30 pm, the user is going to take a nap in the bedroom. Therefore, the curtains of the bedroom need to be drawn and the windows closed within 1-3 minutes, and the temperature in the bedroom needs to reach about 24° C. and the humidity needs to reach about 50% within 15 minutes.

[0074] The implementation steps of the smart home runtime verification method are as follows:

[0075] Step 1) Based on the quantified timing constraints, define the system-level and application-level requirements for the environment when the user performs autonomous activities;

[0076] 11) According to the time interval theory, the time constraint is described in the form of interval:

[0077] Time:[1,3]

[0078] Time:[0,15]

[0079] 12) In the form of a two-tuple: Request:<actType,req> , define the requirements.

[0080] Request:<Sleeping,req> , where req includes:

[0081] req1:◇_[1,3](Close(Curtain))

[0082] req2:◇_[1,3](Close(Window))

[0083] req3:◇_[0,15]□((Temperature>23∧Temperature<25))

[0084] req4:◇_[0,15]□((Humidity>40∧Humidity<60))

[0085] Step 2) The defined system-level and application-level requirements are converted into temporal logic formulas based on Metric Temporal Logic (MTL). Property reduction is performed to generate attribute monitors to monitor environmental attributes.

[0086] 21) Use the measurement timing logic MTL formula to transform the defined requirement Request into the corresponding timing constraint logic formula phi:

[0087] phi 1 :='[](a->(<>_[0,3](b)))'

[0088] phi 2:='[](a->(<>_[0,3](c)))'

[0089] phi 3 :='[](a->(<>_[0,15][]((d1 / \d2))))'

[0090] phi 4 :='[](a->(<>_[0,15][]((e1 / \e2))))'

[0091] 22) Summarize the logical formulas phi of the same activity type actType to obtain the set of temporal constraint logic formulas Nature: {phi 1 ,phi 2 ,phi 3};

[0092] 23) For each phi formula in the logic formula set Nature, perform property reduction and generate an attribute monitor Pred.

[0093] i=1;

[0094] Pred(i).str = 'a';

[0095] Pred(i).A = [-10000];

[0096] Pred(i).b = [-0.5];

[0097] Pred(i).loc=2;

[0098] i=i+1;

[0099] Pred(i).str = 'b';

[0100] Pred(i).A=

[01000] ;

[0101] Pred(i).b = [0.5];

[0102] Pred(i).loc=3;

[0103] i=i+1;

[0104] Pred(i).str = 'c';

[0105] Pred(i).A=

[00100] ;

[0106] Pred(i).b = [0.5];

[0107] Pred(i).loc=4;

[0108] i=i+1;

[0109] Pred(i).str = 'd1';

[0110] Pred(i).A=[000-10];

[0111] Pred(i).b = [-23.0];

[0112] Pred(i).loc=5;

[0113] i=i+1;

[0114] Pred(i).str = 'd2';

[0115] Pred(i).A=

[00010] ;

[0116] Pred(i).b = [25.0];

[0117] Pred(i).loc=5;

[0118] i=i+1;

[0119] Pred(i).str = 'e1';

[0120] Pred(i).A=[0000-1];

[0121] Pred(i).b = [-40.0];

[0122] Pred(i).loc=6;4

[0123] i=i+1;

[0124] Pred(i).str = 'e2';

[0125] Pred(i).A=

[00001] ;

[0126] Pred(i).b = [60.0];

[0127] Pred(i).loc=6;

[0128] Step 3) obtaining attribute values ​​of environmental attributes in the smart home system through sensors, and performing preprocessing to obtain runtime state data;

[0129] 31) Obtain the attribute values ​​of the environmental attributes in the smart home system through sensors. Figure 3 As shown;

[0130] 32) For non-numeric attribute values, digitize them. For example, the on / off status of equipment in the environment can be digitized as 0 / 1, etc., and the attribute information is summarized to form an operation status table, thereby obtaining the system's runtime status data. Figure 4 shown.

[0131] Step 4) According to the defined system-level and application-level requirements and the runtime state data of the smart home system, a runtime verification algorithm is used to verify whether the runtime state of the smart home system meets the requirements;

[0132] 41) Define the running time of the verification algorithm;

[0133] time = 1:1:20;

[0134] 42) Call the verification algorithm in the S-Taliro tool to verify the runtime status and output the verification result: rob_dp = 0.5000. Therefore, the runtime status of the smart home system meets the requirements.

[0135] Step 5) According to the verification results, if the system's runtime state meets the requirements, the current state is maintained and the system continues to run.

[0136] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0137] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A smart home runtime verification method based on quantized timing constraints, characterized in that: The steps include: Step 1: Define the environment requirements when users perform autonomous activities based on quantitative timing constraints; Step 2: Based on the measurement temporal logic, the defined environmental requirements are converted into temporal logic formulas, and the properties are reduced to generate attribute monitors; Step 3, obtaining attribute values ​​of environmental attributes in the smart home system through sensors, and performing preprocessing to obtain runtime state data; Step 4: Based on the verification algorithm in the S-Taliro tool, combined with the runtime status data and attribute monitor of the smart home system, verify whether the runtime status of the smart home system meets the requirements; Step 5: trigger the smart home device to perform different operations according to the verification result. If the requirements are met, the smart home system maintains the current state; otherwise, the operation state of the smart home device is changed according to the predefined strategy; In step 1, based on the quantitative timing constraints, the environmental requirements for users to perform autonomous activities are defined as follows: 11) According to the time interval theory, the time constraint is described in the form of an interval: Time:[a,b], where a and b represent the earliest and latest time points that the demand needs to be met, respectively. <b; 12) In the form of a two-tuple: Request:<actType ,req> , define the requirements, where actType is the user activity type, req is a set of constraints on related environmental attributes, and it is a formula defined by analogy with the temporal logic syntax of measurement: req:= pred |◇ [a ,b] pred |□ [a ,b] pred; In the req formula, pred is the constraint of the environment attribute, [a ,b] It is a "final" operator with a time limit, indicating that in the future time period [a, b], there is a time that satisfies the constraint from a certain moment on. If there is no time limit, it means that it is always valid; [a ,b] The "always" operator with a time limit means that the constraint is always satisfied in the future time period [a, b]. If there is no time limit, it means that it is always valid. In step 2, based on the measurement temporal logic, the defined environmental requirements are converted into temporal logic formulas, and the properties are reduced to generate attribute monitors. The specific method is as follows: 21) Use the measurement timing logic MTL formula to transform the defined environmental requirement Request into the corresponding timing constraint logic formula, where the measurement timing logic MTL formula is: phi:= p | (phi) | ! phi | phi∨phi | phi∧phi | phi ⟶phi | ◇ [a ,b] phi |□ [a ,b] fly Where p is a predicate used to describe related properties; ! is the logical relation word "not"; ∨ is the logical relation word "or"; ∧ is the logical relation word "and"; ⟶ is the logical relation word "implies"; ◇ [a ,b] It is a "final" operator with a time limit, indicating that in the future time period [a, b], there is a time that satisfies the constraint from a certain moment on. If there is no time limit, it means that it is always valid; [a ,b] The "always" operator with a time limit means that the constraint is always satisfied in the future time period [a, b]. If there is no time limit, it means that it is always valid. According to the above logic, the defined environmental requirement Request is transformed into the corresponding temporal constraint logic formula phi. In phi, the relevant environmental attributes are described as predicates p in the MTL formula. 22) Summarize the logical formulas phi of the same activity type actType to obtain the set of temporal constraint logic formulas Nature:{ phi1 , phi2 ,…, phi n }; 23) For each phi formula in the logic formula set Nature, perform property reduction, generate attribute monitor Pred, formally describe the constraints of each predicate, implement the mapping of predicates to their respective constraints, and specify the monitoring position to complete the monitoring of environmental attributes.

2. The smart home runtime verification method based on quantized timing constraints according to claim 1 is characterized in that: In step 3, the attribute values ​​of the environmental attributes in the smart home system are obtained through sensors, and preprocessed to obtain runtime state data. The specific method is as follows: 31) Obtain the attribute values ​​of the environment attributes in the smart home system through sensors and describe them in the form of triples State: < time, attribute, dataList >, where time is time, attribute is the attribute name, and dataList is the attribute value; 32) Non-numeric attribute values ​​are converted to digits, and attribute information is summarized to form an operation status table Table:{state}, thereby obtaining the runtime status data of the system.

3. The smart home runtime verification method based on quantized timing constraints according to claim 1 is characterized in that: In step 5, according to the verification result, the smart home device is triggered to perform different operations. If the requirements are met, the smart home system maintains the current state. Otherwise, the operation state of the smart home device is changed according to the predefined strategy. The specific method is as follows: 51) If the defined environmental requirements are met, the smart home system is controlled to maintain the current state and continue to operate; if not, go to 52); 52) Obtain unsatisfied property predicates, find the corresponding sensor type, query related smart home devices, obtain the operating status of the current device, and if there is a predefined strategy, that is, change the operating status of the current device, trigger the device to perform the corresponding operation; if not, go to step 53); 53) If there is no predefined strategy, that is, the operating state of the smart home cannot be changed, a notification is sent to the user, indicating that the demand cannot be met.

4. A smart home runtime verification system based on quantized timing constraints, characterized in that: The smart home runtime verification method based on quantized timing constraints described in any one of claims 1 to 3 is used to implement smart home runtime verification based on quantized timing constraints.

5. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the smart home runtime verification method based on quantized timing constraints according to any one of claims 1 to 3 is used to implement smart home runtime verification based on quantized timing constraints.

6. A computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the smart home runtime verification method based on quantized timing constraints according to any one of claims 1 to 3 is used to implement smart home runtime verification based on quantized timing constraints.

Citation Information

Patent Citations

  • Intelligent household energy management method based on intelligent wearable equipment behavior perception

    CN105045234A

  • Dynamically changing home gateway access method and system in smart home

    CN106713364A