Professional Documents
Culture Documents
IV 03 Naskah SIIT - 05 - 023
IV 03 Naskah SIIT - 05 - 023
ABSTRACT
A weighted-tree similarity algorithm has been successfully used in the e-business environments and power grid transactions.
Using the weighted-tree similarity algorithms, we can compute the similarity of two agents having textual information. This
paper proposes the extension the weighted-tree similarity algorithm in order to compute the similarity of two agents having
visual information. The extension of the algorithm incorporates shape matching with Thin-Plate splines transformation. The
computation results show that the weighted-tree similarity algorithm can be employed in agent matching to obtain the most
appropriate garment.
Keywords: Multi agents system, Similarity Algorithms, Shape Context, Shape Matching , Tree Similarity Algorithm.
Seminar Nasional “Soft Computing, Intelligent Systems and Information Technology” (SIIT 2005)
5-12 IMAGE, SPEECH AND LANGUAGE PROCESSING
User Info
User Profiles
Garment
. . . Type
. Age 0.4
User Agents . 0.3 Occasion
To 0.3
. . other
Acorn Adult Formal T-Shirt
Site
Cafe Figure 2. Example Trees of Garment Item
... In the arc-labeled arc-weighted tree, the arcs will
Café-1 Café-n always be labeled in alphabetical order. Moreover,
bold font is used to difference between arc labels and
node labels. Figure 2 shows the example trees of
garment.
Figure 1. ACORN Architecture (adopted from [9])
The depth of the tree is not limit with one or several
One capabilities of ACORN architecture is to provide level. Bhavsar et.al. then used RuleML to represent
information sharing among agents. Café is a place the tree in object orient model [4, 5]. Figure 3 shows
where agent can share its information among the RuleML of Figure 1(a). Element _r is a metarole
contains the names and weights of arc labels.
themselves. at a certain time, all agents give their
information to the café manager. The café manager <cterm>
compares all data, sharing out any relevant data to <_r n=”Age” w=”0.3”>
agent who would find it of use. Moreover, the café <ind>Adult</ind></_r>
manager maintains the mingling of agents in the café. <_r n=”Occasion” w=”0.3”>
Since the sharing information by café manager, each <ind>Formal</ind></_r>
agent will know about other agents and it can contacts <_r n=”Type” w=”0.4”>
interested agent to learn more. <ind>Shirt</ind></_r>
</cterm>
Figure 3. Symbolic Tree Representations [4]
Seminar Nasional “Soft Computing, Intelligent Systems and Information Technology” (SIIT 2005)
IMAGE, SPEECH AND LANGUAGE PROCESSING 5-13
For similarity algorithms, the weighted-tree similarity describe his information not only using node label but
algorithm recursively traverses every pair of trees and also using node color, node shape and node pattern.
calculate the similarity on each node to find the
similarity between two trees. The algorithm compute Using the previous arc-labeled arc-weighted tree [4],
the average of weights from two trees, ( wi + wi' ) / 2 and he would find difficulties to describe the shape using
obtain the similarity si of tree t1 and tree t2 recursively node label. However, it is easy to describe the shape of
by multiply an arc function A(Si) and the averaged a dress using node shape. The shape matching using
weight. Then Sum of A( Si )( wi + wi' ) / 2 is divide by shape context [1, 2, 3] used in this research is
employed to the problem.
sum of all averaged weights [4]:
∑ ( A(S )(w + w ) / 2 )/ ∑ (w + w ) / 2
i i
'
i i
'
i (1) 5. SHAPE CONTEXTS FOR SIMILARITY
ALGORITHM
Later the weighted-tree similarity algorithm is refined
by applying weight variance on the selection of the We propose the use of shape contexts for the tree
most preferable agent when several agents have the describing visual information of garment. Then Shape
same similarity [13]. Here is the formula of weighted- matching techniques can be used to find similarity.
tree similarity algorithm with weight variance [11]: According to Russel et.al. [10], shape matching in
n
= (∑ (( wi − wi ) 2 + ( wi' − wi ) 2 )) / n (2) computer vision can be categorized into two
var iance
1
approaches: (a) feature-based, and (b) brightness-
based.
where w = i ( wi − wi' ) / 2 and n = number of weight
pairs. Using variance to choose the preferable agents is
done by selecting the smaller variance.
Garment
Seminar Nasional “Soft Computing, Intelligent Systems and Information Technology” (SIIT 2005)
5-14 IMAGE, SPEECH AND LANGUAGE PROCESSING
figure 6), simply by counted the number of pixel in Similarity between two node shapes is counted based
each the polar bins. on the shape context distance. Thus, we should
measure the context distance D(P,Q) between shapes
After we finished calculating all histogram for each pi P and Q as the sum of shape context matching costs
in the first shape and the second shape, we need to find (5) over the best matching points, as follows [1, 2, 3]:
cost function Cij = C (pi, qj) where pi is a point in the 1
first shape and q j is a point in the second shape. Based D ( P, Q ) = ∑ arg min q∈Q C ( p, q)
n p∈P
(5)
on the histogram, now we can compute the matching
where Dbe ( P, Q ) is the effort of transformation done
costs using Chi Squared Test χ2:
to adjust the shapes(see [9]).
1 n [hi (k ) − h j (k )]
2
Cij = ∑ (4)
2 k =1 hi (k ) + h j (k ) For finding the similarity between two shapes, we
modify the equation (6) by subtract 1 with the context
distance D (P, Q) such that the result will reflect the
similarity, as follows:
Sm i ( P, Q ) = 1 − D ( P, Q ) (6)
6. RESULTS
Count = 3
Seminar Nasional “Soft Computing, Intelligent Systems and Information Technology” (SIIT 2005)
IMAGE, SPEECH AND LANGUAGE PROCESSING 5-15
Using shape contexts, the Table 1 and Table 2 show Table 4. Result of weighted-tree similarity algorithm
the similarity between the front of the cloth and the computation on each arc-labeled arc-
back of the cloth respectively. The computation of weighted tree for each item in figure 8
similarity between two node shapes is based on the A B C D E F G h
equation 3, 4, and 5. A 1.000 0.967 0.986 0.986 0.987 0.968 0.971 0.964
major polyester polyester polyester polyester polyester polyester polyester polyester REFERENCES
minor cotton cotton cotton cotton cotton cotton cotton cotton
gender F F F F M F F F [1] Belongie, S., Malik, J., and Puzicha, J., Matching
occasion Formal Formal Formal Formal Formal Formal Formal Formal Shape, Eight IEEE International conference on
price Normal Normal Normal Normal Normal Normal Normal Normal Computer Vision, July 2001.
type Coat Coat Coat Coat Coat Coat Coat Coat [2] Belongie, S., Malik, J., and Puzicha, J., Shape
button StyCircle Strap None Circle Circle Circle None None Context: A New Descriptor for Shape Matching
Back Shp Fig(a) Fig(b) Fig(c) Fig(d) Fig(e) Fig(f) Fig(g) Fig(h) and Object Recognition, In NIPS, November
Collar V-Style V-Style V-Style V-Style V-Style V-Style V-Style V-Style 2000.
Front Shp Fig(a) Fig(b) Fig(c) Fig(d) Fig(e) Fig(f) Fig(g) Fig(h)
[3] Belongie, S., Malik, J., and Puzicha, J., Shape
Sleeve Long Long Long Long Short Long Long Long
Matching and Object Recognition using Shape
In our experiment, we use build the arc-labeled arc- Context, Technical Report UCB//CSD-00-1128,
weighted tree for garment and include shape matching UC Berkeley, January 2001.
to unable weighted-tree similarity algorithm to match [4] Bhavsar, V.C., Boley, H., and Yang, L., A
the shape of a cloth or dress in the trees. The arc weighted-tree similarity Algorithm for Multi-
weighted in the tree is used to represent level of the Agent System in E-Business Environment, 2003.
preferences of the owner as shown in figure 4. The [5] Boley, H., The Rule Markup Language: RDF-
value of attribute in the arc-labeled arc-weighted tree XML Data Model, XML Schema Hierarchy, and
for each item in figure 2 is summarized in table 3. XSL Transformations, Invited Talk, INAP 2001,
Tokyo, October 2001. LNAI 2543, Springer-
The result of similarity on each item can be seen in Verlag, 2003.
table 4. The value in the table represents the degree of [6] Budianto, An Overview and Survey on Multi
similarity between two trees. Agent System, Soft Computing, Intelligent
Systems and Information Technology National
Seminar, July 2005.
[7] Green S. Hurst, L., Nangle, B. Cunningham, P.,
Somers, F., and Evans, R., Software Agents: A
Review, 1997.
Seminar Nasional “Soft Computing, Intelligent Systems and Information Technology” (SIIT 2005)
5-16 IMAGE, SPEECH AND LANGUAGE PROCESSING
Seminar Nasional “Soft Computing, Intelligent Systems and Information Technology” (SIIT 2005)