<?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:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[CareerByteCode’s Substack: AIDATA]]></title><description><![CDATA[All About Data,AI,Machine Learning]]></description><link>https://careerbytecode.substack.com/s/aidata</link><image><url>https://substackcdn.com/image/fetch/$s_!DK3n!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe12a63db-0058-4a43-91d6-ab0fa98ba988_474x474.png</url><title>CareerByteCode’s Substack: AIDATA</title><link>https://careerbytecode.substack.com/s/aidata</link></image><generator>Substack</generator><lastBuildDate>Mon, 20 Jul 2026 01:59:28 GMT</lastBuildDate><atom:link href="https://careerbytecode.substack.com/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[CareerByteCode]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[careerbytecode@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[careerbytecode@substack.com]]></itunes:email><itunes:name><![CDATA[CareerByteCode]]></itunes:name></itunes:owner><itunes:author><![CDATA[CareerByteCode]]></itunes:author><googleplay:owner><![CDATA[careerbytecode@substack.com]]></googleplay:owner><googleplay:email><![CDATA[careerbytecode@substack.com]]></googleplay:email><googleplay:author><![CDATA[CareerByteCode]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[Heart and Diabetes Risk Prediction Using Patient Lifestyle Data]]></title><description><![CDATA[In today's healthcare environment, early prediction of heart and diabetes risks is crucial, yet many tools fail to explain their decisions. This system bridges that gap with interpretable ML.]]></description><link>https://careerbytecode.substack.com/p/heart-and-diabetes-risk-prediction-using-patient-lifestyle-data</link><guid isPermaLink="false">https://careerbytecode.substack.com/p/heart-and-diabetes-risk-prediction-using-patient-lifestyle-data</guid><dc:creator><![CDATA[Charisma Devi Polothu]]></dc:creator><pubDate>Sun, 06 Jul 2025 18:46:41 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!6_2-!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb921f09-9995-4825-af9c-02ee2e073a1b_1280x720.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!6_2-!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb921f09-9995-4825-af9c-02ee2e073a1b_1280x720.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!6_2-!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb921f09-9995-4825-af9c-02ee2e073a1b_1280x720.png 424w, https://substackcdn.com/image/fetch/$s_!6_2-!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb921f09-9995-4825-af9c-02ee2e073a1b_1280x720.png 848w, https://substackcdn.com/image/fetch/$s_!6_2-!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb921f09-9995-4825-af9c-02ee2e073a1b_1280x720.png 1272w, https://substackcdn.com/image/fetch/$s_!6_2-!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb921f09-9995-4825-af9c-02ee2e073a1b_1280x720.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!6_2-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb921f09-9995-4825-af9c-02ee2e073a1b_1280x720.png" width="1280" height="720" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/cb921f09-9995-4825-af9c-02ee2e073a1b_1280x720.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:720,&quot;width&quot;:1280,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:546562,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://careerbytecode.substack.com/i/167591230?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb921f09-9995-4825-af9c-02ee2e073a1b_1280x720.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!6_2-!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb921f09-9995-4825-af9c-02ee2e073a1b_1280x720.png 424w, https://substackcdn.com/image/fetch/$s_!6_2-!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb921f09-9995-4825-af9c-02ee2e073a1b_1280x720.png 848w, https://substackcdn.com/image/fetch/$s_!6_2-!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb921f09-9995-4825-af9c-02ee2e073a1b_1280x720.png 1272w, https://substackcdn.com/image/fetch/$s_!6_2-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb921f09-9995-4825-af9c-02ee2e073a1b_1280x720.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><h2><strong>1. Problem Statement</strong></h2><p>Despite the growing availability of patient health records and lifestyle data, many clinics still lack intelligent tools that can provide early warnings for chronic diseases like heart disease and diabetes. Moreover, most existing systems operate as black boxes, offering no explanation behind their predictions. This project addresses the need for an interpretable, machine learning-based solution that predicts health risks and clearly explains the top contributing factors to assist both patients and healthcare professionals in early intervention.</p><h2><strong>2. Tools Used :</strong></h2><ul><li><p><strong>Python</strong></p><p>Core programming language used for building models, API, and backend logic.</p></li><li><p><strong>Scikit-learn</strong></p><p>Used for training traditional ML models like Logistic Regression, Decision Trees, etc.</p></li><li><p><strong>XGBOOST</strong></p><p>A powerful gradient boosting algorithm used for accurate health risk prediction.</p></li><li><p><strong>SHAP(SHapley Additive exPlanations)</strong></p><p>To explain the predictions made by the ML models and show top contributing features.</p></li><li><p><strong>Pandas</strong></p><p>For data preprocessing, manipulation, and conversion between formats (Excel &#8596;&#65039; DataFrame).</p></li><li><p><strong>FastAPI</strong></p><p>Framework used to build a high-performance REST API for model deployment.</p></li><li><p><strong>Pydantic</strong></p><p>For input validation and data modeling of patient health records in the API.</p></li><li><p><strong>PostgreSQL + psycopg2</strong></p><p>Database and Python adapter used to store patient prediction records securely.</p></li><li><p><strong>Streamlit</strong></p><p>For building a patient-facing web interface to input data and display risk predictions.</p></li><li><p><strong>Joblib</strong></p><p>Used for saving and loading ML models (<code>.pkl</code> files) efficiently.</p></li><li><p><strong>Openpyxl</strong></p><p>To read patient dataset in Excel format for SHAP background data.</p></li></ul><p>In this project, I successfully developed a <strong>Machine Learning-powered Health Risk Prediction Portal</strong> that predicts the likelihood of <strong>heart disease</strong> and <strong>diabetes</strong> based on patient health records and lifestyle inputs.</p><p>By integrating tools like <strong>Scikit-learn, XGBoost, SHAP, FastAPI, Streamlit</strong>, and <strong>PostgreSQL</strong>, I achieved:</p><ul><li><p>Accurate health risk prediction for heart disease &amp; diabetes</p></li><li><p>Visual explanation of risk factors using SHAP</p></li><li><p>Clean and secure patient data storage with PostgreSQL</p></li><li><p>User-friendly web interface built using Streamlit</p></li><li><p>Real-time REST API integration via FastAPI backend</p></li></ul><p>The project simulates a virtual medical assistant, offering patients a quick health checkup and interpretability behind risk predictions.</p><div><hr></div><h2>3. Why We Need This Use Case</h2><ul><li><p><strong>Early Risk Detection at Scale: </strong>With rising chronic conditions like diabetes and heart disease, early prediction can prevent costly treatments. ML allows instant screening for large populations.</p></li><li><p><strong>Explainable AI in Healthcare: </strong>Patients and doctors need transparent models. SHAP helps explain <em>why</em> someone is at risk, building trust in AI systems.</p></li><li><p><strong>Self-Assessment from Home: </strong>Patients can assess their lifestyle risks from home and take preventive steps without waiting for hospital visits.</p></li><li><p><strong>Organized Medical Record Storage: </strong>Integration with PostgreSQL allows clinics to maintain structured health records for future insights and history tracking.</p></li><li><p><strong>Cost-Effective for Rural Clinics: </strong>Low-resource clinics can use this lightweight, open-source tool without high-end infrastructure.</p></li></ul><div><hr></div><h2><strong>4. When We Need This Use Case</strong></h2><ul><li><p>During <strong>regular health checkup camps</strong> in colleges or villages</p></li><li><p>As a <strong>kiosk-based self-assessment</strong> tool in clinics</p></li><li><p>In <strong>corporate wellness programs</strong> for employee health screening</p></li><li><p>By <strong>insurance companies</strong> to automate risk profiling</p></li><li><p>In <strong>health-tech startups</strong> offering online diagnostics</p><div><hr></div></li></ul><h2><strong>5. Challenge Questions</strong></h2><p></p><ul><li><p><strong>Scenario: </strong>You are conducting 1000 free health checkups at a rural camp. How will you offer instant predictions to each patient?</p><p><strong>Hint:</strong> Use Streamlit frontend on a laptop + trained models + FastAPI backend to give instant health risk reports.</p></li><li><p><strong>Scenario:</strong> A patient asks <em>&#8220;Why do you think I am at risk?&#8221;</em> How does your system respond?</p><p><strong>Hint:</strong> Use SHAP explainability to show which features (like glucose, BP) contributed most to their risk score.</p></li><li><p><strong>Scenario:</strong> You want to save every patient&#8217;s report securely for future reference. What will you do?</p><p><strong>Hint:</strong> Use PostgreSQL to store every prediction with patient inputs and model outputs.</p></li><li><p><strong>Scenario:</strong> A health startup wants to integrate this tool into their website. Can it scale?</p><p><strong>Hint:</strong> The FastAPI backend can be hosted on cloud and Streamlit can be customized into a production-ready React-based frontend.</p></li><li><p><strong>Scenario:</strong> You want to update the model later with new data. How will you manage versioning?</p><p><strong>Hint:</strong> Retrain the model with new CSV data, save it as <code>v2_model.pkl</code>, and update the API with version control.</p><div><hr></div></li></ul><h2><strong>6. Prerequisites for the Lab</strong></h2><ul><li><p><strong>System Requirements</strong></p><ul><li><p><strong>Operating System</strong>: Windows / Linux / macOS</p></li><li><p><strong>Python Version</strong>: 3.8 or above</p></li><li><p><strong>RAM</strong>: 4GB minimum (8GB recommended)</p></li><li><p><strong>PostgreSQL</strong>: Installed and configured</p></li><li><p><strong>pgAdmin</strong>: (Optional) GUI for managing PostgreSQL</p></li><li><p><strong>Excel Support</strong>: Required to load sample datasets (via <code>openpyxl</code>)</p></li></ul></li><li><p><strong>Libraries (via </strong><code>requirements.txt</code><strong>)</strong></p><pre><code>pandas

