SlideShare une entreprise Scribd logo
1  sur  19
Community detection in Social
Networks
(for Recommendation System)
Why community detection?
• People who have similar interests tend to
buy similar products.
• Using community detection techniques,
collective behavior of users is predictable.
• Clustering Web clients who have similar
interests may improve the performance of
services.
• Helpful to mitigate cold start problem.
What is a community?
• A community is a collection of users that are
more closely related to each other than the
rest of the network.
• The relation between users can be amount of
interaction, similar interest,geographical
factors etc.
• Here we find communities of the users having
similar interests.
Cold start problem
• When a user is new to a system,not enough
data is available about the user’s preferences,
he/she has not yet rated enough number of
items.
As a result, the recommendation system
cannot recommend any items to such a user.
Solution
• If a user is new in one system, but has a history in
another system, we can use his/her external
profile to recommend relevant items, in the new
system, to this user.
• As an example, consider a new user in youtube,
of whom we are aware of his/her profile in Face-
book. A comprehensive profile of the user can be
produced by the movies he/she posted, liked or
commented on in Face- book and this profile can
be used to recommend relevant movies in
youtube to the same user.
Modeling of the social network
• This particular type of social network is a two
mode affiliation network.
• Affiliation networks are two mode,but have
only one set of actors.The second mode in an
affiliation network is a set of events.
• Such networks cannot be efficiently
represented as simple graphs.
• So we use hypergraphs.
Hypergraphs
• They are like simple graphs, except that instead of
having edges that only connect 2 vertices, their
edges are sets of any number of vertices. This
happens to mean that all graphs are just a subset of
hypergraphs.
• Here hyperedge e1 has 3 vertices v1, v2, and v3, E2
has v2 and v3, E3 has v3, v5 and v6, E4 has v4
Why not ordinary graphs?
• Hypergraphs facilitate proper representation
of all kinds of objects involved in a social
network and high order relationships between
these objects.
• The users of the social networks are modeled
as vertices and edges represent the
relationship between them.
• With hypergraphs more information can be
incurred from the network.
Implentation
• Data Extraction from facebook.
• Forming hypergraph.
• Local community detection algorithm.
• Making recommendations
Data Extraction
Forming hyperedges.
• Sociomatrix Notation
Algorithm
Finding local maximal degree nodes
Community expansion
• Modularity:- Modularity is defined as the actual edge weights in the cluster minus
the expected edge weights in the cluster as if the edges are randomly placed
between vertices with an expected probability.
Merge communities
• Algorithm1
• Input: A social network G = (V, E)
• Output: A communities set C
• Step 1. Find the local maximal degree nodes in G, put the local maximal degree nodes in set H.
• Step 2. For each node hi in H, using Algorithm 2 to discover a local community Ci. put all the
identified local communities into the set C.
• Step 3. If the identified local communities do not cover the whole network, remove C from G. Let H
be empty set and go back to Step 1.
• Step 4. If the identified local communities cover the whole network, merge the communities with
high similarity in C.
• Step 5. Return C as the communities set of network.
• Algorithm2
• Input: A social network G and a local maximal degree node hi.
• Output: A local community Ci for hi
• Step 1. Put hi in Ci,
• Step 2. Add to Ci the neighbor node vi of hi that results in the largest increase in modularity and has
the greatest common neighbors with hi,
• Step 3. Add to Ci the neighbor node vi of Ci that results in the largest increase in modularity,
• Step 4. Repeat Step 3 until there are no nodes left that increase modularity when the node was
added to the communities.
Making recommendations
• Once the communities are available next step
is to make recommendations of the items that
the may like .
Ways to recommend
Types of recommendation systems-
• Content based filtering- based on a description of the
item and a profile of the user’s preference.Eg bayesian
classification.Uses Direct feedback from a user, usually
in the form of a like or dislike button.
• Collaborative filtering-collecting and analyzing a large
amount of information on users’ behaviors, activities
or preferences and predicting what users will like based
on their similarity to other users.
• Hybrid recommendation systems
Collaborative filtering
• Collaborative filtering-They are based on
usage or preference patterns of other users.
• - People who agreed in the past will probably
agree again.
Here we have used community detection as a
collaborative filtering technique.
Item similarity
• Cosine similarity
• Predicted vote for “active user” a is
To give best recommendtion-Content
based filtering
• For example we want to recommend movies
for a user whose profile is ready with us.He
has like 3 movies wolverine,serendipity and
hangover.
• Now we need to find which movie out of the
three (xmen,hulk or avengers) will the user
like the most.
• This is done using naive bayes classifier.
Naive bayes Classifier
• Naive Bayes classification is a machine-
learning technique that can be used to predict
to which category a particular data case
belongs.
• Bayes theorem:
P(C|X) = P(X|C)·P(C) / P(X)
X is the tuple to be tested.
C is the class.

