Portfolio  ·  2024 – 2025
Shagun
Tyagi
AI / ML Engineer
Envigo UK  ·  MBA Candidate
ST
Shagun Tyagi
AI / ML Engineer
Envigo · UK AI Consultancy  |  MBA Candidate
I build production-grade AI/ML systems that solve real business problems — from LLM-powered automation pipelines and WhatsApp chatbots to computer vision models and full-stack health applications. Published IoT health researcher, Airtel alumni, and MBA candidate.
5+Prod Systems
1Publication
92%DR Accuracy
3+Yrs Exp
View Full Profile on LinkedIn
Work Experience
2023 — Present
AI / ML Engineer — Envigo (UK Software & AI Consultancy)
Envigo is a UK-based software and AI consultancy delivering intelligent automation solutions for enterprise clients. As an AI/ML Engineer, I architect and ship end-to-end production AI systems across diverse domains.

My work spans LangChain/FastAPI agentic pipelines, automated document generation systems, multilingual conversational AI, and computer vision integrations. I own the full lifecycle: requirements, ML design, Python backend, deployment, and client handover. I also lead ML strategy and decision-making for client engagements, translating business requirements into data-driven technical roadmaps.
2021 — 2023
Software Engineer — Airtel (Bharti Airtel)
Worked within Airtel's engineering teams building and maintaining backend services and data pipelines at telecom scale. Gained deep expertise in large-scale distributed systems, high-availability REST APIs, and production software delivery across millions of users.

Contributed to network automation tools that reduced manual intervention and improved operational efficiency. This role strengthened my engineering fundamentals and instilled a production-first mindset that I apply to all AI/ML work.
2019 — 2021
ML Lead — MIET (Undergraduate Research Leadership)
During my B.Tech, served as ML Lead for the department's research vertical. Led a team on ECG/PPG-based health monitoring research that resulted in a published academic paper. Directed prototype development, managed timelines, mentored junior members, and presented findings. This role built my research methodology, team leadership, and ML engineering foundations from the ground up.
— 1 —
Education
2025 — Present
Master of Business Administration (MBA)
Pursuing an MBA alongside a full-time engineering career, with focus on strategic management, product leadership, and entrepreneurship. The goal is to bridge the gap between cutting-edge AI engineering and business decision-making — enabling me to drive ML initiatives not just technically but strategically, from product definition through commercial outcomes.
2019 — 2023
B.Tech in CSE (IoT Specialization) — MIET
Bachelor's in Computer Science Engineering with specialization in Internet of Things. Graduated with distinction in ML-related coursework. Served concurrently as ML Lead for departmental research.

Key academic projects included a Diabetic Retinopathy (DR) classification CNN achieving 92% accuracy on retinal fundus images, published ECG/PPG health monitoring research, and multiple IoT prototype systems integrating edge sensors with cloud dashboards.
📄 Published Research

ECG & PPG Based Health Monitoring System

Co-authored during B.Tech ML leadership. The paper presents a real-time wearable cardiac monitoring framework using ECG (electrocardiogram) and PPG (photoplethysmography) sensors on IoT hardware. Key contributions: signal denoising algorithms, R-peak detection for HRV analysis, anomaly detection for arrhythmia, and embedded ML inference running on resource-constrained microcontrollers. Demonstrates clinically relevant accuracy on benchmark datasets.

— 2 —
Technical Skills
AI / ML & Large Language Models
LangChainOpenAI API (GPT-4/3.5)FastAPIPyTorchScikit-learnCNNsRAG PipelinesPrompt Engineering
Backend & API Engineering
Python 3.10+Node.jsExpress 5FlaskREST APIsWebSocketsOAuth 2.0
Cloud, Data & DevOps
Google Cloud PlatformMongoDB Atlasgspread / Sheets APIGoogle Drive APIDockerMongoose
Frontend & Visualization
JavaScript (ES6+)React.jsHTML5 / CSS3Canvas APIChart.js
Automation, Scraping & Document Tools
python-docxReportLab PDFSeleniumpandasTwilio (Content API)WhatsApp Business API
Biomedical & IoT
ECG Signal ProcessingPPG AnalysisHRV DetectionEmbedded MLIoT Prototyping
— 3 —
What I Build

