<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Francisca_Angela</title>
    <description>The latest articles on DEV Community by Francisca_Angela (@francisca_angela).</description>
    <link>https://dev.to/francisca_angela</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4075383%2Fa4e838a9-9670-4dcc-8f3d-a1a895ab7652.png</url>
      <title>DEV Community: Francisca_Angela</title>
      <link>https://dev.to/francisca_angela</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/francisca_angela"/>
    <language>en</language>
    <item>
      <title>Sentiment Analysis of Apple Tweets: An NLP Approach</title>
      <dc:creator>Francisca_Angela</dc:creator>
      <pubDate>Thu, 10 Sep 2026 14:23:15 +0000</pubDate>
      <link>https://dev.to/francisca_angela/-sentiment-analysis-of-apple-tweets-an-nlp-approach-5bcl</link>
      <guid>https://dev.to/francisca_angela/-sentiment-analysis-of-apple-tweets-an-nlp-approach-5bcl</guid>
      <description>&lt;h2&gt;
  
  
  The Business Challenge
&lt;/h2&gt;

&lt;p&gt;When Apple launches a new product, social media explodes with customer reactions. Support teams get overwhelmed, marketing sees mixed signals, and product managers struggle to identify whether complaints are about battery life, pricing, or software bugs. The core problem: &lt;strong&gt;how do you turn thousands of unstructured tweets into actionable business intelligence?&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The NLP Solution
&lt;/h2&gt;

&lt;p&gt;This project demonstrates a supervised machine learning pipeline that automatically classifies tweets as &lt;strong&gt;negative, neutral, or positive&lt;/strong&gt; using the Apple Twitter Sentiment dataset.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Text Preparation
&lt;/h3&gt;

&lt;p&gt;Raw tweets contain noise—URLs, mentions, hashtags, and informal language. The cleaning process involves:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Tokenization&lt;/strong&gt;: Breaking text into individual word units&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stop word removal&lt;/strong&gt;: Filtering out common words like "the" or "is" that carry little sentiment signal&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lemmatization&lt;/strong&gt;: Reducing words to their base form (e.g., "running" → "run") to consolidate meaning&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The goal is to retain sentiment-bearing words while discarding irrelevant noise.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Feature Extraction with TF-IDF
&lt;/h3&gt;

&lt;p&gt;Machine learning models require numbers, not text. &lt;strong&gt;TF-IDF (Term Frequency-Inverse Document Frequency)&lt;/strong&gt; converts cleaned text into numerical vectors by:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Weighting terms that appear frequently in a single tweet&lt;/li&gt;
&lt;li&gt;Downweighting terms that appear across all tweets (like "iPhone")&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This ensures distinctive, sentiment-rich words carry more influence than generic product terms.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Model Training and Comparison
&lt;/h3&gt;

&lt;p&gt;Multiple classifiers are trained and evaluated—typically including:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Logistic Regression&lt;/strong&gt; (interpretable baseline)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Naive Bayes&lt;/strong&gt; (efficient for text)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Support Vector Machines&lt;/strong&gt; (effective for high-dimensional data)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Random Forest&lt;/strong&gt; (robust ensemble method)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Models are compared using &lt;strong&gt;accuracy, precision, recall, F1-score, and multiclass ROC-AUC&lt;/strong&gt; to balance overall correctness with performance on minority classes (critical when negative tweets are rare but urgent).&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Tuning and Deployment
&lt;/h3&gt;

&lt;p&gt;The best-performing model undergoes hyperparameter tuning to optimize performance. Once validated, it can classify new, unseen tweets in real-time.&lt;/p&gt;

&lt;h2&gt;
  
  
  From Classification to Action
&lt;/h2&gt;