Contenu connexe

Tendances

Social network analysis basics
Social network analysis basicsSocial network analysis basics
Social network analysis basics
Pradeep Kumar
 
Community Detection
Community DetectionCommunity Detection
Community Detection
Ilio Catallo
 

Tendances (20)

Community detection in social networks[1]
Community detection in social networks[1]Community detection in social networks[1]
Community detection in social networks[1]
 
Scalable community detection with the louvain algorithm
Scalable community detection with the louvain algorithmScalable community detection with the louvain algorithm
Scalable community detection with the louvain algorithm
 
Network sampling, community detection
Network sampling, community detectionNetwork sampling, community detection
Network sampling, community detection
 
Action and content based Community Detection in Social Networks
Action and content based Community Detection in Social NetworksAction and content based Community Detection in Social Networks
Action and content based Community Detection in Social Networks
 
06 Community Detection
06 Community Detection06 Community Detection
06 Community Detection
 
Overlapping community detection survey
Overlapping community detection surveyOverlapping community detection survey
Overlapping community detection survey
 
Social network analysis basics
Social network analysis basicsSocial network analysis basics
Social network analysis basics
 
Exploratory social network analysis with pajek
Exploratory social network analysis with pajekExploratory social network analysis with pajek
Exploratory social network analysis with pajek
 
17 Statistical Models for Networks
17 Statistical Models for Networks17 Statistical Models for Networks
17 Statistical Models for Networks
 
11 Keynote (2017)
11 Keynote (2017)11 Keynote (2017)
11 Keynote (2017)
 
Social Network Analysis
Social Network AnalysisSocial Network Analysis
Social Network Analysis
 
Taxonomy and survey of community
Taxonomy and survey of communityTaxonomy and survey of community
Taxonomy and survey of community
 
Network Visualization guest lecture at #DataVizQMSS at @Columbia / #SNA at PU...
Network Visualization guest lecture at #DataVizQMSS at @Columbia / #SNA at PU...Network Visualization guest lecture at #DataVizQMSS at @Columbia / #SNA at PU...
Network Visualization guest lecture at #DataVizQMSS at @Columbia / #SNA at PU...
 
Node XL - features and demo
Node XL - features and demoNode XL - features and demo
Node XL - features and demo
 
Entropy based algorithm for community detection in augmented networks
Entropy based algorithm for community detection in augmented networksEntropy based algorithm for community detection in augmented networks
Entropy based algorithm for community detection in augmented networks
 
Community Detection
Community DetectionCommunity Detection
Community Detection
 
05 Whole Network Descriptive Stats
05 Whole Network Descriptive Stats05 Whole Network Descriptive Stats
05 Whole Network Descriptive Stats
 
Basics Gephi Tutorial
Basics Gephi TutorialBasics Gephi Tutorial
Basics Gephi Tutorial
 
Community detection
Community detectionCommunity detection
Community detection
 
04 Diffusion and Peer Influence
04 Diffusion and Peer Influence04 Diffusion and Peer Influence
04 Diffusion and Peer Influence
 

En vedette

Citation Graph Analysis to Identify Memes in Scientific Literature
Citation Graph Analysis to Identify Memes in Scientific LiteratureCitation Graph Analysis to Identify Memes in Scientific Literature
Citation Graph Analysis to Identify Memes in Scientific Literature
Tobias Kuhn
 
Citation Graph Analysis to Identify Memes in Scientific Literature
Citation Graph Analysis to Identify Memes in Scientific LiteratureCitation Graph Analysis to Identify Memes in Scientific Literature
Citation Graph Analysis to Identify Memes in Scientific Literature
Tobias Kuhn
 
Graph Sample and Hold: A Framework for Big Graph Analytics
Graph Sample and Hold: A Framework for Big Graph AnalyticsGraph Sample and Hold: A Framework for Big Graph Analytics
Graph Sample and Hold: A Framework for Big Graph Analytics
Nesreen K. Ahmed
 
