Posts

Image
How I Built an AI-Powered Anti-Counterfeit Drug Verification System with Python & Gradio A comprehensive tutorial on combining official registry lookups, TF-IDF character n-grams, Random Forest, Anomaly Detection, and barcode scanning into a real-time web application. Author: Idris Abdulhamood | Category: Machine Learning / HealthTech 1. The Problem: Counterfeit Pharmaceuticals Counterfeit and substandard medications pose a severe threat to public health worldwide, particularly in developing economies. Fraudulent actors often replicate genuine packaging while altering active ingredients, spoofing brand names, or manufacturing fake registration numbers (e.g., NAFDAC Registration Numbers). While official regulatory agencies maintain digital registries, manual verification can be slow, and traditional search engines fail when dealing with minor typos, corrupted registration formats, or novel counterfeit mutations. ...
🛡️ Building a Dual-Layer AI Engine for NAFDAC Drug Verification Combining Exact Database Lookups with Machine Learning Fraud Inference for Real-Time Pharmaceutical Anti-Counterfeiting. 1. System Architecture: The Dual-Layer Verification Flow Standard verification systems rely solely on exact string matching against government registries. However, counterfeiters frequently exploit this by using slight spelling variations or reusing authentic codes on fake packaging. To solve this, we built a Dual-Layer Verification Architecture : 🟢 Layer 1: Direct Registry Lookup (Deterministic) Performs an instant hash/normalized check against official NAFDAC records. If an exact match is found, it immediately confirms the item as AUTHENTIC (100% Confidence) without triggering AI compute overhead. 🟡 Layer 2: Machine Learning Inference Engine ...
Why & How We Generated Synthetic Counterfeit Data for AI Drug Verification 1. The "Why": Solving the Positive-Class Bias Problem When building an AI system to detect counterfeit pharmaceuticals, you face an immediate data challenge: official government registries (like the NAFDAC Greenbook) only record authentic, approved products. If you train a Machine Learning model exclusively on genuine drug records: The AI Learns Nothing About Fraud: It only sees "good" data, so it defaults to predicting that every drug is 100% authentic. Extreme Class Imbalance: Without negative samples (counterfeits), supervised classifiers like Random Forest cannot establish a decision boundary to separate genuine products from fraudulent ones. To teach an AI how to spot fake drugs, you must show it what fake drugs look like. Because there is no public "official database of counterfeit dr...
🕷️ Scraping NAFDAC Greenbook from A to Z: How I Extracted 8,600+ Official Records into CSV Author: Idris Abdulhamood  |  Category: Web Scraping, Data Engineering & Automation The NAFDAC Greenbook ( greenbook.nafdac.gov.ng ) is the official public portal for all approved drugs, medical devices, herbals, and biologics registered by the Nigerian government. For data analysts, researchers, or software engineers, having this database in a clean, structured .csv format opens up endless possibilities—from fraud detection systems to market research. However, getting this data off the website and into an Excel sheet wasn't as simple as running pandas.read_html() . Here is the complete journey of how I scraped the entire portal from A to Z—including the wall I hit, why fast scripts failed, and the solution that successfully captured all 8,608 official entries . 🛑 P...
How to Update a YouTube Channel Link in an Existing Android App Using Kotlin How to Update a YouTube Channel Link in an Existing Android App Using Kotlin Author: Engineer Abdulhameed Idris Adedamola Introduction One of the most common maintenance tasks in Android application development is updating external links after deployment. Businesses frequently change their official websites, YouTube channels, or social media accounts, and mobile applications must also be updated to reflect those changes. In this tutorial, we will update the YouTube channel link inside an existing Android application built with Kotlin without rebuilding the entire application. Scenario: The client migrated to a new YouTube channel and requested that the application open the new channel whenever users tap the YouTube icon. Step 1: Open the Android Project Launch Android Studio and open the existing project. Allow Gradle to finish syncing before making any modifications. S...
How to Transfer Shinhan Financial Certificate from PC to SOL Global App (Step-by-Step Guide 2026) Disclaimer: This is an independent educational tutorial and is not affiliated with or endorsed by Shinhan Bank. All trademarks belong to their respective owners. Introduction Transferring your Shinhan Financial Certificate from PC to mobile allows you to securely access banking services using the SOL Global app. This guide explains the process step by step in a simple and safe way. Step 1: Login to Shinhan Internet Banking Open the official Shinhan Internet Banking website Log in with your account credentials Go to Certificate Center or Security Section Step 2: Open Certificate Management Select Financial Certificate Management Complete identity verification if required Proceed with system security checks Step 3: Complete YesKey Verification A verification code will appear on your screen You will receive an SMS on your registered phone num...
Mastering Python Functions: Building a Dynamic Ticket Revenue Calculator Mastering Python Functions: Building a Dynamic Ticket Revenue Calculator Python Fundamentals • Clean Code • Tutorial When you first start learning Python, it’s easy to get comfortable writing linear, step-by-step code. You assign some variables, run a calculation, print the result, and call it a day. But what happens when your data changes? What if your theater goes from selling $7.99 matinee tickets to $16.99 IMAX blockbusters? If you hardcode your values, your code breaks—or worse, you're forced to rewrite it constantly. In this post, we’ll look at the evolution of a Theater Ticketing Calculator to see how Python functions allow you to write reusable, dynamic, and clean code. Step 1: The Basic Fixed-Price Function Let’s start simple. Imagine your theater has a flat rate of $7.99 per ticket. ...