<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Machine Learning | Yik Yu Ng</title><link>https://yyn-anson.github.io/tags/machine-learning/</link><atom:link href="https://yyn-anson.github.io/tags/machine-learning/index.xml" rel="self" type="application/rss+xml"/><description>Machine Learning</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Thu, 01 May 2025 00:00:00 +0000</lastBuildDate><image><url>https://yyn-anson.github.io/media/icon_hu7729264130191091259.png</url><title>Machine Learning</title><link>https://yyn-anson.github.io/tags/machine-learning/</link></image><item><title>Honour Research Project: Bias Detection through Unsupervised Learning</title><link>https://yyn-anson.github.io/project/honour-research/</link><pubDate>Thu, 01 May 2025 00:00:00 +0000</pubDate><guid>https://yyn-anson.github.io/project/honour-research/</guid><description>&lt;h1 id="bias-detection-through-unsupervised-learning">Bias Detection through Unsupervised Learning&lt;/h1>
&lt;p>&lt;em>30 Nov 2024 – Current&lt;/em>&lt;/p>
&lt;h2 id="executive-summary">Executive Summary&lt;/h2>
&lt;p>This innovative research project addresses a critical challenge in today&amp;rsquo;s digital information ecosystem: detecting and quantifying political bias in news articles and social media content without requiring labeled training data. The framework introduces a novel fully unsupervised pipeline that combines geometric embedding-based techniques with a multi-agent evaluation system to provide a comprehensive, nuanced assessment of media bias across two dimensions - political leaning and rhetorical bias intensity.&lt;/p>
&lt;p>Note: This work is still in progress, we hope to push it to a formal conference paper. Proposal can be found here
&lt;/p>
&lt;h2 id="problem-statement">Problem Statement&lt;/h2>
&lt;p>In today&amp;rsquo;s digital landscape, social media platforms have become the primary source of news for billions worldwide, fundamentally altering information flow and public discourse. This shift presents unprecedented challenges as algorithms selectively amplify content, often prioritizing engagement over accuracy and potentially exposing users to increasingly polarized and biased information. Such bias can profoundly influence public opinion formation, policy preferences, and voting behavior in democratic societies.&lt;/p>
&lt;p>While traditional approaches to media bias detection typically rely on supervised learning with large labeled datasets, our research introduces a framework that eliminates this dependency, making bias detection more scalable, adaptable, and transparent.&lt;/p>
&lt;h2 id="methodology-a-two-component-approach">Methodology: A Two-Component Approach&lt;/h2>
&lt;p>Our framework consists of two complementary components that work together to provide a comprehensive bias assessment:&lt;/p>
&lt;h3 id="1-embedding-based-political-leaning-estimation">1. Embedding-Based Political Leaning Estimation&lt;/h3>
&lt;p>This component quantifies the political orientation of articles on a continuous left-right spectrum through several innovative techniques:&lt;/p>
&lt;ul>
&lt;li>
&lt;p>&lt;strong>Article Embedding&lt;/strong>: Content is transformed into dense vector representations using INSTRUCTOR, an instruction-finetuned text embedding model that captures semantic information relevant to political analysis.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Pseudo-Topic Clustering&lt;/strong>: Articles are grouped into clusters based on topical similarity to normalize for content variation, ensuring political leaning is assessed within comparable contexts rather than across disparate subjects.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Contrastive Adversarial Fine-Tuning&lt;/strong>: Embeddings are enhanced through triplet learning, where semantically aligned articles are pulled closer together while divergent articles are pushed further apart, amplifying fine-grained ideological distinctions within topical groups.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Directional Vector-Based Scoring&lt;/strong>: A political spectrum axis is defined within the embedding space using prototypical left-leaning and right-leaning seed articles. Each article&amp;rsquo;s political leaning score is computed as the normalized projection onto this axis, ranging from -1 (strongly left-leaning) to +1 (strongly right-leaning).&lt;/p>
&lt;/li>
&lt;/ul>
&lt;h3 id="2-multi-agent-llm-based-rhetorical-bias-analysis">2. Multi-Agent LLM-Based Rhetorical Bias Analysis&lt;/h3>
&lt;p>This component evaluates the presence of biased rhetorical techniques regardless of political orientation:&lt;/p>
&lt;ul>
&lt;li>
&lt;p>&lt;strong>Agent Configuration&lt;/strong>: Rather than simulating political diversity, three specialized agents examine different aspects of bias:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Structural Analysis Agent&lt;/strong>: Examines article organization, framing, headline analysis, and source selection&lt;/li>
&lt;li>&lt;strong>Content Analysis Agent&lt;/strong>: Evaluates language choice, fact-opinion separation, and evidence assessment&lt;/li>
&lt;li>&lt;strong>Contextual Analysis Agent&lt;/strong>: Focuses on omissions, historical patterns, and comparison to mainstream reporting&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Evaluation Protocol&lt;/strong>: The process occurs in three sequential phases:&lt;/p>
&lt;ol>
&lt;li>Independent article analysis by each specialized agent&lt;/li>
&lt;li>Structured deliberation facilitated by a moderator agent&lt;/li>
&lt;li>Consensus formation, producing a five-point rhetorical bias rating (1=minimal bias, 5=extreme bias) with supporting evidence&lt;/li>
&lt;/ol>
&lt;/li>
&lt;/ul>
&lt;h2 id="integrated-bias-assessment">Integrated Bias Assessment&lt;/h2>
&lt;p>The outputs from both components are combined into a two-dimensional bias representation:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>X-axis&lt;/strong>: Political leaning from -1 (strongly left) to +1 (strongly right)&lt;/li>
&lt;li>&lt;strong>Y-axis&lt;/strong>: Rhetorical bias intensity from 0 (minimal bias) to 1 (extreme bias)&lt;/li>
&lt;/ul>
&lt;p>This representation allows for nuanced distinctions between different bias profiles. For example, an article might be identified as strongly right-leaning but employing relatively few biased rhetorical techniques, while another might be moderately left-leaning but using highly biased rhetorical devices.&lt;/p>
&lt;h2 id="visualization">Visualization&lt;/h2>
&lt;p>Our framework generates several types of visualizations to help users understand and interpret bias profiles:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>2D Bias Maps&lt;/strong>: Plot media outlets in a two-dimensional space showing both political leaning and rhetorical bias intensity&lt;/li>
&lt;li>&lt;strong>Score Distributions&lt;/strong>: Histograms showing the distribution of political leaning scores across all articles&lt;/li>
&lt;li>&lt;strong>Source Comparisons&lt;/strong>: Bar charts comparing mean political leaning scores across different media outlets&lt;/li>
&lt;li>&lt;strong>Beeswarm Plots&lt;/strong>: SHAP-like visualizations showing individual article distributions by source&lt;/li>
&lt;li>&lt;strong>Violin Plots&lt;/strong>: Probability density visualizations showing the distribution shape for each source&lt;/li>
&lt;/ul>
&lt;h2 id="key-contributions">Key Contributions&lt;/h2>
&lt;p>Our framework offers several significant advantages over existing approaches:&lt;/p>
&lt;ol>
&lt;li>&lt;strong>No Labeled Data Requirement&lt;/strong>: Eliminates the need for expensive human-annotated datasets, enabling analysis at scale&lt;/li>
&lt;li>&lt;strong>Domain Generalizability&lt;/strong>: Can be applied to any domain with opposing viewpoints, not limited to political content&lt;/li>
&lt;li>&lt;strong>Transparent Assessment&lt;/strong>: Provides explicit reasoning and evidence for bias evaluations, fostering trust&lt;/li>
&lt;li>&lt;strong>Bias Mitigation&lt;/strong>: Combines geometric methods with deliberative LLM analysis to reduce potential biases inherent in either approach alone&lt;/li>
&lt;/ol>
&lt;h2 id="applications-and-impact">Applications and Impact&lt;/h2>
&lt;p>This research contributes to several important objectives:&lt;/p>
&lt;ul>
&lt;li>Providing tools for media literacy and critical information consumption&lt;/li>
&lt;li>Enabling more balanced content recommendation systems&lt;/li>
&lt;li>Supporting researchers and policymakers with insights into information flow&lt;/li>
&lt;li>Strengthening democratic discourse by helping citizens identify bias in an increasingly complex digital information ecosystem&lt;/li>
&lt;/ul>
&lt;h2 id="future-directions">Future Directions&lt;/h2>
&lt;p>Future work will address several promising avenues:&lt;/p>
&lt;ul>
&lt;li>Expanding the framework to incorporate multimodal analysis of visual and textual elements&lt;/li>
&lt;li>Developing methods for continuous learning and adaptation to evolving political discourse&lt;/li>
&lt;li>Exploring cross-cultural adaptations for international media analysis&lt;/li>
&lt;li>Further optimizing the multi-agent protocol to reduce computational requirements&lt;/li>
&lt;/ul>
&lt;p>By providing accessible tools for bias detection without relying on costly labeled data or domain-specific customization, this project aims to contribute to a more informed and discerning public discourse in the digital age.&lt;/p>
&lt;!-- &lt;iframe src="uploads/COMP400_Bias_Rating.pdf" width="100%" height="600px">&lt;/iframe> --></description></item><item><title>Quick Draw: Interactive Animal Recognition Web App</title><link>https://yyn-anson.github.io/project/quick-draw/</link><pubDate>Sun, 01 Oct 2023 00:00:00 +0000</pubDate><guid>https://yyn-anson.github.io/project/quick-draw/</guid><description>&lt;h1 id="quick-draw">Quick Draw&lt;/h1>
&lt;p>&lt;em>1 Oct 2023 – 25 Nov 2023&lt;/em>&lt;/p>
&lt;h2 id="project-overview">Project Overview&lt;/h2>
&lt;p>The Quick Draw project is a collaborative initiative developed during the MAIS202 Bootcamp. The project focuses on implementing a machine learning model capable of predicting animal labels based on user-uploaded images. Leveraging the Google Quick Draw dataset, the application accurately classifies images into 10 distinct animal categories.&lt;/p>
&lt;h2 id="demo">Demo&lt;/h2>
&lt;iframe
src="https://1drv.ms/v/c/891814256f52dec4/IQTE3lJvJRQYIICJpxQAAAAAAR4Qr2RjQvGbjIFmN2lFUBo"
width="640"
height="360"
frameborder="0"
scrolling="no"
allowfullscreen>
&lt;/iframe>
&lt;h2 id="key-features">Key Features&lt;/h2>
&lt;ul>
&lt;li>&lt;strong>Real-Time Prediction&lt;/strong>: Upload an image and receive immediate, accurate predictions of the animal depicted.&lt;/li>
&lt;li>&lt;strong>High Accuracy&lt;/strong>: Achieves approximately 83% accuracy across 10 animal classes.&lt;/li>
&lt;li>&lt;strong>Collaborative Development&lt;/strong>: Developed by a two-member team, integrating strong model development with full-stack web application expertise.&lt;/li>
&lt;/ul>
&lt;h2 id="technical-approach">Technical Approach&lt;/h2>
&lt;ul>
&lt;li>&lt;strong>Model Development&lt;/strong>: Utilized CNN architecture, training on the Quick Draw dataset to optimize performance.&lt;/li>
&lt;li>&lt;strong>Web Integration&lt;/strong>: Engineered a responsive and user-friendly web interface that seamlessly integrates with the machine learning model for real-time predictions.&lt;/li>
&lt;li>&lt;strong>Optimization&lt;/strong>: Fine-tuned both the model and web application to ensure efficient and smooth operation under live conditions.&lt;/li>
&lt;/ul>
&lt;h2 id="contributions">Contributions&lt;/h2>
&lt;ul>
&lt;li>&lt;strong>Machine Learning&lt;/strong>: Contributed 50% towards model development, ensuring robust performance and accuracy.&lt;/li>
&lt;li>&lt;strong>Web Application&lt;/strong>: Took full responsibility for designing and implementing the web app, from UI/UX design to backend integration.&lt;/li>
&lt;/ul></description></item></channel></rss>