• Aucun résultat trouvé

Sequence Belief

Dans le document tel-00431117, version 1 - 10 Nov 2009 (Page 56-59)

4.2 Belief System

4.2.2 Sequence Belief

In this section, we propose the notion of sequence beliefs for representing prior knowledge of sequence data with respect to the occurrence and semantics of sequences.

According to our published works [LLP07, LLP08a, LLP08b, LLP08c, LLP09], a belief is a sequence implication rulerwith respect to a semantic contradiction between∆(r)and a predefined sequence, which can be formally denoted as the following form

{sατ sβ} ∧ {sβ 6≃sem sγ}

or simply written as [sα;sβ;sγ;τ]. The semantics of such a belief is that within a sequence covered by the knowledge described by the rule sατ sβ, if sα occurs, then sβ occurs with respect to the occurrence constraint τ where sβ cannot be replaced by sγ. If the semantic contradiction is empty, which is denoted as {∅}, then only occurrence constraint is examined.

In this manner, let us consider the case that the occurrence ofh(a)i is expected to be followed the occurrence of h(b)i, or of h(c)i, or of h(d)i, then the following three beliefs must be specified:

b1 ={h(a)i → h(b)i} ∧ {∅}, b2 ={h(a)i → h(c)i} ∧ {∅}, b3 ={h(a)i → h(d)i} ∧ {∅}.

Now given a set of sequences

{s1 =h(a)(b)i, s2 =h(a)(c)i, s3 =h(a)(d)i, s4 =h(a)(e)i}, then we have the following violations:

1. s1 violates b2 and b3 because h(a)i ⊑s1 is not followed by h(c)i ⊑s1 neither h(d)i ⊑s1; 2. s2 violates b1 and b3 because h(a)i ⊑s2 is not followed by h(b)i ⊑s1 neither h(d)i ⊑s1; 3. s3 violates b1 and b2 because h(a)i ⊑s3 is not followed by h(b)i ⊑s1 neither h(c)i ⊑s1; 4. s4 violates b1, b2, and b3 because h(a)i ⊑s4 is not followed by h(b)i ⊑s4, h(c)i ⊑s4, neither

h(d)i ⊑s4.

Obviously, according to the above context, only the violation caused by the sequences4 is really interesting and the violations caused by the sequences s1,s2, ands3 are redundant. We addressed this problem in [LLP09] by reorganizing all beliefs consisting of simple sequence implication rules together and then considering the violations of such beliefs integrally. However, even though such consideration is successful in mining unexpected sequences, the semantics of each belief is not clear.

tel-00431117, version 1 - 10 Nov 2009

4.2. BELIEF SYSTEM 33

In order to maintain the proper semantics of each belief, we consider a belief as a minimum semantically complete unit by using the notions of consistent sequence rule set and consistent semantic contradiction set. We therefore propose the definition ofsequence belief as follows.

Definition 6 (Sequence belief) A sequence belief is a conjunction R ∧ M, where R is a non-empty consistent sequence rule set and M is a consistent semantic contradiction set such that for each relation (sβ i 6≃sem sγ i) ∈ M, we have that sβ i ∈ ∆(R), and for any relation (sβ i6≃sem sγ i)∈ M, there does not exist sβ j ∈∆(R) such that sγ i ⊑sβ j.

The semantic constraint imposed on R by M requires that for each semantic contradiction (sβ i 6≃sem sγ i) ∈ M, there exists a sequence rule r ∈ R such that sβ i = ∆(r), since a relation sβ j 6≃sem sγ j that does not correspond to any sequence rule inRis meaningless to the semantics of a belief. A belief can be generated from existing domain knowledge on common behaviors of the data, or from predefined workflows. Following Example 11 and Example 12 illustrate how beliefs are constructed with respect to different contexts.

Example 11 Before considering the customer purchase behaviors addressed in Example 7, we first assume that according to prior knowledge of the retail database, we know theyouths like to watch Sci-Fi movies, thus, the following sequence class rule may be built with respect to youth purchase behaviors:

r1 =h(Youth)i → h(Sci-Fi-Movie)i.

With considering that Sci-Fi movies semantically contradict opera movies and drama movies, then the following belief b1 can be constructed:

b1 =n

r1 :h(Youth)i → h(Sci-Fi-Movie)i o

( o1 :h(Sci-Fi-Movie)i 6≃sem h(Opera-Movie)i o2 :h(Sci-Fi-Movie)i 6≃sem h(Drama-Movie)i

) . According to frequent customer purchase behaviors, we can create the sequence implication rule

r2 =h(Sci-Fi-Novel)(Action-Movie Sci-Fi-Movie)i → h(Rock-Music)i,

which indicates that the purchase of a Sci-Fi novelthen action and Sci-Fi movieslater implies the purchase of a rock music CD. If we just expect that a purchase of rock music CD should be performed after the precedent purchases, then following beliefb2 can be established for describing this requirement:

b2 =n

