<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Interval-based sequence mining using FCA and the NextPriorityConcept algorithm</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Salah Eddine Boukhetta</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>J´er´emy Richard</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Christophe Demko</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Karell Bertet</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Laboratory L3i, La Rochelle University</institution>
          ,
          <addr-line>La Rochelle</addr-line>
          ,
          <country country="FR">France</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>In this paper, we are interested in sequential data analysis using GALACTIC, a new library based on Formal Concept Analysis (FCA) for calculating a concept lattice from heterogeneous and complex data. Inspired by the pattern structure theory, data in GALACTIC are described by predicates according to their types and a system of plugins allows an easy integration of new characteristics and new descriptions. We present new ways to analyse interval-based sequences, where items persist in time. Here we address the question of mining relevant sequential patterns, describing a set of sequences, by maximal common subsequences, or shortest supersequences. Experimentation on two real sequential datasets shows the effectiveness of our plugins in term of size of the lattice and of running time.</p>
      </abstract>
      <kwd-group>
        <kwd>Formal concept analysis • Lattice • Pattern structures • Interval- based sequences • Maximal common subsequences • Shortest common superse- quences</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Sequences appear in many areas: sequences of words in a text, trajectories,
surfing on the internet, or buying products in a supermarket. A sequence is a
succession hxii of symbols, sets or events. Sequence mining is a topic of data mining
which aims at finding frequent patterns in a dataset of sequences. Many
algorithms have been proposed for mining sequential patterns, such as GSP [
        <xref ref-type="bibr" rid="ref25">25</xref>
        ],
PrefixSpan [
        <xref ref-type="bibr" rid="ref24">24</xref>
        ], CloSpan [
        <xref ref-type="bibr" rid="ref29">29</xref>
        ], etc. These algorithms take as input a dataset of
sequences and a minimum support threshold, and generate all frequent
subsequences. Some algorithms mine time-point sequences h(ti, xi)i, where an item xi
occurred at a timestamp ti, for example for discovering episodes in a long
timepoint sequence [
        <xref ref-type="bibr" rid="ref23 ref26">23, 26</xref>
        ]. In real world applications, events may persist in time,