Improving personalized recommendations through temporal overlapping community...
Improving personalized recommendations through temporal overlapping community...Improving personalized recommendations through temporal overlapping community...
Improving personalized recommendations through temporal overlapping community...
Mani kandan
 
Dynamic Draph / Iterative Computation on Apache Giraph
Dynamic Draph / Iterative Computation on Apache GiraphDynamic Draph / Iterative Computation on Apache Giraph
Dynamic Draph / Iterative Computation on Apache Giraph
DataWorks Summit
 

En vedette (20)

A Random Walk Through Search Research
A Random Walk Through Search ResearchA Random Walk Through Search Research
A Random Walk Through Search Research
 
Experience economy
Experience economyExperience economy
Experience economy
 
Citation Graph Analysis to Identify Memes in Scientific Literature
Citation Graph Analysis to Identify Memes in Scientific LiteratureCitation Graph Analysis to Identify Memes in Scientific Literature
Citation Graph Analysis to Identify Memes in Scientific Literature
 
Citation Graph Analysis to Identify Memes in Scientific Literature
Citation Graph Analysis to Identify Memes in Scientific LiteratureCitation Graph Analysis to Identify Memes in Scientific Literature
Citation Graph Analysis to Identify Memes in Scientific Literature
 
Using the search engine as recommendation engine
Using the search engine as recommendation engineUsing the search engine as recommendation engine
Using the search engine as recommendation engine
 
Graph Sample and Hold: A Framework for Big Graph Analytics
Graph Sample and Hold: A Framework for Big Graph AnalyticsGraph Sample and Hold: A Framework for Big Graph Analytics
Graph Sample and Hold: A Framework for Big Graph Analytics
 
Improving personalized recommendations through temporal overlapping community...
Improving personalized recommendations through temporal overlapping community...Improving personalized recommendations through temporal overlapping community...
Improving personalized recommendations through temporal overlapping community...
 
Apache giraph
Apache giraphApache giraph
Apache giraph
 
Fast, Scalable Graph Processing: Apache Giraph on YARN
Fast, Scalable Graph Processing: Apache Giraph on YARNFast, Scalable Graph Processing: Apache Giraph on YARN
Fast, Scalable Graph Processing: Apache Giraph on YARN
 
Apache Giraph: start analyzing graph relationships in your bigdata in 45 minu...
Apache Giraph: start analyzing graph relationships in your bigdata in 45 minu...Apache Giraph: start analyzing graph relationships in your bigdata in 45 minu...
Apache Giraph: start analyzing graph relationships in your bigdata in 45 minu...
 
Hadoop Graph Processing with Apache Giraph
Hadoop Graph Processing with Apache GiraphHadoop Graph Processing with Apache Giraph
Hadoop Graph Processing with Apache Giraph
 
Giraph at Hadoop Summit 2014
Giraph at Hadoop Summit 2014Giraph at Hadoop Summit 2014
Giraph at Hadoop Summit 2014
 
Graph Analytics for big data
Graph Analytics for big dataGraph Analytics for big data
Graph Analytics for big data
 
2011.10.14 Apache Giraph - Hortonworks
2011.10.14 Apache Giraph - Hortonworks2011.10.14 Apache Giraph - Hortonworks
2011.10.14 Apache Giraph - Hortonworks
 
Dynamic Draph / Iterative Computation on Apache Giraph
Dynamic Draph / Iterative Computation on Apache GiraphDynamic Draph / Iterative Computation on Apache Giraph
Dynamic Draph / Iterative Computation on Apache Giraph
 
Graphs are everywhere! Distributed graph computing with Spark GraphX
Graphs are everywhere! Distributed graph computing with Spark GraphXGraphs are everywhere! Distributed graph computing with Spark GraphX
Graphs are everywhere! Distributed graph computing with Spark GraphX
 
Spark Concepts - Spark SQL, Graphx, Streaming
Spark Concepts - Spark SQL, Graphx, StreamingSpark Concepts - Spark SQL, Graphx, Streaming
Spark Concepts - Spark SQL, Graphx, Streaming
 
Samza: Real-time Stream Processing at LinkedIn
Samza: Real-time Stream Processing at LinkedInSamza: Real-time Stream Processing at LinkedIn
Samza: Real-time Stream Processing at LinkedIn
 
Graph Analytics
Graph AnalyticsGraph Analytics
Graph Analytics
 
An excursion into Graph Analytics with Apache Spark GraphX
An excursion into Graph Analytics with Apache Spark GraphXAn excursion into Graph Analytics with Apache Spark GraphX
An excursion into Graph Analytics with Apache Spark GraphX
 

