SlideShare a Scribd company logo
1 of 53
Download to read offline
SISTEMA DE RECOMANACIÓ DE CONTINGUTS BIG DATA AL
CLOUD (LUPA)
JAUME JANÉ BESORA
ÍNDEX
Context i motivació del projecte
Introducció
Sistema de recomanació
Clustering jerarquic
BigData (Storm)
Cloud compute (Amazon EC2)
Redis
Freeling
Experimentació temps d'execució
Experimentació recomanació
Planificació
Anàlisis econòmic
Conclusions
CONTEXT I MOTIVACIÓ DEL PROJECTE
SISTEMA DE RECOMANACIÓ DE CONTINGUTS
+ BIG DATA + CLOUD COMPUTING
Partim amb 20786 Notícies any 2013, incrementant dia a dia
Es volen els resultats en temps real < 1min
Es vol que el temps no augmenti exponencialment en relació
amb l'increment de les dades
Possibles extensions futures
SISTEMA DE RECOMANACIÓ
SELECCIÓ SOFTWARE DE GUIA (LENSKIT)
CONTEXT LUPA
ALGORITME DE SIMILITUD (KLD)
INTEGRACIÓ EN NODE DE BIGDATA
La taula on es guarden els resultats i l'algorimte de recomanació
són utilitzats en els nodes de Storm com veurem més endavant
CLUSTERING JERÀRQUIC
CLUSTERING JERÀRQUIC
Consisteix en estructurar les notícies en un arbre binari de
clústers. Cada clúster representa un conjunt de notícies.
COMPARACIÓ
#Notícies SenseClustering ClusteringJeràrquic
1M 1M 20+TAM_CLUSTER
2M 2M 21+TAM_CLUSTER
BIG DATA
QUE ÉS BIG DATA?
Grans Volums de dades que no poden ser tractats en temps real
per una computadora
STORM
és una eina per al processat en temps real de fluxos de dades.
TOPOLOGIES
Sense Clustering
TOPOLOGIES
Amb Clustering
STORM EN UN CLUSTER DE MÀQUINES
CLOUD COMPUTING
QUE ÉS CLOUD COMPUTING?
Capacitat de càlcul al núvol
AMAZON ELASTIC CLOUD COMPUTE (EC2)
Servei d'amazon que proporciona capacitat de càlcul al núvol
CAS LUPA
Node #Màquines
Master Node 1
Zookeepr 1
Slave Node 2
REDIS
NOSQL DB, eficiència en multiples accesos
FREELING
FREELING
És un software creat pel grup de recerca de llenguatge natural de
l’UPC, el qual s’ha utilitzat per millorar la qualitat de la
recomanació de les notícies, ja que permet reduir cada paraula a
la seva base comuna.
EXEMPLE SENSE FREELING
Són totalment diferents si analitzem la distribució de les paraules
1. El cotxe verd
2. Els cotxes verds
EXEMPLE AMB FREELING
Són idèntiques si analitzem la distribució de les paraules
1. El cotxe verd
2. Els cotxes verds -> (freeling) -> El cotxe verd
ARQUITECTURA DE LUPA
EXPERIMENTACIÓ TEMPS D'EXECUCIÓ
TEMPS D'EXECUCIÓ TOTAL
Temps en generar les recomanacions de les 20.786 notícies.
Sense Clustering
en Local
Amb Clustering
en Local
Amb Clustering a
Amazon EC2
Temps 2 dies 22 hores i
30 minuts
1 hora 30 min
Sense Clustering es realitzen 20786 * 20786 / 2 =
216.028.898 Comparacions
Amb Clustering log(base 2) 20786 = 14. Es realitzen 14
comparacions per recorre l'arbre binari (Les primeres notícies
l'arbre es menor!)
Llavors a les 14 comparacions li sumen el tamany màxim del
clúster (30) i tenim un total de 44 comparacions * les 20786
notícies = 914.584
TEMPS D'EXECUCIÓ AL INSERIR
Temps en generar la recomanació d'una notíca nova amb les
20.786 ja generades.
Sense Clustering
en Local
Amb Clustering
en Local
Amb Clustering a
Amazon EC2
Temps 2 minuts 9 segons 2 segons
EXPERIMENTACIÓ RECOMANACIÓ
PROJECTE GUTENBERG I
Adventures of Huckleberry Finn by Mark Twain
The Major Operations of the Navies in the War of American
Independence by Mahan
The Adventures of Tom Sawyer by Mark Twain
3 capítols per llibre
PROJECTE GUTENBERG II
Adventures of Huckleberry Finn by Mark Twain
The Major Operations of the Navies in the War of American
Independence by Mahan
The Adventures of Tom Sawyer by Mark Twain
56 capítols, 49 capítols i 33 capítols respectivament
NOTÍCIES TVC
Un total de 20.786 notícies
NOTÍCIES TVC
Mostra aleatòria i avaluada manualment
Marcatges, consisteix a analitzar la interacció de l'usuari amb
les recomanacions
NOTÍCIES TVC MOSTRA ALEATÒRIA
80% mostres valorades positivament
Notícies TVC mostra aleatòria correcta
Notícies TVC mostra aleatòria incorrecta
PLANIFICACIÓ
PLANIFICACIÓ FINAL
ANÀLISIS ECONÒMIC
COSTOS DE HARDWARE
Producte Preu
1 PC Intel QuadCore2 600€
Recursos Amazon Ec2 20€
Total 620€
COSTOS DE SOFTWARE
Producte Preu
Microsoft Office 2010 119€
Windows 7 119,99€
AgroUML/Eclipse/VMWare/CentOS 0€
Total 238,99€
COSTOS DE PERSONAL
Total d'hores treballades Preu/hora Preu
660 hores 30€/h 19.800€
Total 19.800€
COSTOS FIXES
Producte Període Preu/mes Preu
Internet 5 mesos 35€/mes 175€
Total 175€
COSTOS D'EXPLOTACIÓ I
La millor opció és realitzar un pagamanet intens ja que estarà 24h
en funcionament
Instància Pagament Preu/hora
COSTOS D'EXPLOTACIÓ II
Instància Màquines Preu/hora Hores al dia
Small 2 0,014$ 24
Large 2 0,056$ 24
Total 2916,4$
COSTOS TOTAL DEL PROJECTE
Concepte Preu
Costos de hardware 600€
Costos de software 238,99€
Costos de personal 19,800€
Costos fixes 175€
Total 20.813,99€
CONCLUSIONS
OBJECTIUS ACONSEGUITS
S'ha disminuit el cost temporal en funció de l'escalabilitat de
les dades gràcies al clustering jerarquic i la computació al
cloud.
L'espai ocupat per les esctructres de Lupa es molt menor que
les propies notícies.
Obtenir les recomanacions en menys d'un minut.
A nivell de recomanació s'han obtingut bones sensacions, pero
cal esperar als marcartges per tenir un resultat final.
S'ha implementat les funcionalitats de forma independent
(objectiu d'extensibilitat).
Tolerància a errors i capacitat de recuperació s'han tingut en
compte durant tota la implementació.
CODI OBERT
Lupa està publicat en un repositori d'open source
MOLTES GRÀCIES!

More Related Content

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

Slideshare presentation of Lupa