AI Automation Pipelines

End-to-end LLM systems: document generation, content enhancement, structured output, RAG-based knowledge retrieval.

Backend APIs & Services

Production FastAPI / Flask / Express backends with MongoDB, authentication, and clean RESTful architecture.

Chatbots & Agents

WhatsApp interactive bots via Twilio, multilingual store assistants, LangChain tool-using agents.

ML Model Development

Computer vision CNNs (92% DR accuracy), health-signal classifiers, IoT embedded inference.

Document & Data Automation

Google Sheets pipelines, branded Word/PDF generation, web scraping, incremental processing.

Full-Stack Applications

Personal Health OS, AI finance apps, HTML5 arcade games — full frontend-to-database delivery.

— 4 —
Envigo Auto-Proposal Generator
🚀 Live at Envigo · Fully Automated · Client-Facing
An end-to-end Python pipeline that reads client intake data from Google Forms/Sheets, enriches it with OpenAI GPT, and generates branded Word document proposals — zero human writing required.
The Problem: Envigo's consultants were spending 2–3 hours manually writing each client proposal — personalising the copy, formatting the document, embedding branding assets. This was a direct bottleneck on revenue capacity.

The Solution: A fully automated pipeline where a client fills a Google Form → the data lands in Google Sheets → a background Python process detects new rows, calls OpenAI to rewrite and enhance each answer into professional proposal language, then populates a reusable .docx template and saves the branded proposal to Google Drive — ready to send within minutes.
  • Google Sheets ingestion via gspread + service account (credentials.json). Reads form responses row by row with incremental processing tracked in processed_rows.json to avoid re-running.
  • OpenAI content enhancement using openai.ChatCompletion.create (v0.28 syntax). Each field gets a targeted prompt that transforms raw client answers into polished consultancy prose.
  • python-docx template engine: placeholder replacement across paragraphs, tables, and headers. Special XML run-merging logic handles split runs that broke naive find-replace.
  • Google Drive API logo embedding: downloads the client's logo via Drive API (not raw HTTP requests, which failed on auth-gated files) and inserts it as an image at the correct template position.
  • Error handling & recovery: graceful JSON parse failures, OpenAI retry logic, and Drive API fallback keep the pipeline running unattended.
PythonOpenAI GPT-4gspreadpython-docxGoogle Drive APIJSON
— 5 —
Stitch — EasyBuy Store Assistant
💬 WhatsApp · 90+ Locations · Multilingual
A multilingual AI-powered WhatsApp store locator and assistant for EasyBuy (Landmark Group), featuring interactive button menus, a ReportLab PDF store directory, and a Selenium web scraper for live data collection.
The Problem: EasyBuy customers in India needed a quick way to find their nearest store and get product info via WhatsApp — their dominant communication channel. The existing flow was a dead-end text menu with zero AI understanding.

The Solution: "Stitch" — a Flask-based WhatsApp chatbot upgraded from static text menus to Twilio Content API interactive buttons. Customers see tappable option lists instead of typing responses. An underlying LangChain agent with a multilingual system prompt understands intent in Hindi and English, queries a structured store database, and returns contextual answers.
  • WhatsApp Interactive Buttons via Twilio Content API: migrated from plain text menus to list_picker and button templates, dramatically improving UX and reducing drop-off.
  • Web Scraping via Selenium (headless Chrome): crawled easybuyindia.com which uses JavaScript rendering — static requests couldn't extract store data. Automated extraction of 90+ store locations, hours, addresses.
  • ReportLab PDF Directory: generated a branded multi-page store directory PDF covering all 90+ locations with Landmark Group styling — used by the sales team for print distribution.
  • Multilingual LangChain agent: system prompt handles code-switching between Hindi/English. The agent classifies intent, routes to the right tool (store lookup, product info, FAQ), and returns formatted replies.
  • Flask webhook: receives Twilio callbacks, maintains session state per user phone number, dispatches to the LangChain agent, and formats the response for WhatsApp delivery.
