SMA Module 1
SMA Module 1
Table of contents:
Why SMA
Opportunities in SMA
Understanding API
Challenges in SMA
3. SMA techniques
Sentiment analysis
Machine learning
INTRODUCTION TO SOCIAL MEDIA
Being connected is the central concept for most social media platform, and
the content you consume via your news feed or timeline is driven by your
connections.
Social media breaks this model, allowing every user to be a consumer and
publisher at the same time.
Social media are internet-based applications.
Any user can interact with every other user by sharing content,
commenting or expressing positive appraisal via like button.
Social media is about the networking.
• Some businesses use social media for increasing their brand awareness
A strategy where you leverage data and data analysis to deliver personalized
and individualized content and marketing experiences to your target
audience, prospects, and customers.
6. Share interesting info that will Enlighten/engage your
audience:
• Also share content that others are putting together that you find interesting
and know your audience will find interesting as well.
• This helps mix up your feed while keeping the quality of the content you’re
sharing high.
7. Promote others to build connections:
• To have the opportunity for real authority on the web and vast reach, you
need a certain type of content that has depth and breadth.
• Every organization active on the social web needs at least one source of
“rich content:”
• A blog.
• A podcast.
• A video series.
• A quick look at your follower’s reactions and interactions will give you a
deeper understanding of how well your content performed.
• Use this feedback to make calculated, data-driven improvements to your
campaigns.
INTRODCTION TO SOCIAL MEDIA ANALYTICS(SMA)
Analytics: Data analytics is the process of Analyzing raw data in order to draw out meaningful,
actionable insights, which are then used to inform and drive smart business decisions.
In the second quarter of 2015, Facebook reported nearly 1.5 billion monthly active
users.
In 2013, Twitter had reported a volume of 500+ million tweets per day.
Social Media Analytics aims to answer the question: How to extract useful
knowledge from the data coming from social media?
Let’s take a scenario in which I want to analyze the comments in the Person-
A account.
The comments are nothing but the views of the people given on the posts
done by Person A.
Here we will extract the data from Instagram account of Person A.
Clean the data by applying different python tools and functions.
Understand the data by applying the natural language processing, machine
learning, deep learning etc.,
Then based on the insights we get from the analyzed data we can be able to
infer the sentiments of the people.
Example 2: Facebook
1. Facebook revenue
Facebook’s annual revenue increased by 15.6% in 2023 to $134.9 billion.
About 45.3% of Facebook’s revenue comes from North America. Revenue across all
regions increased in 2023.
2. Facebook Monthly Active Users
Approximately two billion people access Facebook everyday, either through the main app
or Facebook Messenger, or website.
Example 3: LinkedIn
LinkedIn is the world’s preeminent social network for professionals. Members create CVs,
list their current and previous job roles, skills and education. The business network is also
a recruiting website, with businesses able to create profiles and list current vacancies.
1. LinkedIn revenue
LinkedIn revenue increased by 26.2% in 2022 to $14.5 billion, its highest percentage growth
in three years.
2. LinkedIn users
LinkedIn reached 930 million registered users in 2023, however, it has not reported how many
of those users are active daily or monthly.
3. LinkedIn users by country
The United States is home to about 30% of all LinkedIn users, the next largest market is
India. LinkedIn recently announced it would close operations in China, where it had 50
million users.
LinkedIn users by country 2022 (mm)
1. Descriptive analytics
2. Diagnostic analytics
3. Predictive analytics
4. Prescriptive analytics
Let’s try to understand 4 types analytics with respect to social media data.
1. Descriptive analytics:
Summarizing the data
Understanding data patterns
Examining and summarizing the characteristics of the data to understand
patterns, trends, and behaviors.
Using the already available data we will try to understand the data patterns.
Let’s take an example: FB page: Laptop Advertising Page
I’m collecting the from facebook page for analyzing it.
The data analysis is done on page likes, shares, comments and posts.
The page is responsible for providing the advertisements on new brands of
laptops and other devices.
So, we will collect the data from this specific page of FB.
Describing the data:
-Analyzing likes
-Analyzing comments
-Analyzing shares
2. Diagnostic analytics:
Example: Understanding the data of facebook page in order to find the problem.
After applying analytics, we find the following:
-The page is getting good amount of likes
-Getting good amount of shares
-Getting more negative comments from people.
3. Prescriptive analytics:
Opportunities:
Social media analytics presents numerous opportunities for businesses, marketers, researchers,
and individuals looking to leverage data-driven insights for various purposes. Here are some
key opportunities in social media analytics:
1.Audience Understanding: Social media analytics offers the opportunity to gain deep
insights into audience demographics, behaviors, preferences, and interests. Understanding your
audience better enables you to create more targeted and personalized content, products, and
services.
3.Brand Monitoring and Reputation Management: Social media analytics tools allow
businesses to monitor conversations about their brand, products, and competitors in real-time.
This enables proactive reputation management by identifying and addressing potential issues,
responding to customer feedback, and capitalizing on positive sentiment.
4.Campaign Performance Tracking: Social media analytics enables businesses to track the
performance of their social media marketing campaigns and initiatives. By monitoring key
metrics such as reach, engagement, conversions, and return on investment (ROI), businesses
can assess the effectiveness of their campaigns and make data-driven optimizations to improve
results.
5.Influencer Marketing: Social media analytics can help businesses identify and evaluate
potential influencers for collaboration. By analyzing factors such as follower count,
engagement rate, audience demographics, and content relevance, businesses can identify
influencers who align with their brand values and target audience, thereby maximizing the
impact of influencer partnerships.
6.Competitive Intelligence: Social media analytics provides opportunities to gain insights into
competitors' social media strategies, performance, and audience engagement. By monitoring
competitors' activities and benchmarking against industry standards, businesses can identify
emerging trends, capitalize on opportunities, and stay ahead of the competition.
7.Product Development and Innovation: Social media analytics can inform product
development and innovation by providing insights into consumer needs, preferences, and pain
points. By analyzing social media conversations, sentiment, and feedback, businesses can
identify emerging trends, gather user feedback, and prioritize feature enhancements or new
product ideas.
8.Customer Service and Engagement: Social media analytics enables businesses to enhance
customer service and engagement by monitoring and responding to customer inquiries,
complaints, and feedback in real-time. By providing timely and personalized responses,
businesses can build stronger relationships with customers and foster brand loyalty.
9.Market Research and Insights: Social media analytics can be used for market research and
insights generation across various industries and sectors. By analyzing social media
conversations, trends, and sentiment, businesses can uncover valuable insights into consumer
behaviour, preferences, and market dynamics, thereby informing strategic decision-making and
market positioning.
Challenges:
1.Data quality and reliability:
One of the main challenges of social media analytics is the quality and reliability of the data.
Social media data is often unstructured, noisy, incomplete, and biased. For example, some users
may post fake or misleading information, some may delete or edit their posts, and some may
use different accounts or platforms. Moreover, social media data is constantly changing and
evolving, which makes it difficult to track and compare over time. To ensure data quality and
reliability, managers and analysts need to use appropriate tools and methods to collect, clean,
filter, and validate the data.
Another challenge of social media analytics is the data privacy and ethics. Social media data
involves personal and sensitive information of users, such as their opinions, preferences,
behaviours, and identities. Therefore, managers and analysts need to respect the rights and
expectations of the users and comply with the relevant laws and regulations. They also need to
follow the ethical principles and guidelines of their profession and organization. For example,
they should obtain consent from the users, anonymize the data, protect the data from
unauthorized access or misuse, and disclose the purpose and scope of the analysis.
SMA STEPS/PROCESS:
1. Authentication
2. Data collection
5. Result presentation
1. The authentication step is typically performed using the industry standard
called Open Authorization (OAuth).
2. The process is three legged.
1. The user agrees with the consumer to grant access to the social media
platform.
2. As the user doesn’t give their social media password directly to the
consumer.
3. The consumer has initial exchange with the resource provider to
generate a token and a secret.
4. This are used to sign each request and prevent forgery.
5. The user is then redirected with the token to the resource provider, which
will ask to confirm authorizing the consumer to access the user’s data.
6. Depending on the nature of social media platform, it will also ask to
confirm whether the consumer can perform any action on the user’s
behalf, for example: Post an update, share a link so on.
7. The resource provider issues a valid token for the consumer.
8. The token can then go back to the user confirming the access.
The process involves three actors: a user, consumer (our application), and
resource provider (the social media platform).
The exchange of credentials (username/password) only happens between the
user and the resource provider through the steps 3 and 4.
A proper execution of the process, with attention to small details, is the key
to good results.
A small error in code while dealing in data science will lead to entirely wrong results,
which in turn will lead to i
Types of data:
In social media analytics, various data types are analyzed to gain insights into user
behavior, trends, sentiment, and engagement. Some of the key data types commonly
analyzed in social media analytics include:
a. Text Data: Textual data from social media posts, comments, reviews, and
messages are analyzed to understand sentiment, topics, themes, and
language patterns. Natural language processing (NLP) techniques are
often employed to extract meaning from text data.
b. Numeric Data: Numeric data such as likes, shares, comments, followers,
and engagement metrics are important indicators of user interaction and
popularity on social media platforms. Analyzing numeric data helps
assess the reach and impact of social media content.
c. Multimedia Data: Multimedia content such as images, videos, and audio
clips are analyzed using techniques like image recognition, object
detection, and audio analysis. Multimedia data analysis helps understand
visual trends, identify brand logos, and detect sentiment expressed in
images and videos.
d. User Metadata: User metadata includes demographic information,
location data, device type, and user behavior patterns. Analyzing user
metadata helps segment audiences, personalize content, and target
specific demographics with tailored messaging.
e. Network Data: Network data refers to the relationships and connections
between users and content on social media platforms. Network analysis
techniques are used to identify influencers, map social networks, and
understand information diffusion patterns.
f. Time-Series Data: Time-series data tracks changes in social media
metrics over time, such as daily or hourly fluctuations in engagement,
follower growth, and content performance. Analyzing time-series data
helps identify temporal trends, seasonality patterns, and the impact of
specific events or campaigns.
g. Geospatial Data: Geospatial data provides insights into the geographic
distribution of social media activity, including user locations, trending
topics by region, and localized engagement patterns. Geospatial analysis
helps optimize location-based marketing strategies and target users based
on their geographic location.
By analyzing these diverse types of data, social media analytics platforms can provide
valuable insights to businesses, marketers, and researchers, helping them make
informed decisions and improve their social media strategies.
Channel metrics cover activity which occurred across your entire channel
(including all existing posts) during your chosen date range. The wide range of
metrics you can choose from are designed to cover your entire channel's followers,
demographics, video views, total post insights, direct messages, and more.
6. Curalate: Curalate is a tool that provides you with a smarter way to make
social sell. It enables you to use social content, social audiences, and social
channels to sell more efficiently and effectively across your marketing and
commerce channels. Workflow that lets your day flow.
7. Keyhole: Keyhole uncovers the sentiment behind every brand mention, how
it changes over time, and why. Measure the real impact of your social media
campaigns easily, including engagement from key influencers and total
reach generated.
We have various techniques to work on social media data which will be extracted
from various platforms such as Facebook, twitter, Instagram in order to analyse it
and get meaningful insights to make better business decisions.
1. Opinion mining:
It’s natural language processing (NLP) based approach which identifies the
emotional tone behind a body of text.
his is a popular way for organizations to determine and categorize opinions
about a product, service or idea.
Sentiment analysis involves the use of data mining, machine learning (ML),
artificial intelligence and computational linguistics to mine text for sentiment
and subjective information such as whether it is expressing positive, negative
or neutral feelings.
Sentiment analysis systems help organizations gather insights into real- time
customer sentiment, customer experience and brand reputation.
Generally, these tools use text analytics to analyse online sources such as
emails, blog posts, online reviews, customer support tickets, news articles,
survey responses, case studies, web chats, tweets, forums and comments.
Algorithms are used to implement rule-based, automatic or hybrid methods
of scoring whether the customer is expressing positive words, negative
words or neutral ones.
In addition to identifying sentiment, sentiment analysis can extract the
polarity or the amount of positivity and negativity, subject and opinion
holder within the text.
This approach is used to analyse various parts of text, such as a full document
or a paragraph, sentence or subsentence.
1. Collect data: The text being analysed is identified and collected. This
involves using a web scraping bot or a scraping application programming
interface.
2. Clean the data: The data is processed and cleaned to remove noise and
parts of speech that don't have meaning relevant to the sentiment of the
text. This includes contractions, such as I'm, and words that have little
information such as is, articles such as the, punctuation, URLs, special
characters and capital letters. This is referred to as standardizing.
3. Extract features: A machine learning algorithm automatically extracts
text features to identify negative or positive sentiment. ML approaches
used include the bag-of-words technique that tracks the occurrence of
words in a text and the more nuanced word-embedding technique that
uses neural networks to analyze words with similar meanings.
4. Pick an ML model: A sentiment analysis tool scores the text using a rule-
based, automatic or hybrid ML model. Rule-based systems perform
sentiment analysis based on predefined, lexicon-based rules and are often
used in domains such as law and medicine where a high degree of precision
and human control is needed. Automatic systems use ML and deep learning
techniques to learn from data sets. A hybrid model combines both
approaches and is generally thought to be the most accurate model. These
models offer different approaches to assigning sentiment scores to pieces of
text.
5. Sentiment classification: Once a model is picked and used to analyse a
piece of text, it assigns a sentiment score to the text including positive,
negative or neutral. Organizations can also decide to view the results of their
analysis at different levels, including document level, which pertains mostly
to professional reviews and coverage; sentence level for comments and
customer reviews; and sub-sentence level, which identifies phrases or
clauses within sentences.
Types of sentiment analysis:
Organizations typically don't have the time or resources to scour the internet
and read and analyze every piece of data relating to their products, services
and brand. Instead, they use sentiment analysis algorithms to automate this
process and provide real-time feedback.
Sentiment analysis tools are used in nearly every industry for a variety of
applications:
Social media monitoring, a key strategy that tracks customer sentiments
across social media platforms, such as Facebook, Instagram and Twitter.
Monitoring brand awareness, reputation and popularity at a specific
moment or over time.
Analysing consumer reception of new products or features to identify
possible product improvements.
Evaluating the success of a marketing campaign.
Gathering data and feedback that keeps customer support staff up to date on
customer issues and improves their ability to respond.
Tracking the effectiveness of customer support through support tickets and
other online feedback.
Automating customer service by identifying customers' sentiments and
automatically sending them to relevant FAQ responses for resolution.
Identifying emerging marketing trends, and understanding and improving
what marketing strategies resonate with customers.
Gaining competitive insights by monitoring comments about competitors.
Small data sets: Sentiment analysis tools work best when analyzing large
quantities of text data. Smaller data sets often won't provide the insight
needed.
Language evolution: Language is constantly changing, especially on the
internet where users are continually creating new abbreviations, acronyms,
and using poor grammar and spelling. This level of variation and evolution
can be difficult for algorithms.
Fake reviews: Algorithms can't always tell the difference between real and
fake reviews of products, or other pieces of text created by bots.
Need for human intervention: Gartner finds that even the most advanced
AI-driven sentiment analysis and social media monitoring tools require
human intervention in order to maintain consistency and accuracy in
analysis.
Machine Learning:
In the real world, we are surrounded by humans who can learn everything
from their experiences with their learning capability, and we have computers
or machines which work on our instructions. But can a machine also learn
from experiences or past data like a human does? So here comes the role of
Machine Learning.
A subset of artificial intelligence known as machine learning focuses
primarily on the creation of algorithms that enable a computer to
independently learn from data and previous experiences.
Arthur Samuel first used the term "machine learning" in 1959. It could be
summarized as follows:
Without being explicitly programmed, machine learning enables a machine
to automatically learn from data, improve performance from experiences,
and predict things.
Machine learning algorithms create a mathematical model that, without
being explicitly programmed, aids in making predictions or decisions with
the assistance of sample historical data, or training data.
For the purpose of developing predictive models, machine learning brings
together statistics and computer science.
Algorithms that learn from historical data are either constructed or utilized
in machine learning. The performance will rise in proportion to the quantity
of information we provide.
Machine Learning Pipeline:
1. Supervised learning:
Supervised learning allows collecting data and produces data output from
previous experiences.
Helps to optimize performance criteria with the help of experience.
2. Unsupervised learning:
5. Image analysis: Unsupervised learning can group images based on their content,
facilitating tasks such as image classification, object detection, and image retrieval.
Unsupervised learning can help you gain insights from unlabeled data that
you might not have been able to get otherwise.
Unsupervised learning is good at finding patterns and relationships in data
without being told what to look for. This can help you learn new things about
your data.
3. Reinforcement learning:
1. Reinforcement learning can be used to solve very complex problems that cannot
be solved by conventional techniques.
2. The model can correct the errors that occurred during the training process.
3. In RL, training data is obtained via the direct interaction of the agent with the
environment