&lt;p&gt;A sentiment label alone is worthless without operational integration. The model output feeds into workflows:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Sentiment&lt;/th&gt;
&lt;th&gt;Topic Detected&lt;/th&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Negative&lt;/td&gt;
&lt;td&gt;Battery&lt;/td&gt;
&lt;td&gt;Escalate to product team&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Negative&lt;/td&gt;
&lt;td&gt;Pricing&lt;/td&gt;
&lt;td&gt;Alert marketing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Positive&lt;/td&gt;
&lt;td&gt;Camera&lt;/td&gt;
&lt;td&gt;Amplify in campaign&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Neutral&lt;/td&gt;
&lt;td&gt;Shipping&lt;/td&gt;
&lt;td&gt;Monitor for trends&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Why This Matters
&lt;/h2&gt;

&lt;p&gt;This NLP approach transforms social media noise into structured signals. It enables:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Early warning systems&lt;/strong&gt; for brand risk&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Evidence-based roadmap decisions&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Prioritized customer support&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Measurable campaign feedback&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The technical pipeline—clean, vectorize, classify, act—creates a repeatable process that scales beyond any single product launch.&lt;/p&gt;

</description>
      <category>nlp</category>
      <category>machinelearning</category>
      <category>learning</category>
      <category>datascience</category>
    </item>
    <item>
      <title>The Dangerous KPI How a well-intentioned metric triggered a financial crisis by rewarding the wrong behaviors</title>
      <dc:creator>Francisca_Angela</dc:creator>
      <pubDate>Wed, 19 Aug 2026 15:32:27 +0000</pubDate>
      <link>https://dev.to/francisca_angela/the-dangerous-kpi-how-a-well-intentioned-metric-triggered-a-financial-crisis-by-rewarding-the-wrong-1icm</link>
      <guid>https://dev.to/francisca_angela/the-dangerous-kpi-how-a-well-intentioned-metric-triggered-a-financial-crisis-by-rewarding-the-wrong-1icm</guid>
      <description>&lt;p&gt;&lt;strong&gt;&lt;em&gt;Data Journalism Analysis • August 2026&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A sales team crushed its quarterly targets. Numbers soared. Yet profits plummeted. The company's stock price tanked. In the postmortem, executives discovered they had incentivized their workforce to&lt;br&gt;
pursue precisely the wrong strategy—and the employees delivered flawlessly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Perverse Incentive Trap&lt;/strong&gt;&lt;br&gt;
When sales teams are rewarded purely on volume, they become optimized for volume. Representatives began offering aggressive discounts to close deals faster. They oversold capabilities.&lt;br&gt;
They targeted easy sales rather than strategic accounts. They pushed products customers didn't need. And they avoided any customer concern that might delay or derail a sale. The system worked exactly as designed—just not in the company's favor.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Revenue-Profit Paradox&lt;/strong&gt;&lt;br&gt;
This scenario illuminates a fundamental business truth: revenue and profit are not the same. Sales increased through deep discounting that eroded margins. Lower-margin products became easier to move. New customer acquisition required expensive onboarding and support. Returns and refunds reduced net revenue. Fast shipments and special handling added costs. The company was generating phantom sales—volume without value.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Measurement Gap&lt;/strong&gt;&lt;br&gt;
The original KPI measured only what was counted, not what mattered. A better dashboard would have tracked Customer Lifetime Value, revealing whether these sales created lasting relationships. Gross&lt;br&gt;
Margin by Representative would have exposed discounting behavior before it became systemic. Net Promoter Score would have signaled customer dissatisfaction. Customer Acquisition Cost would have shown unsustainable unit economics. Profit Per Customer would have told the true financial story.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fixing the System&lt;/strong&gt;&lt;br&gt;
The solution requires rethinking incentives entirely. A tiered commission structure could reward both volume and margin. Bonuses tied to customer satisfaction scores would align behavior with customer&lt;br&gt;
needs. Team-based incentives would encourage collaboration rather than competition. Long-term bonuses based on retention would reward sustainable growth. The company learned that what you measure is what you get—and you'd better measure what you actually want&lt;/p&gt;

</description>
      <category>startup</category>
      <category>learning</category>
      <category>performance</category>
      <category>writing</category>
    </item>
  </channel>
</rss>