or in an interval of time (ti, ti), we call these sequences, interval-based sequences
h(ti, ti, Xi)i, where Xi is an itemset. They are mostly analysed using Allen’s
interval relations [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. To quote from Kam and Fu’s work on discovering temporal
interval sequences [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ], the patterns discovered are of type ”event A’s occurrence
time overlaps with that of event B and both of these events occur before event
C appears”. Other works also used Allen’s relations to discover interval based
patterns [
        <xref ref-type="bibr" rid="ref17 ref28">17, 28</xref>
        ].
      </p>
      <p>Copyright c 2020 for this paper by its authors. Use permitted under Creative
Commons License Attribution 4.0 International (CC BY 4.0).</p>
      <p>
        Formal Concept Analysis (FCA) appears in 1982 [
        <xref ref-type="bibr" rid="ref27">27</xref>
        ], then in the Ganter
and Wille’s 1999 work [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ], it is issued from a branch of applied lattice theory
that first appeared in the book of Barbut and Monjardet in 1970 [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. The lattice
property guarantees both a hierarchy of clusters, and a complete and consistent
navigation structure for interactive approaches [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. The formalism of pattern
structures [
        <xref ref-type="bibr" rid="ref13 ref20">13, 20</xref>
        ] and abstract conceptual navigation [
        <xref ref-type="bibr" rid="ref10 ref9">10, 9</xref>
        ] extend FCA to deal
with non-binary data, where data is described by patterns such that the
pattern space must be organised as a semi-lattice in order to maintain a Galois
connection between objects and their descriptions. By FCA framework, pattern
lattice and bases of rules are defined, where a concept is composed of a subset
of objects together with their common patterns, and a rule possesses patterns in
premises and conclusions. However, pattern lattices are huge, often untractable
[
        <xref ref-type="bibr" rid="ref19">19</xref>
        ], and the need for approaches to drive the search towards the most relevant
patterns is a current challenge. Logical Concept Analysis [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] is a
generalization of FCA in which sets of attributes are replaced by logical expressions. The
power set of attributes mentioned by the Galois connection is replaced by an
arbitrary set of formulas to which are associated a deduction relation (i.e.,
subsumption), and conjunctive and disjunctive operations, and therefore forms a
lattice. Inspired by pattern structures, the NextPriorityConcept algorithm,
introduced in a recent article [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] proposes a user-driven pattern mining approach
for heterogeneous and complex data as input. This algorithm allows a generic
pattern computation through specific descriptions of objects by predicates. It
also proposes to reduce predecessors of a concept by the refinement of a set of
objects into a fewer one through specific user exploration strategies, resulting
in a reduction of the number of generated patterns. Some algorithms appear
within FCA framework for analysing sequence data; we can mention works for
mining medical care trajectories using pattern structures [
        <xref ref-type="bibr" rid="ref5 ref6">5, 6</xref>
        ], sequence mining
to discover rare patterns [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], and other studies on demographic sequences [
        <xref ref-type="bibr" rid="ref15 ref16">15,
16</xref>
        ]. But for discovering interval-based sequence using FCA methods, we found
fewer works. We can cite Kaytoue et al.’s work on gene expression data [
        <xref ref-type="bibr" rid="ref21">21</xref>
        ].
      </p>
      <p>In this article, we propose a new sequence mining approaches using the
NextPriorityConcept algorithm, with descriptions and strategies dedicated
to interval-based sequences. We propose two different descriptions that describe
a subset of objects by subsequences or supersequences. We also propose five
strategies of pattern exploration in order to generate a reduction of a cluster of
interval-based sequences, i.e., its predecessors in the pattern lattice.</p>
      <p>Section 2 introduces basic definitions related to interval sequence mining
and a short description of the NextPriorityConcept algorithm. Section 3
will be dedicated to our new interval-based sequence descriptions and strategies.
Experimental results are presented in Section 4.
2
2.1</p>
    </sec>
    <sec id="sec-2">
      <title>Preliminaries</title>
      <sec id="sec-2-1">
        <title>Interval-based Sequences</title>
        <p>A sequence s is a succession of itemsets from a dictionary Σ, often in the form
of s =&lt; Xi &gt;i≤n, where Xi ⊆ Σ is a subset of items i.e., itemset. A temporal
sequence is a sequence where each itemset Xi must have an associated timestamp
ti. An Event (or Time frame) E, is a triple E = (t, t, X) where X ⊆ Σ is
an itemset, t is the starting time and t is the ending time, t ≤ t. For better
readability we refer to (t, t) by T .</p>
        <p>Interval-based sequence. An interval-based sequence (or Time frame sequence)
s = h(Ti, Xi)ii≤n is a list of events (or time frames), verifying ti &lt; ti+1, thus
an interval-based sequence is a list of separate intervals containing itemsets.
The size of the interval-based sequence is the number of its time frames. We
refer to the interval-based sequence by sequence.</p>
        <p>Consider the example in Figure 1 for an alphabet Σ = {C, M, P, H} (where C
stands for Castle, M for Museum, P for Public Garden and H for Historical
Place), the sequences represent trajectories of visits of three tourists s1, s2 and
s3. In this example, visitors may be in two or more different locations at the
same interval as the intervals are large enough and we may don’t have the exact
interval of each location.</p>
        <p>
          8:00
Subinterval. For two intervals, T = (t, t) and T 0 = (t0, t0), we say that T is
subinterval T 0, if : t ≥ t0 and t ≤ t0 and we write T T 0, that corresponds
to the containing relation from Allen’s relations [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ].
        </p>
        <p>Projections. We introduce the projection operator Φ of a sequence s, over a
given interval T , that selects all the itemsets of the sequence included in this
interval : ΦT (s) = {X0 : T 0 T and (T 0, X0) ∈ s}. Dually, the projection
operator Φ, over an itemset X ⊆ Σ selects all the intervals where the items of
X may occur: ΦX (s) = {T 0 : X0 ⊆ X and (T 0, X0) ∈ s}. ΦΣ (s) represents
a set of all the intervals in s.</p>
        <p>Subsequence. A sequence s, is subsequence of another sequence s0, s b s0 if
for all (T, X) ∈ s, there exists (T 0, X0) ∈ s0 such that T T 0 and X ⊆ X0.</p>
        <p>We also say that s0 is supersequence of s.</p>
        <p>Affix. A prefix/suffix of a sequence s = h(Ti, Xi)ii≤n according to a window
w, is the subsequence of s composed by the first/last w time frames of s,
prefix(s, w) = h(Ti, Xi)i1≤i≤w, suffix(s, w) = h(Ti, Xi)i(n−w)&lt;i≤n.
Cardinality. For a set of sequences A, an item x ∈ Σ and an interval T , the
function card gives the number of sequences a ∈ A possessing the item x in
the projection of a over T , x ∈ ΦT (a).</p>
        <p>card(A, T, x) = |{a : x ∈ ΦT (a), a ∈ A}|
(1)
When card(A, T, x) is maximal, we denote card(A, T, x) by cardmax(A, T ).</p>
        <p>We define cardmin(A, T ) in the same maner when card(A, T, x) is minimal.
From example in Figure 1 we have, Φ(10:00,11:00)(s2) = {P, H}, the prefix of s1
is h(08:30, 11:00), P )i, and all three tourists were in the museum from 14:00 to
15:00, so h(14:00, 15:00), M )i is subsequence of s1, s2 and s3. For A = {s1, s2, s3}
and T = (11:00, 12:00) card(A, T, P ) = cardmax(A, T ) = 2.
2.2</p>
      </sec>
      <sec id="sec-2-2">
        <title>Description of the NextPriorityConcept algorithm</title>
        <p>
          The NextPriorityConcept algorithm [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ] computes concepts for
heterogeneous and complex data for a set of objects G, its main characteristics are:
        </p>
      </sec>
      <sec id="sec-2-3">
        <title>Heterogeneous data as input, described by specific predicates. The al</title>
        <p>gorithm introduces the notion of description δ as an application to provide
predicates describing a set of objects A ⊆ G. Each concept (A, δ(A)) is
composed of a subset of objects A and a set of predicates δ(A) describing them.
Such generic use of predicates makes it possible to consider heterogeneous
data as input, i.e., numerical, discrete or more complex data. However,
unlike classical pattern structures, predicates are not globally computed in a
preprocessing step, but locally for each concept.</p>
        <p>
          Concept lattice generation. The NextPriorityConcept algorithm is
inspired by Bordat’s algorithm[
          <xref ref-type="bibr" rid="ref3">3</xref>
          ], also found in Linding’s work [
          <xref ref-type="bibr" rid="ref22">22</xref>
          ], that
recursively computes the immediate successors of a concept, starting with the
bottom concept. It is a dual version that computes the immediate
predecessors of a concept, starting with the top concept (G, δ(G)) containing the
whole set of objects, until no more concepts can be generated. The use of a
priority queue ensures that each concept is generated before its predecessors,
and a mechanism of propagation of constraints ensures that meets will be
computed. NextPriorityConcept computes a concept lattice and
therefore is positioned in FCA framework, with the possibility of extraction of
rules, closure computations or navigation in the lattice, that can be useful
in many fields of pattern mining and discovery.
        </p>
        <p>Predecessors selection by specific strategies. The algorithm also introduces
the notion of strategy σ to provide predicates (called selectors) describing
candidates for an object reduction of a concept (A, δ(A)) i.e., predecessors
of (A, δ(A)) in the pattern lattice. A selector proposes a way to refine the
description δ(A) to a reduced set A0 ⊂ A of objects. Several strategies are
possible to generate predecessors of a concept, going from the naive
strategy classically used in FCA that considers all the possible predecessors, to
strategies reducing the number of predecessors in order to obtain smaller
lattices. Selectors are only used for the predecessors’ generation, they are
not kept either in the description or in the final set of predicates.
Therefore, choosing or testing several strategies at each iteration in a user-driven
pattern discovery approach would be interesting.</p>
        <p>
          The main result in [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ] states that the NextPriorityConcept algorithm
computes the formal context hG, P, IP i and its concept lattice (where P is the set of
predicates describing the objects in G, and IP = {(a, p), a ∈ G, p ∈ P : p(a)} is
the relation between objects and predicates) if description δ verifies δ(A) v δ(A0)
for A0 ⊆ A. The run-time of the NextPriorityConcept algorithm has a
complexity O(|B| |G| |P |2 (cσ + cδ)) (where B is the number of concepts, cσ is the
cost of the strategy and cδ is the cost of the description), and a space memory
in O(w |P |2) (where w is the width of the concept lattice).
3 NextPriorityConcept for sequences
In order to mine interval-based sequences with NextPriorityConcept
algorithm, we have to define descriptions and strategies for sequences. Consider a
set G of sequences whose size is smaller than n, defined on an alphabet Σ as
input:
A description δ is a mapping δ : 2G → 2P which defines a set of predicates
δ(A) describing any subset A ⊆ G of sequences. Predicates are of form, ”is
subsequence/supersequence of”.
        </p>
        <p>A strategy σ is a mapping σ : 2G → 2P which defines a set of selectors σ(A) to
select strict subset A0 of A as predecessor candidates of any concept (A, δ(A))
in the pattern lattice.</p>
        <p>Predicates are computed using the subsequence relation in the form ”is
subsequence of ” or ”is supersequence of”. For better readability, the sets δ(A) and
σ(A) will be treated either as sets of predicates/selectors, or as sets of sequences,
they can reciprocally be deduced from each other.
3.1</p>
      </sec>
      <sec id="sec-2-4">
        <title>Description for interval sequences</title>
        <p>
          We define two descriptions for a subset A ⊆ G of sequences. The maximal
common time frame description MCTF refers to the classical maximal common
subsequence description [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ] and corresponds to the set of maximal subsequences
of all sequences in A. The shortest supersequence time frame description SSTF
contains all minimal supersequences of sequences in A.
        </p>
        <p>8:00</p>
      </sec>
      <sec id="sec-2-5">
        <title>Shortest Shared Time Frame (SSTF) description.</title>
        <p>δMCTF(A) = {h(T, X)i : ∀a ∈ A, X ⊆ ΦT (a)}
δSSTF(A) = {h(T, X)i : ∀a ∈ A, ΦT (a) ⊆ X}
(2)
To compute the two descriptions of a set A of sequences, we iterate on the
sequences of A, and update the resulting sequences of δ(A) with the
common parts. Therefore the complexity of the description is cδMCT F = cδSST F =
O(s |A| log(|A|)) ≤ O(s |G| log(|G|)) where s is the maximal size of the computed
sequences. We have to ensure that the NextPriorityConcept algorithm
generates a concept lattice. These descriptions must verify δ(A) v δ(A0) for A0 ⊆ A:
Proposition 1 For A0 ⊆ A ⊆ G, we have the following two properties:
Proof: Let A and A0 be two subsets of G such that A0 ⊆ A.
1. Let c ∈ δMCTF(A), i.e., c is a maximal subsequence of A. From A0 ⊆ A we
can deduce that c is also a subsequence of sequences in A0, but c is not
necessarily a maximal subsequence for A0. If c is a maximal subsequence in
A0 then c ∈ δMCTF(A0). Otherwise, there exists c0 ∈ δMCTF(A0) such that c
is a subsequence of c0. In these two cases, we can deduce that, δMCTF(A) v
δMCTF(A0).
2. Let s ∈ δSSTF(A), i.e., s is the supersequence of all sequences in A. From
A0 ⊆ A we can deduce that s is also a supersequence of sequences in A0
but not necessarily the shortest one. If s is a shortest supersequence in A0
then s ∈ δSSTF(A0). Otherwise, there exists s0 ∈ δSSTF(A0) such that s is
supersequence of s0. We can deduce that, δSSTF(A) v δSSTF(A0).</p>
      </sec>
      <sec id="sec-2-6">
        <title>3.2 Strategies and selectors for time frame sequences</title>
        <p>Strategies are used by the NextPriorityConcept algorithm to refine each
concept (A, δ(A)) into concepts with fewer objects (sequences) and more
specific descriptions. It is important to clarify that a strategy must be used with a
description composed of predicates of the same kind. Recall that MCTF
description defines ”is subsequence of” predicates whereas SSTF description defines ”is
supersequence of” predicates. We define one subseqeunce strategy for the MCTF
description and four supersequence strategies for the SSTF description.</p>
      </sec>
      <sec id="sec-2-7">
        <title>Strategy with subsequence selectors for MCTF description: The Aug</title>
        <p>mented Minimum Cardinality strategy computes all the possible refinements of
a concept (A, δMCTF(A)) by adding in the events of sequences of δMCTF any item
with a minimal cardinality card(A, T, x) for each time frame T . More formally,
σAMC is defined for A ⊆ G by:</p>
      </sec>
      <sec id="sec-2-8">
        <title>Augmented Minimum Cardinality.</title>
        <p>σAMC(A) = {h(T, X)i : ∀a ∈ A, ΦT (a) ⊆ X and ∀x ∈ X
card(A, T, x) = |A| ∨ card(A, T, x) = cardmin(A, T )}
(4)
The cost for this strategy is clearly equal to the cost of MCTF description, cσAMC =
cδMCT F .</p>
        <p>Figure 3, represents the generated Hasse diagram of sequences in Figure 1
using the MCTF description and the AMC strategy, where in each concept the
symbol $ represents the identifier of the concept, and the symbol # represents
the number of sequences inside the concept, i.e., its support. The concept $0
contains the description of the 3 visits. The concept $1 describes the two visits,
s1 and s3 as they were in the Public Garden from 08:30 to 11:00 then in the
Museum from 14:00 to 15:00.</p>
      </sec>
      <sec id="sec-2-9">
        <title>Strategies with supersequence selectors for SSTF description: First, the</title>
        <p>Simple Time Frame strategy consists in simply generating selectors by deleting
one item from each itemset on the SSTF description. More formally, σSTF is
defined for a subset of sequences A ⊆ G, and the SSTF description, by:</p>
      </sec>
      <sec id="sec-2-10">
        <title>Simple Time Frame strategy (STF).</title>
        <p>σSTF(A, δSSTF) = {h(T, X\{x})i : ∀x ∈ X, (T, X) ∈ s, s ∈ δSSTF(A)}
(5)
To implement this strategy, we have to consider any item of any sequence of the
description, thus a complexity cST F = O(s m cSST F ) ≤ O(s |Σ| cδSST F ) where
σ δ
m is the maximal number of items in any time frame in the sequences of the
description.</p>
        <p>$1: #2
s match ["[8.3;12):{'P'}", "[13;14):{'M',
'H'}", "[14;15):{'M', 'C', 'H'}", "[15;16):{'C',
'M'}"]
$5:#1
['s3']
$0:#3
$2: #2
s match ["[8.3;10):{'P'}", "[10;12):
{'P', 'H'}", "[14;16):{'C', 'M'}"]
$4:#1
['s1']
$6:#1
['s2']
$7:#0</p>
        <p>$3: #2
s match ["[8.3;10):{'P'}", "[10;12):{'P',
'H'}", "[13;15):{'M', 'H'}", "[15;16):
{'M'}"]</p>
        <p>Figure 4 represents the generated Hasse diagram using the SSTF description
and the STF strategy. Concepts $1, $2, and $3 contain descriptions of {s1, s3},
{s2, s3}, and {s1, s2}. Concept $2 shows that at least one of s2 or s3 visited P
from 08:30 to 10:00, then H or P from 10:00 to 12:00, and finally C or M from
14:00 to 16:00. The strategy constructs a lattice with all concepts, hence it is
time consuming. So, we thought about strategies that may reduce the size of the
lattice, and the time complexity. The Bounds Time Frame strategy consists in
deleting only the items of cardinalities minimal or maximal. The Window Affix
Time Frame strategy uses a window parameter w and generates the prefix and
suffix. The Alphabet Time Frame strategy, deletes one item of the alphabet from
all the time frames. More Formally, these strategies are defined for a subset A
of sequences and the description δSSTF by:</p>
      </sec>
      <sec id="sec-2-11">
        <title>Bounds Time Frame (BTF), for an integer card:</title>
        <p>σBTF(A, c) = {h(T, X\{x})i : (T, X) ∈ s,
card(A, T, x) = c, s ∈ δSSTF(A)}
(6)
(7)</p>
        <p>In particular, we can consider σBTF(A, cardmax) and σBTF(A, cardmin)</p>
      </sec>
      <sec id="sec-2-12">
        <title>Window Affix Time Frame strategy (WATF), for a window size w:</title>
        <p>σWATF(A, w) = {h(T, X)i : (T, X) ∈ s − prefix(s, w),</p>
        <p>(T, X) ∈ s − suffix(s, w), s ∈ δSSTF(A)}
Here the s − prefix(s, w) means s without time frames in prefix(s, w), same
for s − prefix(s, w).</p>
      </sec>
      <sec id="sec-2-13">
        <title>Alphabet Time Frame strategy (ATF):</title>
        <p>σATF(A) = {h(T, X\{x})i : ∀(T, X) ∈ s, ∀x ∈ Σ, s ∈ δSSTF(A)}
(8)
The cost of the BTF strategy is cBT F = O(s cδSST F ), as it must calculate the
σ
predicates of SSTF, then iterate on the resulting sequences. For the WATF strategy,
cW AT F = cSST F , the w parameter is constant, so the cost is equal only to the
σ δ
cost of δSSTF. For the ATF strategy cAT F = O(s cδSST F ).</p>
        <p>σ</p>
        <p>The NextPriorityConcept allows a user-driven approach for the data
analyst to choose strategies that respond the best to the specifications of the
data. With the SSTF description, the data analyst have a choice of 4 strategies.
The BTF strategy allows a generation of predecessors where frequent or
nonfrequent events may not appear (maximum and minimum cardinalities). The
WATF strategy focuses of events that appear first or last at the same interval.
The ATF strategy focuses on clusters where some events may not appear. The
use of these strategies reduces the time complexity of the lattice generation
process and generate a smaller lattice than the STF strategy.
4</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Experiments</title>
      <p>In this section, we experimentally evaluate our descriptions and strategies for
mining interval sequences. Our approach is different from previous works. We are
not mining all frequent interval-based sequences, but we use our strategies and
descriptions to mine only the relevant ones. To experimentally assess the
effectiveness of our descriptions and strategies, we use GALACTIC1 (GAlois LAttices,
Concept Theory, Implicational systems and Closures), a development platform
1 https://galactic.univ-lr.fr
of the NextPriorityConcept algorithm, which mixed with a system of
plugins, makes it possible easy integration of new kinds of data (descriptions and
strategies). We have implemented new plugins for sequences. Experiments were
performed on an Intel Core i7 2.20GHz machine with 32GB main memory. We
run our experiments on two real datasets:
GeoLuciole dataset is issued from classical GPS trajectories of people’s
deplacements in the city of La Rochelle in France. By matching the GPS
coordinates to districts of the city, raw data are transformed into semantic
sequences. The data have been collected by a specific application named
GeoLuciole that we have developed for the DA3T2 project. The data
contains only 15 trajectories with an average size of sequences equals to 23.
Wine-City dataset is issued from the museum ”La cit´e du vin” in Bordeaux,
France4, gathered from the visits over a period of one year (May 2016 to
May 2017). The museum is a large ”open-space”, where visitors are free to
explore the museum the way they want. The trajectories in this dataset are
of size 9 on average.</p>
      <sec id="sec-3-1">
        <title>Comparison of descriptions</title>
        <p>Here we compare our two descriptions in terms of running time and lattice
size. We use the MCTF description with the AMC strategy, and the SSTF
description with the STF strategy. These two strategies generate all possibles
subseqeunces/supersequences. Results for the Wine-City dataset are given in Table 1.
We can observe that MCTF is far faster than SSTF. It generates a lattice of 149
concepts in about 2 minutes from 500 sequences, while the SSTF description,
stops with 1024 concepts generated in about 30 minutes from only 10 sequences.
These descriptions are two different ways of representing the data. The SSTF
description is clearly richer than the MCTF description that is the classical
maximal common subsequences description extended to intervals, but SSTF is not
adapted to huge datasets.</p>
        <p>data size
4
6
10
100
500
1000
# concepts 16 33 1024
σSTF(δSSTF) time(ms) 2878 11760 1927039
time/concept(ms) 179,87 356,36 1881,87
# concepts 6
σAMC(δMCTF) time(ms) 267
time/concept(ms) 44.5
2 System for the Analysis of Numerical Traces for the development of Tourist
Territories (Dispositif d’Analyse des Traces num´eriques pour la valorisation des Territoires
Touristiques)
3 It was planned to collect more data during the holidays on Mars and April, but
unfortunately, this was impossible due to the world pandemic Covid-19
4 https://www.laciteduvin.com/en</p>
      </sec>
      <sec id="sec-3-2">
        <title>Comparison of strategies</title>
        <p>We focus now on the SSTF description to compare the four strategies; STF, BTF,
WATF and ATF. Recall that the STF strategy generates all possible supersequences
whereas BTF, WATF and ATF focus on special supersequences (prefix, suffix,
according to a window). Figure 5 shows the running time and the number of
concepts generated using the Wine-City dataset. Compared to the STF strategy, we
can clearly see that the other strategies are faster, and generate fewer concepts.
The WATF strategy is the best in this example, especially with w = 1, with w = 2:
the result approximates that of the BTF strategy. We run the BTF strategy with
cardmin and cardmax: we observe that the running time is better, and we
obtain fewer concepts with cardmin. The complexity of NextPriorityConcept
depends on the size of the lattice, therefore a reduction to more relevant
concepts also reduce the running time. Table 2 presents a comparaison between the
four strategies of the SSTF description with the GeoLuciole dataset. The BTF,
ATF and WATF strategies are compared to the STF in terms of compression ratio
i.e., the ratio between the number of concepts obtained with the STF strategy
by the number of concepts obtained with each of the other strategies. Table 2
shows the effectiveness of our strategies in reducing the number of concepts. We
can also observe that the compression ratio is improved as we increase the size
of the data for all strategies. ATF strategy performs better and generates fewer
concepts compared to BTF. The compression ratio is low with the WATF strategy,
because the size of sequences is close to the window, and thus as we raise the
windows the number of concepts get closer to the STF strategy. The behaviour
of WATF strategy is linked to the average size of the sequences. The data analyst
can variate parameters such as the cardinality for BTF, or the window for WATF,
to generate only relevant concepts.
5 Conclusion
In this paper, we presented a sequence mining approach using the
NextPriorityConcept algorithm. This algorithm allows a generic pattern computation
through specific descriptions and strategies.</p>
        <p>We presented two descriptions and five strategies for analysing interval-based
sequences. The two descriptions represent two different approaches for
representing a set of sequences. The first one MCTF is the classical maximal common
dataset size
σSTF
# Concepts</p>
        <p>128 672 16640
subsequences, whereas the second one SSTF provides a richer description of
interval sequences. We presented one strategy for the MCTF description, and four
strategies for the SSTF description that can be tested in a user-driven approach
in order to generate fewer concepts and more relevant data. Therefore, we will
focus on reducing the time complexity of our plugins, and create more
configurable ones that respond the best to the particularity of the data we want to
treat.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Allen</surname>
            ,
            <given-names>J.F.</given-names>
          </string-name>
          :
          <article-title>An interval-based representation of temporal knowledge</article-title>
          .
          <source>In: IJCAI</source>
          . vol.
          <volume>81</volume>
          , pp.
          <fpage>221</fpage>
          -
          <lpage>226</lpage>
          (
          <year>1981</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Barbut</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Monjardet</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>Ordres et classifications : Alg`ebre et combinatoire</article-title>
          . Hachette, Paris (
          <year>1970</year>
          ), 2 tomes
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Bordat</surname>
            ,
            <given-names>J.P.</given-names>
          </string-name>
          :
          <article-title>Calcul pratique du treillis de Galois d'une correspondance</article-title>
          .
          <source>Math´ematiques et Sciences humaines 96</source>
          ,
          <fpage>31</fpage>
          -
          <lpage>47</lpage>
          (
          <year>1986</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Boukhetta</surname>
            ,
            <given-names>D.C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bertet</surname>
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>R.J.</surname>
          </string-name>
          :
          <article-title>Sequence mining using FCA and NextPriorityConcept algorithm</article-title>
          .
          <source>In: The 15th International Conference on Concept Lattices and Their Applications (CLA</source>
          <year>2020</year>
          )
          <article-title>(</article-title>
          <year>2020</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Buzmakov</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Egho</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jay</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kuznetsov</surname>
            ,
            <given-names>S.O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Napoli</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          , Ra¨ıssi, C.:
          <article-title>Fca and pattern structures for mining care trajectories (</article-title>
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Buzmakov</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Egho</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jay</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kuznetsov</surname>
            ,
            <given-names>S.O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Napoli</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          , Ra¨ıssi, C.:
          <article-title>On projections of sequential pattern structures (with an application on care trajectories) (</article-title>
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Codocedo</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bosc</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kaytoue</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Boulicaut</surname>
            ,
            <given-names>J.F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Napoli</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>A proposition for sequence mining using pattern structures</article-title>
          .
          <source>In: International Conference on Formal Concept Analysis</source>
          . pp.
          <fpage>106</fpage>
          -
          <lpage>121</lpage>
          . Springer (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Demko</surname>
          </string-name>
          , Ch.,
          <string-name>
            <surname>Bertet</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Faucher</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Viaud</surname>
            ,
            <given-names>J.F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kuznetsov</surname>
            ,
            <given-names>S.O.:</given-names>
          </string-name>
          <article-title>NextPriorityConcept: A new and generic algorithm computing concepts from complex and heterogeneous data</article-title>
          .
          <source>arXiv preprint arXiv:1912</source>
          .
          <volume>11038</volume>
          (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9. Ferr´e, S.:
          <article-title>Syst`emes d'information logiques : un paradigme logico-contextuel pour interroger, naviguer et apprendre</article-title>
          . Doctorat, University of Rennes 1, France (Oct
          <year>2002</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10. Ferr´e, S.:
          <article-title>Reconciling Expressivity and Usability in Information Access - From Filesystems to the Semantic Web</article-title>
          . Habilitation, University of Rennes 1, France (november
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11. Ferr´e, S.:
          <article-title>Reconciling expressivity and usability in information access from file systems to the semantic web (</article-title>
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12. Ferr´e,
          <string-name>
            <given-names>S.</given-names>
            ,
            <surname>Ridoux</surname>
          </string-name>
          ,
          <string-name>
            <surname>O.:</surname>
          </string-name>
          <article-title>A logical generalization of formal concept analysis</article-title>
          .
          <source>vol. 1867</source>
          , pp.
          <fpage>371</fpage>
          -
          <lpage>384</lpage>
          (03
          <year>2000</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Ganter</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kuznetsov</surname>
            ,
            <given-names>S.O.</given-names>
          </string-name>
          :
          <article-title>Pattern structures and their projections</article-title>
          .
          <source>In: LNCS of International Conference on Conceptual Structures (ICCS'01)</source>
          . pp.
          <fpage>129</fpage>
          -
          <lpage>142</lpage>
          (
          <year>2001</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Ganter</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wille</surname>
          </string-name>
          , R.:
          <source>Formal Concept Analysis, Mathematical foundations</source>
          . Springer Verlag, Berlin (
          <year>1999</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Gizdatullin</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Baixeries</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ignatov</surname>
            ,
            <given-names>D.I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mitrofanova</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Muratova</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Espy</surname>
            ,
            <given-names>T.H.</given-names>
          </string-name>
          :
          <article-title>Learning interpretable prefix-based patterns from demographic sequences</article-title>
          .
          <source>In: International Conference on Intelligent Data Processing: Theory and Applications</source>
          . pp.
          <fpage>74</fpage>
          -
          <lpage>91</lpage>
          . Springer (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Gizdatullin</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ignatov</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mitrofanova</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Muratova</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Classification of demographic sequences based on pattern structures and emerging patterns</article-title>
          .
          <source>In: Supplementary Proceedings of 14th International Conference on Formal Concept Analysis, ICFCA</source>
          . pp.
          <fpage>49</fpage>
          -
          <lpage>66</lpage>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Guyet</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Quiniou</surname>
          </string-name>
          , R.:
          <article-title>Extracting temporal patterns from interval-based sequences</article-title>
          . In: Twenty-Second
          <source>International Joint Conference on Artificial Intelligence</source>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <surname>Kam</surname>
            ,
            <given-names>P.s.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fu</surname>
            ,
            <given-names>A.W.C.</given-names>
          </string-name>
          :
          <article-title>Discovering temporal patterns for interval-based events</article-title>
          .
          <source>In: International Conference on Data Warehousing and Knowledge discovery</source>
          . pp.
          <fpage>317</fpage>
          -
          <lpage>326</lpage>
          . Springer (
          <year>2000</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          19.
          <string-name>
            <surname>Kaytoue</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          : Contributions to Pattern Discovery. Habilitation, University of Lyon, France (february
          <year>2020</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          20.
          <string-name>
            <surname>Kaytoue</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Codocedo</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Buzmakov</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Baixeries</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kuznetsov</surname>
            ,
            <given-names>S.O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Napoli</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Pattern structures and concept lattices for data mining and knowledge processing</article-title>
          .
          <source>In: In Proceedings of ECML-PKDDl</source>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          21.
          <string-name>
            <surname>Kaytoue</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Duplessis</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kuznetsov</surname>
            ,
            <given-names>S.O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Napoli</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Two fca-based methods for mining gene expression data</article-title>
          .
          <source>In: International Conference on Formal Concept Analysis</source>
          . pp.
          <fpage>251</fpage>
          -
          <lpage>266</lpage>
          . Springer (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          22.
          <string-name>
            <surname>Linding</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Fast concept analysis</article-title>
          . In:
          <article-title>Working with Conceptual StructuresContributions to ICC</article-title>
          . pp.
          <fpage>235</fpage>
          -
          <lpage>248</lpage>
          (
          <year>2002</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          23.
          <string-name>
            <surname>Mannila</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Toivonen</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Verkamo</surname>
            ,
            <given-names>A.I.</given-names>
          </string-name>
          :
          <article-title>Discovery of frequent episodes in event sequences. Data mining and knowledge discovery 1(3</article-title>
          ),
          <fpage>259</fpage>
          -
          <lpage>289</lpage>
          (
          <year>1997</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          24.
          <string-name>
            <surname>Pei</surname>
            ,
            <given-names>J</given-names>
            ., Han, J
          </string-name>
          .,
          <string-name>
            <surname>Mortazavi-Asl</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pinto</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>Q.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dayal</surname>
            ,
            <given-names>U.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hsu</surname>
            ,
            <given-names>M.C.</given-names>
          </string-name>
          : Prefixspan:
          <article-title>Mining sequential patterns efficiently by prefix-projected pattern growth</article-title>
          . In: icccn. p.
          <fpage>0215</fpage>
          .
          <string-name>
            <surname>IEEE</surname>
          </string-name>
          (
          <year>2001</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          25.
          <string-name>
            <surname>Srikant</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Agrawal</surname>
          </string-name>
          , R.:
          <article-title>Mining sequential patterns: Generalizations and performance improvements, edbt (</article-title>
          <year>1996</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref26">
        <mixed-citation>
          26.
          <string-name>
            <surname>Sun</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Orlowska</surname>
            ,
            <given-names>M.E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhou</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          :
          <article-title>Finding event-oriented patterns in long temporal sequences</article-title>
          .
          <source>In: Pacific-Asia Conference on Knowledge Discovery and Data Mining</source>
          . pp.
          <fpage>15</fpage>
          -
          <lpage>26</lpage>
          . Springer (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref27">
        <mixed-citation>
          27.
          <string-name>
            <surname>Wille</surname>
          </string-name>
          , R.:
          <article-title>Restructuring lattice theory : an approach based on hierarchies of concepts</article-title>
          .
          <source>Ordered</source>
          sets pp.
          <fpage>445</fpage>
          -
          <lpage>470</lpage>
          (
          <year>1982</year>
          ), i. Rival (ed.), Dordrecht-Boston, Reidel.
        </mixed-citation>
      </ref>
      <ref id="ref28">
        <mixed-citation>
          28.
          <string-name>
            <surname>Winarko</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Roddick</surname>
            ,
            <given-names>J.F.</given-names>
          </string-name>
          :
          <article-title>Armada-an algorithm for discovering richer relative temporal association rules from interval-based data</article-title>
          .
          <source>Data &amp; Knowledge Engineering</source>
          <volume>63</volume>
          (
          <issue>1</issue>
          ),
          <fpage>76</fpage>
          -
          <lpage>90</lpage>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref29">
        <mixed-citation>
          29.
          <string-name>
            <surname>Yan</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          , Han,
          <string-name>
            <given-names>J</given-names>
            .,
            <surname>Afshar</surname>
          </string-name>
          , R.: Clospan: Mining:
          <article-title>Closed sequential patterns in large datasets</article-title>
          .
          <source>In: Proceedings of the 2003 SIAM international conference on data mining</source>
          . pp.
          <fpage>166</fpage>
          -
          <lpage>177</lpage>
          . SIAM (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>