Similaire à Recomendation system: Community Detection Based Recomendation System using Hypergraphs

Sylva workshop.gt that camp.2012
Sylva workshop.gt that camp.2012Sylva workshop.gt that camp.2012
Sylva workshop.gt that camp.2012
CameliaN
 
Recommender System _Module 1_Introduction to Recommender System.pptx
Recommender System _Module 1_Introduction to Recommender System.pptxRecommender System _Module 1_Introduction to Recommender System.pptx
Recommender System _Module 1_Introduction to Recommender System.pptx
Satyam Sharma
 

Similaire à Recomendation system: Community Detection Based Recomendation System using Hypergraphs (20)

Social Network Analysis Using Gephi
Social Network Analysis Using Gephi Social Network Analysis Using Gephi
Social Network Analysis Using Gephi
 
Data Mining In Social Networks Using K-Means Clustering Algorithm
Data Mining In Social Networks Using K-Means Clustering AlgorithmData Mining In Social Networks Using K-Means Clustering Algorithm
Data Mining In Social Networks Using K-Means Clustering Algorithm
 
Networks community detection using artificial bee colony swarm optimization
Networks community detection using artificial bee colony swarm optimizationNetworks community detection using artificial bee colony swarm optimization
Networks community detection using artificial bee colony swarm optimization
 
SM&WA_S1-2.pptx
SM&WA_S1-2.pptxSM&WA_S1-2.pptx
SM&WA_S1-2.pptx
 
Recommended System.pptx
 Recommended System.pptx Recommended System.pptx
Recommended System.pptx
 
Social Media Mining - Chapter 10 (Behavior Analytics)
Social Media Mining - Chapter 10 (Behavior Analytics)Social Media Mining - Chapter 10 (Behavior Analytics)
Social Media Mining - Chapter 10 (Behavior Analytics)
 
Collaborative Filtering
Collaborative FilteringCollaborative Filtering
Collaborative Filtering
 
Sylva workshop.gt that camp.2012
Sylva workshop.gt that camp.2012Sylva workshop.gt that camp.2012
Sylva workshop.gt that camp.2012
 
Trust_Recommendation_System
Trust_Recommendation_SystemTrust_Recommendation_System
Trust_Recommendation_System
 
Social Media Analytics with a pinch of semantics
Social Media Analytics with a pinch of semanticsSocial Media Analytics with a pinch of semantics
Social Media Analytics with a pinch of semantics
 
Asymmetric Social Proximity Based Private Matching Protocols for Online Socia...
Asymmetric Social Proximity Based Private Matching Protocols for Online Socia...Asymmetric Social Proximity Based Private Matching Protocols for Online Socia...
Asymmetric Social Proximity Based Private Matching Protocols for Online Socia...
 
Recommender System _Module 1_Introduction to Recommender System.pptx
Recommender System _Module 1_Introduction to Recommender System.pptxRecommender System _Module 1_Introduction to Recommender System.pptx
Recommender System _Module 1_Introduction to Recommender System.pptx
 
Agents that reduce work and information overload
Agents that reduce work and information overloadAgents that reduce work and information overload
Agents that reduce work and information overload
 
Social network analysis course 2010 - 2011
Social network analysis course 2010 - 2011Social network analysis course 2010 - 2011
Social network analysis course 2010 - 2011
 
Chapter 3.pdf
Chapter 3.pdfChapter 3.pdf
Chapter 3.pdf
 
Recommender Systems
Recommender SystemsRecommender Systems
Recommender Systems
 
Overview of recommender system
Overview of recommender systemOverview of recommender system
Overview of recommender system
 
Mingle spot project
Mingle spot projectMingle spot project
Mingle spot project
 
Mingle spot project
Mingle spot  project Mingle spot  project
Mingle spot project
 
Social Media Mining - Chapter 4 (Network Models)
Social Media Mining - Chapter 4 (Network Models)Social Media Mining - Chapter 4 (Network Models)
Social Media Mining - Chapter 4 (Network Models)
 

Dernier

%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
masabamasaba
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
masabamasaba
 

Dernier (20)

%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - Keynote
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 

