Close Menu
    Trending
    • Meanwhile in Europe: How We Learned to Stop Worrying and Love the AI Angst | by Andreas Maier | Jul, 2025
    • Transform Complexity into Opportunity with Digital Engineering
    • OpenAI Is Fighting Back Against Meta Poaching AI Talent
    • Lessons Learned After 6.5 Years Of Machine Learning
    • Handling Big Git Repos in AI Development | by Rajarshi Karmakar | Jul, 2025
    • National Lab’s Machine Learning Project to Advance Seismic Monitoring Across Energy Industries
    • HP’s PCFax: Sustainability Via Re-using Used PCs
    • Mark Zuckerberg Reveals Meta Superintelligence Labs
    AIBS News
    • Home
    • Artificial Intelligence
    • Machine Learning
    • AI Technology
    • Data Science
    • More
      • Technology
      • Business
    AIBS News
    Home»Machine Learning»From Code to Care: Building a Heart Health Risk Screener with Streamlit | by Afolabi Mahmood Olalekan | May, 2025
    Machine Learning

    From Code to Care: Building a Heart Health Risk Screener with Streamlit | by Afolabi Mahmood Olalekan | May, 2025

    Team_AIBS NewsBy Team_AIBS NewsMay 21, 2025No Comments4 Mins Read
    Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
    Share
    Facebook Twitter LinkedIn Pinterest Email


    Photograph by Joshua Chehov on Unsplash

    “As a medical pupil, I’ve learn many case information. However this time, I wished to jot down a number of traces of code that would really make a distinction.”

    That thought led me down the rabbit gap of merging two worlds I deeply care about drugs and expertise. And that’s how my first health-focused machine studying internet app got here to life: CardioRural, a coronary heart well being threat screener designed to assist healthcare staff assess potential coronary heart illness dangers primarily based on fundamental scientific parameters.

    On this submit, I’ll Stroll you thru how I constructed it, what I realized, and the way it may probably assist frontline healthcare staff in underserved areas.

    Throughout my rotations, I observed one thing most sufferers in rural and semi-urban settings usually current late. By the point coronary heart points turn into seen, a number of harm is already executed.

    This made me surprise: What if healthcare staff may use easy, obtainable knowledge to determine at-risk sufferers early sufficient for intervention?

    That curiosity sparked the concept for CardioRural — a fast screening device that runs within the browser and offers instant suggestions primarily based on routine scientific knowledge.

    I used the favored Heart Disease UCI dataset and It consists of 11 most important options, similar to:

    • Age
    • Intercourse
    • Chest Ache Sort
    • Resting Blood Strain
    • Ldl cholesterol
    • Fasting Blood Sugar
    • Max Coronary heart Price
    • Train-Induced Angina
    • ST Despair (Oldpeak)
    • ECG Outcomes
    • Slope of Peak ST Section

    After cleansing and encoding the info, I skilled a Random Forest Classifier. I selected this due to its stability between interpretability, accuracy, and robustness to outliers, which makes it an awesome candidate for well being instruments utilized in various discipline settings.

    As a lot as I wished to “simply construct,” I needed to pause and ask: How good is that this mannequin, actually?

    Right here’s the way it carried out:

    • Accuracy: 88%
    • Precision: 88%
    • Recall: 88%
    • F1-Rating: 88%
    • Accuracy sounds nice, however alone it may be deceptive — particularly with imbalanced datasets.
    • Precision tells me how usually the mannequin is appropriate when it predicts “Excessive Danger”. That issues loads as a result of false alarms waste restricted scientific assets.
    • Recall (sensitivity) tells me how properly the mannequin captures true coronary heart illness circumstances. This issues much more as a result of lacking a high-risk affected person may value a life.
    • F1-score provides me the imply, a pleasant stability between precision and recall.

    I felt assured sufficient to proceed with deployment, realizing the mannequin wouldn’t overreact to noise however nonetheless had robust recall for actual dangers.

    I wished one thing that would run on any laptop computer or telephone with out the stress of backend servers or JavaScript frameworks. Streamlit was the right device for this.

    Right here’s what I did:

    • Created a clear, mobile-friendly type with fields for Age, BP, Chest Ache Sort, and so on.
    • Allowed free-text numeric inputs (like ldl cholesterol) with inside validation
    • Added helper texts to make it extra clinically intuitive
    • Changed complicated plus/minus buttons with regular enter fields
    • Inbuilt a remaining warning: “That is an estimation device and doesn’t change scientific judgment.”

    Right here’s a glimpse of the deployed app interface:

    • Person-friendly: Optimized for non-tech-savvy well being staff
    • No login or account wanted
    • Immediate prediction with a single button click on
    • Binarizes fasting blood sugar internally, so customers solely enter actual values
    • Clear UI with labels and tooltips to information scientific entry

    I ran the app with a number of situations, aged sufferers with atypical angina, youthful sufferers with excessive ldl cholesterol however regular ECG, and so forth. The mannequin’s output appeared cheap and was usually in line with anticipated scientific patterns.

    Additionally, due to Streamlit’s fast deploy options, I may take a look at it stay while not having any fancy cloud setup.

    This challenge wasn’t nearly machine studying or Streamlit. It taught me much more:

    • The best way to stability knowledge science with real-world usability
    • Why analysis metrics matter past accuracy
    • The significance of easy design decisions
    • That deploying a mannequin isn’t the top; it’s the beginning of one thing helpful

    Most significantly, I noticed the wonder in utilizing code not only for automation or dashboards however to help scientific decision-making in locations the place it’s wanted most.

    Right here’s what I plan to do subsequent:

    • Search for native scientific knowledge
    • Add validation guidelines to forestall unrealistic entries
    • Enhance the UI responsiveness for smaller screens
    • Translate the app into native languages to serve native communities
    • Check in real-life use with frontline staff

    Lengthy-term, I need to construct extra digital well being instruments centered on non-communicable illnesses, psychological well being, and early detection particularly for underserved populations.

    Discover the stay app right here: CardioRural: Heart Health Risk Screener · Streamlit

    📁 GitHub Repository: https://github.com/AFB-M/cardiorural-app

    📫 Let’s Join: https://www.linkedin.com/in/afolabi-mahmood-olalekan

    For those who’re engaged on related issues, I’d love to attach and be taught collectively. I’m all the time open to collaborations in public well being, digital well being, or knowledge science in Africa.

    Thanks for studying



    Source link

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleApple designer Sir Jony Ive joins OpenAI
    Next Article Instagram Head Adam Mosseri Experiences Google Phishing Scam
    Team_AIBS News
    • Website

    Related Posts

    Machine Learning

    Meanwhile in Europe: How We Learned to Stop Worrying and Love the AI Angst | by Andreas Maier | Jul, 2025

    July 1, 2025
    Machine Learning

    Handling Big Git Repos in AI Development | by Rajarshi Karmakar | Jul, 2025

    July 1, 2025
    Machine Learning

    A Technical Overview of the Attention Mechanism in Deep Learning | by Silva.f.francis | Jun, 2025

    June 30, 2025
    Add A Comment
    Leave A Reply Cancel Reply

    Top Posts

    Meanwhile in Europe: How We Learned to Stop Worrying and Love the AI Angst | by Andreas Maier | Jul, 2025

    July 1, 2025

    I Tried Buying a Car Through Amazon: Here Are the Pros, Cons

    December 10, 2024

    Amazon and eBay to pay ‘fair share’ for e-waste recycling

    December 10, 2024

    Artificial Intelligence Concerns & Predictions For 2025

    December 10, 2024

    Barbara Corcoran: Entrepreneurs Must ‘Embrace Change’

    December 10, 2024
    Categories
    • AI Technology
    • Artificial Intelligence
    • Business
    • Data Science
    • Machine Learning
    • Technology
    Most Popular

    This Indicator Changed My Trading Style | by Sayedali | May, 2025

    May 22, 2025

    How AI Will Change Chip Design

    December 31, 2024

    Build a Profitable One-Person Business That Runs Itself — with These 7 AI Tools

    June 7, 2025
    Our Picks

    Meanwhile in Europe: How We Learned to Stop Worrying and Love the AI Angst | by Andreas Maier | Jul, 2025

    July 1, 2025

    Transform Complexity into Opportunity with Digital Engineering

    July 1, 2025

    OpenAI Is Fighting Back Against Meta Poaching AI Talent

    July 1, 2025
    Categories
    • AI Technology
    • Artificial Intelligence
    • Business
    • Data Science
    • Machine Learning
    • Technology
    • Privacy Policy
    • Disclaimer
    • Terms and Conditions
    • About us
    • Contact us
    Copyright © 2024 Aibsnews.comAll Rights Reserved.

    Type above and press Enter to search. Press Esc to cancel.