<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Social Media Analysis on Zitao Liao</title><link>http://lzteddy.com/tags/social-media-analysis/</link><description>Recent content in Social Media Analysis on Zitao Liao</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Fri, 09 May 2025 00:00:00 +0000</lastBuildDate><atom:link href="http://lzteddy.com/tags/social-media-analysis/index.xml" rel="self" type="application/rss+xml"/><item><title>Weibo Personality Analyzer</title><link>http://lzteddy.com/p/weibo-personality-analyzer/</link><pubDate>Fri, 09 May 2025 00:00:00 +0000</pubDate><guid>http://lzteddy.com/p/weibo-personality-analyzer/</guid><description>&lt;h2 id="background"&gt;Background
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;Time: May 2026&lt;/li&gt;
&lt;li&gt;Context: CS114 course project.&lt;/li&gt;
&lt;li&gt;Project title: 微博性格分析师：利用生成式AI洞察社交媒体人格&lt;/li&gt;
&lt;li&gt;English title: Weibo Personality Analyzer: Using Generative AI to Gain Insight into Social Media Persona&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="goal"&gt;Goal
&lt;/h2&gt;&lt;p&gt;The project aims to build a web-based tool called &amp;ldquo;Weibo Personality Analyzer&amp;rdquo;. By collecting and analyzing a Weibo user&amp;rsquo;s public posts, the system infers content themes, writing style, and personality-related tendencies from social media text.&lt;/p&gt;
&lt;p&gt;The core role of AI is to use the Qwen large language model to process unstructured Weibo posts, extract linguistic signals, and evaluate whether generative AI can support social media persona analysis in a structured and explainable workflow.&lt;/p&gt;
&lt;h2 id="system-workflow"&gt;System Workflow
&lt;/h2&gt;&lt;ol&gt;
&lt;li&gt;User enters a target Weibo username through the web interface at &lt;code&gt;callitwhatyouwant.cn&lt;/code&gt;(now unavailable).&lt;/li&gt;
&lt;li&gt;The backend launches a Selenium-based scraper through &lt;code&gt;scraper.py&lt;/code&gt;, which simulates browser behavior for more stable data collection.&lt;/li&gt;
&lt;li&gt;The system supports collecting around 50 to 300 public posts.&lt;/li&gt;
&lt;li&gt;Raw posts are cleaned and converted into a structured Markdown file.&lt;/li&gt;
&lt;li&gt;Qwen analyzes the Markdown input and produces a Markdown report.&lt;/li&gt;
&lt;li&gt;The Flask backend formats the result and returns it to the web frontend.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="ai-analysis"&gt;AI Analysis
&lt;/h2&gt;&lt;p&gt;The Qwen LLM is used as the core analysis engine. It receives structured Markdown content and produces analysis across three main dimensions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Content theme modeling: clusters recurring topics and interest areas.&lt;/li&gt;
&lt;li&gt;Writing style analysis: evaluates formality, casualness, emotional tendency, and expression habits.&lt;/li&gt;
&lt;li&gt;Personality inference: maps language features to MBTI-inspired dimensions while avoiding unsupported psychological diagnosis.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="web-application"&gt;Web Application
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;Frontend: HTML, CSS, and JavaScript with responsive design.&lt;/li&gt;
&lt;li&gt;Backend: Python Flask routes for request handling, scraper triggering, Qwen API calls, and result formatting.&lt;/li&gt;
&lt;li&gt;Deployment: Tencent Cloud ECS server with the domain &lt;code&gt;callitwhatyouwant.cn&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="prompt-engineering"&gt;Prompt Engineering
&lt;/h2&gt;&lt;p&gt;The prompt design went through several iterations:&lt;/p&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Version&lt;/th&gt;
 &lt;th&gt;Prompt Strategy&lt;/th&gt;
 &lt;th&gt;Result&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;V1.0&lt;/td&gt;
 &lt;td&gt;&amp;ldquo;Analyze these Weibo posts: [text]&amp;rdquo;&lt;/td&gt;
 &lt;td&gt;Too general and lacked depth.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;V2.0&lt;/td&gt;
 &lt;td&gt;Asked the model to act as a social media analyst and output theme, style, and personality sections.&lt;/td&gt;
 &lt;td&gt;Structure improved, but personality analysis was still weak.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;V3.0&lt;/td&gt;
 &lt;td&gt;Added MBTI-based dimensions, negative constraints against unsupported mental-state claims, and required Markdown output.&lt;/td&gt;
 &lt;td&gt;Reliability and readability improved significantly.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Example prompt direction:&lt;/p&gt;

 &lt;blockquote&gt;
 &lt;p&gt;As a social media analyst, analyze the following public Weibo posts from three perspectives: content themes, writing style, and MBTI-inspired personality tendencies. Do not infer private mental health status or make claims unsupported by the text. Output the result in Markdown.&lt;/p&gt;

 &lt;/blockquote&gt;
&lt;h2 id="role-of-generative-ai"&gt;Role of Generative AI
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;Analysis engine: Qwen performs multi-dimensional text interpretation, including topic, sentiment, style, and persona-related signals.&lt;/li&gt;
&lt;li&gt;Development accelerator: generative AI helped draft frontend structure, CSS styling, Flask route templates, and debugging suggestions.&lt;/li&gt;
&lt;li&gt;Debugging support: AI-assisted log interpretation helped locate syntax and logic errors during development.&lt;/li&gt;
&lt;li&gt;Security suggestions: AI provided reminders such as cookie encryption and safer handling of user data.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="tech-stack"&gt;Tech Stack
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;Qwen LLM&lt;/li&gt;
&lt;li&gt;Python&lt;/li&gt;
&lt;li&gt;Selenium&lt;/li&gt;
&lt;li&gt;Flask&lt;/li&gt;
&lt;li&gt;HTML/CSS&lt;/li&gt;
&lt;li&gt;JavaScript&lt;/li&gt;
&lt;li&gt;Markdown parsing&lt;/li&gt;
&lt;li&gt;Tencent Cloud ECS&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="tools-used"&gt;Tools Used
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;Qwen large language model for post analysis.&lt;/li&gt;
&lt;li&gt;Claude 3.7 Sonnet for backend development support.&lt;/li&gt;
&lt;li&gt;Bolt.new for frontend design support.&lt;/li&gt;
&lt;/ul&gt;</description></item></channel></rss>