Recomendation system: Community Detection Based Recomendation System using Hypergraphs

  • 1. Community detection in Social Networks (for Recommendation System)
  • 2. Why community detection? • People who have similar interests tend to buy similar products. • Using community detection techniques, collective behavior of users is predictable. • Clustering Web clients who have similar interests may improve the performance of services. • Helpful to mitigate cold start problem.
  • 3. What is a community? • A community is a collection of users that are more closely related to each other than the rest of the network. • The relation between users can be amount of interaction, similar interest,geographical factors etc. • Here we find communities of the users having similar interests.
  • 4. Cold start problem • When a user is new to a system,not enough data is available about the user’s preferences, he/she has not yet rated enough number of items. As a result, the recommendation system cannot recommend any items to such a user.
  • 5. Solution • If a user is new in one system, but has a history in another system, we can use his/her external profile to recommend relevant items, in the new system, to this user. • As an example, consider a new user in youtube, of whom we are aware of his/her profile in Face- book. A comprehensive profile of the user can be produced by the movies he/she posted, liked or commented on in Face- book and this profile can be used to recommend relevant movies in youtube to the same user.
  • 6. Modeling of the social network • This particular type of social network is a two mode affiliation network. • Affiliation networks are two mode,but have only one set of actors.The second mode in an affiliation network is a set of events. • Such networks cannot be efficiently represented as simple graphs. • So we use hypergraphs.
  • 7. Hypergraphs • They are like simple graphs, except that instead of having edges that only connect 2 vertices, their edges are sets of any number of vertices. This happens to mean that all graphs are just a subset of hypergraphs. • Here hyperedge e1 has 3 vertices v1, v2, and v3, E2 has v2 and v3, E3 has v3, v5 and v6, E4 has v4
  • 8. Why not ordinary graphs? • Hypergraphs facilitate proper representation of all kinds of objects involved in a social network and high order relationships between these objects. • The users of the social networks are modeled as vertices and edges represent the relationship between them. • With hypergraphs more information can be incurred from the network.
  • 9. Implentation • Data Extraction from facebook. • Forming hypergraph. • Local community detection algorithm. • Making recommendations
  • 12. Algorithm Finding local maximal degree nodes Community expansion • Modularity:- Modularity is defined as the actual edge weights in the cluster minus the expected edge weights in the cluster as if the edges are randomly placed between vertices with an expected probability. Merge communities
  • 13. • Algorithm1 • Input: A social network G = (V, E) • Output: A communities set C • Step 1. Find the local maximal degree nodes in G, put the local maximal degree nodes in set H. • Step 2. For each node hi in H, using Algorithm 2 to discover a local community Ci. put all the identified local communities into the set C. • Step 3. If the identified local communities do not cover the whole network, remove C from G. Let H be empty set and go back to Step 1. • Step 4. If the identified local communities cover the whole network, merge the communities with high similarity in C. • Step 5. Return C as the communities set of network. • Algorithm2 • Input: A social network G and a local maximal degree node hi. • Output: A local community Ci for hi • Step 1. Put hi in Ci, • Step 2. Add to Ci the neighbor node vi of hi that results in the largest increase in modularity and has the greatest common neighbors with hi, • Step 3. Add to Ci the neighbor node vi of Ci that results in the largest increase in modularity, • Step 4. Repeat Step 3 until there are no nodes left that increase modularity when the node was added to the communities.
  • 14. Making recommendations • Once the communities are available next step is to make recommendations of the items that the may like .
  • 15. Ways to recommend Types of recommendation systems- • Content based filtering- based on a description of the item and a profile of the user’s preference.Eg bayesian classification.Uses Direct feedback from a user, usually in the form of a like or dislike button. • Collaborative filtering-collecting and analyzing a large amount of information on users’ behaviors, activities or preferences and predicting what users will like based on their similarity to other users. • Hybrid recommendation systems
  • 16. Collaborative filtering • Collaborative filtering-They are based on usage or preference patterns of other users. • - People who agreed in the past will probably agree again. Here we have used community detection as a collaborative filtering technique.
  • 17. Item similarity • Cosine similarity • Predicted vote for “active user” a is
  • 18. To give best recommendtion-Content based filtering • For example we want to recommend movies for a user whose profile is ready with us.He has like 3 movies wolverine,serendipity and hangover. • Now we need to find which movie out of the three (xmen,hulk or avengers) will the user like the most. • This is done using naive bayes classifier.
  • 19. Naive bayes Classifier • Naive Bayes classification is a machine- learning technique that can be used to predict to which category a particular data case belongs. • Bayes theorem: P(C|X) = P(X|C)·P(C) / P(X) X is the tuple to be tested. C is the class.