FlaskLangChainTwilio Content APISeleniumReportLabWhatsApp API
— 6 —
Personal Health OS
🏥 13 Collections · Full REST API · Real-Time Tracking
A comprehensive personal health management platform built on Express 5 and MongoDB Atlas with 13 data collections, a full REST API, and analytics dashboards for tracking vitals, symptoms, medications, and wellness trends.
The Concept: A single unified system to replace the fragmented mess of health tracking apps — one platform that connects vitals, symptoms, medications, doctor notes, sleep, diet, and exercise into an intelligent, queryable health record you control.

The Architecture: Backend built on Express 5 (async error handling, new routing API) with Mongoose schemas for strict data validation across 13 MongoDB Atlas collections. Every health data type (vitals, symptoms, medications, appointments, sleep logs, diet entries, exercise sessions, lab results, body metrics, mood, water intake, goals, and user profile) has its own model with validation, indexing, and computed fields.
  • 13-collection MongoDB Atlas schema: carefully normalised with references between collections (e.g. medications linked to appointments, symptoms linked to vitals readings) to support complex health queries.
  • Full REST API: 50+ endpoints with CRUD operations, date-range filtering, aggregation pipelines for trend analytics, and paginated responses for large datasets.
  • Express 5 features: leverages native async/await route handlers with automatic error propagation — no more try-catch boilerplate or wrapping with asyncHandler.
  • Analytics & Insights: MongoDB aggregation pipelines compute weekly/monthly trends, anomaly flags (e.g. BP outside normal range), and correlation views between sleep and mood scores.
  • Authentication: JWT-based auth with refresh tokens, role-based access, and secure health data isolation per user.
Express 5MongoDB AtlasMongooseNode.jsREST APIJWT Auth
— 7 —
FinMind — AI Personal Finance App
💰 GitHub Pages · OpenAI Insights · Zero Backend Cost
A fully client-side AI-powered personal finance application hosted on GitHub Pages, using the MongoDB Atlas Data API and localStorage-managed OpenAI keys to deliver AI spending analysis with zero server infrastructure.
The Challenge: Build a real AI finance app with no monthly hosting costs. No backend server, no paid database tier, no cloud functions — yet still provide real-time data persistence, AI insights, and interactive charts.

The Innovation: Use MongoDB Atlas Data API (direct HTTP from browser) for persistence, localStorage for the OpenAI API key (user-managed, never leaves their device), and React + Chart.js for a single-file deployable SPA that runs entirely from GitHub Pages CDN.
  • localStorage API key pattern: User enters their OpenAI key once → stored in localStorage → all AI calls made direct from browser. Key is never transmitted to any third-party server. Clean UX with key-edit modal.
  • MongoDB Atlas Data API: REST-based database access without a traditional backend. Create, read, update, delete financial transactions via fetch() directly from the React frontend.
  • AI Spending Insights: Monthly transaction data sent to GPT-4 with a structured prompt → returns categorised spending analysis, savings recommendations, and anomaly flags displayed as readable insights.
  • Budget Goal Tracking: Set monthly category budgets → real-time progress bars calculated against actual spending → alerts when approaching or exceeding limits.
  • Chart.js Visualisations: Doughnut chart for category breakdown, line chart for monthly spending trends, bar chart for income vs expense comparison — all computed client-side.
React.jsOpenAI GPT-4MongoDB Atlas Data APIChart.jsGitHub PageslocalStorage
— 8 —
CatchMaster — HTML5 Arcade Game
🎮 Zero Dependencies · AI-Adaptive · Pure JavaScript
A zero-dependency HTML5 Canvas arcade game with an AI-adaptive difficulty engine and a miss-streak mechanic — all in vanilla JavaScript, running directly in any browser without a build step.
The Design Philosophy: Most browser games feel static — the difficulty never adapts to you. CatchMaster uses a real-time adaptive AI system that continuously observes player performance and tunes the game's parameters to keep the player in a "flow state" — challenging but not frustrating.

