<!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>Combined Structure-Weight Graph Similarity and its Application in E-Health</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Mahsa Kiani, Virendrakumar C. Bhavsar, and Harold Boley Faculty of Computer Science University of New Brunswick Fredericton</institution>
          ,
          <addr-line>NB</addr-line>
          ,
          <country country="CA">Canada</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>-A combined structure-weight similarity approach for comparing directed (vertex- and edge-)labeled (edge-) weighted graphs is presented. Vertex labels (as types) and edge labels (as attributes) embody semantic information. Edge weights express assessments regarding the (percentage-)relative importance of the attributes, a kind of pragmatic information. These graphs are uniformly represented and interchanged using a weighted extension of Object Oriented RuleML. We propose semantic-pragmatic information retrieval and clustering where a combination of structure and weight similarities between a query and stored graphs is calculated. The structure and weight similarity values are used as primary and secondary criteria, respectively, to rank the retrieved graphs. The proposed weight similarity algorithm refines the ranking of retrieved graphs that have identical or nearly identical querygraph structure similarity but have different edge weights. It is shown that our approach leads to higher precision compared to earlier approaches that did not incorporate the similarity of edge weights. The proposed approach of semanticpragmatic information retrieval and clustering can be applied, for example, in e-Learning, e-Business, social networks, and Health 3.0. In this paper, the application focus is in e-Health, specifically the retrieval of mental health records.</p>
      </abstract>
      <kwd-group>
        <kwd>-graph similarity</kwd>
        <kwd>structure similarity</kwd>
        <kwd>weight similarity</kwd>
        <kwd>weighted Object Oriented RuleML</kwd>
        <kwd>e-Health</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>I. INTRODUCTION</title>
      <p>
        Semantic information can be represented using