scikit-learn

xgboost

shap

fastapi

pydantic

uvicorn

psycopg2-binary

streamlit

openpyxl

requests</code></pre></li><li><p><strong>External Software</strong></p><ul><li><p><strong>PostgreSQL - </strong>Open-source database server <strong>-  </strong></p><p>https://www.postgresql.org/</p></li><li><p><strong>pgAdmin</strong> <strong>-</strong> GUI tool to manage PostgreSQL<strong> - </strong></p></li></ul><p>      https://www.pgadmin.org/</p></li><li><p><strong>Sample Dataset</strong></p><p>Place the following file inside the <code>data/</code> folder:</p><p>/data/health_risk_dataset.xlsx</p><p>This Excel file contains:</p><ul><li><p>Age, weight, height, glucose, cholesterol, etc.</p></li><li><p>Labels: <code>heart_disease</code>, <code>diabetes</code></p></li></ul><p>Used for:</p><ul><li><p>Training models</p></li><li><p>SHAP explainability structure</p></li></ul></li><li><p><strong>PostgreSQL Table</strong></p><p></p><pre><code>CREATE TABLE patient_records (

    id SERIAL PRIMARY KEY,

    age INT,

    weight FLOAT,

    height FLOAT,

    smoking INT,

    alcohol INT,

    exercise INT,

    blood_pressure FLOAT,

    glucose FLOAT,

    cholesterol FLOAT,

    heart_risk INT,

    diabetes_risk INT,

    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP

);</code></pre><p></p></li><li><p>Update your PostgreSQL credentials in <code>main.py</code>:</p><p></p><pre><code>conn = psycopg2.connect(

    host="localhost",

    database="health_db",

    user="postgres",

    password="admin123",  # &#8592; Replace with your own

    port=5432

)</code></pre></li><li><p><strong>Run the Application</strong></p></li></ul><ol><li><p><strong>Start the Backend (FastAPI)</strong></p><p>In terminal :</p><p>cd backend</p><p>uvicorn main:app --reload</p><p>It will run at: <a href="http://127.0.0.1:8000/docs">http://127.0.0.1:8000/docs</a></p></li><li><p><strong>Start the Frontend (Streamlit)</strong></p><p>In another terminal :</p><p>cd streamlit_app</p><p>streamlit run app.py</p><p>It will open at:  http://localhost:8501</p><div><hr></div></li></ol><h2><strong>7. Advantages and Disadvantages of This Use Case</strong></h2><p><strong>&#9989; Advantages:</strong></p><ul><li><p><strong>Early Risk Detection</strong>: Helps patients and doctors detect heart disease and diabetes early using health data.</p></li><li><p><strong>Explainable AI</strong>: Uses SHAP to give clear reasons behind each prediction (transparent ML).</p></li><li><p><strong>User-Friendly Interface</strong>: Streamlit UI makes it easy for non-technical users to interact with the system.</p></li><li><p><strong>Fast &amp; Scalable Backend</strong>: FastAPI allows quick response time and can scale with cloud hosting.</p></li><li><p><strong>Database Integration</strong>: PostgreSQL stores patient data and predictions securely for future use.</p></li><li><p><strong>Customizable Features</strong>: Easily extendable with more models (e.g., stroke risk, obesity).</p></li><li><p><strong>Educational &amp; Clinical Use</strong>: Useful in both healthcare institutions and AI learning environments.</p></li></ul><p><strong>&#10060; Disadvantages:</strong></p><ul><li><p><strong>Limited Scope</strong>: Currently supports only heart and diabetes risk; other diseases require retraining and testing.</p></li><li><p><strong>SHAP Performance</strong>: SHAP explanations can be slow without a GPU or for large inputs.</p></li><li><p><strong>Data Privacy Concerns</strong>: Storing patient data needs encryption and compliance (like HIPAA for real-world use).</p></li><li><p><strong>Model Accuracy Depends on Dataset</strong>: If sample dataset is not diverse, predictions may not generalize well.</p></li><li><p><strong>Streamlit Not Ideal for Mobile</strong>: The frontend is not mobile-optimized by default.</p></li><li><p><strong>Local-Only by Default</strong>: Requires manual setup to deploy on cloud or share publicly.</p><div><hr></div></li></ul><h2><strong>8. Step-by-Step Implementation Instructions</strong></h2><p><strong>This project is an ML-based Health Risk Prediction Portal designed to assess heart disease and diabetes risk using patient health data.</strong><br>It takes inputs like age, weight, BP, glucose, and lifestyle habits, then predicts disease risk using XGBoost models. SHAP is used to provide clear, interpretable AI feedback on top risk factors.<br>The system uses FastAPI for backend APIs, stores data in PostgreSQL, and offers a user-friendly Streamlit frontend. It&#8217;s fast, scalable, and useful for both healthcare and educational purposes.</p><h4><strong>Step 1 : </strong>Data Collection &amp; Dataset Design</h4><p><strong>File Name :</strong>  <code>health_risk_dataset.xlsx</code></p><p><strong>Description:</strong> I created a realistic synthetic dataset that includes health-related features like age, weight, height, glucose, cholesterol, lifestyle habits, etc., along with two target labels: <code>heart_disease</code> and <code>diabetes</code>.</p><p>The dataset mimics records from real clinics and helps build models that predict potential health risks.</p><p><strong>Key Features:</strong></p><ul><li><p>Age, weight, height</p></li><li><p>Smoking &amp; alcohol habits</p></li><li><p>Blood pressure, cholesterol, glucose</p></li><li><p>Exercise levels</p></li></ul><p><strong>Tools Used:</strong></p><ul><li><p><strong>Microsoft Excel</strong>: To create and format structured health data</p></li><li><p><strong>Pandas</strong>: To load and process the dataset in Python</p></li></ul><p><strong>Excel Sheet Screenshot:</strong></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!qUmV!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78c571d0-64de-4363-9b19-0a1d292bb069_1918x963.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!qUmV!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78c571d0-64de-4363-9b19-0a1d292bb069_1918x963.png 424w, https://substackcdn.com/image/fetch/$s_!qUmV!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78c571d0-64de-4363-9b19-0a1d292bb069_1918x963.png 848w, https://substackcdn.com/image/fetch/$s_!qUmV!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78c571d0-64de-4363-9b19-0a1d292bb069_1918x963.png 1272w, https://substackcdn.com/image/fetch/$s_!qUmV!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78c571d0-64de-4363-9b19-0a1d292bb069_1918x963.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!qUmV!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78c571d0-64de-4363-9b19-0a1d292bb069_1918x963.png" width="1456" height="731" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/78c571d0-64de-4363-9b19-0a1d292bb069_1918x963.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:731,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:122059,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://careerbytecode.substack.com/i/167591230?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78c571d0-64de-4363-9b19-0a1d292bb069_1918x963.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!qUmV!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78c571d0-64de-4363-9b19-0a1d292bb069_1918x963.png 424w, https://substackcdn.com/image/fetch/$s_!qUmV!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78c571d0-64de-4363-9b19-0a1d292bb069_1918x963.png 848w, https://substackcdn.com/image/fetch/$s_!qUmV!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78c571d0-64de-4363-9b19-0a1d292bb069_1918x963.png 1272w, https://substackcdn.com/image/fetch/$s_!qUmV!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78c571d0-64de-4363-9b19-0a1d292bb069_1918x963.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h4><strong>Step 2 :</strong> Model Training using Scikit-learn &amp; XGBoost</h4><p><strong>File Name :</strong> <code>train_models.py</code></p><p><strong>Description:</strong> I used machine learning models to train separate classifiers for predicting:</p><ul><li><p>&#129728; Heart Disease Risk</p></li><li><p>&#129658; Diabetes Risk</p></li></ul><p>Both models were trained using:</p><ul><li><p>XGBoostClassifier for accuracy</p></li><li><p>Data preprocessing to remove missing/null values</p></li></ul><p><strong>Code Summary:</strong></p><ul><li><p>Split data into <code>X</code> (features) and <code>y</code> (target)</p></li><li><p>Trained two models:</p><ul><li><p><code>heart_model = XGBClassifier()</code></p></li><li><p><code>diabetes_model = XGBClassifier()</code></p></li></ul></li><li><p>Saved using <code>joblib</code></p></li></ul><p><strong>Tools Used:</strong></p><ul><li><p><strong>scikit-learn</strong>: For model training pipeline</p></li><li><p><strong>XGBoost</strong>: For powerful tree-based classification</p></li><li><p><strong>joblib</strong>: To save trained models for prediction</p></li></ul><p><strong>Output Screenshot:</strong></p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Ocvm!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa90804c8-4b8f-446d-a258-8ee17e65cadd_742x81.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Ocvm!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa90804c8-4b8f-446d-a258-8ee17e65cadd_742x81.png 424w, https://substackcdn.com/image/fetch/$s_!Ocvm!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa90804c8-4b8f-446d-a258-8ee17e65cadd_742x81.png 848w, https://substackcdn.com/image/fetch/$s_!Ocvm!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa90804c8-4b8f-446d-a258-8ee17e65cadd_742x81.png 1272w, https://substackcdn.com/image/fetch/$s_!Ocvm!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa90804c8-4b8f-446d-a258-8ee17e65cadd_742x81.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Ocvm!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa90804c8-4b8f-446d-a258-8ee17e65cadd_742x81.png" width="742" height="81" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a90804c8-4b8f-446d-a258-8ee17e65cadd_742x81.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:81,&quot;width&quot;:742,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:10031,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://careerbytecode.substack.com/i/167591230?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa90804c8-4b8f-446d-a258-8ee17e65cadd_742x81.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Ocvm!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa90804c8-4b8f-446d-a258-8ee17e65cadd_742x81.png 424w, https://substackcdn.com/image/fetch/$s_!Ocvm!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa90804c8-4b8f-446d-a258-8ee17e65cadd_742x81.png 848w, https://substackcdn.com/image/fetch/$s_!Ocvm!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa90804c8-4b8f-446d-a258-8ee17e65cadd_742x81.png 1272w, https://substackcdn.com/image/fetch/$s_!Ocvm!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa90804c8-4b8f-446d-a258-8ee17e65cadd_742x81.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><div><hr></div><h4><strong>Step 3 : </strong>Backend API using FastAPI</h4><p><strong>File Name :</strong> <code>main.py</code></p><p><strong>Description:</strong> I created a backend service using FastAPI that:</p><ul><li><p>Accepts patient input via JSON</p></li><li><p>Returns prediction for heart &amp; diabetes risk</p></li><li><p>Uses SHAP to explain top contributing health factors</p></li><li><p>Saves all predictions into PostgreSQL</p></li></ul><p><strong>Code Summary:</strong></p><ul><li><p>Defined <code>PatientData</code> schema with <code>pydantic</code></p></li><li><p>Loaded models using <code>joblib</code></p></li><li><p>Used SHAP to compute interpretable predictions</p></li><li><p>Stored results in <code>patient_records</code> table</p></li></ul><p><strong>Tools Used:</strong></p><ul><li><p><strong>FastAPI</strong>: High-performance Python API</p></li><li><p><strong>Pydantic</strong>: Input validation</p></li><li><p><strong>SHAP</strong>: Explainable AI library</p></li><li><p><strong>joblib</strong>: For loading trained models</p></li></ul><p><strong>Output Screenshots :</strong></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!cBFQ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3da0c02b-afe2-44be-981c-ddcc83436260_1480x882.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!cBFQ!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3da0c02b-afe2-44be-981c-ddcc83436260_1480x882.png 424w, https://substackcdn.com/image/fetch/$s_!cBFQ!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3da0c02b-afe2-44be-981c-ddcc83436260_1480x882.png 848w, https://substackcdn.com/image/fetch/$s_!cBFQ!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3da0c02b-afe2-44be-981c-ddcc83436260_1480x882.png 1272w, https://substackcdn.com/image/fetch/$s_!cBFQ!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3da0c02b-afe2-44be-981c-ddcc83436260_1480x882.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!cBFQ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3da0c02b-afe2-44be-981c-ddcc83436260_1480x882.png" width="1456" height="868" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3da0c02b-afe2-44be-981c-ddcc83436260_1480x882.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:868,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:44503,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://careerbytecode.substack.com/i/167591230?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3da0c02b-afe2-44be-981c-ddcc83436260_1480x882.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!cBFQ!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3da0c02b-afe2-44be-981c-ddcc83436260_1480x882.png 424w, https://substackcdn.com/image/fetch/$s_!cBFQ!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3da0c02b-afe2-44be-981c-ddcc83436260_1480x882.png 848w, https://substackcdn.com/image/fetch/$s_!cBFQ!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3da0c02b-afe2-44be-981c-ddcc83436260_1480x882.png 1272w, https://substackcdn.com/image/fetch/$s_!cBFQ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3da0c02b-afe2-44be-981c-ddcc83436260_1480x882.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><strong>After Clicking on Execute Button : The Response will be as follows</strong></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!kp5G!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0be659c-f278-4153-bd02-04c58cd55a3a_1422x862.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!kp5G!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0be659c-f278-4153-bd02-04c58cd55a3a_1422x862.png 424w, https://substackcdn.com/image/fetch/$s_!kp5G!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0be659c-f278-4153-bd02-04c58cd55a3a_1422x862.png 848w, https://substackcdn.com/image/fetch/$s_!kp5G!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0be659c-f278-4153-bd02-04c58cd55a3a_1422x862.png 1272w, https://substackcdn.com/image/fetch/$s_!kp5G!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0be659c-f278-4153-bd02-04c58cd55a3a_1422x862.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!kp5G!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0be659c-f278-4153-bd02-04c58cd55a3a_1422x862.png" width="1422" height="862" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a0be659c-f278-4153-bd02-04c58cd55a3a_1422x862.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:862,&quot;width&quot;:1422,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:58847,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://careerbytecode.substack.com/i/167591230?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0be659c-f278-4153-bd02-04c58cd55a3a_1422x862.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!kp5G!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0be659c-f278-4153-bd02-04c58cd55a3a_1422x862.png 424w, https://substackcdn.com/image/fetch/$s_!kp5G!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0be659c-f278-4153-bd02-04c58cd55a3a_1422x862.png 848w, https://substackcdn.com/image/fetch/$s_!kp5G!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0be659c-f278-4153-bd02-04c58cd55a3a_1422x862.png 1272w, https://substackcdn.com/image/fetch/$s_!kp5G!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0be659c-f278-4153-bd02-04c58cd55a3a_1422x862.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!SvE2!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F173ecc76-8ccb-4d2d-a5af-12e8b681c86a_1428x857.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!SvE2!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F173ecc76-8ccb-4d2d-a5af-12e8b681c86a_1428x857.png 424w, https://substackcdn.com/image/fetch/$s_!SvE2!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F173ecc76-8ccb-4d2d-a5af-12e8b681c86a_1428x857.png 848w, https://substackcdn.com/image/fetch/$s_!SvE2!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F173ecc76-8ccb-4d2d-a5af-12e8b681c86a_1428x857.png 1272w, https://substackcdn.com/image/fetch/$s_!SvE2!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F173ecc76-8ccb-4d2d-a5af-12e8b681c86a_1428x857.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!SvE2!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F173ecc76-8ccb-4d2d-a5af-12e8b681c86a_1428x857.png" width="1428" height="857" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/173ecc76-8ccb-4d2d-a5af-12e8b681c86a_1428x857.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:857,&quot;width&quot;:1428,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:34906,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://careerbytecode.substack.com/i/167591230?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F173ecc76-8ccb-4d2d-a5af-12e8b681c86a_1428x857.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!SvE2!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F173ecc76-8ccb-4d2d-a5af-12e8b681c86a_1428x857.png 424w, https://substackcdn.com/image/fetch/$s_!SvE2!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F173ecc76-8ccb-4d2d-a5af-12e8b681c86a_1428x857.png 848w, https://substackcdn.com/image/fetch/$s_!SvE2!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F173ecc76-8ccb-4d2d-a5af-12e8b681c86a_1428x857.png 1272w, https://substackcdn.com/image/fetch/$s_!SvE2!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F173ecc76-8ccb-4d2d-a5af-12e8b681c86a_1428x857.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h4><strong>Step 4 :</strong> Database Integration using PostgreSQL</h4><p><strong>File Name :</strong> <code>main.py</code> (DB block)</p><p><strong>Description:</strong> I connected the backend to PostgreSQL to save each prediction with patient details and risk score.</p><p>This ensures data persistence and allows clinics to review patient history over time.</p><p><strong>Code Summary:</strong></p><ul><li><p>Used <code>psycopg2</code> to connect to local PostgreSQL</p></li><li><p>Inserted prediction data using <code>INSERT INTO</code> SQL</p></li><li><p>Created table <code>patient_records(age, weight, ... risk)</code></p></li></ul><p><strong>Tools Used:</strong></p><ul><li><p><strong>PostgreSQL</strong>: Backend database</p></li><li><p><strong>psycopg2</strong>: Python-PostgreSQL connector</p></li><li><p><strong>SQL</strong>: Used for creating and inserting into tables</p></li></ul><p><strong>Output Screenshot:</strong></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!7rq7!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7a939e0-ae51-4977-a397-fabec196203e_1920x1080.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!7rq7!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7a939e0-ae51-4977-a397-fabec196203e_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!7rq7!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7a939e0-ae51-4977-a397-fabec196203e_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!7rq7!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7a939e0-ae51-4977-a397-fabec196203e_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!7rq7!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7a939e0-ae51-4977-a397-fabec196203e_1920x1080.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!7rq7!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7a939e0-ae51-4977-a397-fabec196203e_1920x1080.png" width="1456" height="819" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c7a939e0-ae51-4977-a397-fabec196203e_1920x1080.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:819,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:243198,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://careerbytecode.substack.com/i/167591230?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7a939e0-ae51-4977-a397-fabec196203e_1920x1080.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!7rq7!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7a939e0-ae51-4977-a397-fabec196203e_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!7rq7!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7a939e0-ae51-4977-a397-fabec196203e_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!7rq7!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7a939e0-ae51-4977-a397-fabec196203e_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!7rq7!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7a939e0-ae51-4977-a397-fabec196203e_1920x1080.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h4><strong>Step 5 :</strong> Explainable AI with SHAP</h4><p><strong>File Name :</strong> <code>main.py</code></p><p><strong>Description:</strong> I implemented SHAP (SHapley Additive Explanations) to explain <strong>why</strong> the model made a certain prediction.</p><p>It shows how much each health factor (e.g., glucose, cholesterol) contributed to the risk outcome &#8212; providing trust and interpretability for doctors.</p><p><strong>Code Summary:</strong></p><ul><li><p>Used <code>TreeExplainer</code> for XGBoost models</p></li><li><p>Called <code>.shap_values(input_df)</code></p></li><li><p>Returned top contributing features in JSON</p></li></ul><p><strong>Tools Used:</strong></p><ul><li><p><strong>SHAP</strong>: To explain black-box ML predictions</p></li></ul><p><strong> &#128202; </strong><em><strong>SHAP Summary Plot :</strong> Feature importance visualization showing how each health factor influenced the heart disease prediction.</em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!C5t0!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3a602b12-dccb-43f3-ad41-ad856b74d3eb_1920x1080.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!C5t0!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3a602b12-dccb-43f3-ad41-ad856b74d3eb_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!C5t0!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3a602b12-dccb-43f3-ad41-ad856b74d3eb_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!C5t0!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3a602b12-dccb-43f3-ad41-ad856b74d3eb_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!C5t0!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3a602b12-dccb-43f3-ad41-ad856b74d3eb_1920x1080.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!C5t0!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3a602b12-dccb-43f3-ad41-ad856b74d3eb_1920x1080.png" width="1456" height="819" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3a602b12-dccb-43f3-ad41-ad856b74d3eb_1920x1080.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:819,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:120455,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://careerbytecode.substack.com/i/167591230?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3a602b12-dccb-43f3-ad41-ad856b74d3eb_1920x1080.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!C5t0!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3a602b12-dccb-43f3-ad41-ad856b74d3eb_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!C5t0!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3a602b12-dccb-43f3-ad41-ad856b74d3eb_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!C5t0!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3a602b12-dccb-43f3-ad41-ad856b74d3eb_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!C5t0!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3a602b12-dccb-43f3-ad41-ad856b74d3eb_1920x1080.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h4><strong>Step 6 : Streamlit Frontend for Patients</strong></h4><p><strong>File Name :</strong> <code>app.py</code></p><p><strong>Description:</strong> I created a user-friendly Streamlit dashboard where patients (or clinic staff) can:</p><ul><li><p>Enter basic health information</p></li><li><p>Click "Predict" to get instant results</p></li><li><p>View prediction + SHAP-based explanation</p></li></ul><p><strong>UI Sections:</strong></p><ul><li><p>Form: Age, glucose, cholesterol, habits</p></li><li><p>Result Cards: "Heart Risk: High" / "Low"</p></li><li><p>Top Risk Contributors: SHAP feature impact list</p></li></ul><p><strong>Tools Used:</strong></p><ul><li><p><strong>Streamlit</strong>: Python web app for dashboard</p></li><li><p><strong>Requests</strong>: To call FastAPI from Streamlit</p></li><li><p><strong>HTML</strong>: To style results with emojis and headings</p></li></ul><p><strong>Output Screenshots :</strong></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Tm-V!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F972c2c25-9f17-4c1d-89c3-c793438fdf35_1920x1080.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Tm-V!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F972c2c25-9f17-4c1d-89c3-c793438fdf35_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!Tm-V!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F972c2c25-9f17-4c1d-89c3-c793438fdf35_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!Tm-V!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F972c2c25-9f17-4c1d-89c3-c793438fdf35_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!Tm-V!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F972c2c25-9f17-4c1d-89c3-c793438fdf35_1920x1080.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Tm-V!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F972c2c25-9f17-4c1d-89c3-c793438fdf35_1920x1080.png" width="1456" height="819" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/972c2c25-9f17-4c1d-89c3-c793438fdf35_1920x1080.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:819,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:109422,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://careerbytecode.substack.com/i/167591230?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F972c2c25-9f17-4c1d-89c3-c793438fdf35_1920x1080.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Tm-V!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F972c2c25-9f17-4c1d-89c3-c793438fdf35_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!Tm-V!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F972c2c25-9f17-4c1d-89c3-c793438fdf35_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!Tm-V!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F972c2c25-9f17-4c1d-89c3-c793438fdf35_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!Tm-V!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F972c2c25-9f17-4c1d-89c3-c793438fdf35_1920x1080.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!xQhA!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F01970b70-6f9b-40d6-8666-a239e9ba34f2_1920x1080.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!xQhA!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F01970b70-6f9b-40d6-8666-a239e9ba34f2_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!xQhA!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F01970b70-6f9b-40d6-8666-a239e9ba34f2_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!xQhA!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F01970b70-6f9b-40d6-8666-a239e9ba34f2_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!xQhA!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F01970b70-6f9b-40d6-8666-a239e9ba34f2_1920x1080.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!xQhA!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F01970b70-6f9b-40d6-8666-a239e9ba34f2_1920x1080.png" width="1456" height="819" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/01970b70-6f9b-40d6-8666-a239e9ba34f2_1920x1080.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:819,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:129707,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://careerbytecode.substack.com/i/167591230?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F01970b70-6f9b-40d6-8666-a239e9ba34f2_1920x1080.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!xQhA!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F01970b70-6f9b-40d6-8666-a239e9ba34f2_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!xQhA!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F01970b70-6f9b-40d6-8666-a239e9ba34f2_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!xQhA!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F01970b70-6f9b-40d6-8666-a239e9ba34f2_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!xQhA!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F01970b70-6f9b-40d6-8666-a239e9ba34f2_1920x1080.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h2><strong>9. Conclusion</strong></h2><p>The <strong>Health Risk Prediction Portal</strong> is an impactful AI-based solution designed to support clinics, patients, and even fitness centers. It turns health data into <strong>actionable insights</strong> by predicting the likelihood of heart disease and diabetes ,two of the most common lifestyle disorders today.</p><p>Using <strong>FastAPI</strong>, <strong>XGBoost</strong>, <strong>SHAP</strong>, and <strong>Streamlit</strong>, I created a full-stack ML pipeline that:</p><p>&#9989; Predicts health risks with high accuracy<br>&#9989; Explains &#8220;why&#8221; using SHAP<br>&#9989; Saves records to a database for future reference<br>&#9989; Provides a clean, interactive frontend for non-tech users</p><p>This project is ideal for <strong>e-health applications</strong>, <strong>rural clinics</strong>, and <strong>personal health monitoring tools</strong>. In the future, it can be expanded with:</p><ul><li><p>&#128200; Real-time monitoring via IoT devices</p></li><li><p>&#129516; Disease prediction beyond heart &amp; diabetes</p></li><li><p>&#9729;&#65039; Hosting as a SaaS for multi-user access</p></li></ul>]]></content:encoded></item><item><title><![CDATA[Build an AI Interview Coach That Gives Feedback from Video and Audio in Real-Time]]></title><description><![CDATA[In the hiring and interview preparation ecosystem, thousands of mock interviews are recorded each day but most are underutilized.]]></description><link>https://careerbytecode.substack.com/p/build-an-ai-interview-coach-that-gives-feedback-from-video-and-audio-in-real-time</link><guid isPermaLink="false">https://careerbytecode.substack.com/p/build-an-ai-interview-coach-that-gives-feedback-from-video-and-audio-in-real-time</guid><dc:creator><![CDATA[Charisma Devi Polothu]]></dc:creator><pubDate>Tue, 01 Jul 2025 20:29:24 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!7Krn!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a765a15-4fa9-43b7-9dda-3e672f7edc89_1280x720.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!7Krn!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a765a15-4fa9-43b7-9dda-3e672f7edc89_1280x720.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!7Krn!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a765a15-4fa9-43b7-9dda-3e672f7edc89_1280x720.png 424w, https://substackcdn.com/image/fetch/$s_!7Krn!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a765a15-4fa9-43b7-9dda-3e672f7edc89_1280x720.png 848w, https://substackcdn.com/image/fetch/$s_!7Krn!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a765a15-4fa9-43b7-9dda-3e672f7edc89_1280x720.png 1272w, https://substackcdn.com/image/fetch/$s_!7Krn!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a765a15-4fa9-43b7-9dda-3e672f7edc89_1280x720.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!7Krn!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a765a15-4fa9-43b7-9dda-3e672f7edc89_1280x720.png" width="1280" height="720" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6a765a15-4fa9-43b7-9dda-3e672f7edc89_1280x720.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:720,&quot;width&quot;:1280,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:482699,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://careerbytecode.substack.com/i/166588315?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a765a15-4fa9-43b7-9dda-3e672f7edc89_1280x720.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!7Krn!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a765a15-4fa9-43b7-9dda-3e672f7edc89_1280x720.png 424w, https://substackcdn.com/image/fetch/$s_!7Krn!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a765a15-4fa9-43b7-9dda-3e672f7edc89_1280x720.png 848w, https://substackcdn.com/image/fetch/$s_!7Krn!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a765a15-4fa9-43b7-9dda-3e672f7edc89_1280x720.png 1272w, https://substackcdn.com/image/fetch/$s_!7Krn!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a765a15-4fa9-43b7-9dda-3e672f7edc89_1280x720.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><h2><strong>1. Problem Statement</strong></h2><p>In the hiring and interview preparation ecosystem, thousands of mock interviews are recorded each day&#8212;but most are underutilized. Candidates are left with raw recordings that they don&#8217;t know how to review or learn from. Critical feedback around clarity, tone, confidence, or body language is either missing or vague. Recruiters and coaches often lack the time to analyze every recording in depth.</p><p>There is a dire need for a scalable AI-powered solution that can analyze these audio/video recordings and generate actionable, structured feedback to help candidates improve interview readiness.</p><div><hr></div><h2><strong>2. Tools Used :</strong></h2><ul><li><p><strong>Python</strong></p><p>Core programming language</p></li><li><p><strong>OpenAI Whisper</strong></p><p>For high-quality audio transcription</p></li><li><p><strong>OpenCV</strong></p><p>To analyze body language using face detection</p></li><li><p><strong>SentenceTransformer (BERT)</strong></p><p>Semantic analysis of answers</p></li><li><p><strong>Streamlit</strong></p><p>Web-based feedback dashboard</p></li><li><p><strong>PostgreSQL + psycopg2</strong></p><p>To store and retrieve interview feedback records</p></li><li><p><strong>tempfile :</strong> Handles file saving securely</p></li><li><p><strong>re (regex) : </strong>Cleans HTML for database</p></li><li><p><strong>whisper :</strong> Audio-to-text transcription</p></li><li><p><strong>OpenCV : </strong>Video frame analysis</p></li><li><p><strong>BERT (sentence-transformers) :</strong> Semantic feedback</p></li><li><p><strong>PostgreSQL + psycopg2 :</strong> Saving interview data</p></li></ul><p>In this project, I successfully developed an <strong>AI-powered Interview Feedback Analyzer</strong> that helps candidates improve by analyzing both their <strong>spoken answers</strong> and <strong>body language</strong>.</p><p>By integrating tools like <strong>Whisper</strong>, <strong>OpenCV</strong>, <strong>BERT</strong>, and <strong>Streamlit</strong>, I achieved:</p><ul><li><p>Accurate audio transcription</p></li><li><p>Smart semantic feedback on answers</p></li><li><p>Basic body language detection</p></li><li><p>Personalized coaching-style feedback</p></li><li><p>Secure feedback storage using PostgreSQL</p></li></ul><p>The project simulates a <strong>virtual interview coach</strong>, providing structured, real-time feedback to help candidates reflect and grow.</p><div><hr></div><h2><strong>3. Why We Need This Use Case</strong></h2><ul><li><p><strong>Interview Coaching at Scale:</strong> With job seekers rising globally, interview coaching cannot stay 1:1. Automation through AI brings scalability to personalized feedback.</p></li><li><p><strong>Objective &amp; Unbiased Feedback:</strong> Human feedback may be inconsistent or subjective. AI-based analysis provides consistent evaluation metrics.</p></li><li><p><strong>Self-Improvement for Job Seekers:</strong> Candidates preparing for interviews on their own often lack a benchmark. This tool gives them clarity on their strengths and areas for improvement.</p></li><li><p><strong>Time-Saving for EdTechs &amp; Recruiters:</strong> Institutions or platforms can use this tool to batch analyze hundreds of mock interviews and identify top talent or training gaps.</p></li><li><p><strong>Hybrid Capability:</strong> It combines <strong>NLP</strong>, <strong>computer vision</strong>, and <strong>rule-based heuristics</strong>, making it a comprehensive interview evaluator.</p></li></ul><div><hr></div><h2><strong>4. When We Need This Use Case</strong></h2><ul><li><p>During <strong>mock interview training sessions</strong> for job seekers.</p></li><li><p>In <strong>EdTech platforms</strong> where interviews are part of upskilling programs.</p></li><li><p>For <strong>HR teams or staffing agencies</strong> automating initial interview screenings.</p></li><li><p>In <strong>self-assessment tools</strong> where students or professionals upload their interview responses for instant AI feedback.</p></li><li><p>As a <strong>pre-screening tool</strong> before sending candidates to final technical interviews.</p></li></ul><div><hr></div><h2><strong>5. Challenge Questions</strong></h2><p></p>
      <p>
          <a href="https://careerbytecode.substack.com/p/build-an-ai-interview-coach-that-gives-feedback-from-video-and-audio-in-real-time">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Computer Vision for Beginners: Auto-Crop and Deskew Documents from Real-World Images using Open-CV]]></title><description><![CDATA[In industries like education, banking, and administration, scanned documents are crucial for record-keeping, identity verification, and compliance.]]></description><link>https://careerbytecode.substack.com/p/computer-vision-for-beginners-auto-crop-and-deskew-documents-from-real-world-images-using-open-cv</link><guid isPermaLink="false">https://careerbytecode.substack.com/p/computer-vision-for-beginners-auto-crop-and-deskew-documents-from-real-world-images-using-open-cv</guid><dc:creator><![CDATA[Sivaranjan A]]></dc:creator><pubDate>Mon, 30 Jun 2025 21:03:14 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!udE5!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9577e285-8cb8-44a3-8781-39b57bedc53b_1280x720.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!udE5!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9577e285-8cb8-44a3-8781-39b57bedc53b_1280x720.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!udE5!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9577e285-8cb8-44a3-8781-39b57bedc53b_1280x720.png 424w, https://substackcdn.com/image/fetch/$s_!udE5!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9577e285-8cb8-44a3-8781-39b57bedc53b_1280x720.png 848w, https://substackcdn.com/image/fetch/$s_!udE5!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9577e285-8cb8-44a3-8781-39b57bedc53b_1280x720.png 1272w, https://substackcdn.com/image/fetch/$s_!udE5!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9577e285-8cb8-44a3-8781-39b57bedc53b_1280x720.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!udE5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9577e285-8cb8-44a3-8781-39b57bedc53b_1280x720.png" width="1280" height="720" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9577e285-8cb8-44a3-8781-39b57bedc53b_1280x720.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:720,&quot;width&quot;:1280,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:374672,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://careerbytecode.substack.com/i/165921597?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9577e285-8cb8-44a3-8781-39b57bedc53b_1280x720.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!udE5!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9577e285-8cb8-44a3-8781-39b57bedc53b_1280x720.png 424w, https://substackcdn.com/image/fetch/$s_!udE5!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9577e285-8cb8-44a3-8781-39b57bedc53b_1280x720.png 848w, https://substackcdn.com/image/fetch/$s_!udE5!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9577e285-8cb8-44a3-8781-39b57bedc53b_1280x720.png 1272w, https://substackcdn.com/image/fetch/$s_!udE5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9577e285-8cb8-44a3-8781-39b57bedc53b_1280x720.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p></p><h2>1. Problem Statement</h2><p>In industries like <strong>education, banking, and administration</strong>, scanned documents are crucial for record-keeping, identity verification, and compliance. However, these documents are often scanned or photographed under suboptimal conditions &#8212; skewed angles, poor lighting, noisy backgrounds, or misalignment. As a result, manual editing is required to crop, straighten, and clean the scanned image before further use.</p><p>Manual cropping not only wastes time but is also prone to human error. Institutions need an <strong>automated, reliable solution</strong> to detect the boundaries of a document and generate a <strong>clean, aligned, print-ready version</strong>.</p><p>This use case solves the problem using <strong>OpenCV-based preprocessing, contour detection, and perspective transformation</strong>, giving scanned documents a polished look suitable for <strong>OCR, PDF conversion, or printing</strong>.</p><div><hr></div><h2>2. Why We Need This Use Case</h2><p>We need this use case because:</p><ul><li><p><strong>Document quality matters</strong> in legal, educational, and financial systems. Poor scans can lead to OCR errors, incorrect information extraction, or document rejections.</p></li><li><p><strong>Manual editing is slow and costly</strong>, especially when scanning in bulk.</p></li><li><p><strong>Deskewed and cropped documents</strong> improve accuracy in downstream tasks like text recognition, data extraction, archiving, and automated verification.</p></li><li><p>It allows even mobile-captured documents to be made usable in formal systems with minimal manual effort.</p></li></ul><p>An auto-cropping tool can streamline workflows in:</p><ul><li><p>e-KYC and onboarding systems</p></li><li><p>University examination systems</p></li><li><p>Legal documentation archiving</p></li><li><p>Government digitization drives</p></li></ul><div><hr></div><h2>3. When We Need This Use Case</h2><p>Use this auto-cropping pipeline when:</p><ul><li><p>You receive scanned forms from mobile or handheld scanners with skewed layouts.</p></li><li><p>Students submit hand-written answers via mobile scans.</p></li><li><p>Banks or agents collect ID proofs on the field using phones.</p></li><li><p>You want to <strong>digitally archive</strong> paper documents while maintaining a neat visual format.</p></li><li><p>Integrating an OCR system where skewed inputs reduce recognition accuracy.</p></li><li><p>Creating a real-time document scanner tool using a webcam or mobile app.</p></li></ul><div><hr></div><h2>4. Challenge Questions</h2><p></p>
      <p>
          <a href="https://careerbytecode.substack.com/p/computer-vision-for-beginners-auto-crop-and-deskew-documents-from-real-world-images-using-open-cv">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Feel Me If You Can: Real-Time Emotion Detection Using Deep Learning Using WebCam]]></title><description><![CDATA[In the realm of human-computer interaction, the ability for machines to understand and respond to human emotions is becoming increasingly important.]]></description><link>https://careerbytecode.substack.com/p/feel-me-if-you-can-real-time-emotion-detection-using-deep-learning-using-webcam</link><guid isPermaLink="false">https://careerbytecode.substack.com/p/feel-me-if-you-can-real-time-emotion-detection-using-deep-learning-using-webcam</guid><dc:creator><![CDATA[Sivaranjan A]]></dc:creator><pubDate>Mon, 30 Jun 2025 10:13:54 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!C3Lb!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd21e06b4-6317-460f-ae33-b170756e8630_1280x720.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!C3Lb!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd21e06b4-6317-460f-ae33-b170756e8630_1280x720.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!C3Lb!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd21e06b4-6317-460f-ae33-b170756e8630_1280x720.png 424w, https://substackcdn.com/image/fetch/$s_!C3Lb!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd21e06b4-6317-460f-ae33-b170756e8630_1280x720.png 848w, https://substackcdn.com/image/fetch/$s_!C3Lb!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd21e06b4-6317-460f-ae33-b170756e8630_1280x720.png 1272w, https://substackcdn.com/image/fetch/$s_!C3Lb!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd21e06b4-6317-460f-ae33-b170756e8630_1280x720.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!C3Lb!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd21e06b4-6317-460f-ae33-b170756e8630_1280x720.png" width="1280" height="720" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d21e06b4-6317-460f-ae33-b170756e8630_1280x720.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:720,&quot;width&quot;:1280,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:541782,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://careerbytecode.substack.com/i/166129612?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd21e06b4-6317-460f-ae33-b170756e8630_1280x720.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!C3Lb!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd21e06b4-6317-460f-ae33-b170756e8630_1280x720.png 424w, https://substackcdn.com/image/fetch/$s_!C3Lb!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd21e06b4-6317-460f-ae33-b170756e8630_1280x720.png 848w, https://substackcdn.com/image/fetch/$s_!C3Lb!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd21e06b4-6317-460f-ae33-b170756e8630_1280x720.png 1272w, https://substackcdn.com/image/fetch/$s_!C3Lb!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd21e06b4-6317-460f-ae33-b170756e8630_1280x720.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h4></h4><p></p><h2>1. &#128269; <strong>Problem Statement</strong></h2><p>In the realm of human-computer interaction, the ability for machines to understand and respond to human emotions is becoming increasingly important. Many individuals silently suffer from emotional distress, and the lack of real-time emotional feedback in digital systems leads to missed opportunities in both mental health care and personalized user experiences.</p><p>Imagine an interactive kiosk in a mall or a mental health application that could detect whether a user is happy, sad, or distressed&#8212;this could change how we build empathy into technology. The primary challenge lies in accurately detecting and classifying human emotions in real time using only a webcam feed, while ensuring performance, reliability, and accuracy.</p><p>This use case focuses on using computer vision and deep learning to classify emotions from facial expressions in live video, leveraging pretrained convolutional neural networks (CNNs) and OpenCV for real-time facial detection.</p><div><hr></div><h3>2. &#128204; <strong>Why We Need This Use Case</strong></h3><p>This use case bridges the gap between <strong>human emotion and machine understanding</strong>, which is essential for:</p><ul><li><p><strong>Mental Health Applications</strong>: Detect mood swings or signs of depression.</p></li><li><p><strong>Education Platforms</strong>: Understand student engagement and tailor teaching methods.</p></li><li><p><strong>Interactive Marketing</strong>: Adjust advertisements in real-time based on viewer emotion.</p></li><li><p><strong>Gaming/AR/VR Systems</strong>: Enhance user immersion by adapting based on emotional responses.</p></li><li><p><strong>Virtual Assistants</strong>: Make conversations more empathetic and personalized.</p></li></ul><p>The real-time aspect allows for <strong>immediate feedback and intervention</strong>, unlike batch-processed systems. It demonstrates how <strong>AI can humanize digital interactions</strong>.</p><div><hr></div><h3>3. &#9200; <strong>When We Need This Use Case</strong></h3><p>You need this use case in the following scenarios:</p><ul><li><p><strong>During virtual therapy sessions</strong> to monitor patient mood throughout.</p></li><li><p><strong>While building emotion-aware applications</strong> (e.g., smart classroom platforms or interactive booths).</p></li><li><p><strong>For R&amp;D projects</strong> in artificial intelligence and affective computing.</p></li><li><p><strong>To showcase real-time ML deployment skills</strong> in AI/ML interviews.</p></li><li><p><strong>When working on human-centered UI/UX projects</strong> needing responsive emotional feedback.</p></li></ul><div><hr></div><h3>4. &#129504; <strong>Challenge Questions (Interview-Based Scenarios)</strong></h3><p></p>
      <p>
          <a href="https://careerbytecode.substack.com/p/feel-me-if-you-can-real-time-emotion-detection-using-deep-learning-using-webcam">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Age and Gender Detection System using OpenCV and a Pre-trained Model]]></title><description><![CDATA[Age and gender detection have numerous applications in security, customer analytics, personalized marketing, and interactive systems.]]></description><link>https://careerbytecode.substack.com/p/building-a-smart-surveillance-system-with-age-and-gender-detection-using-ai-open-cv</link><guid isPermaLink="false">https://careerbytecode.substack.com/p/building-a-smart-surveillance-system-with-age-and-gender-detection-using-ai-open-cv</guid><dc:creator><![CDATA[Supriya N R]]></dc:creator><pubDate>Tue, 04 Feb 2025 22:20:10 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!V6so!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feef02fd7-98f2-4274-ab71-d94fc03e1b68_1280x720.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!V6so!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feef02fd7-98f2-4274-ab71-d94fc03e1b68_1280x720.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!V6so!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feef02fd7-98f2-4274-ab71-d94fc03e1b68_1280x720.jpeg 424w, https://substackcdn.com/image/fetch/$s_!V6so!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feef02fd7-98f2-4274-ab71-d94fc03e1b68_1280x720.jpeg 848w, https://substackcdn.com/image/fetch/$s_!V6so!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feef02fd7-98f2-4274-ab71-d94fc03e1b68_1280x720.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!V6so!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feef02fd7-98f2-4274-ab71-d94fc03e1b68_1280x720.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!V6so!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feef02fd7-98f2-4274-ab71-d94fc03e1b68_1280x720.jpeg" width="1280" height="720" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/eef02fd7-98f2-4274-ab71-d94fc03e1b68_1280x720.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:720,&quot;width&quot;:1280,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:150575,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!V6so!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feef02fd7-98f2-4274-ab71-d94fc03e1b68_1280x720.jpeg 424w, https://substackcdn.com/image/fetch/$s_!V6so!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feef02fd7-98f2-4274-ab71-d94fc03e1b68_1280x720.jpeg 848w, https://substackcdn.com/image/fetch/$s_!V6so!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feef02fd7-98f2-4274-ab71-d94fc03e1b68_1280x720.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!V6so!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feef02fd7-98f2-4274-ab71-d94fc03e1b68_1280x720.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><h2><strong>1. Age and Gender Detection System</strong></h2><p>         Use OpenCV and a pre-trained model to predict age and gender from                a camera feed.      </p><h2><strong>2. Why We Need This Use Case</strong></h2><p>Age and gender detection have numerous applications in security, customer analytics, personalized marketing, and interactive systems. By implementing an automated system using OpenCV and deep learning, we can analyze video feeds in real-time, providing insights into demographics without manual intervention.</p><h2><strong>3. When We Need This Use Case</strong></h2><ul><li><p><strong>Retail Industry</strong> &#8211; To understand customer demographics and improve targeted marketing.</p></li><li><p><strong>Security &amp; Surveillance</strong> &#8211; For enhanced monitoring in restricted areas.</p></li><li><p><strong>Smart Advertising</strong> &#8211; Display ads based on age and gender.</p></li><li><p><strong>Social Media &amp; Applications</strong> &#8211; Personalization of user experience based on detected age and gender.</p></li><li><p><strong>Healthcare</strong> &#8211; To assist in patient profiling and analysis.</p></li></ul><h2><strong>4. Challenge Questions</strong></h2><p></p>
      <p>
          <a href="https://careerbytecode.substack.com/p/building-a-smart-surveillance-system-with-age-and-gender-detection-using-ai-open-cv">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Real Estate Meets Machine Learning: Predicting Prices with Linear Models]]></title><description><![CDATA[Predicting house prices using linear regression enables data-driven insights by analyzing key factors like square footage, neighborhood quality, and more.]]></description><link>https://careerbytecode.substack.com/p/real-estate-meets-machine-learning-predicting-prices-with-linear-models</link><guid isPermaLink="false">https://careerbytecode.substack.com/p/real-estate-meets-machine-learning-predicting-prices-with-linear-models</guid><dc:creator><![CDATA[Janani Saravana]]></dc:creator><pubDate>Mon, 20 Jan 2025 19:38:09 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!EZ-E!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3ff2702-2388-4b38-8947-09574cdf8219_1280x720.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!EZ-E!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3ff2702-2388-4b38-8947-09574cdf8219_1280x720.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!EZ-E!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3ff2702-2388-4b38-8947-09574cdf8219_1280x720.jpeg 424w, https://substackcdn.com/image/fetch/$s_!EZ-E!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3ff2702-2388-4b38-8947-09574cdf8219_1280x720.jpeg 848w, https://substackcdn.com/image/fetch/$s_!EZ-E!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3ff2702-2388-4b38-8947-09574cdf8219_1280x720.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!EZ-E!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3ff2702-2388-4b38-8947-09574cdf8219_1280x720.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!EZ-E!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3ff2702-2388-4b38-8947-09574cdf8219_1280x720.jpeg" width="1280" height="720" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c3ff2702-2388-4b38-8947-09574cdf8219_1280x720.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:720,&quot;width&quot;:1280,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:118566,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!EZ-E!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3ff2702-2388-4b38-8947-09574cdf8219_1280x720.jpeg 424w, https://substackcdn.com/image/fetch/$s_!EZ-E!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3ff2702-2388-4b38-8947-09574cdf8219_1280x720.jpeg 848w, https://substackcdn.com/image/fetch/$s_!EZ-E!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3ff2702-2388-4b38-8947-09574cdf8219_1280x720.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!EZ-E!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3ff2702-2388-4b38-8947-09574cdf8219_1280x720.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><h2><strong>1. Why Do We Need This Use Case?</strong></h2><ul><li><p><strong>Price Estimation for New Houses:</strong> Provides a robust mechanism to predict house prices based on historical data trends.</p></li><li><p><strong>Data-Driven Decisions:</strong> Enables informed buying, selling, and investing decisions in the real estate market.</p></li><li><p><strong>Feature Importance Analysis:</strong> Helps stakeholders identify influential factors, such as square footage or neighborhood quality, that affect house prices.</p></li><li><p><strong>Interpretability:</strong> Linear regression models are easy to interpret, making them suitable for stakeholders without technical expertise.</p></li><li><p><strong>Scalability:</strong> Efficiently handles datasets with multiple features, making it ideal for large-scale real estate analysis.</p></li><li><p><strong>Informed Decision-Making:</strong><br>Homebuyers, sellers, and real estate professionals can make data-driven decisions by understanding market trends and the factors influencing house prices.</p></li><li><p><strong>Accurate Price Prediction:</strong><br>Estimating house prices for new or unlisted properties helps in setting realistic expectations for buyers and sellers, reducing negotiation time and misunderstandings.</p></li><li><p><strong>Understanding Key Drivers:</strong><br>Linear regression highlights which features (e.g., square footage, location) most significantly influence house prices, enabling targeted investments or renovations to increase property value.</p></li><li><p><strong>Real Estate Market Analysis:</strong><br>Developers and investors can use this data to assess property markets, identify undervalued areas, or strategize investments.</p></li><li><p><strong>Scalability and Simplicity:</strong><br>Linear regression is a scalable, straightforward approach that can analyze complex datasets without requiring excessive computational power.</p></li></ul><div><hr></div><h2><strong>2. When Do We Need This Use Case?</strong></h2><ul><li><p><strong>Real Estate Market Analysis:</strong> To understand market trends and predict future property prices.</p></li><li><p><strong>Investment Decision Making:</strong> To evaluate the profitability of properties before purchase.</p></li><li><p><strong>Renovation and Development:</strong> To prioritize renovations that add the most value to a property.</p></li><li><p><strong>Loan and Insurance Assessments:</strong> To assist financial institutions in determining appropriate loan amounts and insurance premiums.</p></li><li><p><strong>Real Estate Investment Planning:</strong><br>When investors are deciding where to invest or which properties offer the best return on investment.</p></li><li><p><strong>Valuation of Properties:</strong><br>When appraising houses to determine market value for buying, selling, or mortgage lending.</p></li><li><p><strong>Market Trend Analysis:</strong><br>When analyzing housing market trends over time to predict future price changes.</p></li><li><p><strong>Renovation or Development Projects:</strong><br>When deciding which renovations (e.g., adding a garage or expanding square footage) will yield the highest return on investment.</p></li><li><p><strong>Policy Formulation:</strong><br>Governments or local authorities may use this model to assess housing affordability and design interventions for low-income groups.</p></li><li><p><strong>Data Science and Machine Learning Learning:</strong><br>This use case serves as a foundational example for beginners to learn predictive modeling and feature importance analysis.</p></li></ul><div><hr></div><h2><strong>3. Challenge Questions</strong></h2><p></p>
      <p>
          <a href="https://careerbytecode.substack.com/p/real-estate-meets-machine-learning-predicting-prices-with-linear-models">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Streamlining User Interactions with Azure AI-Powered Chatbots]]></title><description><![CDATA[This use case demonstrates how to build a smart and contextually aware chatbot that combines Azure OpenAI's language model capabilities with Azure AI Search's contextual data retrieval.]]></description><link>https://careerbytecode.substack.com/p/smart-chatbots-made-easy-azure-openai-and-ai-search-integration</link><guid isPermaLink="false">https://careerbytecode.substack.com/p/smart-chatbots-made-easy-azure-openai-and-ai-search-integration</guid><dc:creator><![CDATA[CareerByteCode]]></dc:creator><pubDate>Sun, 15 Dec 2024 21:36:56 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!sEE5!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe9acc92e-2f7e-4849-a009-6fe2c4c4eb48_1280x720.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!sEE5!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe9acc92e-2f7e-4849-a009-6fe2c4c4eb48_1280x720.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!sEE5!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe9acc92e-2f7e-4849-a009-6fe2c4c4eb48_1280x720.png 424w, https://substackcdn.com/image/fetch/$s_!sEE5!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe9acc92e-2f7e-4849-a009-6fe2c4c4eb48_1280x720.png 848w, https://substackcdn.com/image/fetch/$s_!sEE5!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe9acc92e-2f7e-4849-a009-6fe2c4c4eb48_1280x720.png 1272w, https://substackcdn.com/image/fetch/$s_!sEE5!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe9acc92e-2f7e-4849-a009-6fe2c4c4eb48_1280x720.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!sEE5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe9acc92e-2f7e-4849-a009-6fe2c4c4eb48_1280x720.png" width="1280" height="720" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e9acc92e-2f7e-4849-a009-6fe2c4c4eb48_1280x720.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:720,&quot;width&quot;:1280,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:421742,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!sEE5!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe9acc92e-2f7e-4849-a009-6fe2c4c4eb48_1280x720.png 424w, https://substackcdn.com/image/fetch/$s_!sEE5!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe9acc92e-2f7e-4849-a009-6fe2c4c4eb48_1280x720.png 848w, https://substackcdn.com/image/fetch/$s_!sEE5!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe9acc92e-2f7e-4849-a009-6fe2c4c4eb48_1280x720.png 1272w, https://substackcdn.com/image/fetch/$s_!sEE5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe9acc92e-2f7e-4849-a009-6fe2c4c4eb48_1280x720.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p></p><h2><strong>1. Why We Need This Use Case</strong></h2><p>This use case demonstrates how to build a smart and contextually aware chatbot that combines Azure OpenAI's language model capabilities with Azure AI Search's contextual data retrieval. The integration ensures enhanced conversational intelligence by enabling the chatbot to fetch real-time, relevant data for better user engagement. This is particularly useful in scenarios requiring specific document-based answers or real-time information.</p><div><hr></div><h2><strong>2. When We Need This Use Case</strong></h2><ul><li><p>Customer support scenarios requiring accurate, document-based responses.</p></li><li><p>Legal, compliance, or policy-based document queries.</p></li><li><p>Employee self-service tools for accessing internal knowledge bases.</p></li><li><p>Personalized recommendations or troubleshooting guides.</p></li><li><p>Any domain where accuracy, context, and conversational understanding are critical.</p></li></ul><div><hr></div><h2><strong>3. Challenge Questions for Interview Preparation</strong></h2><p></p>
      <p>
          <a href="https://careerbytecode.substack.com/p/smart-chatbots-made-easy-azure-openai-and-ai-search-integration">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Unleashing the Power of Image Intelligence: A Comprehensive Hands-On Guide to Simplifying, Automating, and Mastering Image Analysis with Azure AI Vision SDK]]></title><description><![CDATA[The ability to analyze images is critical for numerous applications, including automated tagging, object detection, content moderation, and accessibility enhancements.]]></description><link>https://careerbytecode.substack.com/p/unleashing-the-power-of-image-intelligence-a-comprehensive-hands-on-guide-to-simplifying-automating-mastering-image-analysis-with-azure-ai-vision-sdk</link><guid isPermaLink="false">https://careerbytecode.substack.com/p/unleashing-the-power-of-image-intelligence-a-comprehensive-hands-on-guide-to-simplifying-automating-mastering-image-analysis-with-azure-ai-vision-sdk</guid><dc:creator><![CDATA[CareerByteCode]]></dc:creator><pubDate>Thu, 12 Dec 2024 10:53:23 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!SEVp!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0481fdbe-c819-45e6-aefa-df2d3eed746e_1280x720.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!SEVp!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0481fdbe-c819-45e6-aefa-df2d3eed746e_1280x720.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!SEVp!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0481fdbe-c819-45e6-aefa-df2d3eed746e_1280x720.jpeg 424w, https://substackcdn.com/image/fetch/$s_!SEVp!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0481fdbe-c819-45e6-aefa-df2d3eed746e_1280x720.jpeg 848w, https://substackcdn.com/image/fetch/$s_!SEVp!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0481fdbe-c819-45e6-aefa-df2d3eed746e_1280x720.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!SEVp!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0481fdbe-c819-45e6-aefa-df2d3eed746e_1280x720.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!SEVp!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0481fdbe-c819-45e6-aefa-df2d3eed746e_1280x720.jpeg" width="1280" height="720" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/0481fdbe-c819-45e6-aefa-df2d3eed746e_1280x720.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:720,&quot;width&quot;:1280,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:109494,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!SEVp!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0481fdbe-c819-45e6-aefa-df2d3eed746e_1280x720.jpeg 424w, https://substackcdn.com/image/fetch/$s_!SEVp!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0481fdbe-c819-45e6-aefa-df2d3eed746e_1280x720.jpeg 848w, https://substackcdn.com/image/fetch/$s_!SEVp!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0481fdbe-c819-45e6-aefa-df2d3eed746e_1280x720.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!SEVp!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0481fdbe-c819-45e6-aefa-df2d3eed746e_1280x720.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><h2><strong>1. Why We Need This Use Case</strong></h2><p>The ability to analyze images is critical for numerous applications, including automated tagging, object detection, content moderation, and accessibility enhancements. Azure AI Vision empowers developers to integrate advanced image analysis capabilities into applications seamlessly, accelerating development while leveraging Microsoft's robust AI infrastructure.</p><h2><strong>2. When We Need This Use Case</strong></h2><ul><li><p>When building apps requiring automatic image tagging and metadata generation.</p></li><li><p>For creating solutions that detect and categorize objects, people, and environments.</p></li><li><p>During the development of content moderation systems.</p></li><li><p>In scenarios demanding real-time image analysis, such as surveillance or accessibility solutions.</p></li><li><p>When integrating visual data into larger AI workflows like predictive analytics or AI-driven insights.</p></li></ul><div><hr></div><h2><strong>3. Challenge Questions</strong></h2><p></p>
      <p>
          <a href="https://careerbytecode.substack.com/p/unleashing-the-power-of-image-intelligence-a-comprehensive-hands-on-guide-to-simplifying-automating-mastering-image-analysis-with-azure-ai-vision-sdk">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Creating AI Applications Using Azure OpenAI GPT4 Deployment]]></title><description><![CDATA[OpenAI models have revolutionized AI-driven applications, enabling natural language processing, decision-making, and more.]]></description><link>https://careerbytecode.substack.com/p/simplify-ai-development-with-deploying-gpt4-a-guide-to-azure-openai-studio</link><guid isPermaLink="false">https://careerbytecode.substack.com/p/simplify-ai-development-with-deploying-gpt4-a-guide-to-azure-openai-studio</guid><dc:creator><![CDATA[CareerByteCode]]></dc:creator><pubDate>Tue, 10 Dec 2024 11:26:32 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!ushz!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77b45106-8613-4333-b2d2-73070003b293_1280x720.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ushz!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77b45106-8613-4333-b2d2-73070003b293_1280x720.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ushz!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77b45106-8613-4333-b2d2-73070003b293_1280x720.jpeg 424w, https://substackcdn.com/image/fetch/$s_!ushz!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77b45106-8613-4333-b2d2-73070003b293_1280x720.jpeg 848w, https://substackcdn.com/image/fetch/$s_!ushz!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77b45106-8613-4333-b2d2-73070003b293_1280x720.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!ushz!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77b45106-8613-4333-b2d2-73070003b293_1280x720.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ushz!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77b45106-8613-4333-b2d2-73070003b293_1280x720.jpeg" width="1280" height="720" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/77b45106-8613-4333-b2d2-73070003b293_1280x720.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:720,&quot;width&quot;:1280,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:105516,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ushz!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77b45106-8613-4333-b2d2-73070003b293_1280x720.jpeg 424w, https://substackcdn.com/image/fetch/$s_!ushz!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77b45106-8613-4333-b2d2-73070003b293_1280x720.jpeg 848w, https://substackcdn.com/image/fetch/$s_!ushz!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77b45106-8613-4333-b2d2-73070003b293_1280x720.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!ushz!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77b45106-8613-4333-b2d2-73070003b293_1280x720.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p></p><h2><strong>1. Why We Need This Use Case</strong></h2><p>OpenAI models have revolutionized AI-driven applications, enabling natural language processing, decision-making, and more. Deploying these models on Azure provides the advantages of enterprise-grade security, scalability, and robust infrastructure while leveraging the capabilities of advanced AI. This use case is essential for businesses seeking to integrate AI into their workflows or products effectively.</p><div><hr></div><h2><strong>2. When We Need This Use Case</strong></h2><ul><li><p>When building AI-powered applications requiring GPT-based capabilities.</p></li><li><p>For enterprises needing secure and scalable AI infrastructure.</p></li><li><p>When fine-tuning and deploying customized OpenAI models for domain-specific tasks.</p></li><li><p>To create chatbots, virtual assistants, or data-driven insights platforms.</p></li><li><p>When compliance with regional regulations and data residency is necessary.</p></li></ul><div><hr></div><h2><strong>3. Challenge Questions</strong></h2><p></p>
      <p>
          <a href="https://careerbytecode.substack.com/p/simplify-ai-development-with-deploying-gpt4-a-guide-to-azure-openai-studio">
              Read more
          </a>
      </p>
   ]]></content:encoded></item></channel></rss>