MetaHealth
Smart Diabetes Predictor
The problem MetaHealth solves
Diabetes is often called a βsilent killerβ because it develops gradually and is frequently undiagnosed until severe complications occur. Traditional medical checkups are:
πΈ Expensive for many individuals.
π₯ Not always accessible in rural or underserved areas.
β³ Time-consuming, requiring hospital visits and lab tests.
As a result, millions of people remain undiagnosed or receive a diagnosis too late, increasing the risk of heart disease, kidney damage, and other life-threatening complications.
β What People Can Use It For
Our solution MetaHealth: Smart Diabetes Predictor provides a fast, affordable, and accessible way to assess diabetes risk.
π¨βπ©βπ§ Individuals β Can check their own risk instantly and take preventive action (diet, exercise, lifestyle changes).
π©ββοΈ Doctors β Use it as a decision-support tool to cross-check patient risks.
π₯ Hospitals & Clinics β Upload batch CSV files for quick mass screening of patients.
ποΈ Health NGOs / Governments β Use the tool for large-scale screening campaigns in rural or urban communities.
π― How It Makes Tasks Easier & Safer
β±οΈ Instant Predictions β No need to wait for lab results; the model gives risk scores immediately.
π Dual-Model Verification β Uses both Logistic Regression & Random Forest; if both models agree, the prediction is more reliable.
π Visual Insights β ROC curves and feature importance graphs make results transparent and explainable.
π Accessible Anywhere β Hosted on Streamlit Cloud, anyone can use it with just an internet connection.
Challenges we ran into
Building MetaHealth: Smart Diabetes Predictor was exciting, but not without hurdles π§. Some key challenges were:
βοΈ Model Training & Data Cleaning
Challenge: The raw dataset (Pima Indians Diabetes) had missing or unrealistic values (e.g., 0 for Blood Pressure or BMI).
Solution: We built a custom preprocessing pipeline to clean the data and make the models more reliable.
π¦ Model & File Management
Challenge: Managing multiple files (Logistic Regression, Random Forest, Scaler, Metrics) and ensuring they load correctly in Streamlit.
Solution: Created a centralized models/saved directory and wrote utility functions to handle loading and evaluation seamlessly.
π» Deployment on Streamlit Cloud
Challenge: Initial deployment failed due to missing dependencies (matplotlib, scikit-learn, etc.).
Solution: Added a requirements.txt and debugged package versions until everything worked smoothly.
π¨ User Experience (UX)
Challenge: Making the predictions understandable for non-technical users.
Solution: Instead of showing just 0/1 outputs, we display probability percentages, model agreement/disagreement, and easy-to-read explanations.
Technologies used