Core Systems:
  • Adaptive Difficulty Engine: tracks a rolling hit/miss ratio over the last N frames. If the player is catching everything easily → spawns more objects, increases fall speed, shrinks catch radius. If miss rate spikes → eases up. Parameters update smoothly without jarring jumps.
  • Miss-Streak Mechanic: consecutive misses trigger visual and audio cues (screen flash, shake effect) and accelerate game-over conditions — adds tension and stakes beyond a simple lives counter.
  • Canvas 2D Rendering: all game objects (falling items, catcher, particles, score UI) drawn via Canvas 2D API with requestAnimationFrame for a locked 60fps loop. No WebGL, no libraries.
  • Particle System: catch events spawn a burst of colour-coded particles that decay over time — coded as a lightweight object pool to avoid garbage collection pauses mid-game.
  • High Score Persistence: scores persisted to localStorage with a leaderboard view showing top 5 sessions, date-stamped.
HTML5 CanvasVanilla JavaScriptAdaptive AIrequestAnimationFramelocalStorage
— 9 —
Diabetic Retinopathy Detector
👁️ 92% Accuracy · CNN · Clinical Decision Support
A deep learning model that classifies the severity of diabetic retinopathy from retinal fundus photographs, achieving 92% accuracy — built as a B.Tech final year project with real clinical dataset training.
Clinical Context: Diabetic Retinopathy (DR) is the leading cause of blindness in working-age adults worldwide. Early detection via retinal imaging is critical but requires specialist ophthalmologists — a bottleneck in under-resourced healthcare settings. This project demonstrates that a CNN can automate the screening step to support clinical workflows.

Model Architecture & Training:
  • Dataset: trained on retinal fundus images with 5-class DR severity labels (No DR, Mild, Moderate, Severe, Proliferative DR). Applied class-weighting to handle the severe class imbalance in real clinical datasets.
  • CNN Architecture: custom convolutional architecture in PyTorch with 6 conv blocks, batch normalisation, dropout regularisation, and global average pooling before the classifier head — designed to balance depth with the limited dataset size.
  • Preprocessing Pipeline: fundus images resized and normalised, with CLAHE (Contrast Limited Adaptive Histogram Equalisation) applied to enhance the visibility of microaneurysms and haemorrhages before model input.
  • Data Augmentation: random horizontal/vertical flips, rotation, brightness jitter — critical for a medical dataset where genuine variation is limited and overfitting risk is high.
  • Results: 92% accuracy on the held-out test set. Confusion matrix analysis showed strongest performance on No-DR and Proliferative-DR classes; model struggles most with the Mild/Moderate boundary — consistent with published literature.
  • Grad-CAM Visualisation: implemented gradient-weighted class activation maps to visually verify that the model attends to clinically relevant regions (optic disc, blood vessels) rather than image artefacts.
PyTorchCNNPythonCLAHE PreprocessingGrad-CAMMedical Imaging
— 10 —
Research & Other Work
📄 IEEE / Academic Publication

ECG & PPG Based Real-Time Health Monitoring System

Context: Co-authored during B.Tech ML Leadership at MIET. The paper presents a complete IoT health monitoring stack for cardiac wellness tracking using wearable biosensors.

Key Contributions: (1) Signal acquisition pipeline for ECG and PPG on microcontroller hardware. (2) Bandpass filtering and wavelet-based denoising to clean noisy wearable signals. (3) Pan-Tompkins R-peak detection algorithm for real-time HRV (Heart Rate Variability) computation. (4) Anomaly classification using a lightweight decision-tree model deployable on embedded hardware. (5) Cloud dashboard integration for long-term trend visualisation.

Significance: The system demonstrates sub-30ms latency inference on edge hardware — making it viable for real-time wearable health monitoring without constant cloud connectivity.

🎮 Python Mario Recreation
GitHub
A Pygame-based Mario recreation with custom scrolling levels, enemy AI (patrol + chase behaviours), collectables, coin counters, a lives system, and a sound engine. Built with a clean game-loop architecture (update/draw separation). The project has a redesigned GitHub Pages landing site showcasing gameplay screenshots and controls — built as a case study in packaging a Python game for web audiences.
PythonPygameGitHub PagesGame AI
— 11 —
Get In Touch
Open to AI/ML engineering roles, consulting projects, and collaboration on impactful systems. Based in Uttar Pradesh, India — available for remote work globally and on-site in the UK.
LinkedIn
in/theshaguntyagi
GitHub
@theshaguntyagi
Email
shagun@envigo.co.in
Location
Uttar Pradesh, India · Remote Global
Current Company
Envigo — UK AI & Software Consultancy
— 12 — Back to Profile
Shagun Tyagi 1 / 13
ST
Shagun Tyagi
AI / ML Engineer
Envigo UK · MBA Candidate
I build production AI/ML systems: LLM pipelines, WhatsApp bots, computer vision models, and full-stack applications. Published IoT health researcher.
5+Prod Systems
92%DR Accuracy
1Publication
3+Yrs Exp
View on LinkedIn
Swipe left to turn page