r2 :h(Sci-Fi-Novel)(Action-Movie Sci-Fi-Movie)i → h(Rock-Music)i o

∧n

∅ o , where the semantic contradiction set is empty without considering semantic contradictions between sequences. Now let the classical music be semantically contradicting the rock music, then we have the semantic contradiction

o3 =h(Rock-Music)i 6≃sem h(Classical-Music)i,

tel-00431117, version 1 - 10 Nov 2009

34 CHAPTER 4. MULTIPLE UNEXPECTED SEQUENCE EXTRACTION so that the belief b2 can be rewritten as follows:

b3 =n

r2 :h(Sci-Fi-Novel)(Action-Movie Sci-Fi-Movie)i → h(Rock-Music)i o

∧ n

o3 :h(Rock-Music)i 6≃sem h(Classical-Music)i o .

Moreover, if customer transaction records show that most of customers purchase arock music CD in a short delay after purchasing a Sci-Fi novelthen action and Sci-Fi movies, for example in the next 3 to 5 purchases, then belief b3 can be further rewritten as:

b4 =n

r3 :h(Sci-Fi-Novel)(Action-Movie Sci-Fi-Movie)i →[3..5]h(Rock-Music)i o

∧ n

o3 :h(Rock-Music)i 6≃sem h(Classical-Music)i o .

Example 12 Considering the context described in Example 2 and Example 8, we can construct the following sequence association rule

r1 =h(home)(list)i → h(login)(logout)i

based on the assumed facts: (1) the authorized users access user home page home and then access listfor verifying new messages; (2) the access ofloginis not obligate for user authorization since the login process can be effected by cookies; (3) the access of logoutis not obligated to close user session. The following sequence implication rules can be also obtained from the above facts and that the access of logout should not be directly after the access of login:

r2 =h(login)(home)i → h(logout)i, r3 =h(login)i →[1..∗]h(logout)i.

Hence, we have the following beliefs without semantic contradictions:

b1 =n

r2 :h(login)(home)i → h(logout)i o

∧n

∅ o , b2 =n

r3 :h(login)i →[1..∗]h(logout)i o

∧n

∅ o

. The beliefs b1 and b2 can be further combined as belief b3:

b3 =n

r4 :h(login)i →0 h(home)i o

∧n

o1 :h(home)i 6≃sem h(logout)i o ,

wherelogoutcan be viewed as semantically contradictinghomein the context of user login process.

Other user behaviors can also be represented by beliefs. For instance, the following belief b4 =n

r5 :h(login)(list)i →[0..5]h(read)i o

∧ n

o2 :h(read)i 6≃sem h(logout)i o

depicts that we expect that users will not logout to the system too quickly, for example, after

reading at least 5 messages.

tel-00431117, version 1 - 10 Nov 2009

4.2. BELIEF SYSTEM 35

Given a belief b, if a sequence s supports at least one rule contained in this belief and no semantic contradiction of any other rules can be found in the sequence s, then we say that the sequence s satisfies the belief b or the sequence s supports the belief b, denoted as s |= b. The satisfaction of beliefs is specified in the following manners.

1. Letbbe a belief that consists of a consistent sequence association rule setRand a consistent semantic contradiction setM, if there exists a rule (r=sα →sβ)∈ Rsuch that s|=r, and for any semantic contradiction (sβ i 6≃sem sγ j) ∈ M there does not exist a rule (r = sα → sβ i)∈ R such that s|=r, then we have that sequence s|=b.

2. Letbbe a belief that consists of a consistent sequence implication rule setRand a consistent semantic contradiction set M, if there exists a rule (r = sατ sβ) ∈ R such that s |= r, and for any semantic contradiction (sβ i 6≃sem sγ j) ∈ M there does not exist a rule (r = sατ sβ i)∈ R such that s|=r, then we have that sequence s|=b.

Nevertheless, given a belief b=R ∧ M, we say that a sequence s does not satisfy the belief b if there does not exist any rule(r=sα →sβ)∈ R such thats |=r, denoted ass6|=b.

Example 13 Let us consider the belief

b=





r1 :h(a)i → h(b)i r2 :h(a)i →[2..2]h(bc)i r3 :h(a)i →[0..2]h(d)i









o1 :h(b)i 6≃sem h(cd)i o1 :h(bc)i 6≃semh(bd)(c)i o2 :h(d)i 6≃sem h(ac)i





 ,

and the sequences s1 = h(a)(b)(c)(bc)(d)i, s2 = h(a)(b)(ad)(bd)i, and s3 = h(a)(d)(c)i, we have that s1 |=b because

s|={r1, r2} and s6|=





h(a)i → h(cd)i, h(a)i →[2..2]h(bd)(c)i h(a)i →[0..2]h(ac)i





;

we also have s2 6|=b and s3 6|=b because s2 6|={r1, r2, r3}and s3 6|={r1, r2, r3}.

Dans le document tel-00431117, version 1 - 10 Nov 2009 (Page 56-59)