<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ahsanatiq on Medium]]></title>
        <description><![CDATA[Stories by Ahsanatiq on Medium]]></description>
        <link>https://medium.com/@ahsanatiq789?source=rss-08c08c547d46------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*SKzdZMsBRN-Ks5dO</url>
            <title>Stories by Ahsanatiq on Medium</title>
            <link>https://medium.com/@ahsanatiq789?source=rss-08c08c547d46------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 04:40:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ahsanatiq789/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[High-Accuracy Automated Acne Severity Grading with Deep Learning]]></title>
            <link>https://medium.com/@ahsanatiq789/high-accuracy-automated-acne-severity-grading-with-deep-learning-2647afa267b0?source=rss-08c08c547d46------2</link>
            <guid isPermaLink="false">https://medium.com/p/2647afa267b0</guid>
            <dc:creator><![CDATA[Ahsanatiq]]></dc:creator>
            <pubDate>Sat, 15 Nov 2025 10:46:30 GMT</pubDate>
            <atom:updated>2025-11-15T10:46:30.848Z</atom:updated>
            <content:encoded><![CDATA[<p>Acne severity grading is often subjective, time-consuming, and prone to human error. In this project, we present a <strong>high-accuracy deep learning pipeline</strong> for <strong>automated acne severity classification</strong> using <strong>EfficientNet-B0</strong> and large-scale data augmentation.</p><p>This approach enables dermatologists and researchers to quickly and reliably assess acne severity from images, making clinical and research workflows more efficient.</p><h3>Overview</h3><p>The model classifies facial images into three severity levels:</p><ul><li><strong>Mild</strong></li><li><strong>Medium</strong></li><li><strong>Severe</strong></li></ul><p>Starting with a limited dataset of <strong>999 images</strong>, we expanded it to approximately <strong>30,000 balanced samples</strong> using extensive augmentation techniques. This allowed the model to achieve <strong>94.01% validation accuracy</strong>.</p><p>A <strong>Gradio web interface</strong> is included for real-time inference, making the model accessible even to users without coding experience.</p><h3>Dataset</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*mxlTI2XlphV-7xAwu1yMqA.png" /></figure><h3>Original Dataset</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*MTQctQMTbQeN9L2DueKsGQ.png" /></figure><p>ClassSamplesMild387Medium473Severe139</p><h3>After Augmentation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*KcwUDfXd44T_xg9qkh3Edg.png" /></figure><p>ClassTargetFinal CountMild10,00010,000Medium10,00010,000Severe10,00010,000</p><blockquote><strong><em>Total dataset size:</em></strong><em> 30,000 images</em></blockquote><p>Here’s a preview of the images used:</p><h3>Preprocessing</h3><p>Real-world images often contain inconsistencies such as:</p><ul><li>Black borders</li><li>Background noise</li><li>Cropping artifacts</li></ul><p>To address this, we implemented a <strong>custom artifact removal function (</strong><strong>remove_black())</strong>:</p><ol><li>Convert the image to grayscale</li><li>Create a non-black pixel mask</li><li>Calculate the bounding box</li><li>Crop to the region of interest (ROI)</li><li>Replace leftover dark pixels with white</li></ol><p>This ensures the model focuses only on <strong>facial regions and acne features</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*jopeJF8OxXExKtVmcxk-mg.png" /></figure><h3>Data Augmentation</h3><p>To overcome the limited original dataset, we applied <strong>Keras-based augmentation</strong>:</p><ul><li>Random flips</li><li>Random rotations (≤ 20%)</li><li>Random zoom (≤ 20%)</li><li>Random brightness and contrast adjustments</li><li>Random translations</li></ul><p>This expanded the dataset <strong>20×</strong>, reducing overfitting and improving generalization.</p><h3>Model Architecture</h3><p>We used <strong>EfficientNet-B0</strong> as the backbone, pre-trained on ImageNet, combined with a custom classification head:</p><ul><li><strong>GlobalAveragePooling2D</strong></li><li><strong>Dropout</strong></li><li><strong>Dense(128)</strong></li><li><strong>Dropout</strong></li><li><strong>Dense(3)</strong> → outputs severity class</li></ul><p><strong>Parameters &amp; Training:</strong></p><ul><li>Total Parameters: ~4.2M</li><li>Optimizer: Adam</li><li>Loss: SparseCategoricalCrossentropy</li><li>Epochs: 46 (with early stopping)</li></ul><h3>Performance</h3><h3>Validation Results</h3><ul><li><strong>Accuracy:</strong> 94.01%</li><li><strong>Loss:</strong> 0.14</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*Ms3Fv0M4zboI3lPOEC4ZEw.png" /></figure><h3>Classification Report</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*YXmpv53-1Ed382yi4sn0xg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*HqYKwJJ_3YkjUcjFadRK1A.png" /></figure><h3>Deployment</h3><p>A Streamlit allows:</p><ul><li>Image upload</li><li>Automatic preprocessing</li><li>Severity prediction (with confidence score)</li></ul><p>To run locally:</p><pre>python app.py</pre><p>Open the local URL generated by Gradio to interact with the model.</p><h3>Real-World Testing</h3><p>We tested the model on <strong>external images</strong> (not in the dataset) to verify.</p><ul><li>Model stability</li><li>Robustness of preprocessing</li><li>Consistency of severity classification</li></ul><p>The results were consistent with the original dataset performance.</p><h3>Future Improvements</h3><ul><li>Integrate <strong>Grad-CAM or SHAP</strong> for explainability</li><li>Add <strong>lesion counting</strong> for GAGS score mapping</li><li>Improve performance on <strong>diverse skin tones</strong></li><li>Collect a <strong>fully external validation dataset</strong> for medical evaluation</li></ul><h3>Requirements</h3><p>The project uses:</p><ul><li>TensorFlow 2.20</li><li>Keras 3.10</li><li>Numpy, Pillow, OpenCV</li><li>Hugging Face Hub for model downloads</li><li>Rich, Markdown-it-py, mdurl, Pygments for interface support</li></ul><blockquote><em>Full package versions are in </em><em>requirements.txt.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2647afa267b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unsupervised Learning Clustering Algorithms.]]></title>
            <link>https://medium.com/@ahsanatiq789/unsupervised-learning-clustering-algorithms-fd348b27dc7f?source=rss-08c08c547d46------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd348b27dc7f</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[clustering]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[unsupervised-learning]]></category>
            <dc:creator><![CDATA[Ahsanatiq]]></dc:creator>
            <pubDate>Tue, 21 Oct 2025 08:32:46 GMT</pubDate>
            <atom:updated>2025-10-21T08:34:52.571Z</atom:updated>
            <content:encoded><![CDATA[<h3>Unsupervised Learning Clustering Algorithms. Explained Like You’re Having Coffee with a Data Scientist ☕</h3><p>When people think of machine learning, they often picture algorithms learning from tons of labeled data — predicting house prices, classifying cats and dogs, or spotting spam emails.</p><p>But what if there <em>aren’t</em> any labels?</p><p>How can an algorithm find structure or meaning in raw, untagged data?</p><p>That’s where <strong>unsupervised learning</strong> comes in — and one of its most fascinating branches is <strong>clustering</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/0*hTej5luYm8Qq3gF_" /></figure><h3>🌱 What Clustering Really Means</h3><p>Imagine you own an online store and have data on thousands of customers. You don’t know anything about them — no categories, no “labels.” But you’d love to know who your loyal customers are, who are casual browsers, and who only shows up for sales.</p><p>A <strong>clustering algorithm</strong> can find those natural groupings <em>on its own</em>.</p><p>In short: clustering is all about discovering patterns hidden in plain sight — grouping data points that behave similarly, even when we don’t tell the algorithm what to look for.</p><h3>🧠 Meet the Most Popular Clustering Algorithms</h3><p>There are many ways to cluster data. Let’s go over the ones you’ll encounter most often — what makes them special, and when you should (or shouldn’t) use them.</p><h3>1. K-Means: The Crowd Favorite</h3><p>If clustering had a “default setting,” it would be <strong>K-Means</strong>. It’s simple, fast, and works surprisingly well for many problems.</p><p><strong>How it works:</strong><br> It starts by guessing <em>K</em> groups (you decide how many). Then it assigns every data point to the nearest “centroid” (think of it as the center of a group), moves those centroids around based on the data, and repeats this until everything settles down.</p><p><strong>Why people love it:</strong></p><ul><li>Easy to understand and quick to run.</li><li>Great for clean, well-separated data.</li></ul><p><strong>Why it can fail:</strong></p><ul><li>You have to pick <em>K</em> ahead of time.</li><li>It hates outliers.</li><li>It assumes clusters are round — so no weird shapes allowed.</li></ul><p><strong>When to use:</strong> Customer segmentation, market analysis, clustering similar documents.</p><h3>2. Hierarchical Clustering: The Family Tree of Data</h3><p>This one is elegant. Instead of forcing you to choose the number of clusters, <strong>hierarchical clustering</strong> builds a tree (called a <em>dendrogram</em>) that shows how points can be grouped step by step. You can then “cut” the tree at any level to decide how many clusters you want.</p><p><strong>Think of it like:</strong><br> Organizing your music library — artists group into genres, genres into moods, moods into “vibes.”</p><p><strong>Pros:</strong></p><ul><li>You don’t need to know how many clusters exist.</li><li>It gives you a beautiful visual of relationships.</li></ul><p><strong>Cons:</strong></p><ul><li>Can be slow for big datasets.</li><li>Sensitive to noise.</li></ul><p><strong>When to use:</strong> Text organization, biology (gene clustering), or any dataset where relationships matter as much as the clusters.</p><h3>3. DBSCAN: The Rebel of the Group</h3><p>While K-Means and Hierarchical algorithms try to fit all points neatly into clusters, <strong>DBSCAN</strong> says, “No thanks, I’ll just focus on the dense areas — and ignore the noise.”</p><p><strong>What it does:</strong><br> It groups points that are close together (based on a distance measure) and labels anything far away as an outlier.</p><p><strong>Pros:</strong></p><ul><li>Doesn’t need the number of clusters.</li><li>Handles outliers beautifully.</li><li>Can find oddly shaped clusters (not just circles!).</li></ul><p><strong>Cons:</strong></p><ul><li>Needs good parameter tuning.</li><li>Struggles with data of varying density.</li></ul><p><strong>When to use:</strong> Anomaly detection, geographic clustering, any data that’s a bit messy.</p><h3>4. Mean Shift: Following the Flow</h3><p><strong>Mean Shift</strong> is like K-Means, but instead of fixing <em>K</em>, it lets the data decide how many clusters exist. It works by “shifting” data points toward the densest regions — like finding peaks on a mountain.</p><p><strong>Pros:</strong></p><ul><li>No need to pick <em>K</em>!</li><li>Great for oddly shaped clusters.</li></ul><p><strong>Cons:</strong></p><ul><li>Can be slow.</li><li>Sensitive to the “bandwidth” parameter (like the radius around each point).</li></ul><p><strong>When to use:</strong> Computer vision, image segmentation, object tracking.</p><h3>5. Gaussian Mixture Models (GMM): The Sophisticated One</h3><p>If K-Means is a blunt instrument, <strong>GMM</strong> is a scalpel. It assumes your data comes from a mix of Gaussian (bell-shaped) distributions — and it estimates each one.</p><p>Instead of saying “this point belongs to Cluster A,” GMM says “there’s a 70% chance it belongs to A, 20% to B, and 10% to C.” That’s called <strong>soft clustering</strong>.</p><p><strong>Pros:</strong></p><ul><li>Handles elliptical clusters.</li><li>Gives you probabilities — not just labels.</li></ul><p><strong>Cons:</strong></p><ul><li>Slower and more complex.</li><li>Needs some care to initialize properly.</li></ul><p><strong>When to use:</strong> Speech recognition, fraud detection, or anywhere uncertainty matters.</p><h3>🌍 Which One Should You Use?</h3><p>It depends!</p><p>If you’re exploring your data for the first time, <strong>K-Means</strong> is a great place to start — quick, intuitive, and easy to visualize.</p><p>If your data is noisy or oddly shaped, <strong>DBSCAN</strong> is your friend.<br>If you care about relationships, go <strong>Hierarchical</strong>.<br>If you want flexibility and probabilities, <strong>GMM</strong> wins.</p><p>No algorithm is perfect — but together, they give you a powerful toolkit for making sense of messy, unlabeled data.</p><h3>Connect With Me:</h3><p><a href="https://www.linkedin.com/in/muhammad-ahsan-atiq-399653378/">Muhammad Ahsan Linkedin</a></p><p><a href="http://www.github.com/ahsanatiq05">Muhammad Ahsan Github</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd348b27dc7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep Learning: Technical Foundations and Applications from Scratch]]></title>
            <link>https://medium.com/@ahsanatiq789/deep-learning-technical-foundations-and-applications-from-scratch-acb988a9ee6d?source=rss-08c08c547d46------2</link>
            <guid isPermaLink="false">https://medium.com/p/acb988a9ee6d</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Ahsanatiq]]></dc:creator>
            <pubDate>Sat, 11 Oct 2025 15:49:58 GMT</pubDate>
            <atom:updated>2025-10-11T15:50:46.717Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. Introduction</h3><p>Deep Learning (DL) is a subfield of <strong>Machine Learning (ML)</strong> within <strong>Artificial Intelligence (AI)</strong> that focuses on algorithms modeled after the <strong>human brain’s neural structure</strong>. It uses <strong>multi-layered artificial neural networks (ANNs)</strong> to automatically extract features and patterns from large datasets. Over the past decade, advancements in <strong>computational power (GPUs/TPUs)</strong>, <strong>big data availability</strong>, and <strong>optimized training algorithms</strong> have made deep learning a dominant approach in solving complex real-world problems such as image recognition, natural language processing (NLP), and autonomous systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*-y2GLGnHB43eXAjPjlYq1g.png" /></figure><h3>2. Theoretical Foundations</h3><p>Deep learning is based on <strong>neural computation</strong>, where a model approximates nonlinear mappings from input x to output y using layers of transformations.</p><h4>2.1 Neural Network Structure</h4><p>A deep neural network typically consists of:</p><ul><li><strong>Input Layer:</strong> Accepts raw data features x∈Rnx \in \mathbb{R}^nx∈Rn.</li><li><strong>Hidden Layers:</strong> Perform transformations using weighted linear combinations and nonlinear activations.</li><li><strong>Output Layer:</strong> Produces the final prediction y^\hat{y}y^​.</li></ul><p>Each neuron computes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*kDYCGjxLHBQ0Aci9Wa44Gw.png" /><figcaption>Mathematical Form</figcaption></figure><p>where W and b are the weight matrix and bias, and σ\sigmaσ is an activation function such as ReLU, sigmoid, or tanh.</p><h4>2.2 Learning Mechanism</h4><p>Learning involves minimizing a <strong>loss function</strong> using <strong>gradient descent</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*owrn16qE-dQYPGBh78BvGA.png" /></figure><p>The <strong>backpropagation algorithm</strong> computes gradients efficiently across layers using the <strong>chain rule</strong>, allowing the network to iteratively update weights and reduce prediction error.</p><h3>3. Architectures in Deep Learning</h3><h3>3.1 Convolutional Neural Networks (CNNs)</h3><p>CNNs are designed for <strong>spatial data</strong> such as images. They use convolutional filters to detect local features and hierarchical spatial structures. Layers include:</p><ul><li>Convolutional layers</li><li>Pooling layers (max/average)</li><li>Fully connected layers</li></ul><p>Applications: image classification, object detection, facial recognition.</p><h4>3.2 Recurrent Neural Networks (RNNs)</h4><p>RNNs handle <strong>sequential data</strong>, such as time series or text. They maintain hidden states that capture temporal dependencies. However, traditional RNNs suffer from <strong>vanishing/exploding gradient</strong> problems, mitigated by architectures like <strong>LSTM (Long Short-Term Memory)</strong> and <strong>GRU (Gated Recurrent Unit)</strong>.</p><p>Applications: speech recognition, text generation, sentiment analysis.</p><h4>3.3 Transformer Networks</h4><p>Transformers replace recurrence with <strong>self-attention mechanisms</strong>, enabling parallel processing and long-range dependency modeling. They form the foundation of models like <strong>BERT</strong>, <strong>GPT</strong>, and <strong>Vision Transformers (ViT)</strong>.</p><p>Applications: NLP, machine translation, generative AI.</p><h4>3.4 Generative Adversarial Networks (GANs)</h4><p>GANs consist of two competing models — a <strong>generator</strong> GGG that produces synthetic data and a <strong>discriminator</strong> DDD that distinguishes between real and fake samples. Through adversarial training, GGG learns to generate highly realistic outputs.</p><p>Applications: data augmentation, image synthesis, deepfakes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*_7u2PewD-UkLBXQwqrvYlw.png" /></figure><h3>4. Training and Optimization Techniques</h3><p>Efficient deep learning depends on careful model design and optimization strategies:</p><ul><li><strong>Regularization:</strong> Dropout, weight decay, and batch normalization prevent overfitting.</li><li><strong>Optimization Algorithms:</strong> Adam, RMSProp, and SGD are commonly used to improve convergence.</li><li><strong>Initialization:</strong> Proper weight initialization (e.g., He or Xavier) stabilizes training.</li><li><strong>Learning Rate Scheduling:</strong> Gradually adjusting the learning rate enhances training stability.</li></ul><p>Training deep networks is computationally intensive, often requiring <strong>GPUs/TPUs</strong> and distributed frameworks such as <strong>TensorFlow</strong>, <strong>PyTorch</strong>, or <strong>JAX</strong>.</p><h3>5. Evaluation Metrics</h3><p>Common metrics depend on the task type:</p><ul><li><strong>Classification:</strong> Accuracy, Precision, Recall, F1-score, ROC-AUC.</li><li><strong>Regression:</strong> Mean Squared Error (MSE), Mean Absolute Error (MAE).</li><li><strong>Generative Models:</strong> Inception Score (IS), Fréchet Inception Distance (FID).</li></ul><p>Proper validation techniques, such as <strong>k-fold cross-validation</strong> and <strong>confusion matrices</strong>, ensure robustness.</p><h3>6. Applications</h3><p>Deep learning has become integral across multiple sectors:</p><p>DomainApplications<strong>Healthcare</strong>Medical imaging, disease detection, genomics<strong>Autonomous Systems</strong>Self-driving vehicles, drone navigation<strong>Natural Language Processing</strong>Translation, chatbots, summarization<strong>Finance</strong>Fraud detection, risk modeling, algorithmic trading<strong>Entertainment</strong>Recommendation engines, video generation<strong>Cybersecurity</strong>Intrusion detection, malware classification</p><h3>7. Challenges and Future Directions</h3><p>Despite its success, deep learning faces challenges:</p><ul><li><strong>Data Dependency:</strong> Requires large, annotated datasets.</li><li><strong>Interpretability:</strong> Models act as “black boxes.”</li><li><strong>Energy Efficiency:</strong> High computational and environmental cost.</li><li><strong>Ethical Concerns:</strong> Bias, fairness, and data privacy.</li></ul><p>Future directions include <strong>explainable AI (XAI)</strong>, <strong>few-shot and self-supervised learning</strong>, <strong>federated learning</strong>, and <strong>neuro-symbolic AI</strong>, which combine symbolic reasoning with neural models.</p><h3>8. Conclusion</h3><p>Deep Learning has redefined computational intelligence, providing systems with the capability to learn abstract representations directly from data. As algorithms, hardware, and data continue to advance, the boundary between artificial and human intelligence will increasingly blur. Deep learning remains at the core of the next wave of technological innovation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=acb988a9ee6d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week 6 at BUILDABLES: Understanding Recommendation Systems — From Basics to Math]]></title>
            <link>https://medium.com/@ahsanatiq789/week-6-at-buildables-understanding-recommendation-systems-from-basics-to-math-44de46483bdd?source=rss-08c08c547d46------2</link>
            <guid isPermaLink="false">https://medium.com/p/44de46483bdd</guid>
            <dc:creator><![CDATA[Ahsanatiq]]></dc:creator>
            <pubDate>Sun, 28 Sep 2025 17:48:28 GMT</pubDate>
            <atom:updated>2025-09-28T17:48:28.347Z</atom:updated>
            <content:encoded><![CDATA[<h3>Week 6 at BUILDABLES: Understanding Recommendation Systems — From Basics to Math</h3><p>Recommendation systems power your everyday digital life. Whether it’s Netflix suggesting your next binge, Amazon nudging you toward another purchase, or Spotify curating your playlists, these algorithms quietly shape your online experiences.</p><p>In this week’s article, we’ll unpack what recommendation systems are, explore their types, walk through the design process, and peek into the math that makes them work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*NY-cWXQ1fdRiZWO-P5CFKw.png" /></figure><h3>🔎 What Is a Recommendation System?</h3><p>A recommendation system is an algorithmic approach to filtering information and suggesting items that users are most likely to engage with.</p><p>The goal is simple:<br> <strong>Deliver the right item to the right user at the right time.</strong></p><h3>📂 Types of Recommendation Systems</h3><h3>1. Content-Based Filtering</h3><ul><li>Recommends items similar to those a user liked in the past.</li><li>Example: If you watched <em>Inception</em>, the system might suggest <em>Interstellar</em> (both sci-fi, same director).</li><li>Relies on item metadata (genre, keywords, description).</li></ul><p><strong>Mathy side:</strong> Often uses <strong>cosine similarity</strong> between item feature vectors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yl0QPgXgnG0NzrTpN77dWw.png" /></figure><h3>2. Collaborative Filtering (CF)</h3><ul><li>Uses the <strong>wisdom of the crowd</strong>: “Users like you also liked…”</li><li>Two main flavors:</li><li><strong>User-based CF</strong> → find users similar to you.</li><li><strong>Item-based CF</strong> → find items similar to what you’ve rated.</li></ul><p><strong>Mathy side:</strong> Core technique is <strong>matrix factorization</strong> (e.g., Singular Value Decomposition).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*PSecM96qEAHVS6zeiCebvw.png" /></figure><p>where U represents user latent factors, and V represents item latent factors.</p><h3>3. Hybrid Systems</h3><ul><li>Combine content-based + collaborative approaches.</li><li>Example: Netflix uses viewing history (content) + global patterns (collaborative).</li><li>More robust, reduces common pitfalls like the “cold start” problem.</li></ul><h3>4. Context-Aware Systems</h3><ul><li>Incorporates additional factors: time, location, device, or even mood.</li><li>Example: A food app recommending breakfast in the morning vs. dinner at night.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*10rPKn7Crg33WwWc3E8j_A.png" /></figure><h3>⚙️ The Process of Building a Recommendation System</h3><ol><li><strong>Data Collection</strong></li></ol><ul><li>User data: clicks, ratings, purchases, browsing history.</li><li>Item data: categories, descriptions, metadata.</li></ul><p><strong>2. Preprocessing</strong></p><ul><li>Cleaning missing values, normalizing ratings, building user–item matrices.</li></ul><p><strong>3. Modeling</strong></p><ul><li>Choose approach: content-based, CF, hybrid, or deep learning methods (like autoencoders or transformers).</li></ul><p><strong>4. Evaluation</strong></p><ul><li>Metrics include:</li><li><strong>RMSE / MAE</strong> → for rating predictions.</li><li><strong>Precision, Recall, F1-score</strong> → for top-N recommendations.</li><li><strong>NDCG (Normalized Discounted Cumulative Gain)</strong> → measures ranking quality.</li></ul><p><strong>5. Deployment &amp; Feedback Loop</strong></p><ul><li>Monitor user interactions → retrain model → improve continuously.</li></ul><h3>📊 The Math in Action — A Simple Example</h3><p>Imagine a user–item matrix (ratings from 1–5):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*fyv84HVDw1jdwiH0STHRdA.png" /></figure><ul><li>Using <strong>collaborative filtering</strong>, we can fill in the “?” by finding similar users’ patterns.</li><li>Using <strong>cosine similarity</strong>, we can measure how close Alice’s taste is to Bob’s, then predict missing ratings accordingly.</li></ul><h3>🚀 Beyond the Basics</h3><ul><li><strong>Deep Learning in Recommenders</strong>:</li><li>Neural Collaborative Filtering (NCF)</li><li>Recurrent Neural Networks (RNNs) for session-based recommendations</li><li>Transformers (like BERT4Rec) for sequence modeling</li><li><strong>Real-World Challenges</strong>:</li><li><strong>Cold Start</strong> → How to recommend for new users/items.</li><li><strong>Scalability</strong> → Millions of users × millions of items.</li><li><strong>Bias &amp; Fairness</strong> → Ensuring diversity and avoiding “filter bubbles.”</li></ul><h3>🎯 Key Takeaways</h3><ul><li>Recommendation systems personalize user experiences and drive engagement.</li><li>The three main approaches: <strong>Content-based, Collaborative, and Hybrid</strong>.</li><li>Under the hood, math like <strong>cosine similarity</strong> and <strong>matrix factorization</strong> makes predictions possible.</li><li>Evaluation is just as important as building — bad recommendations harm user trust.</li><li>Modern systems are moving toward <strong>context-aware and deep learning–driven methods</strong>.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44de46483bdd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Buildables Peer Project Journey: Building an AI Cyberbullying Detection System]]></title>
            <link>https://medium.com/@ahsanatiq789/my-buildables-peer-project-journey-building-an-ai-cyberbullying-detection-system-bca923f52b92?source=rss-08c08c547d46------2</link>
            <guid isPermaLink="false">https://medium.com/p/bca923f52b92</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[projects]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Ahsanatiq]]></dc:creator>
            <pubDate>Sun, 21 Sep 2025 12:29:49 GMT</pubDate>
            <atom:updated>2025-09-21T13:43:51.444Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>This article was published by our teammate @Uneeba. Sharing here as part of our </em><strong><em>Buildables work library</em></strong><em>.”</em></blockquote><p><em>How three peers tackled online harassment detection and achieved 83% accuracy in just 2 weeks</em></p><p>Hi there! Today we want to share our incredible journey through Buildables Data Science Peer Project 1.</p><p>Cyberbullying has become a serious problem in our digital world. Unlike face-to-face bullying, online harassment follows victims everywhere, 24/7. Studies show that 37% of young people experience cyberbullying, and the impact on mental health can be devastating.</p><p>Our team of three data science peers decided to tackle this challenge head-on. We wanted to build an AI system that could automatically detect and classify different types of cyberbullying before it causes harm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IVya5Y-t8IHIHtrVpqUlNw.jpeg" /></figure><p>In this article, we break down our <strong>complete cyberbullying detection system</strong> into detailed steps with real results. We built this during our <strong>Buildables Data Science Internship</strong> with guidance from <strong>Ma’am </strong>. Our system achieved <strong>83% accuracy</strong> in classifying 6 different types of cyberbullying. Ready to dive in? Let’s get started 😊</p><h3>6 Steps of Our Cyberbullying Detection Project</h3><ol><li><strong>Problem Definition</strong>: Understanding what we want to solve</li><li><strong>Data Collection</strong>: Working with 47,656 labeled tweets</li><li><strong>Data Preprocessing</strong>: Cleaning and transforming text data</li><li><strong>Exploratory Data Analysis</strong>: Finding patterns in the data</li><li><strong>Model Development</strong>: Building and testing ML algorithms</li><li><strong>Deployment</strong>: Creating web apps for real-world use</li></ol><h3>Project Structure:📁</h3><pre>CyberBullying/<br>│── API_HANDLING/<br>│ ├── api.py # FastAPI app for model inference<br>│ ├── test_model.py # Test model loading<br>│ ├── test_post_request.py # Test POST request to API<br>│ ├── templates/<br>│ │ └── index.html # Web UI for FastAPI<br>│<br>│── model.pkl # Trained ML model<br>│── vectorizer.pkl # TF-IDF vectorizer<br>│── streamlit_app.py # Streamlit web app<br>│── images/ # Graphs &amp; EDA plots<br>│── README.md # Project documentation</pre><p>Let’s dive into each step in detail now.</p><h3>Step 1: Problem Definition</h3><h3>What is the goal?</h3><h3>Who benefits from solving this problem?</h3><ul><li>Social media platforms for content moderation</li><li>Schools and parents monitoring online interactions</li><li>Anyone who wants to create safer online spaces</li></ul><h3>Success metrics:</h3><ul><li>Achieve above 80% accuracy across all categories</li><li>Build a working web application</li><li>Deploy both interactive demo and API service</li></ul><h3>Step 2: Data Collection</h3><p><strong>Ahsan’s Data Cleaning Process:</strong> For this project, we used a cyberbullying tweets dataset with perfectly balanced classes. Ahsan spent 2 days in cleaning the raw data, which was emotionally challenging as it involved reading through thousands of toxic tweets.</p><pre>import pandas as pd<br>import numpy as np</pre><pre># Load dataset<br>df = pd.read_csv(&#39;cyberbullying_tweets.csv&#39;)<br>print(f&quot;Dataset shape: {df.shape}&quot;)<br>print(df[&#39;cyberbullying_type&#39;].value_counts())</pre><p><strong>Dataset Overview:</strong></p><ul><li><strong>Total Records</strong>: 47,692 initial entries</li><li><strong>After cleaning</strong>: 47,656 entries (removed 36 duplicates)</li><li><strong>Categories</strong>: 6 types [Religion (16.78%), Age (16.77%), Ethnicity (16.70%), Gender (16.68%), Not Cyberbullying (16.65%), Other (16.42%)]</li><li><strong>Balance</strong>: Each category has around 16–17% representation</li></ul><p>The balanced dataset was perfect for training without worrying about class imbalance issues.</p><h3>Step 3: Data Preprocessing</h3><p><strong>Darain’s Text Transformation Pipeline:</strong> Raw text data from social media needs extensive cleaning before we can use it for machine learning. Darain built a comprehensive preprocessing pipeline that included:</p><p><strong>Preprocessing Steps:</strong></p><ul><li><strong>Lowercase conversion</strong>: “HATE” and “hate” become the same</li><li><strong>Tokenization</strong>: Split sentences into individual words</li><li><strong>Remove punctuation</strong>: Keep only letters and numbers</li><li><strong>Remove stopwords</strong>: Filter out common words that don’t add meaning</li><li><strong>Lemmatization</strong>: “running”, “ran”, “runs” all become “run”</li><li><strong>TF-IDF Vectorization</strong>: Convert words to 4,500 numerical features</li></ul><p>This transformation pipeline was crucial for converting raw social media text into machine-readable format for our models.</p><h3>Step 4: Exploratory Data Analysis (EDA)</h3><p>Ahsan conducted thorough EDA, uncovering correlations that surprised us. Text length had a moderate correlation (0.387–0.402) with cyberbullying classification — longer texts were more likely to contain harassment.</p><p><em>Learning: Good analysis isn’t just about pretty charts — it’s about finding actionable insights that guide model decisions.</em></p><h3>Step 5: Model Development</h3><p>We tested multiple algorithms to find the best one. <strong>Darain and Uneeba </strong>led this phase:</p><p>We tested four different approaches, treating each as a hypothesis about how machines understand harmful language:</p><ul><li><strong>Gaussian Naive Bayes</strong>: 58% accuracy (struggled with text features)</li><li><strong>Multinomial Naive Bayes</strong>: 78% accuracy (solid baseline)</li><li><strong>Bernoulli Naive Bayes</strong>: 81% accuracy (surprisingly effective)</li><li><strong>Logistic Regression</strong>: 83% accuracy (our winner!)</li></ul><h3>The DistilBERT Challenge</h3><p>After a well-deserved two-day break, Ahsan took on one of the project’s most challenging phases — implementing a transformer-based DistilBERT model. This was uncharted territory for our team, requiring deep dives into modern NLP architectures.</p><p>Despite the steep learning curve, Ahsan’s dedication paid off. The DistilBERT model achieved an impressive 82% accuracy, proving that both traditional machine learning and modern deep learning approaches could deliver comparable results for this specific problem. This dual-model approach gave us confidence in our solution’s robustness.</p><h3>Step 6: Deployment Challenges and Breakthroughs</h3><p>The final phase fell to me (Uneeba) — integrating our models into a deployable FastAPI application. This three-day journey tested every aspect of my technical skills and patience.</p><p>The initial FastAPI implementation looked perfect on paper but failed to deliver expected results in practice. We encountered mysterious bugs, dependency conflicts, and model serialization issues that seemed insurmountable. <strong>Our team lead Darain Hyder </strong>stepped in, consulting with experienced developers and debugging late into the night.</p><p>The breakthrough came when we pivoted to a dual-deployment strategy:</p><ol><li><strong>Streamlit Application</strong> for interactive user testing <a href="http://localhost:8501/">http://localhost:8501/</a></li><li><strong>FastAPI Service</strong> for programmatic access <a href="http://127.0.0.1:8000/docs">http://127.0.0.1:8000/docs</a></li></ol><p>Both applications successfully loaded our serialized model ( model.pkl) and vectorizer ( vectorizer.pkl), delivering real-time predictions with confidence scores.</p><h3>Results: When AI Meets Reality</h3><p>Our final system demonstrates remarkable performance across diverse text inputs:</p><h3>Real-World Test Cases</h3><h3>Conclusion: The Future of AI-Powered Digital Safety</h3><p>This two-week journey taught us that building effective AI systems requires more than just technical skills — it demands empathy, persistence, and collaborative problem-solving. Each team member brought unique strengths that contributed to our success:</p><ul><li><strong>Darain’s</strong> leadership and deep technical expertise guided our model selection</li><li><strong>Ahsan’s</strong> willingness to tackle unfamiliar territory with DistilBERT pushed our boundaries</li><li><strong>My own</strong> perseverance through deployment challenges ensured our solution reached end users</li></ul><h3>Looking Ahead</h3><p>While our 83% accuracy represents a significant achievement, we recognize opportunities for enhancement:</p><h3>📌 Future Work for Later</h3><ul><li>🔹 Fine-tune DistilBERT / BERT for improved accuracy (&gt;90%)</li><li>🔹 Add explainability with LIME/SHAP to understand predictions</li><li>🔹 Deploy on Heroku, AWS, or Render for public access</li><li>🔹 Collect more balanced datasets for fairer classification</li></ul><h3>The Bigger Picture</h3><p>Our cyberbullying detection system represents more than a technical achievement — it’s a step toward creating safer digital spaces for everyone. As AI continues to evolve, projects like ours demonstrate the potential for technology to address real-world social challenges.</p><p>The experience reinforced a fundamental truth: the most impactful AI solutions emerge not from perfect algorithms, but from dedicated teams willing to iterate, learn, and push through challenges together.</p><blockquote>The complete project, including source code, trained models, and deployment scripts, is available on GitHub. Special thanks to <strong>Ma’am @moneka and the Buildables Data Science Internship program </strong>for providing the opportunity to work on such meaningful challenges.</blockquote><h3>About the Authors</h3><blockquote><strong><em>Syed Darain Hyder Kazmi</em></strong><em> (Team Lead) — Data Science Intern specializing in NLP and machine learning modeldevelopment.</em></blockquote><blockquote><em>Connect on github and linkedin: </em><a href="http://github/"><em>https://github.com/DarainHyder</em></a><em> &amp;&amp; </em><a href="https://linkedin.com/in/syed-darain-hyder-kazmi"><em>https://linkedin.com/in/syed-darain-hyder-kazmi</em></a></blockquote><blockquote><strong><em>Uneeba</em></strong><em> — Data Science Intern focused on deployment, API development, and production systems.</em></blockquote><blockquote><em>Connect on github and linkedin: </em><a href="https://github.com/UNEEBASHAIKH"><em>https://github.com/UNEEBASHAIKH</em></a><em> &amp;&amp; </em><a href="https://www.linkedin.com/in/uneeba-shaikh-257625265/"><em>https://www.linkedin.com/in/uneeba-shaikh-257625265/</em></a></blockquote><blockquote><strong><em>Ahsan Atiq</em></strong><em> — Data Science Intern with expertise in exploratory data analysis and deep learning implementations.</em></blockquote><blockquote><em>Connect on github and linkedin: </em><a href="https://github.com/ahsanatiq05"><em>https://github.com/ahsanatiq05</em></a><em> &amp;&amp; </em><a href="https://www.linkedin.com/in/muhammad-ahsan-atiq-399653378/"><em>https://www.linkedin.com/in/muhammad-ahsan-atiq-399653378/</em></a></blockquote><p><em>Originally published at </em><a href="https://medium.com/@uneebashaikh/my-buildables-peer-project-journey-building-an-ai-cyberbullying-detection-system-1b1fabcb2417"><em>https://medium.com</em></a><em> on September 21, 2025.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bca923f52b92" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Buildables Fellowship Week 4 Recap: Regression, Classification, Preprocessing & Evaluation]]></title>
            <link>https://medium.com/@ahsanatiq789/buildables-fellowship-week-4-recap-regression-classification-preprocessing-evaluation-cb78ba776c80?source=rss-08c08c547d46------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb78ba776c80</guid>
            <category><![CDATA[pandas]]></category>
            <category><![CDATA[scikit-learn]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Ahsanatiq]]></dc:creator>
            <pubDate>Sun, 14 Sep 2025 14:12:06 GMT</pubDate>
            <atom:updated>2025-09-14T14:12:06.336Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Meta Description:</strong> A complete recap of Buildables Fellowship Week 4 — covering linear regression, multiple classification pipelines, preprocessing steps (encoding, scaling, imputation), and evaluation metrics on real datasets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*72GbOlZgl8wnXDmtYu0O1A.jpeg" /></figure><h3>Notebook 1 — Linear Regression</h3><p><strong>Goal:</strong> Predict continuous target values using linear regression.</p><p><strong>Key Technical Steps:</strong></p><ul><li>Load and inspect dataset structure</li><li>One-hot encode categorical columns</li><li>Split data into <strong>features (X)</strong> and <strong>target (y)</strong></li><li>Perform <strong>train/test split</strong> for model evaluation</li><li>Fit <strong>LinearRegression</strong> model on training data</li><li>Evaluate with:</li><li><strong>Mean Squared Error (MSE)</strong></li><li><strong>R² Score</strong></li><li>Visualize results:</li><li>Scatter plot of <strong>Actual vs Predicted</strong></li></ul><p><strong>Takeaway:</strong> Regression offers interpretability — coefficients quantify each feature’s contribution to predictions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IVya5Y-t8IHIHtrVpqUlNw.jpeg" /></figure><h3>Notebook 2 — Classification Algorithms</h3><p><strong>Goal:</strong> Predict binary classes (diabetes vs. non-diabetes).</p><p><strong>Key Technical Steps:</strong></p><ul><li>Load and inspect data with .head()</li><li>Handle missing values using <strong>SimpleImputer</strong></li><li>Apply <strong>MinMaxScaler</strong> to normalize numeric features</li><li>Maintain column names when converting scaled data back to a DataFrame</li><li>Split into train/test sets</li><li>Train a <strong>LogisticRegression</strong> classifier</li><li>Prepare evaluation metrics:</li><li><strong>Accuracy, Precision, Recall, F1-score</strong></li><li>Handle <strong>ConvergenceWarning</strong> by adjusting max_iter or improving scaling</li></ul><p><strong>Takeaway:</strong> Clean, scaled features improve model stability and convergence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*76Emfik3gaSP2cEnX-bwFw.jpeg" /></figure><h3>Notebook 3 — Classification Algorithms II</h3><p><strong>Goal:</strong> Classify employee attrition outcomes using multiple features.</p><p><strong>Key Technical Steps:</strong></p><ul><li>Inspect data for structure and missing values</li><li>Separate target column from features</li><li>Encode categorical variables using <strong>pd.get_dummies</strong></li><li>Scale all numeric features using <strong>MinMaxScaler</strong></li><li>Perform train/test split</li><li>Train <strong>LogisticRegression, SVM, Ensembles, Tree </strong>models</li><li>Evaluate using standard classification metrics</li></ul><p><strong>Takeaway:</strong> Encoding high-cardinality categorical data requires careful preprocessing to avoid performance issues.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZbXxtZT9Ngt45FUMlB6wqw.jpeg" /></figure><h3>Notebook 4 — Model Evaluation</h3><p><strong>Goal:</strong> Build a complete preprocessing → modeling → evaluation pipeline.</p><p><strong>Key Technical Steps:</strong></p><ul><li>Drop irrelevant text-heavy columns (Name, Ticket, Cabin)</li><li>Impute missing <strong>Age</strong> values with the mean</li><li>Scale numeric features (<strong>Age</strong>, <strong>Fare</strong>) using <strong>StandardScaler</strong></li><li>One-hot encode categorical features (Sex, Embarked, etc.)</li><li>Split into training/testing sets</li><li>Train a <strong>LogisticRegression</strong> classifier with max_iter=1000</li><li>Evaluate performance with:</li><li><strong>Accuracy Score</strong></li><li><strong>Precision, Recall, F1</strong></li><li><strong>Confusion Matrix</strong></li><li>ROC — AUC curve</li><li>Selected the best model by tring diffrent learning_rates and estimators</li></ul><p><strong>Takeaway:</strong> Proper preprocessing and evaluation ensure reliable model generalization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*d-z7NaqiTBo1srNe52XvUw.jpeg" /></figure><h3>Reflection of Week 4</h3><p>Week 4 was a big leap — from cleaning data to actually <strong>training models and interpreting results</strong>.<br> It showed me how important <strong>structured workflows and evaluation discipline</strong> are in real-world machine learning.</p><p>To keep improving, I plan to:</p><ul><li>Document preprocessing steps more clearly</li><li>Practice comparing different model types on the same dataset</li><li>Focus on understanding why models succeed or fail, not just the accuracy score</li></ul><p>This week proved that building good models is less about fancy algorithms — and more about <strong>careful preparation, evaluation, and iteration</strong>.</p><p>🔗 <strong>Connect with me:</strong><br><a href="https://github.com/ahsanatiq05/BuildablesDataScienceFellowship/tree/main/Week4"> GitHub Repo<br></a> <a href="https://www.linkedin.com/in/muhammad-ahsan-atiq-399653378/">LinkedIn Profile</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb78ba776c80" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DS Fellowship Week 1 Feedback Dashboard: A Data-Driven Analysis on Monday.com]]></title>
            <link>https://medium.com/@ahsanatiq789/ds-fellowship-week-1-feedback-dashboard-a-data-driven-analysis-on-monday-com-1e1e0016990e?source=rss-08c08c547d46------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e1e0016990e</guid>
            <dc:creator><![CDATA[Ahsanatiq]]></dc:creator>
            <pubDate>Sat, 06 Sep 2025 07:38:05 GMT</pubDate>
            <atom:updated>2025-09-06T07:55:32.234Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Meta Description:</strong> A deep dive into the DS Fellowship 1 Feedback Dashboard, transforming raw data into a strategic report. This article outlines key demographic findings, reveals hidden insights, and provides actionable recommendations to enhance future program iterations.</p><h3>From Foundational Skills to Real-World Impact</h3><p>As Week 3 of the Buildables Data Science Fellowship came to a close, my focus shifted from mastering Python libraries to applying them in a live environment. The project: a comprehensive analysis of the <strong>DS Fellowship 1 Feedback Dashboard on Monday.com</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZYtUOqIhyPhWFfiOwg7CrQ.png" /><figcaption>Monday.com Official Logo</figcaption></figure><p>This wasn’t just another exercise in data cleaning or visualization. It was an opportunity to translate raw data into a narrative that could drive tangible improvements for a real-world program. My goal was to move beyond surface-level metrics and unearth the strategic insights that would truly matter to program organizers.</p><h3>Key Findings: Uncovering the Story in the Data</h3><p>By combining various data points from the dashboard, I was able to identify several critical trends and hidden patterns.</p><h4>The Gender Imbalance is Significant</h4><p>The first and most striking discovery was the demographic skew. The program is overwhelmingly male, with males comprising <strong>84.6%</strong> of participants, while females make up a mere <strong>15.4%</strong>. This finding indicates a significant opportunity for targeted outreach and diversity initiatives in future cohorts to ensure the program reflects a wider audience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*T-BeBH6XLxHJ33isMKaQKQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*QSqVgKL8wzDqT35QVvv0qw.png" /></figure><h4>The Task Structure Paradox</h4><p>An interesting paradox emerged when analyzing feedback on the program’s daily tasks. While a remarkable <strong>100%</strong> of respondents stated they benefited from the daily tasks, a separate poll revealed that <strong>15.4%</strong> of participants disagreed with the weekly/daily frequency. This suggests a disconnect between the perceived value of the content and the flexibility of its delivery. The takeaway is clear: while the content is highly effective, the format could be optimized to better suit diverse participant schedules.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*dDnQyzImdPZGuP2q54iJgA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*UwijBJMcwhoW77SkgP-2fg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*UwijBJMcwhoW77SkgP-2fg.png" /></figure><p>A deeper dive into participant confidence levels revealed a clear correlation with their professional role. Those who understand the concepts are more likely to report being “very confident” about their future skills, while those who get somewhat conceptual understanding are more likely to reported being “somewhat confident.” This highlights a need for customized support — perhaps through dedicated mentoring or concept-focused sessions — to build confidence among early-career participants.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*ojRRlvxCQnUGgt4cMirJIA.png" /></figure><h4>Country-Specific Program Strengths</h4><p>By cross-referencing benefits with participant countries, I discovered that the program’s value proposition varied by region. Participants from Nigeria, for example, reported a higher benefit from <strong>“Collaboration”</strong> and <strong>“Program Structure,”</strong> suggesting these elements resonate strongly in that region. Conversely, benefits like <strong>“Mentoring”</strong> and <strong>“Networking”</strong> received lower scores from participants in Pakistan, indicating a potential area for localized enhancement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*Tb5_K0uE04STIatg-ICRHw.png" /></figure><h4>Top Improvement Suggestions</h4><p>Finally, a review of the qualitative feedback revealed two dominant themes for improvement: <strong>“Functionality”</strong> and <strong>“Community.”</strong> These suggestions were consistent across various roles, pointing to a universal desire for better tools and a more connected, collaborative environment.</p><h3>Recommendations for Future Cohorts</h3><p>Based on these data-driven insights, I’ve outlined several actionable recommendations to guide future iterations of the fellowship:</p><ol><li><strong>Strategically Boost Diversity:</strong> Implement a targeted recruitment strategy to increase female and underrepresented participation, with a goal of reaching at least 30% female representation in the next cohort.</li><li><strong>Introduce Flexible Task Options:</strong> Offer a tiered task structure that maintains the proven benefit of daily tasks while allowing participants to work at their own pace, addressing the 15.4% disagreement rate.</li><li><strong>Tailor the Curriculum by Role:</strong> Develop specialized modules or mentorship tracks to bolster confidence among junior and graduate-level participants, focusing on translating theoretical knowledge into practical skills.</li><li><strong>Localize Program Benefits:</strong> Strengthen networking and mentorship opportunities in specific regions, such as Pakistan, by introducing local community-building events or regional mentor connections.</li><li><strong>Enhance Community and Functionality:</strong> Prioritize platform and tool improvements based on participant feedback. This could include creating a more robust forum for collaboration and implementing new features to improve user experience.</li></ol><p>This project was a powerful reminder that data science is not an isolated discipline. Its true value lies in its ability to translate numbers into a strategic vision that can drive meaningful, data-informed decisions.</p><p>#BuildablesDataScienceFellowship1</p><p>🔗 <strong>Connect with me:</strong> <br><a href="https://github.com/ahsanatiq05/BuildablesDataScienceFellowship/tree/main/Week3">GitHub Repo</a> <br><a href="https://www.google.com/search?q=https://www.linkedin.com/in/your-username">LinkedIn Profile</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e1e0016990e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Buildables Fellowship Week 2 Recap: Data Cleaning, Visualization, Pandas Mastery & Real-World…]]></title>
            <link>https://medium.com/@ahsanatiq789/buildables-fellowship-week-2-recap-data-cleaning-visualization-pandas-mastery-real-world-ad39152290c9?source=rss-08c08c547d46------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad39152290c9</guid>
            <dc:creator><![CDATA[Ahsanatiq]]></dc:creator>
            <pubDate>Sun, 31 Aug 2025 11:09:44 GMT</pubDate>
            <atom:updated>2025-08-31T11:16:57.503Z</atom:updated>
            <content:encoded><![CDATA[<h3>🚀 Buildables Fellowship Week 2 Recap: Data Cleaning, Visualization, Pandas Mastery &amp; Real-World Analysis</h3><p><strong>Meta Description:</strong> A complete review of Buildables Fellowship Week 2 — covering data cleaning techniques, advanced pandas operations, data visualization with Matplotlib/Seaborn, and a real-world exploratory analysis project. Includes GitHub repo links and practice notebooks.</p><h3>What Happened in Week 2?</h3><p>Week 2 of the Buildables Data Science Fellowship focused on real data challenges: cleaning messy datasets, visualizing insights, and mastering pandas. The emphasis shifted from pure coding to practical data wrangling and presentation — all documented in my <a href="https://github.com/ahsanatiq05/BuildablesDataScienceFellowship/tree/main/Week2?utm_source=chatgpt.com">GitHub repo</a>.</p><p>Let’s dive into this week’s learning journey:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*cLVhYG5WhSQMgoxWVtOCOA.png" /><figcaption>Coding Illustrations</figcaption></figure><h3>Notebook 1: Statistics in Python</h3><p>The week began with hands-on experience in cleaning messy datasets — a crucial skill for any data scientist.</p><p>Highlights included:</p><ul><li>Removing duplicates and handling missing values</li><li>Imputing missing data using mean, median, or mode</li><li>Standardizing column names and types</li><li>String operations: trimming whitespace, lowercasing, replacing patterns</li><li>Filtering outliers using IQR and Z-score methods</li></ul><p>👉 <strong>Takeaway:</strong> Clean data is the foundation of every successful analysis. These techniques save hours down the line.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*PnZNT5CSBuk8tjzPtT_6jw.png" /><figcaption>Statistics</figcaption></figure><h3>Notebook 2: Data Cleaning and Visualization</h3><p>Once the data was cleaned, I dove deeper into pandas — the Python library for data analysis.</p><p>Key exercises included:</p><ul><li>Merging, joining, and concatenating DataFrames</li><li>Grouping data and aggregating statistics</li><li>Pivot tables for summarizing data</li><li>Applying custom functions with apply()</li><li>Efficiently indexing and slicing data</li></ul><p>👉 <strong>Takeaway:</strong> Pandas turns raw data into actionable insights. Mastering its functions speeds up analysis and unlocks new possibilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*oBJNqs5Uji9DuXZk005ooQ.png" /><figcaption>Data Visualization</figcaption></figure><h3>Notebook 3: Data Preprocessing and Feature Engineering</h3><p>Visualization makes data stories compelling. This notebook was all about turning numbers into pictures.</p><p>Some of the challenges were:</p><ul><li>Creating bar charts, histograms, and scatter plots</li><li>Using Seaborn to show distributions and relationships</li><li>Customizing plot styles, legends, and axes</li><li>Building multi-plot grids for comparative analysis</li><li>Annotating charts for clarity</li></ul><p>👉 <strong>Takeaway:</strong> Elegant, clear visuals help communicate findings to any audience — technical or not.</p><h3>Key Learnings from Week 2</h3><ul><li>Data cleaning is non-negotiable for quality analysis.</li><li>Pandas is the Swiss Army knife for data manipulation.</li><li>Visualization skills turn analysis into powerful communication.</li><li>EDA skills translate to any dataset or problem domain.</li><li>Documenting work in GitHub ensures reproducibility and collaboration.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*FdbWNFJlcDboD-x8sPrztw.png" /><figcaption>Feature Engineering</figcaption></figure><h3>Reflection</h3><p>Week 2 was a shift from theory to real-world practice. I realized that most of a data scientist’s time goes into cleaning and preparing data rather than modeling. One personal challenge was balancing fellowship assignments with other commitments, which sometimes caused delays in submissions.</p><p>To improve, I’ve decided to:</p><ul><li>Stick to a fixed schedule for weekly tasks</li><li>Share short progress updates on Discord</li><li>Review my notebooks on GitHub before submitting to avoid last-minute stress</li></ul><p>This week reminded me that consistency matters more than speed — and with discipline, the process becomes smoother and more rewarding.</p><p>🔗 <strong>Connect with me:</strong></p><ul><li><a href="https://github.com/ahsanatiq05/BuildablesDataScienceFellowship/tree/main/Week2">GitHub Repo</a></li><li><a href="https://www.linkedin.com/in/muhammad-ahsan-atiq-399653378/?utm_source=chatgpt.com">LinkedIn Profile</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad39152290c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Buildables Fellowship Week 1 Recap: Python Basics, OOP, Algorithms & Mini Data Science Lab]]></title>
            <link>https://medium.com/@ahsanatiq789/buildables-fellowship-week-1-recap-python-basics-oop-algorithms-mini-data-science-lab-ef6c5ac3bc4b?source=rss-08c08c547d46------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef6c5ac3bc4b</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Ahsanatiq]]></dc:creator>
            <pubDate>Mon, 25 Aug 2025 09:06:12 GMT</pubDate>
            <atom:updated>2025-08-25T09:06:12.465Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Meta Description</strong>: A full recap of Buildables Fellowship Week 1 — from Python fundamentals and OOP exercises to algorithms like linked lists, dynamic programming, and a mini data science project using scikit-learn. Includes GitHub repo and practice notebooks.</p><h3>What Is the Buildables Fellowship?</h3><p>The <strong>Buildables Data Science Fellowship</strong> is all about <em>learning by building</em>. Instead of passively watching tutorials, we dive into projects and problem-solving from day one.</p><p>Week 1 was packed. I started with Python basics, built up to object-oriented programming, explored classic algorithms, and even completed my first mini data science project.</p><p>All of it is documented in my <a href="https://github.com/ahsanatiq05/BuildablesDataScienceFellowship/tree/main/Week1">GitHub repo</a> so you can follow along.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5qunNrXlTHIL4k9ZkI-6OQ.png" /></figure><h3>Notebook 1: Python Fundamentals</h3><p>I began the week by brushing up on the building blocks of Python. These problems might seem basic, but they build the logical foundation needed for more advanced work.</p><p>Highlights included:</p><ul><li>Adding numbers from user input</li><li>A simple calculator (addition, subtraction, multiplication, division)</li><li>Checking if numbers are even, odd, or the largest among three</li><li>String challenges like reversing text, counting vowels, and checking palindromes</li><li>Generating the Fibonacci sequence</li></ul><p>Even these “starter” problems had lessons. For example, palindrome checks made me appreciate Python’s slicing tricks, while Fibonacci showed the difference between iteration and recursion.</p><p>👉 <strong>Takeaway</strong>: Mastering small problems early compounds into confidence for complex tasks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Yh9GwRV-ArSp2gKL" /></figure><h3>Notebook 2: Intermediate Python &amp; OOP</h3><p>With the basics refreshed, I moved into problems that introduced object-oriented thinking and slightly more logic-heavy challenges.</p><p>Key exercises included:</p><ul><li>The classic FizzBuzz</li><li>Prime number checker</li><li>A number guessing game</li><li>Checking if two words are anagrams</li><li>Temperature conversions (Celsius to Fahrenheit/Kelvin)</li><li>Creating a custom iterator class for even numbers</li></ul><p>The iterator exercise stood out — it revealed how Python handles loops behind the curtain and gave me a taste of designing reusable code.</p><p>👉 <strong>Takeaway</strong>: OOP concepts like classes and iterators turn scripts into scalable, reusable code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3wnsnR2X-IBlVA8T" /><figcaption>Object Oriented</figcaption></figure><h3>Notebook 3: Algorithms &amp; Data Structures</h3><p>This notebook was the turning point of the week. I dived into algorithms and data structures — topics that form the backbone of computer science.</p><p>Some of the challenges were:</p><ul><li>Recursive factorial function</li><li>Linked list implementation (with palindrome check &amp; reverse)</li><li>Binary Search Tree with insertion, deletion, and search</li><li>Kadane’s Algorithm for maximum subarray sum</li><li>Longest palindromic substring</li><li>Merge intervals and word search in a 2D board</li></ul><p>These problems forced me to think about efficiency. Kadane’s Algorithm in particular was an “aha!” moment — showing how dynamic programming transforms brute-force solutions into elegant ones.</p><p>👉 <strong>Takeaway</strong>: Algorithms aren’t just interview prep — they’re practical tools for writing efficient, real-world code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Lm_pPaPc_qcNeVPv" /><figcaption>Data Structures (Graph)</figcaption></figure><h3>Notebook 4: Mini Data Science Lab</h3><p>To wrap up Week 1, I tackled my first <strong>data science workflow</strong> using the classic Wine dataset from scikit-learn.</p><p>The workflow included:</p><ul><li>Loading the dataset into pandas DataFrame</li><li>Exploring features and data types</li><li>Checking null values and shape</li><li>Splitting into train/test sets</li><li>Describing statistical properties (mean, std, min, max)</li></ul><p>Even though the dataset was small, the exercise was valuable. It showed me how EDA (Exploratory Data Analysis) and preprocessing set the stage for machine learning models.</p><p>👉 <strong>Takeaway</strong>: It’s not about dataset size — it’s about learning the process of preparing data for ML.</p><h3>Key Learnings from Week 1</h3><ul><li>Fundamentals matter: loops, strings, and functions show up everywhere.</li><li>OOP makes code reusable and scalable.</li><li>Algorithms like linked lists, trees, and DP sharpen problem-solving skills.</li><li>Even a toy dataset can teach you the workflow of real ML projects.</li><li>Versioning everything on GitHub ensures reproducibility and collaboration</li></ul><h3>FAQs</h3><p><strong>Q1: Why start with beginner problems if the goal is data science?</strong><br> Because strong fundamentals make advanced ML easier to grasp.</p><p><strong>Q2: Do I need to master algorithms for data science?</strong><br> Yes — algorithms train you to think in steps, which is essential in ML.</p><p><strong>Q3: What’s the best way to practice these problems?</strong><br> Clone the repo, run the notebooks, and add your own variations.</p><p><strong>Q4: Which dataset did you use in the project?</strong><br> The Wine dataset from scikit-learn.</p><p><strong>Q5: How can I follow your progress?</strong><br> 🔗 <a href="https://www.linkedin.com/in/muhammad-ahsan-atiq-399653378/">LinkedIn Profile</a><br> 💻 <a href="https://github.com/ahsanatiq05/BuildablesDataScienceFellowship">GitHub Repo</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef6c5ac3bc4b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>