Work Experience

2023 – Present
AI / ML Engineer — Envigo (UK)
Builds production LangChain/FastAPI systems, auto-proposal pipelines (OpenAI + python-docx + Google Sheets), WhatsApp chatbots via Twilio, and leads ML strategy for enterprise clients.
2021 – 2023
Software Engineer — Airtel
Backend services and data pipelines at telecom scale. Large-scale distributed systems, high-availability REST APIs, and network automation tools for millions of users.
2019 – 2021
ML Lead — MIET
Led ML research vertical, directed ECG/PPG health monitoring research (published paper), mentored teams, deployed IoT prototypes.

Education

2025 – Present
MBA — Business Administration
Strategic management, product leadership, and entrepreneurship — bridging AI engineering with business decision-making.
2019 – 2023
B.Tech CSE (IoT) — MIET
Specialized in IoT + CS. ML Lead role. Published ECG/PPG paper. Diabetic retinopathy CNN — 92% accuracy.
📄 Published

ECG & PPG Health Monitoring System

Real-time cardiac monitoring with wearable sensors. Signal denoising, HRV analysis, anomaly detection, embedded ML on microcontrollers. Sub-30ms inference latency.

Technical Skills

AI / ML & LLMs
LangChainOpenAI APIFastAPIPyTorchRAGPrompt Engineering
Backend
PythonNode.jsExpress 5FlaskREST APIs
Cloud & Data
Google CloudMongoDB AtlasgspreadDrive APIDocker
Frontend
JavaScriptReactHTML5/CSS3Canvas API
Automation & Tools
python-docxSeleniumpandasReportLabTwilio
Biomedical & IoT
ECG/PPG ProcessingHRV AnalysisEmbedded ML

Auto-Proposal Generator

🚀 Live · Fully Automated · Client-Facing
Google Forms → OpenAI GPT → branded .docx proposals, fully automated, zero manual writing.
  • Google Sheets ingestion via gspread service account with incremental row tracking (processed_rows.json)
  • OpenAI content enhancement: each field gets a targeted prompt transforming raw answers into polished consultancy prose
  • python-docx template engine: handles split XML runs that break naive find-replace
  • Google Drive API logo embedding: downloads logos via Drive API (not raw HTTP) and inserts into template
  • Error recovery: OpenAI retry logic, graceful JSON parse failures, unattended operation
PythonOpenAI GPT-4gspreadpython-docxDrive API

Stitch — EasyBuy Assistant

💬 WhatsApp · 90+ Locations · Multilingual
Multilingual AI WhatsApp chatbot for Landmark Group with interactive button menus, PDF store directory, and Selenium scraper.
  • Twilio Content API buttons: upgraded from plain text menus to list_picker interactive templates — dramatic UX improvement
  • Selenium scraper: headless Chrome to scrape JS-rendered easybuyindia.com for 90+ store locations
  • ReportLab PDF directory: branded multi-page store directory for 90+ locations used by sales team
  • Multilingual LangChain agent: handles Hindi/English code-switching, intent classification, store lookup, FAQ
  • Flask webhook: receives Twilio callbacks, maintains per-user session state, formats WhatsApp replies
FlaskLangChainTwilioSeleniumReportLab

Personal Health OS

🏥 13 Collections · REST API · Real-Time Analytics
Express 5 + MongoDB Atlas health management platform — vitals, symptoms, medications, sleep, diet, and analytics in one system.
  • 13-collection MongoDB schema: vitals, symptoms, medications, appointments, sleep, diet, exercise, labs, body metrics, mood, water, goals, user profile — fully normalised with cross-references
  • 50+ REST endpoints: CRUD, date-range filters, aggregation pipelines for trends, paginated responses
  • Express 5 async routing: native async/await without try-catch boilerplate
  • Trend analytics: MongoDB aggregation computes weekly/monthly health trends, BP anomaly flags, sleep-mood correlations
  • JWT authentication with refresh tokens and per-user data isolation
