Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Below respectively by reference to the accompanying drawings, to the embodiment of the present invention provide a kind of automatically complete Event-Action association method and relevant device be described.
Before the method for the Event-Action association provided the embodiment of the present invention is described, first the system architecture that the method for Event-Action association in the embodiment of the present invention relies on is described, as shown in Figure 1, this system architecture at least comprises other communication facilitiess (can as all kinds equipment of control terminal, such as mobile terminal) in home appliance (having communication function), home gateway and home network.Wherein, in home network, home appliance is connected with home gateway and other communication facilitiess respectively, and home gateway is connected with other communication facilitiess.In embodiments of the present invention, not limiting the concrete quantity of home appliance, can be one or more, and quantity and the type of other communication facilitiess in home network also do not limit.
Under normal condition, home appliance sends the Event signal of a certain event to home gateway, other communication facilitiess send the Action of corresponding operating to home gateway, but, in prior art, need associating between user's manual configuration event with operation, namely clearly can not configure the association between Event signal and Action signal.Such as after the operating habit of user changes, the Event signal before configured and the correlation rule of Action signal will be invalid, or can not excavate the potential operating habit of self.Therefore, the method of the Event-Action association provided in the embodiment of the present invention, solve in prior art the problem needing user manual configuration Event-Action correlation rule, achieve the automatic configuration of Event-Action correlation rule, and the whole potential operating habit of user can be excavated.
Specifically, a kind of method automatically completing Event-Action association that the embodiment of the present invention provides, as shown in Figure 2, comprises the steps:
The Event signal that S11, reception Event signal generating apparatus export.
The Action signal that S12, reception control terminal export.
S13, excavate the correlation rule of above-mentioned Event signal and Action signal.
S14, described correlation rule is sent to rule base.
Respectively each step is above described below.
In a centralized home network, as shown in Figure 3, there is a gateway, home appliance and control terminal are all connected to gateway.Rule engine may operate on this gateway, also may operate on another equipment of being connected with gateway.Home appliance sends Event signal with the forms of broadcasting in home network, can be received by equipment interested in this network.Such as, the Event signal that home appliance A broadcasts is received by gateway and control terminal (such as mobile phone).Gateway records this event after receiving this Event signal, stored in database.Mobile phone is shown to user after receiving this Event signal, and user sends the instruction of the Action performing another home appliance B by mobile phone.First this instruction is sent to gateway, and this operation of gateway record, stored in database.Meanwhile, this instruction is transmitted to home appliance B by gateway, completes household electrical appliances operation.
After some time, gateway, by excavating the record data stored, produces an Event-Action correlation rule, is set to the rule base of Rule engine.Home appliance A sends this Event signal again, is received by Rule engine.Rule engine checks rule base, finds corresponding Event-Action rule, sends the instruction performing corresponding Action to home appliance B.Household electrical appliances B receives instruction, completes corresponding operation.
In the method for the above-mentioned Event-Action association provided in the embodiment of the present invention, the Event signal that Event signal generating apparatus (as home appliance) exports can be received by home gateway, and receive the Action signal that other communication facilitiess (can as all kinds equipment of control terminal, such as mobile terminal) export.Wherein, other communication facilitiess described are before output Action signal, and receive the Event signal that home appliance sends, other communication facilitiess can export according to this Event signal the operational order needed, i.e. Action signal.
Other communication facilitiess in a database, are then exported Action signal storage in the record sheet at corresponding Event signal place by the Event signal storage that first home appliance received exports by home gateway.Home gateway carries out data mining to the Event signal after storage some cycles and Action signal, determine the correlation rule of the Event signal that home appliance exports and the Action that other communication facilitiess export, and this correlation rule is stored in corresponding rule base.
Based on this, when home gateway receives the identical Event signal of home appliance output again, first rule searching storehouse, check whether there is the Event-Action correlation rule corresponding with this Event signal, if there is corresponding Event-Action correlation rule, then extract the Action signal in this Event-Action correlation rule, and by the home appliance of this Action signal transmission.Home appliance performs the action belonging to it after receiving Action signal.
Correspondingly, in above-mentioned steps S11, after home appliance sends Event signal, home gateway and other communication facilitiess (can as all kinds equipment of control terminal, such as mobile terminal) all receive described Event signal.Wherein, home gateway, before this Event signal of reception, also needs setup times parameter, specifically comprises:
The record period of setting Event signal and record start time.Such as, home gateway can be 3 days to the record period of Event signal, record the 07:30 moment that the start time is every day, namely home gateway to receive in 3 days all there is same alike result Event signal and corresponding Action signal carry out data statistics and excavation, determine Event-Action correlation rule.To the statistical of the Action signal corresponding to Event signal be wherein:
The first, setting Event signal associates the cycle with Action signal.Such as, home gateway can be 3 minutes to Event signal with the cycle that associates of Action signal, namely all Action signals received in 3 minutes after receiving Event signal are stored sequentially in the record sheet of described Event signal according to time order and function by home gateway, and in the present embodiment, record sheet refers to the record sheet of Event signal in database.
The second, sets the frequency threshold value of the Event signal received.Such as, the frequency threshold value of home gateway to the Event signal received is set as 5 times, namely 5 the Action signals received after receiving Event signal are stored sequentially in the record sheet of described Event signal according to time order and function by home gateway, and in the present embodiment, record sheet refers to the record sheet of Event signal in database.
The Event signal that home gateway receives comprises attribute information and the temporal information of this signal.Attribute information, refers to the attribute of this home appliance event representated by Event signal, such as " curtain is opened ".Temporal information, refer to the time of this home appliance event representated by Event signal, such as curtain opening time is the 08:00 moment.
Further, in above-mentioned steps S12, the Action signal that home gateway receives also comprises attribute information and the temporal information of this signal.Attribute information, refer to the attribute of the operation that other communication facilitiess send to some home appliances, such as, other communication facilitiess are after receiving the Event signal of " curtain is opened ", send the operation signal of " full open window " to window, " full open window " is the attribute information of this Action.Temporal information, refer to, other communication facilitiess are to the time of some home appliance transmit operations, such as, other communication facilitiess are after receiving the Event signal of " curtain is opened ", send the operation signal of " full open window " in the 08:15 moment to window, the 08:15 moment is the temporal information of this Action.
Further, in above-mentioned steps S13, need before data mining to set the association judgment rule whether forming correlation rule between Event signal and Action signal, if Event signal and Action signal meet the judgement requirement associating judgment rule, then form the Event-Action correlation rule of Event signal and Action signal, and Event-Action correlation rule is stored in rule base.In the present embodiment, dependent probability is taked to be greater than the association judgment rule of threshold value, namely judge whether the occurrence frequency of Action signal in the record sheet of Event signal place is greater than judgment threshold, if be greater than judgment threshold, then form the Event-Action correlation rule of Event signal and Action signal, and Event-Action correlation rule is stored in rule base.Such as, after EventA occurs, Action B occurs 2 times, Action C occurs once, the dependent probability of Event A to Action B is 2/3rds, given threshold is 2/3rds, then be equivalent to Event A to Action B and meet correlation rule, a pair Event-Action correlation rule can be set to.
Further, in above-mentioned steps S13, need before data mining to carry out data statistics to the Event signal received in record period and Action signal, specifically comprise:
Add up the number of times of the Event signal of the home appliance output received.But before adding up the number of times of described Event signal received, also need the time after judging reception Event signal to associate the cycle whether more than Event signal and Action signal, if exceed, adjustment receives the numerical value of the number of times of Event signal, such as the numerical value of the number of times of Event signal is added 1, if do not exceed, home gateway continues the Action signal receiving control terminal output.
Add up the occurrence frequency of the Action signal of the Event signal place record sheet of the home appliance output received, can determine that Event-Action correlation rule provides data basis for home gateway carries out data mining.Such as, after Event A occurs, ActionB occurs 2 times, Action C occurs once, the dependent probability of Event A to Action B is 2/3rds, given threshold is 2/3rds, then be equivalent to Event A to Action B and meet correlation rule, a pair Event-Action correlation rule can be set to.But need before carrying out the statistics of occurrence frequency to judge whether further to add up, this Rule of judgment mainly comprises two kinds of situations, and any one Rule of judgment can be taked to implement:
The first, in statistics Event signal place record sheet Action signal occurrence frequency before also need the time after judging reception Event signal whether more than the record period of Event signal, if exceed, home gateway statistics occurrence frequency, if do not exceed, home gateway continues the Event signal receiving the output of Event signal generating apparatus.
The second, the number of times of the Event signal judging to receive also is needed whether to exceed frequency threshold value before adding up the occurrence frequency of Action signal in the record sheet of Event signal place, if exceed, home gateway statistics occurrence frequency, if do not exceed, home gateway continues the Event signal receiving the output of Event signal generating apparatus.
Owing to also comprising two kinds of estimate of situations to the statistics of whether carrying out occurrence frequency in above-mentioned steps S13, when therefore home gateway carries out data mining, also comprise two kinds of situations:
The first, Event signal and Action signal meet the judgement requirement associating judgment rule, then form the Event-Action correlation rule of Event signal and Action signal, and be stored in rule base by Event-Action correlation rule.
The second, Event signal and Action signal meet the judgement requirement associating judgment rule, then form the Event-Action correlation rule of Event signal and Action signal, Event-Action correlation rule is stored in rule base, and empties the information of Event signal place record sheet in database; If be less than judgment threshold, then can not form Event-Action correlation rule, the information of the Event signal place record sheet of first time storage in delete database.
Further, in above-mentioned steps S14, after correlation rule is sent to rule base, after home gateway receives the 2nd Event signal of home appliance output again, rule searching storehouse, if there is corresponding Event-Action correlation rule, then send the Action signal be recorded in this Event-Action correlation rule to Action signal actuating equipment according to this Event-Action correlation rule.In the present embodiment, Action signal actuating equipment can be this home appliance, also can also be other home appliances.
In order to the above-mentioned method automatically completing Event-Action association illustrating that the embodiment of the present invention provides better, be described with two specific embodiments below.
Embodiment one
In embodiment one, home appliance comprises window, TV, water heater, and other communication facilitiess (can as all kinds equipment of control terminal) are mobile phone.
As shown in Figure 4, the Event-Action correlating method flow process automatically completing window comprises following several step substantially:
Step S21: the record period arranging Event signal at home gateway is 3 days, the record start time of Event signal is 08:30, Event signal is 3 minutes with the cycle that associates of Action signal.
Step S22: first day, after user gets up morning, with the some home appliance A of mobile phone open.After this home appliance A opens, send an Event signal.Home gateway receives this Event signal.
Step S23: the attribute information of Event signal and temporal information are stored in database after receiving this Event signal by home gateway.
Step S24: first day, after user determines that home appliance A opens, again use mobile phone open home appliance B, the Action signal opening home appliance B is sent to home gateway by mobile phone.
Step S25: after home gateway receives this Action signal, is stored into the attribute information of Action signal and temporal information in the record sheet of the Event signal that attribute information is.
Step S26: judge whether to open up to the time period now more than 3 minutes from home appliance A after in Action signal storage to database; The new Action signal that home gateway continues to receive mobile phone transmission if do not exceed, if exceed, starts the number of times adding up the Event signal that household electrical appliances device A sends.
As shown in table 1, at first day, after user gets up morning, use mobile phone open curtain.After curtain is opened, send an Event signal.Home gateway receives this Event signal.After home gateway receives this Event signal, the attribute information " curtain is opened " of Event signal and temporal information " 08:35 " are stored in database.
After user determines that curtain is opened, again use mobile phone open window to full-gear, the Action signal of " window standard-sized sheet " is sent to home gateway by mobile phone.After home gateway receives this Action signal, the attribute information " window standard-sized sheet " of Action signal and temporal information " 08:36 " are stored in the record sheet of the Event signal that attribute information is.
After user determines window standard-sized sheet, again use mobile phone open TV, the Action signal of " turning on TV " is sent to home gateway by mobile phone.After home gateway receives this Action signal, the attribute information of Action signal " is turned on TV " and temporal information " 08:37 " is stored in the record sheet of the Event signal that attribute information is " curtain is opened ", and be stored sequentially in the Action signal of " window standard-sized sheet " according to time order and function after.
Table 1 first day Event-Action signal record sheet
As shown in table 2, at second day, after user gets up morning, use mobile phone open curtain.After curtain is opened, send an Event signal.Home gateway receives this Event signal.After home gateway receives this Event signal, the attribute information " curtain is opened " of Event signal and temporal information " 08:30 " are stored in database.
After user determines that curtain is opened, again use mobile phone open water heater, the Action signal of " opening water heater " is sent to home gateway by mobile phone.After home gateway receives this Action signal, the attribute information of Action signal " is opened water heater " and temporal information " 08:30 " be stored into attribute information for " curtain is opened " Event signal record sheet in.
After user determines that water heater is opened, again use mobile phone open window to full-gear, the Action signal of " full open window " is sent to home gateway by mobile phone.After home gateway receives this Action signal, the attribute information " full open window " of Action signal and temporal information " 08:31 " are stored in the record sheet of the Event signal that attribute information is " curtain is opened ", and be stored sequentially in the Action signal of " opening water heater " according to time order and function after.
Table 2 second day Event-Action signal record sheet
As shown in table 3, at the 3rd day, after user gets up morning, use mobile phone open curtain.After curtain is opened, send an Event signal.Home gateway receives this Event signal.After home gateway receives this Event signal, the attribute information " curtain is opened " of Event signal and temporal information " 09:15 " are stored in database.
After user determines that curtain is opened, again use mobile phone open window to full-gear, the Action signal of " window standard-sized sheet " is sent to home gateway by mobile phone.After home gateway receives this Action signal, the attribute information " window standard-sized sheet " of Action signal and temporal information " 09:16 " are stored in the record sheet of the Event signal that attribute information is.
Table 3 the 3rd day Event-Action signal record sheet
Step S27: after the Event signal of home gateway to same attribute carries out frequency statistics, judge whether record period reaches the end of record time, whether namely record number of days is 3 days; If do not reach the end of record time, then home gateway continues the new Event signal receiving the output of other home appliances; If reach the end of record time, then start the occurrence frequency adding up Action signal in the record sheet of Event signal place.
As shown in Table 1, 2 and 3, the relevant Action of " curtain is turned on " event comprises " window standard-sized sheet ", " turning on TV " and " opening water heater ".Wherein, the degree of incidence of " window standard-sized sheet " is 3 times, and the degree of incidence of " turning on TV " is 1 time, and the degree of incidence of " opening water heater " is 1 time.Then calculating " curtain is opened " with the occurrence frequency of " window standard-sized sheet " is 60%, and " curtain is turned on " is 20% with the occurrence frequency of " turning on TV ", and " curtain is opened " is 20% with the occurrence frequency of " opening water heater ".
Step S28: association judgment rule is whether the occurrence frequency of Action signal in the record sheet of Event signal place is greater than judgment threshold, if be greater than judgment threshold, then form the Event-Action correlation rule of described Event signal and Action signal, and described Event-Action correlation rule is stored in rule base.
Suppose that the judgment threshold of the connection judgment rule of the relevant Action of " curtain is opened " event is 50%, then " curtain is opened " and " window standard-sized sheet " form corresponding Event-Action correlation rule, " curtain is turned on " and " turning on TV ", and " curtain is opened " can not form corresponding Event-Action correlation rule with " opening water heater ".Therefore the correlation rule of " curtain is opened "-" window standard-sized sheet " is stored in rule base, and empties data all in record period in database.
4th day, after user gets up morning, use mobile phone open curtain.After curtain is opened, send an Event signal.After the rule base of home gateway receives this Event signal, the correlation rule stored in rule searching storehouse, obtain " curtain is opened "-the correlation rule of " window standard-sized sheet ", rule base sends the Action signal of " window standard-sized sheet " to window, window opens to standard-sized sheet after receiving this Action signal.User finds that opening curtain rear window opens automatically, no longer carries out fenestration procedure.
Embodiment two
In embodiment two, home appliance comprises window, TV, water heater, and other communication facilitiess (can as all kinds equipment of control terminal) are mobile phone.
As shown in Figure 5, the Event-Action correlating method flow process automatically completing window comprises following several step substantially:
Step S31: arranging at home gateway the frequency threshold value setting the Event signal that the home appliance A that receives sends is 5 times, and this Event signal is 3 minutes with the cycle that associates of Action signal.
Step S32: the some home appliance A of user's first time mobile phone open.After this home appliance A opens, send an Event signal.Home gateway receives this Event signal.The attribute information of Event signal and temporal information are stored in database after receiving this Event signal by home gateway.
Step S33: after user determines that home appliance A opens, uses mobile phone open home appliance B again, and the Action signal opening home appliance B is sent to home gateway by mobile phone.
Step S34: after home gateway receives this Action signal, is stored into the attribute information of Action signal and temporal information in the record sheet of the Event signal that attribute information is.
Step S35: judge whether to open up to the time period now more than 3 minutes from home appliance A after in Action signal storage to database; The new Action signal that home gateway continues to receive mobile phone transmission if do not exceed, if exceed, starts the number of times adding up the Event signal that household electrical appliances device A sends.
As shown in table 4, user uses mobile phone open window to full-gear first time.After window standard-sized sheet, send an Event signal.Home gateway receives this Event signal.After home gateway receives this Event signal, the attribute information " window standard-sized sheet " of Event signal and temporal information " 09:07 " are stored in database.
After user determines that window is opened, again use mobile phone open TV, the Action signal of " turning on TV " is sent to home gateway by mobile phone.After home gateway receives this Action signal, the attribute information of Action signal " is turned on TV " and temporal information " 09:09 " be stored into attribute information for " window standard-sized sheet " Event signal record sheet in.
The first time Event-Action signal record sheet of table 4 window
As shown in table 5, user's second time uses mobile phone open window to full-gear.After window standard-sized sheet, send an Event signal.Home gateway receives this Event signal.After home gateway receives this Event signal, the attribute information " window standard-sized sheet " of Event signal and temporal information " 08:15 " are stored in database.
After user determines that window is opened, again use mobile phone turn off the alarm, the Action signal of " turn off the alarm " is sent to home gateway by mobile phone.After home gateway receives this Action signal, the attribute information " turn off the alarm " of Action signal and temporal information " 08:16 " are stored in the record sheet of the Event signal that attribute information is " window standard-sized sheet ".
The second time Event-Action signal record sheet of table 5 window
As shown in table 6, user uses mobile phone open window to full-gear third time.After window standard-sized sheet, send an Event signal.Home gateway receives this Event signal.After home gateway receives this Event signal, the attribute information " window standard-sized sheet " of Event signal and temporal information " 11:20 " are stored in database.
After user determines that window is opened, again close window with mobile phone, the Action signal of " closing window " is sent to home gateway by mobile phone.After home gateway receives this Action signal, the attribute information " closing window " of Action signal and temporal information " 11:21 " are stored in the record sheet of the Event signal that attribute information is " window standard-sized sheet ".
After user determines that window is closed, again open the door with mobile phone, the Action signal of " opening door " is sent to home gateway by mobile phone.After home gateway receives this Action signal, the attribute information of Action signal " is opened door " and temporal information " 11:22 " is stored in the record sheet of the Event signal that attribute information is " window standard-sized sheet ", and be stored sequentially in the Action signal of " closing window " according to time order and function after.
The third time Event-Action signal record sheet of table 6 window
As shown in table 7, user the 4th time with mobile phone open window to full-gear.After window standard-sized sheet, send an Event signal.Home gateway receives this Event signal.After home gateway receives this Event signal, the attribute information " window standard-sized sheet " of Event signal and temporal information " 08:28 " are stored in database.
After user determines that window is opened, again use mobile phone open water heater, the Action signal of " opening water heater " is sent to home gateway by mobile phone.After home gateway receives this Action signal, the attribute information of Action signal " is opened water heater " and temporal information " 08:30 " be stored into attribute information for " window standard-sized sheet " Event signal record sheet in.
4th Event-Action signal record sheet of table 7 window
As shown in table 8, user the 5th time with mobile phone open window to full-gear.After window standard-sized sheet, send an Event signal.Home gateway receives this Event signal.After home gateway receives this Event signal, the attribute information " window standard-sized sheet " of Event signal and temporal information " 09:25 " are stored in database.
After user determines that window is opened, again use mobile phone open micro-wave oven, the Action signal of " opening micro-wave oven " is sent to home gateway by mobile phone.After home gateway receives this Action signal, the attribute information of Action signal " is opened micro-wave oven " and temporal information " 09:26 " be stored into attribute information for " window standard-sized sheet " Event signal record sheet in.
5th Event-Action signal record sheet of table 8 window
Step S36: after the Event signal of home gateway to same attribute carries out frequency statistics, judge whether to reach frequency threshold value, whether namely record number of times is 5 times; If do not reach 5 times, then home gateway continues to receive new Action signal; If reach 5 times, then start the occurrence frequency adding up Action signal in the record sheet of Event signal place.
Step S37, connection judgment rule is whether the occurrence frequency of Action signal in the record sheet of Event signal place is greater than judgment threshold, if be greater than judgment threshold, then form the Event-Action correlation rule of Event signal and Action signal, and described Event-Action correlation rule is stored in rule base, empty all record data of this Event signal simultaneously; If be less than judgment threshold, then can not form the Event-Action correlation rule of Event signal and Action signal, then delete the first time Event-Action signal data of this Event signal, home gateway continues to receive new Action signal.
As table 4,5,6, shown in 7 and 8, " window standard-sized sheet " event Action that is correlated with comprises " turning on TV ", " turn off the alarm ", " closing window ", " opening water heater " and " opening micro-wave oven ".Wherein, the degree of incidence of often kind of relevant Action is 1, and namely occurrence frequency is 20%.
The judgment threshold supposing the connection judgment rule of the relevant Action of " window standard-sized sheet " event is 50%, then relevant Action forms corresponding Event-Action correlation rule with the Event signal of " window standard-sized sheet ".Therefore delete the record data of first time window standard-sized sheet event, continue to receive new Action signal.
After it cyclostrophic is cold, user habit changes, and is adjusted to by window half-open.User goes out " window is half-open " Action signal by mobile phone, after home gateway receives " window is half-open " Action signal, be stored in the record sheet of " window standard-sized sheet " Event signal, and should be transmitted to window by " window is half-open " Action signal, window is adjusted to half-open position after receiving this signal.Table 9,10,11,12 and 13 shows " window standard-sized sheet " Event-Action signal data of home gateway record after 3 days.
The first time Event-Action signal record sheet of table 9 window
The second time Event-Action signal record sheet of table 10 window
The third time Event-Action signal record sheet of table 11 window
4th Event-Action signal record sheet of table 12 window
5th Event-Action signal record sheet of table 13 window
" window standard-sized sheet " event Action that is correlated with comprises " window is half-open ", " turning on TV ", " opening water heater " and " opening micro-wave oven ".Wherein, the degree of incidence of " window is half-open " is 3 times, and the degree of incidence of " turning on TV " is 1 time, and the degree of incidence of " opening water heater " is 2 times, and the degree of incidence of " opening micro-wave oven " is 1 time.Namely the occurrence frequency of " window is half-open " is 43%, and the occurrence frequency of " turning on TV " is 14%, and the occurrence frequency of " opening water heater " is 29%, and the occurrence frequency of " opening micro-wave oven " is 14%.
The judgment threshold supposing the connection judgment rule of the relevant Action of " window standard-sized sheet " event is 40%, then " window standard-sized sheet " and " window is half-open " form corresponding Event-Action correlation rule, therefore the correlation rule of " window standard-sized sheet "-" window is half-open " is stored in rule base, and empties data all in record period in database.
4th day, user used mobile phone open curtain.After curtain is opened, send an Event signal.After the rule base of home gateway receives this Event signal, the correlation rule stored in rule searching storehouse, obtain " curtain is opened "-the correlation rule of " window standard-sized sheet ", rule base sends the Action signal of " window standard-sized sheet " to window, window opens to standard-sized sheet after receiving this Action signal.Send the Event signal of " window standard-sized sheet " to home gateway after window standard-sized sheet, after the rule base of home gateway receives this Event signal, the correlation rule stored in rule searching storehouse, obtain the correlation rule of " window standard-sized sheet "-" window is half-open ", rule base sends the Action signal of " window is half-open " to window, window opens to half-open after receiving this Action signal.
Certainly, the embodiment of the present invention is not limited to the method that above-mentioned concrete Event-Action associates, and is only an example.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of intelligent home gateway equipment, the method that the principle of dealing with problems due to intelligent home gateway equipment associates with aforementioned Event-Action is similar, therefore the enforcement of this intelligent home gateway equipment can be implemented with reference to preceding method, repeats part and is not repeating.
As shown in Figure 6, a kind of intelligent home gateway equipment that the embodiment of the present invention provides, comprising:
Acquiring unit 41, for the Action signal that the Event signal and control terminal that receive the output of Event signal generating apparatus export, and the Action signal that the Event signal of the output of home appliance shown in reception Fig. 1 such as, exports with other communication facilitiess (can as all kinds equipment of control terminal, mobile terminal);
Analytic unit 42, for excavating the correlation rule of above-mentioned Event signal and Action signal;
Linkage unit 43, for being sent to rule base by above-mentioned correlation rule.
Further, above-mentioned acquiring unit 41, as shown in Figure 7, also comprises:
First acquiring unit 411, for receiving the Event signal that Event signal generating apparatus exports, comprising the attribute information and temporal information that receive Event signal, and being stored in a database;
Second acquisition unit 412, receives the Action signal that control terminal exports, and comprises the attribute information and temporal information that receive Action signal, and is stored in above-mentioned database.
Further, above-mentioned analytic unit 42, as shown in Figure 8, also comprises:
Parameter setting module 421, for before the Event signal receiving the output of Event signal generating apparatus, the record period of setting Event signal and record start time, setting Event signal associates the cycle with Action signal, and sets the frequency threshold value of the Event signal received;
Data statistics module 422, for adding up the number of times of the Event signal that acquiring unit 41 receives, also for add up Event signal place record sheet in the occurrence frequency of Action signal; This Action signal is for being stored sequentially in all Action signals in the record sheet at the signal of Event described in database place according to time order and function in the association cycle;
Analysis module 423, judges whether the statistics of described number of times meets the requirement of frequency threshold value, if meet, starts Mining Association Rules.
Wherein, above-mentioned analysis module 423, as shown in Figure 9, also comprises:
First judges submodule 4231, for before the number of times statistics of data statistics module 422 pairs of Event signals, judge acquiring unit 41 receive Event signal after time associate the cycle whether more than Event signal and Action signal, if exceed, statistics number, if do not exceed, acquiring unit 41 continues the Action signal receiving control terminal output, until statistics number after meeting Rule of judgment;
Second judges submodule 4232, before adding up for the occurrence frequency of Action signal in data statistics module 422 pairs of Event signal place record sheets, judge the time after Event signal that receives whether more than the record period of Event signal, if exceed, add up occurrence frequency, if do not exceed, acquiring unit 41 continues the Event signal receiving the output of Event signal generating apparatus, until add up occurrence frequency after meeting Rule of judgment;
3rd judges submodule 4233, before adding up for the occurrence frequency of Action signal in data statistics module 422 pairs of Event signal place record sheets, judge whether the number of times of the Event signal received exceedes frequency threshold value, if exceed, add up occurrence frequency, if do not exceed, acquiring unit 41 continues the Event signal receiving the output of Event signal generating apparatus, until add up occurrence frequency after meeting Rule of judgment;
Optimum configurations submodule 4234, for setting the association judgment rule whether forming correlation rule between Event signal and Action signal; Association judgment rule is whether the occurrence frequency of Action signal in the record sheet of Event signal place is greater than judgment threshold;
First association rule mining module 4235, for to meet in analysis module 423 second judge the Rule of judgment of submodule 4232 after, the occurrence frequency adding up Action signal in the Event signal place record sheet obtained carries out data mining;
If occurrence frequency is greater than judgment threshold, then forms the Event-Action correlation rule of Event signal and Action signal, and described Event-Action correlation rule is stored in rule base;
Second association rule mining module 4236, for to meet in analysis module 423 the 3rd judge the Rule of judgment of submodule 4233 after, the occurrence frequency adding up Action signal in the Event signal place record sheet obtained carries out data mining;
If occurrence frequency is greater than judgment threshold, then forms the Event-Action correlation rule of Event signal and Action signal, described Event-Action correlation rule is stored in rule base, and empties the information of Event signal place record sheet in database; If occurrence frequency is less than judgment threshold, then can not form Event-Action correlation rule, the Event signal place record sheet of first time storage in delete database.
Further, above-mentioned linkage unit 43, as shown in Figure 10, also comprises:
Signal receiving module 431, for receiving the Event signal that Event signal generating apparatus exports;
Whether correlation rule enquiry module 432, record the Event-Action correlation rule corresponding with this Event signal according in Event signal rule searching storehouse; If exist, extract the Action signal in Event-Action correlation rule;
Signal transmitting module 433, is sent to Action signal actuating equipment by Action signal.
The embodiment of the present invention is intrinsic not relevant to any specific PC, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although it is not further feature that embodiments more described herein to comprise in other embodiment some included feature rain, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary array mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the gateway device of the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, PC program and PC program product).Realizing program of the present invention and can be stored on PC computer-readable recording medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the PC of suitably programming.In the claim listing some unit, several in these unit can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can by these word explanations
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.