27.03.2014 Views

SEKE 2012 Proceedings - Knowledge Systems Institute

SEKE 2012 Proceedings - Knowledge Systems Institute

SEKE 2012 Proceedings - Knowledge Systems Institute

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Users can al so publish adv ertisements from the<br />

devices directly. The vendor’s name will be connected<br />

to its phone number, and the user can change it before<br />

submission. Users have the option to choose<br />

publishing free advertisements or paid advertisements.<br />

d) Mad<br />

It displays retrieved mobile advertisements and<br />

incoming SMS. User s can switch between SMS and<br />

advertisements. MAD will be triggered while<br />

- Users are clicking the advertisement in Top list or<br />

My list<br />

- SMS messages are arrived<br />

- Advertisements are retrieved<br />

Besides the activ ity we demonstrated, the client<br />

also implements a service called Ads in Device. This<br />

service can be st arted manually by users or<br />

automatically when the application starts or the device<br />

reboots. After Ad received mobile advertisements<br />

from server, it w ill relay this advertisement to MAD<br />

activity. If more than 10 seconds have passed, it relays<br />

the advertisement immediately; otherwise, it w aits<br />

until the user finishes reading SMS in 15 seconds.<br />

Client uses Connector and RestAgent to communicate<br />

with server. The Restful action is perform ed by that<br />

class.<br />

B. Middle-Tier Implementation<br />

To get the hidden meaning of the context, Mid-Tier<br />

application implements POS tagger technology. It tags<br />

the context and retrieves meaning words.<br />

Based on the frequency and posi tion of the<br />

meaningful words, server start queries to Mong o<br />

database. The results might include more than one<br />

responses. In that case, the top one w ill be decide by<br />

pay per click value defined by advertisement provider.<br />

Server uses MongoMapper as Object-relational<br />

mapping to communicate with data-tier.<br />

C. Data-Tier Implementation<br />

Data-Tier is implemented by Mongo database,<br />

which is a document based, schema-free, scalable and<br />

high performance database.<br />

A document-based data model can hold rich dat a<br />

structure from simple JSON to complex array, so the<br />

administrator does not need to hold the complex<br />

content within multiple relation tables.<br />

The advantage of this schema makes it easy for the<br />

administrator to dum p multiple formats of the<br />

advertisements into the sy stem. Also it can keep the<br />

data backward compatible.<br />

As the database will be expanded when the system<br />

gains more and m ore users and adv ertisements,<br />

predictable scalability is important to the system.<br />

Performance is al so a concern w hen choosing the<br />

database. The high performance brought by Mongo<br />

DB meets the performance requirements of the system.<br />

V. EXPERIMENTAL RESULTS<br />

A. Experimental Setup<br />

To measure the perform ance of the system, we<br />

designed a test to check system capability of handling<br />

different contents. The test setup includes a computer<br />

running MAD server and Mongo DB and an Android<br />

device running MAD client. The computer is a 2.53<br />

GHz dual core m achine with 3GB memory. The<br />

Android device is equipped with a 1GHz CPU and 512<br />

MB memory.<br />

B. Performance Results<br />

In the experiments, we compared the elapsed tim es<br />

while MAD system handles different sizes of SMS. A<br />

SMS will be sent to the device, which has installed the<br />

MAD client. The client will send request to the server.<br />

On server side, it analy zes the incoming request and<br />

responds with the correct adv ertisement based on the<br />

contents. The elapsed times are monitored and<br />

captured to measure the efficiency of the sy stem. DB<br />

elapsed time presents the duration that it tak es for<br />

server to render the adv ertisement after querying<br />

database. E2E tim e represents the durat ion between<br />

device sending request and recei ving response. Also<br />

we record the returned vendor for such SMS test<br />

campaign to v erify the quality of returned<br />

advertisement<br />

TABLE I.<br />

TEST MATRIX<br />

Content Words Vendor E2E Time<br />

(ms)<br />

Lunch 5 One local 1273<br />

restaurant<br />

Let us watch movie 25 AMC 1570<br />

tonight<br />

Would you please 53 Amazon 1794<br />

bring the book to<br />

me? I am in library.<br />

The recipe of 104 Safeway 1912<br />

pumpkin pie: 2<br />

spoon of salt, 3<br />

pound of pumpkin,<br />

1 pint of sugar.<br />

blend them and<br />

772

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!