hierarchical structures, which express knowledge in multiple levels
of detail. In the e-Business domain, vertex-labeled,
edgelabeled and edge-weighted trees [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] are used in order to
represent attributes of products. In [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], these weighted trees are
generalized to weighted Directed Acyclic Graphs (wDAGs)
in which substructures can be shared. Efficient similarity
algorithms are required in many applications, such as for
schema matching in databases, buyer-seller matching in
eBusiness, and health record retrieval in e-Health. They can
also be used in social networks, e.g. to form
similarityclustered wellness or patient groups [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. Calculating
similarities between patient profiles (i.e., health records) is difficult,
as the various aspects of a disease should be weighted
differently, which entails that simple matching of attributes
is not adequate in e-Health [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. Weights are already used
in similarity algorithms [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. In [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], similar patients
are identified based on similarity of symptoms and diseases.
In this system, different aspects of a disease are weighted
using regression estimation. Then, these calculated weights
are used as coefficients in a weighted distance measure. Note
that each particular user group (e.g., profiles of all patients
having lung cancer) has the same values in the weight
vector. This approach differs from the structural similarity
algorithms [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] which consider different set of weights
for each profile (even if they belong to the same group). The
similarity algorithms in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] compute the arithmetic mean
of the two weights on corresponding edges of compared
trees/wDAG in order to determine the weighted similarity. In
this way, edge weights are used as scaling factors to ensure
that the overall similarity value is in the real interval [0; 1].
We have found that this approach cannot differentiate trees
nor wDAGs with different edge weights having identical
or nearly identical structure similarity to the given query.
Therefore, we propose modifications to the original weighted
similarity algorithm to address this issue.
      </p>
      <p>
        In this paper, a combined structure-weight similarity
algorithm is proposed based on two component algorithms: a
version of the structure similarity algorithm in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] and a new
weight similarity algorithm. In our approach, we perform
ranked retrieval over a set of (meta)data represented as
directed (vertex- and edge-)labeled (edge-)weighted graphs,
each optionally associated with a data record. A special case
is that the ‘metadata’ already are the ‘data’ to be retrieved,
with no need for a separate data record. Similar to [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ],
graphs must be transformed to an internal representation
before computing their similarity. Such graphs are expressed
using a weighted extension of Object Oriented RuleML
[
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. The XML parent-child structure reflects the hierarchical
structure of the graphs, while the role element &lt;slot&gt;
expresses edge labels and the attribute weight expresses edge
weights. Also, the sharing of a rooted subgraph by multiple
parents can be represented using a RuleML element with an
XML key referred to from multiple keyrefs. The graphs
could be expressed using other representation approaches
(e.g., Turtle [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] and RDF/XML [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]) as well. We assume that,
given a query graph, a ranked list of matching (meta)data
graphs (and consequently corresponding records), which are
stored in a dataset, is constructed. The structure similarity
and the weight similarity algorithms match the query graph
Copyright is held by the author(s)
to each (meta)data graph and calculate their structure and
edge weight similarity values, respectively. These pair values
of structure and weight similarities (resulting from matching
the query graph to each (meta)data graph) are considered
as ranking criteria to generate the ranking list of (meta)data
graphs. We demonstrate that this approach is able to
differentiate the graphs having identical or nearly identical structure
similarity but different edge-weight similarity to the given
query.
      </p>
      <p>
        The proposed combined structure-weight similarity
approach is applied in e-Health domain. We represent
(meta)data of Electronic Medical Records (EMRs) using
graphs which express disorders and treatment priorities
of patients. Then, our similarity approach is used to find
mental health EMRs having similar (meta)data graphs to
a given query. To provide patient privacy and security for
health records as well as (meta)data, different technological
safeguards as well as policies could be used [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. In addition,
using (meta)data could act as an extra level of privacy,
as for extracting some statistics or trend, information in
(meta)data itself is enough. Also, in retrieval applications,
only records related to the ranked results would be retrieved
not all records.
      </p>
      <p>The rest of the paper is organized as follows. Section II
explains our similarity approach. Section III focusses on an
application of the proposed approach in the e-Health domain.
Section IV concludes the paper.</p>
      <p>II. COMBINED STRUCTURE-WEIGHT GRAPH</p>
      <p>SIMILARITY</p>
      <p>In this section, graph representation and the architecture
of the combined structure-weight similarity approach are
presented. The theoretical basis of the proposed weight
similarity is explained and the characteristics of the weight
similarity are mentioned. A recursive weight similarity
algorithm and the computational experiments on a synthetic
dataset are presented.</p>
      <sec id="sec-1-1">
        <title>A. Approach</title>
        <p>
          Graph Representation: As stated earlier, we assume that
we are given a set of records, with each record having
an associated (meta)data represented as a graph. Note that
all graphs throughout this paper are single-rooted wDAGs.
All graphs are hierarchical as concepts can be represented
using sub-concepts having different importance. The root
vertex carries a class label, which types the main object.
This object is further described by the labeled weighted
edges leading to other labeled vertices of the graph, etc.
Labels on outgoing edges from each given vertex are unique
and appear in lexicographic (alphabetical) left-to-right order.
Also, edge weights are values in the real interval [0; 1] and
for each graph its edge weights normalized; therefore, the
sum of weights for all outgoing edges from each vertex
equals 1. Further, we assume that given a query graph,
a ranked list of the matching graphs is required to be
constructed. Subsequently, these ranked (meta)data graphs
are used to look up corresponding records. The computed
weight similarity values should be comparable, therefore
(similar to [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ]) our graphs have to conform to the same
standard schema.
        </p>
        <p>
          Architecture: The proposed similarity approach has three
modules: the structure similarity evaluation module, the
weight similarity evaluation module, and the integration
and ranking module (see Figure 1). We have a set of
graphs G = fG1; G2; G3; ; Gng, which represents the
(meta)data for a set of records. Both number of vertices
and edges are assumed to be finite. Given a graph G0,
the structure similarity of G0 with each member of G is
calculated using the recursive graph similarity algorithm
proposed in [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ]; here G0 may represent a query. The
structure similarity algorithm is iterative. The given graphs are
traversed from their roots to their leaves (top-down) and
then their similarity is computed bottom-up. The structure
similarity values and weight similarity values are in the
real interval [0; 1]. The weight similarity evaluation module
matches each member of G with G0; then it calculates the
edge-weight similarity value. Figure 1 shows the architecture
of the similarity approach where G and G0 represent a
set of graphs and a given query graph being matched,
sSim(G; G0) denotes their structure similarity values, and
wSim(G; G0) expresses their weight similarity values.
G
G0
        </p>
        <p>input1
input1 input2
input2</p>
        <p>Structure Similarity
Evaluation Module
Weight Similarity
Evaluation Module
wSim(G;G0)
sSim(G;G0)</p>
        <sec id="sec-1-1-1">
          <title>Integration rankedList[G]</title>
          <p>and
Ranking
Module</p>
          <p>The structure similarity values and weight
similarity values of G and G0 are inputs to the
integration and ranking module. After receiving the similarity
pairs [sSim(Gi; G0); wSim(Gi; G0)] for all graphs i =
f1; 2; 3; ; ng in set G, the integration and ranking module
ranks the graphs in G based on the structure similarity
and weight similarity. Structure and weight similarity values
could be combined with different approaches. Here, we
consider weight similarity as the secondary criterion in
ranking of graphs. As a result, G1 could appear before
G2 (G1 G2) in the ranked list if and only if structure
similarity value of G1 to G0 (the query) is greater than the
structure similarity value of G2 to G0; or the difference
between their structure similarity is less than or equal to
a threshold while the weight similarity value G1 to G0 is
greater than the weight similarity value of G2 to G0. Thus,
(a) G1 G2 if and only if [sSim(G1; G0) &gt;
sSim(G2; G0)], or [jsSim(G1; G0) sSim(G2; G0)j
T hreshold and wSim(G1; G0) &gt; wSim(G2; G0)].
(b) G1 G2 or G2 G1 if [jsSim(G1; G0)
sSim(G2; G0)j T hreshold and wSim(G1; G0) =
wSim(G2; G0)]</p>
          <p>In this paper, we consider the threshold equal to 0. For
each graph, we keep a count of the number of edges,
assigning a unique integer j to each edge, starting from
1 in top-down (root to leaf) and left-to-right order. As a
result, each edge is represented by ej , j f1; 2; 3; ; zg,
considering z as the total number of edges in a graph. As
all edges are directed, the source vertex u and the destination
vertex v of each edge ej can be represented as an ordered
pair (u; v). Also, the weight of edge ej is represented
as w(ej ). The edge ej in graph G and the edge ej0 in
graph G0 are called corresponding edges if and only if they
have identical edge labels as well as identical source vertex
labels and destination vertex labels. The relation between
:
corresponding edges ej and ej0 is denoted as ej = ej0 .
Consider du as the depth of vertex u. In our graphs, du
and du0 are equal for two corresponding edges ej and ej0 .</p>
        </sec>
      </sec>
      <sec id="sec-1-2">
        <title>B. Weight Similarity</title>
        <p>
          In the proposed weight similarity approach, the
similarity of weights related to two corresponding edges can be
calculated based on two similarity measures [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ], viz.
Manhattan distance, Equation 1, or Min/Max similarity measure,
Equation 2, as given below:
weSim1 = 1
jw(ej )
        </p>
        <p>w(ej0 )j
weSim2 =
min(w(ej ); w(ej0 ))
max(w(ej ); w(ej0 ))
(1)
(2)</p>
        <p>The importance of each edge can be considered to be a
function of the depth of its source vertex. As stated earlier,
the root vertex carries a class label, which types the main
object; therefore, the outgoing edges from the root have
the highest importance. This importance decreases as the
depth of the source vertex of the edge increases. Similarly,
contribution of the weight similarity of two corresponding
edges in weight similarity of two graphs depends on the
depth of the source vertex related to corresponding edges.
The coefficient for adjusting the contribution of edge weight
similarity needs to decreases as the depth of the source
vertex of corresponding edges increases. One approach for
defining this coefficient is using an exponential function with
D as the fixed base and d + 1 as the variable exponent.
Therefore, in this paper, the adjustment coefficient is
expressed as Dd+1. If p enumerates the pairs of corresponding
edges in depth d and md (md 0) denotes the number of
corresponding edges in depth d, the weight similarity value
of graphs is expressed using Equation 3. In this equation,
each edge similarity value is multiplied by Dd+1, in which
D is the global depth degradation factor (D 0:5) and d is
the depth of the source vertex of the edge. 0 d dmax,
(4)
(5)
where dmax is the maximum possible depth of the source
vertex of corresponding edges in two graphs.</p>
        <p>Sim =
dmax md
X (X weSimp Dd+1)</p>
        <p>As the similarity of weights, numbers in the real interval
[0; 1], related to two corresponding edges is calculated
using the Manhattan distance (Equation 1) or the Min/Max
similarity measure (Equation 2), the similarity value of a
pair of weights weSimp; p f1; 2; 3; ; mdg is in interval
[0; 1]. Also d, which is the depth of the source vertex related
to an edge, could be a value larger than or equal to 0. As a
result, Dd+1 is a positive number. Thus, the summation of
(weSimp Dd+1) for all corresponding edges could result
in a value larger than 1 and therefore Sim could be greater
than 1. In order to express the graph similarity as a value
in real interval [0; 1], the combined edge weight similarity
values (viz. Sim) is normalized by the sum of the Dd+1
used in various iterations of the recursive weight similarity
algorithm. Starting from the first level in graphs, each time
a pair of weights is compared, the related depth factor is
added and this process is repeated for all levels of graphs.
The normalization factor denoted by F is expressed as,
F =
dmax md
X (X
d=1 p=1</p>
        <p>Dd+1)
wSim =</p>
        <p>Sim</p>
        <p>F
;</p>
        <p>Thus, the normalized weight similarity of two graphs
(wSim) is given as,
which lies in real interval [0; 1]. The global depth
degradation factor (D) could be equal to 1. In this case, the proposed
similarity approach gives the same importance to the weight
similarities of various levels of the graphs and the arithmetic
mean of the weight similarity values is calculated. Therefore,
the result of such a calculation is identical to considering
the weight similarity of all attributes having the same effect
on the weight similarity of two graphs. This approach
results in a linear trend of similarity values. In Equation
6, mtotal denotes the number of corresponding edges in
total. weSim1(w(ej ); w(ej0 )) is the similarity of weights
related to two corresponding edges based on the Manhattan
distance, while wSim is the global weight similarity of two
graphs based on the Manhattan distance. The same relation
holds when the weight similarity is calculated based on the
Min/Max similarity measure as well.</p>
        <p>wSim = (1=mtotal)
mtotal
X (weSim1(w(ej ); w(ej0 ))) (6)
k=1
The weight similarity also has the following characteristics:
(a) The similarity value generated by the weight similarity
12:
13:
14:
15:
16:
17:
18: k
19: k0
20: else if ej
21: k
22: else
23: k0
24: end if
25: end while
26: wSim Sim=F
27: return wSim
28: end if
29: end procedure
k + 1
k0 + 1</p>
        <p>ej0 then
k + 1
approach is a non-negative number. The minimum
similarity value equals 0. (b) The weight similarity of a graph
to itself is 1:0. The similarity of each pair of weights
weSim(w(ej ); w(ej0 )) is 1:0. Therefore, Sim has the same
value as F and as a result the weight similarity of two
graphs (i.e., wSim) is equal to 1:0. (c) The weight similarity
measure is a symmetric function, as the order of pair of
graphs does not affect the result of the computation of
weight similarity. (d) The weight similarity like many other
similarities does not obey triangular inequality. The weight
similarity measure is a partial matching approach as only the
weights related to the corresponding edges are compared.</p>
      </sec>
      <sec id="sec-1-3">
        <title>C. Algorithm</title>
        <p>Algorithm 1, which calculates the weight similarity of two
graphs based on Manhattan distance, is represented in Figure
2.</p>
        <p>1: procedure WSIMILARITY(G, G0)
2: if G or G0 only contains a single vertex then
3: return 0
4: end if
5: if G:root:label 6= G0:root:label then
6: return 0
7: else
8: d root(G):depth
9: k 1
10: k0 1
11: while k</p>
        <p>G:root:outDegree</p>
        <p>^ k0 G0:root:outDegree do
ej G[k]:root:edge
e0j :G0[k0]:root:edge
if ej = ej0 then</p>
        <p>F F + Dd+1
weSim (1 jw(ej ) w(ej0 )j)
Sim Sim + weSim Dd+1
+ wSimilarity(G:subgraph(ej );</p>
        <p>G0:subgraph(ej0 ))</p>
        <p>Algorithm 1 (see Figure 2) gives the weight similarity
algorithm, which traverses two input graphs G and G0 in
a left-right depth-first strategy. The parameter of the
algorithm is D, which represents the global depth degradation
factor. Here we assume that D is equal to 0:5; however, a
learning component could be used to adjust the parameter.
Considering graphs G and G0 as the inputs of the algorithm,
G:subgraph(ej ) denotes the sub-graph rooted at destination
vertex of ej in graph G. G:root:label, G:root:inDegree,
and G:root:outDegree represent vertex label, in-degree,
and out-degree of the root of graph G, respectively. Also,
ej ej0 represents that ej could appear before ej0 in
a lexicographic ordered list. weSim is the similarity of
weights related to two corresponding edges. root(G):depth
is a function which gives the depth for root of graph G
relative to the root of the original graph. The output, wSim,
is the weight similarity value of G and G0.</p>
        <p>The proposed weight similarity algorithm traverses two
given graphs in a top-down (root-leaf) order to compute the
edge-weight similarity of the graphs. If two edges being
traversed are corresponding edges, their weight similarity is
calculated using Equation 1 or 2. Two pointer variables, k
and k0, indicate the positions of two outgoing edges being
matched. If ej ej0 , k is set to point to the next outgoing
edge in G, while if ej0 ej , k0 would be increased to
:
point to the next outgoing edge in G0. If ej = ej0 , k and
k0 are set to point to the next outgoing edges in G and G0,
respectively. The loop is terminated as soon as any one of
the following conditions is met: k &gt; G:root:outDegree or
k0 &gt; G0:root:outDegree.</p>
        <p>The algorithm is recursive, so the base case and recursive
case should be defined. The base case is where the problem
can be solved directly, while in the recursive case the
problem is expressed as subproblems that are closer to the base
case [10, pp. 228]. In this algorithm the base of the recursion
is where G or G0 only contains a single vertex (Algorithm
1, lines 2-4) or if G:root:label 6= G0:root:label (Algorithm
1, lines 5-6). In both cases, their weight similarity is 0. The
algorithm is tail recursive, i.e., the recursive invocation is
the very last thing which is performed [10, pp. 245]. In
the recursive case, the algorithm recursively invokes itself
using the roots of two sub-graphs of G and G0 as arguments
(Algorithm 1, line 17).</p>
        <p>As stated earlier, the labels of outgoing edges from each
vertex are arranged in the lexicographic order. Also, two
pointers indicate the positions of two edges being matched.
Using these features, the time complexity of the
algorithm is improved. If G or G0 only contains a single
vertex or G:root:label 6= G0:root:label for the roots
of two graphs, then the algorithm sets the weight
similarity directly to 0 without any further computation; If
G:root:label = G0:root:label, the algorithm uses one loop
(Algorithm 1, line 11) to find the corresponding edges.
For two graphs, consider t, t f1; 2; 3; ; rg, in which
r equals to the total number of pairs of matched non-leaf
vertices. When matching all outgoing edges of a pair of
overrteicjes=,: threeje0 , cfaosres aslhlovualdluebse ocofnksidaenredd:k(0i,) tIhfeejnumbeejr0
of iterations equals to IGt = G:root:outDegree, (ii) If
ej0 ej , for all values of k and k0, the number of
iterations is equal to IG0 t = G0:root:outDegree, and
(iii): If only for some values of k and k0, ej ej0 or
ej = ej0 , the number of iterations to find the corresponding
edges is in the interval [min(IGt; IG0 t); max(IGt; IG0 t)].
The number of iterations for finding all corresponding
edges in graphs, I , equals to the summation of
iterations performed for each pair of vertices; I is in interval
[Pr t = 1 max(IGt; IG0 t)]. In the worst
t = 1 min(IGt; IG0 t); Pr
case, I = Ptr= 1 max(IGt; IG0 t)], and therefore the
complexity of the algorithm is (Ptr= 1 max(IGt; IG0 t)).</p>
      </sec>
      <sec id="sec-1-4">
        <title>D. Computational Experiments</title>
        <p>Now, we test the proposed weight similarity algorithm on
a synthetic dataset, in which weights are changed
systematically to understand the effects of structure and weights on the
similarity. The dataset contains graphs structurally identical
to the graphs given in Figure 3, but with different weights.
The graphs are balanced with maximum breadth assuming
branching factor of 2. The dataset contains 29 graphs.</p>
        <p>B</p>
        <p>C
e1
e4</p>
        <p>E</p>
        <p>A
e2
F
e5
e7
J</p>
        <p>D
e3
e8 e9
K
e6</p>
        <p>I
e10 e11</p>
        <p>e12 e13
L</p>
        <p>O
e14
P
In this dataset, we have five possible values for a
pair of edge weights: [0:01; 0:99], [0:25; 0:25], [0:5; 0:5],
[0:75; 0:25], or [0:99; 0:01]. In G1 of dataset, weights of all
edges having the same source vertex are [0:01; 0:99]. Now,
we change the edge weights from right to left in a level
and then bottom-up for various levels, exhausting the five
possible sets of edge weight pairs. This results in 29 graphs
in the dataset, of which eight graphs, G1 to G8, are shown
in Table I, where each row represents the weights related to
a graph 1. Enabling a compact specification and description
of the weights, this notation is used to illustrate different
weight values for one graph structure.</p>
        <p>Considering this systematic changes in weights, the
weight similarities of G1 in the dataset with respect to
the remaining graphs are expected to decrease gradually.
Therefore, the synthetic dataset provides a starting point for
an evaluation of our weight similarity algorithm.</p>
        <sec id="sec-1-4-1">
          <title>1The complete dataset is available from authors.</title>
          <p>
            While similarity values based on the previous graph
similarity algorithm [
            <xref ref-type="bibr" rid="ref2">2</xref>
            ] are always equal to 1, our
combined structure-weight similarity approach differentiates the
structurally identical graphs with different weights. Also,
Figure 4 gives a comparison of the two similarity measures,
the similarity measure based on the Manhattan distance and
the Min/Max similarity measure. Here again we compute
the similarity w.r.t. G1. For the depth degradation factor
equal to 0:5 and for the same set of weights for a dataset,
both similarity measures generate similarity values with a
decreasing trend. It is important to note that for Figure 4, the
similarity decreases as a result of the systematic change of
weights of edges (having the same source): gradual increase
of the edge weight for the left vertex and gradual decrease
of the edge weight for the right vertex. The bumps in the
similarity plots (e.g. at G8, G15, and G22) are observed as
the result of level transitions, i.e., the systematic changes of
weights in each level of the graph.
          </p>
          <p>Affective Set</p>
          <p>e4
Panic Disorder</p>
          <p>Anorexia Nervosa</p>
          <p>Mental Health EMR
e1</p>
          <p>e3
e2
Behavioral Set
e5</p>
          <p>e6 e8
Aggression Set</p>
          <p>Cognitive Set</p>
          <p>e7
e9</p>
          <p>e10
Physical</p>
          <p>
            We have given above the computational results for the
similarities of members of a dataset. We can generalize
the behavior of the similarity computation to other possible
graph structures such as trees [
            <xref ref-type="bibr" rid="ref1">1</xref>
            ], and generalized trees [
            <xref ref-type="bibr" rid="ref11">11</xref>
            ],
and conclude that the proposed weight-similarity algorithm,
with any one of the similarity measures, is effective in
differentiating graphs having identical or nearly identical
structure similarity values (but different weights). Weight
similarity considers only weight of common subgraphs of
two graphs being compared, while structure similarity takes
into account common as well as uncommon subgraphs.
Therefore, two graphs could be similar from weight
similarity perspective, while their uncommon sub-graphs are
large (i.e. small structure similarity). Note that although the
numerical similarity values of the two similarity measures
are different, they result in the same relative ranking of
the graphs for the given query. Since there is no universal
benchmark for evaluating similarity [
            <xref ref-type="bibr" rid="ref12">12</xref>
            ], it is not possible
to select or recommend one of the similarity measures over
the other and both similarity measures could be used for the
purposes of relative ranking.
          </p>
          <p>III. E-HEALTH APPLICATION: MENTAL HEALTH</p>
          <p>ELECTRONIC MEDICAL RECORD</p>
          <p>
            Group therapy is used as a treatment option for drug
abusers [13, pp. 577-620]. Newcomers should be placed in
groups with at least one or two similar members. Open group
membership in which new members are allowed to enter
as others leave is the norm [14, pp. 262-273]. Therefore,
retrieving similar mental health EMRs to select patients for
group therapy is a challenging task. This selection should be
based on the gathered dynamic, behavioral, and diagnostic
information in a screening interview [15, pp. 934]. Consider
the scenario where the user (e.g., a psychologist) wants to
find an appropriate group for a new patient in order to
schedule group therapy sessions. In this case, mental health
EMRs that describe similar disorders as well as treatment
priorities should be found. Each (meta)data expresses the
individualized treatment plan about patient’s disorders and
the treatment priorities based on the last psychological
evaluation. Similar to [
            <xref ref-type="bibr" rid="ref2">2</xref>
            ], we represent the attributes of each
(meta)data using a graph based on a standard schema. The
attributes of this schema are extracted from [
            <xref ref-type="bibr" rid="ref15">15</xref>
            ], [
            <xref ref-type="bibr" rid="ref16">16</xref>
            ], and
the terms representing the (meta)data are based on DSM IV
[
            <xref ref-type="bibr" rid="ref16">16</xref>
            ]. The attributes express possible affective, behavioral,
and cognitive problems of a patient. The edge weights in
graphs represent the relative priority regarding treatment
of each disorder in the group therapy session. Therefore,
severe, influential, and dangerous disorders as well as the
items for which treatments have the greatest benefit have
higher priority (i.e., higher weight) in our treatment-oriented
(meta)data. As treatment priorities change over time, edge
weights could be different in each evaluation phase by the
psychologist. In order to select patients for group therapy,
in the proposed system the edge weights of (meta)data are
always related to the last psychological evaluation of patients
(available in the mental health records). Figure 5 illustrates
the generic structure of (meta)data of mental health EMRs
in the database as well as a query having the same structure.
Cocaine Intoxication
          </p>
          <p>Table II represents the edge labels of the generic structure
(in Figure 5), in which l(ej ) denotes the label of edge ej ,
j f1; 2; 3; ; 10g. The patients have panic disorder and
also delirium due to cocaine intoxication. Other disorders
of the patients are anorexia nervosa and physical aggression
including fantasies and real acts [15, pp. 421].</p>
          <p>Edge weights of four EMR (meta)data, representing the
diagnosis segment of a mental health EMR, and a query are
illustrated in Table III. Note the different last subscripts for
the two edges emanating from the Aggression vertex and
terminating at the same Physical destination vertex. Further,
there are three edges from the root vertex.
Now we compare the similarity of query with the four
(meta)data graphs G1, G2, G3, and G4 of the EMRs given
in Tables II and III using the combined structure-weight
similarity algorithm. The computed similarity values are
given in Table IV. The structure similarity values between
query G0 and any of four (meta)data graphs are identical;
therefore, we cannot distinguish between them using the
structure similarity alone. The edge weight similarity results
using the proposed algorithm are also shown in Table IV.</p>
          <p>
            We can clearly see that the similarities are different and
they can be used to rank four (meta)data graphs. Further,
both similarity measures (see columns 4 and 5 in Table IV)
are equally acceptable as they result in the same relative
ranks. Instead of ranked graphs based on their similarity to a
given query, the proposed approach could cluster the mental
health EMRs based on a threshold to facilitate creation of
supportive virtual communities, which is one of the main
goals of Health 3.0 [
            <xref ref-type="bibr" rid="ref17">17</xref>
            ].
          </p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>IV. CONCLUSION</title>
      <p>Our combined structure-weight similarity approach is able
to distinguish graphs having identical or nearly identical
structure but different weights. By considering the weight
similarity in addition to the structure similarity, preferences
of user are compared with the preferences expressed as
edge weights of graphs stored in dataset. The similarity
of edge weights is calculated in a recursive way, giving
more importance to weights of edges in higher levels of a
graph. The combined structure-weight similarity algorithm
has been implemented in Java and it has been applied to
retrieve mental health electronic medical records (EMRs).</p>
    </sec>
    <sec id="sec-3">
      <title>ACKNOWLEDGMENTS</title>
      <p>The authors would like to thank Mehrdad Kiani, M.D.,
who provided help in the health domain. This research
is partially funded by a Discovery Grant from the
Natural Sciences and Engineering Council of Canada and a
Ph.D. Fellowship Grant from the Atlantic Computational
Excellence Network (ACEnet) awarded to the second author.</p>
      <p>A
http:</p>
      <sec id="sec-3-1">
        <title>Upper</title>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Bhavsar</surname>
            ,
            <given-names>V.C.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Boley</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Yang</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <article-title>“A Weighted-Tree Similarity Algorithm for Multi-Agent Systems in E-Business Environments,”</article-title>
          <source>Computational Intelligence</source>
          , vol.
          <volume>20</volume>
          , no.
          <issue>4</issue>
          , pp.
          <fpage>584</fpage>
          -
          <lpage>602</lpage>
          ,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Jin</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          , “Similarity of Weighted Directed Acyclic Graphs,”
          <source>MSc Thesis</source>
          , Faculty of Computer Science, University of New Brunswick, Canada, Sep.
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Boley</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          <article-title>and</article-title>
          <string-name>
            <surname>Shafiq</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Smith</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Osmun</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          , “
          <article-title>The Social Semantic Subweb of Virtual Patient Support Groups,”</article-title>
          <source>in Proc. the 3rd Canadian Semantic Web Symposium (CSWS2011)</source>
          , Vancouver, British Columbia, Canada. CEUR, Aug.
          <year>2011</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>18</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Fritz</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Klenk</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Dippon</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Heidemann</surname>
          </string-name>
          , G.,
          <article-title>“Determining patient similarity in medical social networks,”</article-title>
          <source>in Proc. MedEx Workshop</source>
          ,
          <year>2010</year>
          , pp.
          <fpage>6</fpage>
          -
          <lpage>13</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>H.</given-names>
            <surname>Boley</surname>
          </string-name>
          , “
          <string-name>
            <surname>Object-Oriented</surname>
            <given-names>RuleML</given-names>
          </string-name>
          :
          <string-name>
            <surname>User-Level</surname>
            <given-names>Roles</given-names>
          </string-name>
          , URIGrounded Clauses, and
          <string-name>
            <surname>Order-Sorted</surname>
            <given-names>Terms</given-names>
          </string-name>
          ,”
          <source>in Proc. Rules</source>
          and
          <article-title>Rule Markup Languages for the Semantic Web (RuleML2003)</article-title>
          .
          <source>LNCS 2876</source>
          , Springer, Oct.
          <year>2003</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>16</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>D.</given-names>
            <surname>Beckett</surname>
          </string-name>
          and
          <string-name>
            <given-names>T.</given-names>
            <surname>Berners-Lee.</surname>
          </string-name>
          (
          <year>2011</year>
          )
          <article-title>Turtle Readable RDF Syntax</article-title>
          . [Online]. Available: //www.w3.org/TeamSubmission/turtle/
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Cyganiak</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Wood</surname>
          </string-name>
          , D., Ed.,
          <string-name>
            <surname>Resource Description</surname>
          </string-name>
          <article-title>Framework (RDF): Concepts and Abstract Syntax</article-title>
          .
          <source>World Wide Web Consortium, Jan</source>
          .
          <year>2013</year>
          . [Online]. Available: http://www.w3.org/TR/2013/WD-rdf11
          <string-name>
            <surname>-</surname>
          </string-name>
          concepts-20130115/
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Jacques</surname>
            ,
            <given-names>L.B.</given-names>
          </string-name>
          , “
          <article-title>Electronic Health Records and Respect for Patient Privacy: A Prescription for Compatibility,”</article-title>
          <string-name>
            <given-names>Vand. J. Ent.</given-names>
            &amp;
            <surname>Tech</surname>
          </string-name>
          . L., vol.
          <volume>13</volume>
          , pp.
          <fpage>441</fpage>
          -
          <lpage>462</lpage>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <surname>Boriah</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Chandola</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Kumar</surname>
          </string-name>
          , V., “
          <article-title>Similarity Measures for Categorical Data: A Comparative Evaluation,”</article-title>
          <source>in Proc. the 8th SIAM International Conference on Data Mining</source>
          ,
          <year>2008</year>
          , pp.
          <fpage>243</fpage>
          -
          <lpage>254</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Drake</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          , Data Structures and Algorithms in Java. Saddle River, NJ, USA: Prentice-Hall, Inc.,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <surname>Dehmer</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Emmert-Streib</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Kilian</surname>
          </string-name>
          , J., “
          <article-title>A Similarity Measure for Graphs with Low Computational Complexity,”</article-title>
          <source>Applied Mathematics and Computation</source>
          , vol.
          <volume>182</volume>
          , no.
          <issue>1</issue>
          , pp.
          <fpage>447</fpage>
          -
          <lpage>459</lpage>
          ,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <surname>Janowicz</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Raubal</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Schwering</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Kuhn</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          , “Semantic Similarity Measurement and Geospatial Applications,” T. GIS, vol.
          <volume>12</volume>
          , no.
          <issue>6</issue>
          , pp.
          <fpage>651</fpage>
          -
          <lpage>659</lpage>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <surname>Carr</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <article-title>The Handbook of Child and Adolescent Clinical Psychology: A Contextual Approach</article-title>
          . Rouledge, New York: Taylor and Francis Group,
          <year>1999</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <surname>Ruiz</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Strain</surname>
            ,
            <given-names>E.C.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Langrod</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <article-title>The Substance Abuse Handbook, ser. Doody's all reviewed collection</article-title>
          . Philadelphia: Wolters Kluwer Health/Lippincott Williams and Wilkins,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <surname>Sadock</surname>
            ,
            <given-names>B.J.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Sadock</surname>
            ,
            <given-names>V.A.</given-names>
          </string-name>
          ,
          <source>Kaplan and Sadock's Synopsis of Psychiatry: Behavioral Sciences/Clinical Psychiatry, 10th ed. Philadelphia: Lippincott Williams and Wilkins</source>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>A. P.</given-names>
            <surname>Association</surname>
          </string-name>
          and
          <string-name>
            <surname>A. P. A. T. F.</surname>
          </string-name>
          <article-title>on DSM-IV., Diagnostic and Statistical Manual of Mental Disorders: DSM-IV-TR</article-title>
          ., 4th ed.,
          <source>ser. Diagnostic and Statistical Manual of Mental Disorders</source>
          . Washington, DC: American Psychiatric Association,
          <year>2000</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <surname>Kiani</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Bhavsar</surname>
            ,
            <given-names>V.C.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Boley</surname>
          </string-name>
          , H.,
          <article-title>“Clustering Using Combined Structure-Weight Graph Similarity</article-title>
          ,” University of New Brunswick, Canada,
          <source>Internal Report (In Preparation).</source>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>