Express 5MongoDB AtlasMongooseJWT Auth

FinMind — AI Finance App

💰 GitHub Pages · Zero Backend Cost · AI Insights
Client-side AI finance app with MongoDB Atlas Data API, localStorage API keys, OpenAI spending insights, and Chart.js dashboards — zero hosting cost.
  • localStorage API key pattern: user's OpenAI key stored locally, never leaves their device — privacy-first
  • MongoDB Atlas Data API: direct browser-to-database REST calls, no traditional backend server
  • GPT-4 spending analysis: monthly transactions sent to OpenAI → categorised insights + savings recommendations
  • Budget goal tracking: real-time progress bars vs. monthly category limits with overspend alerts
  • Chart.js visualisations: doughnut (categories), line (monthly trends), bar (income vs expense)
ReactOpenAIAtlas Data APIChart.jsGitHub Pages

CatchMaster Arcade

🎮 Adaptive AI · Zero Dependencies · 60 FPS
Vanilla JS HTML5 Canvas arcade game with real-time adaptive difficulty engine keeping players in the "flow state".
  • Adaptive difficulty engine: rolling hit/miss ratio → dynamically tunes spawn rate, fall speed, catch radius without jarring jumps
  • Miss-streak mechanic: consecutive misses trigger screen flash + shake + accelerated game-over conditions
  • Canvas 2D at 60fps: all objects drawn via requestAnimationFrame loop — no libraries needed
  • Particle system: object-pooled burst particles on catch events to avoid mid-game GC pauses
  • High score board persisted in localStorage with date-stamped leaderboard view
HTML5 CanvasVanilla JSAdaptive AIGame Loop

Diabetic Retinopathy Detector

👁️ 92% Accuracy · CNN · Medical Imaging · PyTorch
Deep learning CNN that classifies DR severity from retinal fundus photos — 5-class grading, Grad-CAM visualisation, clinically motivated preprocessing.
  • 5-class severity classification: No DR → Mild → Moderate → Severe → Proliferative DR, trained with class-weighting for imbalanced data
  • CLAHE preprocessing: Contrast Limited Adaptive Histogram Equalisation enhances microaneurysms and haemorrhages before model input
  • Custom CNN in PyTorch: 6 conv blocks, batch norm, dropout, global average pooling — balanced depth vs. dataset size
  • Data augmentation: flips, rotation, brightness jitter to prevent overfitting on limited medical data
  • Grad-CAM saliency maps: verifies model attends to optic disc and blood vessels — not image artefacts
  • 92% test accuracy: strongest on No-DR and Proliferative-DR; Mild/Moderate boundary is the hardest — consistent with ophthalmology literature
PyTorchCNNCLAHEGrad-CAMMedical Imaging

Research & Extras

📄 Published Research

ECG & PPG Based Health Monitoring

Wearable IoT cardiac monitoring system. Pan-Tompkins R-peak detection, wavelet denoising, HRV computation, lightweight decision-tree for arrhythmia classification on embedded hardware. Sub-30ms latency. Co-authored at MIET.

🎮 Python Mario Recreation
GitHub
Pygame Mario with scrolling levels, patrol+chase enemy AI, collectables, lives system, and sound engine. Packaged with a GitHub Pages landing site for web audiences.
PythonPygameGame AI

What I Build

AI Pipelines

End-to-end LLM automation, RAG, document intelligence.

Backend APIs

FastAPI/Flask/Express + MongoDB Atlas.

Chatbots

WhatsApp bots, multilingual agents, Twilio.

ML Models

Computer vision, health-signal IoT ML.

Automation

Sheets pipelines, PDF generation, scraping.

Full-Stack

Health OS, finance apps, HTML5 games.

Contact Me

Open to AI/ML roles, consulting, and collaboration. Available remote globally and on-site in the UK.
LinkedIn
in/theshaguntyagi
GitHub
@theshaguntyagi
Email
shagun@envigo.co.in
Location
Uttar Pradesh, India · Remote Global
Company
Envigo — UK AI Consultancy
Connect on LinkedIn